fodev.net

FOnline Development => Questions and Answers => Topic started by: Janusz2238 on November 09, 2013, 05:02:32 pm

Title: Loading sprites, and file archive question
Post by: Janusz2238 on November 09, 2013, 05:02:32 pm
Hello,

I want load speite from data/art/interface
Quote
bool result = testSprite.Load("wm_cr_offl.png", PT_ART_INTRFACE);

1. I want use no compressed file system and data file at the same time. How can I do it? For now FONline dont want read files from file system :(
2. Can I read sprite from custom folder, for example: data/art/playerAvatars?

Best regards,
Janusz
Title: Re: Loading sprites, and file archive question
Post by: Wipe on November 09, 2013, 09:56:10 pm
Huh? Client should always try to find in data/ folder, or whatever is set; make sure that you have correct value of FonlineDataPath in FOnline.cfg ("./" / ".\" prefix may be important, even on windows)
As for loading, try something like ["dir/file.frm", PT_ART] or ["art/dir/file.frm", PT_DATA] or in worst case ["data/art/dir/file.frm", PT_ROOT]
Title: Re: Loading sprites, and file archive question
Post by: Janusz2238 on November 09, 2013, 10:01:47 pm
Ha! you right, I dont have in config "FonlineDataPath = .\data" :) Thank you very much. Maybe you can also help me in second topic?:>