danijar/crafter

Determinism problems

Opened this issue · 1 comments

We encountered a problem while experimenting with Crafter and implementing a save system. The most straightforward approach was to save the seed and the sequence of player actions. However, this method revealed certain issues:

In the Env._balance_object() method, the creatures variable exhibits a different order of elements during execution. This disrupts the deterministic.
The LocalView._noise() method uses the world's random instance, which modifies its state. This also contributes to the lack of determinism.

I wrote small fix for that.
#32