-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save on disconnect #285
Comments
Yes, I know the solution. It's been tough. It seems when you copy arrays from another variable, whatever variable you change, the other does the same, it's like a quantic entanglement :) Even when the array is stored in different space (profileNameSpace). To avoid this, you must do it in this way: newVar = +oldVar; So, anything you change, like staticsToSave, garrisons etc.. has to be done this way in the load account, saveFuncs and saveLoop. I have to update WotP in github so you will know what I mean :) |
Irrelevant to the issue, it doesn't 'seem' that arrays behave as references to objects, but they are indeed made to behave this way. You can read about that on the wiki page dedicated to arrays. |
Just try and if its solved you owe me some vodka, because I checked those scripts and those variables are not there. This, or Skynett :) |
look at theese lines, might be an issue that there isn't a _ before the garage thingie? |
this is the garrison part but garrison looks into the private [ ] |
|
For some reason, when i quit a singleplayer game some things are saved regardless i persistent saved or not.
I already checked all the handledisconnect, the only one i found is abou calling fn_save_player which is in the \Save folder
The text was updated successfully, but these errors were encountered: