Opened 10 years ago
Last modified 10 years ago
#2495 closed defect
Load Game Broken — at Initial Version
Reported by: | agentx | Owned by: | |
---|---|---|---|
Priority: | Must Have | Milestone: | |
Component: | Core engine | Keywords: | |
Cc: | Patch: |
Description
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 GU to avoid confusing new users.