Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Templates are loaded incorrectly from savegames #2698

Closed
wzdev-ci opened this issue May 8, 2011 · 7 comments
Closed

Templates are loaded incorrectly from savegames #2698

wzdev-ci opened this issue May 8, 2011 · 7 comments

Comments

@wzdev-ci
Copy link
Contributor

wzdev-ci commented May 8, 2011

resolution_Needs reevaluating for current version (3.2.3) type_bug | by Flail13


When loading a saved game, the templates referred to by scripts become shuffled.

I was using a custom campaign, running as a global mod. I can provide the files if needed.
To test it, I made a simple script referring to one template through a vlo file. I made a script event to place that template on the map every few seconds. After saving and loading, a different template referred to by a different script was placed instead. It was also affecting all the templates the AIs were building. If it's any help, all the templates seemed to be replaced with other templates that were either at the end of template arrays, or single non-array variables.

Another issue: the log reports "The required mod could not be loaded: mission", even though the saved game loads. If I copy the mod file ("mission.wz") to the same global mods directory and call it "mission" without the ".wz", the message goes away.

Another issue: the activity of all non-player factories is lost after re-loading.


Issue migrated from trac:2698 at 2022-04-16 08:07:25 -0700

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 8, 2011

anonymous commented


Question is, do they get confused when loading or when saving? Anyway, 2.3.8 will have some savegame fixes, please try again with that (both saving and loading, old saves might be corrupted) when it gets released in hopefully some hours.

@wzdev-ci
Copy link
Contributor Author

Per commented


Can you re-test with 2.3.8, and if it fails, add a mod that fails so that we can reproduce it?

@wzdev-ci
Copy link
Contributor Author

flail13 uploaded file mission.wz (108.0 KiB)

@wzdev-ci
Copy link
Contributor Author

flail13 commented


The same thing happens with 2.3.8. I attached the mod, with the test script active.
Look for new bug-trucks being placed near the starting point. Load/Save and it places something else for no obvious reason.

@wzdev-ci
Copy link
Contributor Author

Emdek commented


Is this still valid (I'm not using that feature and I've seen some related work in commits log)?

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Oct 7, 2012

Per changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Oct 7, 2012

Per changed resolution from `` to Needs reevaluating for current version (3.1)

@wzdev-ci wzdev-ci closed this as completed Oct 7, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant