erkro1 Posted July 16, 2012 Author Share Posted July 16, 2012 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 More sharing options...
tslusny Posted July 16, 2012 Share Posted July 16, 2012 I think you dont called SaveMap when owner of house changed Link to comment Share on other sites More sharing options...
erkro1 Posted July 16, 2012 Author Share Posted July 16, 2012 @Deathbeam:> I think you dont called SaveMap when owner of house changedI 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 More sharing options...
JohnPony Posted July 16, 2012 Share Posted July 16, 2012 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 Link to comment Share on other sites More sharing options...
erkro1 Posted July 17, 2012 Author Share Posted July 17, 2012 @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 .iniMaps: .datAccounts: .binBut I only save owner parameter at maps so that shouldn't be the problem right? Link to comment Share on other sites More sharing options...
JohnPony Posted July 17, 2012 Share Posted July 17, 2012 It should be fine as long as they are both binary… I have no idea what the problem is. Link to comment Share on other sites More sharing options...
erkro1 Posted July 18, 2012 Author Share Posted July 18, 2012 @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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now