FOnline Development > Questions and Answers

Loading sprites, and file archive question

(1/1)

Janusz2238:
Hello,

I want load speite from data/art/interface

--- Quote ---bool result = testSprite.Load("wm_cr_offl.png", PT_ART_INTRFACE);
--- End quote ---

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

Wipe:
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]

Janusz2238:
Ha! you right, I dont have in config "FonlineDataPath = .\data" :) Thank you very much. Maybe you can also help me in second topic?:>

Navigation

[0] Message Index

Go to full version