textual-engine icon indicating copy to clipboard operation
textual-engine copied to clipboard

rewind random source and recreate pruned rooms

Open ssube opened this issue 4 years ago • 1 comments
trafficstars

Find a way to rewind the random number source and recreate pruned rooms from the same template, to prevent major differences when backtracking and revisiting a room.

ssube avatar May 13 '21 18:05 ssube

This will require, at least:

  • recording when the room was first visited (by PRNG tick, not just turn)
  • which template was used (potentially re-rollable once the PRNG has been (re)wound)
  • which actors have left (to prevent spawning multiple copies, esp if they should be unique)
  • which items have been taken (to prevent farming items)

That data will still take up some space in the world state, hopefully less than the active room and its contents.

If stable recreation is an option, the main benefit of removing rooms will be to reduce step invocations, rather than reducing save size.

ssube avatar May 15 '21 18:05 ssube