Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Achieve uber-speed! Convert to binary fil
#2
I have to respond .... .... there is a much quicker way to do this ...

Code:
Put #nFileNum, , Player(index)

That will save the whole player. No need to save each member individually. Smile

Same with items, npcs, shops, spells, etc. Can load them pretty much the same ...

Code:
Get #nFileNum, , Player(index)

Basically the same way maps are loaded and saved. Dont have to really worry about the extra stuff attached like Bytecount, etc, as those should be cleared on ClearPlayer(Index). Smile

And .. it's faster doing a save/load on the whole structure instead of individual members. The compiler does some weird optimizations in the background.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)