Author Topic: Loading sprites, and file archive question  (Read 2625 times)

Offline Janusz2238

  • forum.newfmc.pl
Loading sprites, and file archive question
« 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
Polskie Pustkowia http://forum.newfmc.pl/

Offline Wipe

  • Rotator
  • Random is god
Re: Loading sprites, and file archive question
« Reply #1 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]
Games are meant to be created, not played...

Offline Janusz2238

  • forum.newfmc.pl
Re: Loading sprites, and file archive question
« Reply #2 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?:>
Polskie Pustkowia http://forum.newfmc.pl/