Opened 10 years ago
Last modified 10 years ago
#2495 closed defect
Load Game Broken — at Version 2
Reported by: | agentx | Owned by: | |
---|---|---|---|
Priority: | Must Have | Milestone: | |
Component: | Core engine | Keywords: | |
Cc: | Patch: |
Description (last modified by )
The API doesn't continue loaded games. OnUpdate of a bot is called, but essential game objects like events, maps, gamestate are undefined.
After some hours of investigation it looks like the load path on the C++ side of the API needs a heavy update. After that further testing is needed, because there is no JS code available to verify proper game objects.
However, I've attached a Checker bot with some utils, showing the difference between a new game start and a loaded game:
new game:
------: Checker.OnUpdate.in TICK: #3 ------: Checker.OnUpdate.out
load game:
------: Checker.OnUpdate.in TICK: #3 ERROR: events undefined ERROR: gameState undefined ERROR: territoryMap undefined ERROR: entities undefined ERROR: passabilityMap undefined ERROR: playerData undefined ERROR: terrainAnalyzer undefined ERROR: timeElapsed undefined ERROR: circularMap undefined ERROR: barterPrices undefined ERROR: passabilityClasses undefined ------: Checker.OnUpdate.out
If that doesn't make it into next Alpha, Load and Save buttons should be removed from the GUI to avoid confusing new users.
Edit:spelling
Change History (3)
by , 10 years ago
Attachment: | checker.zip added |
---|
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Description: | modified (diff) |
---|
To make it clear, this has nothing to do with Serialization/DeSerialization. That was long enough discussed here: http://www.wildfiregames.com/forum/index.php?showtopic=18323&p=289985