Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Save / Load state of grid engine

See original GitHub issue

Hey there @Annoraaq.

My game is progressing and I’m starting to think about creating a save/load feature. The most simple case I could think of would be to create a full dump of the games state along with an load feature to read a json to restore a state. So conceptually the workflow would be:

  • To save: At any given state of the game run something like -> json.
  • To load: Refresh the game and instead of loading the gridengine as usual pass on additionally the save state this.gridEngine.create(cloudCityTilemap, gridEngineConfig, jsonGameState);

Now the question is what type of information would be stored from GridEngine. As far as I understand it could be essentially everything related to Characters, or is there more to it? Also for multiple scenes I’d simply call save of every scene in order to get the gridEngine states of every “map”

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

zewa666commented, Mar 28, 2022

yep totally right. Certainly better ergonomics with Partial vs Except. My point with Except was to indicate that setCharacterState definitely should not set the id, even if provided. But you’re right that can be silently handled.

zewa666commented, Mar 18, 2022

Agree with all points you made.

and staying future-proof is the exact reason I was heading for these helpers vs having to call individual methods.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sun Grid Engine (SGE) QuickStart — StarCluster 0.93.3 ...
Viewing a Job's Output​​ Sun Grid Engine creates stdout and stderr files in the job's working directory for each job executed. If any...
Read more >
Monitoring and Controlling Queues With QMON
The Load(scaled)/Consumable column shows information about the reported and scaled load parameters. The column also shows information about the available ...
Read more >
Grid Engine Administrator's Guide - Documentation - Altair
Altair Grid Engine consists of different modules, which are usually distributed over a large number of hosts.
Read more >
Sun Grid Engine Tuning guide
Load adjustments should be switched off if they are not needed, because they impose on the scheduler some additional work in connection sorting...
Read more >
[REACT] Save / load Grid state from local storage
Hi, We are trying to save and load the grid state from local storage. This works when we are using buttons to save,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found