fodev.net
FOnline Development => Questions and Answers => Topic started by: Janusz2238 on November 09, 2013, 05:02:32 pm
-
Hello,
I want load speite from data/art/interface
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
-
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]
-
Ha! you right, I dont have in config "FonlineDataPath = .\data" :) Thank you very much. Maybe you can also help me in second topic?:>