Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[FIXED] House editor problem


erkro1
 Share

Recommended Posts

Hey guys,

I've made a house editor which saves the owner in a string at MapRec, but when I shutdown the server the owner is resetted, I've put it in LoadMap, SaveMap (both client and server), etc.
Does anyone know where this can come from and how to fix it?
If you need more information reply. ;)
Link to comment
Share on other sites

@Deathbeam:

> I think you dont called SaveMap when owner of house changed

I did, you can just buy houses and edit them, and even login again at client and it will work, but when the server (the programm) reboots it won't work and Owner = '" again
Link to comment
Share on other sites

@General:

> Are you saving them as .ini or .dat?
>
> This sounds like a similar problem i had when the Guild saves were .dat yet the player saves were .ini

Maps: .dat
Accounts: .bin

But I only save owner parameter at maps so that shouldn't be the problem right?
Link to comment
Share on other sites

@General:

> It should be fine as long as they are both binary… I have no idea what the problem is.

It also seems that all variables after Owner variable in MapRec getting screwed up too when restarting server, they all (BossNpc, Weather and Intensity As Long) get very high numbers.

EDIT: I've tried deleting all maps, didn't make any difference, so its nothing with problems in MapRec I guess, only with writing a variable to it.

EDIT2: Its fixed, I forgot to put * NAME_LENGTH behind the String I dimmed, pretty dumb fault. :P
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...