Hyphen-ated / RebirthItemTracker

Uses the log.txt file to track item pickups in Binding of Isaac: Rebirth.
BSD 2-Clause "Simplified" License
121 stars 26 forks source link

Make the tracker persist run info through Isaac relaunches #127

Open BluTree opened 7 years ago

BluTree commented 7 years ago

When we begin a run with the tracer opened, there's no problem. But when we want to quit tboi and relaunching it later, whether the tracker is open or not, when we relaunch tboi, all items and run's seed disappear. But the new items we have are detected. I joined a video for more precisions : https://youtu.be/vLCVifcJgq0

Hyphen-ated commented 7 years ago

This limitation is because the game clears its log.txt when you relaunch it, and the tracker doesn't try to persist knowledge of your runs outside of what it can currently see in that file. In order to make this behave the way you want here, it would require a good bit more complexity in the tracker code. It's not impossible, but I'm not currently planning on putting in that effort.

If anyone reading this wants to do the bulk of this work, I will definitely help out.

BluTree commented 7 years ago

okay thanks for the answer

BluTree commented 7 years ago

I thought about this problem since the last week. WARNING : I don't know anything about programming so my suggestions could be impossible to do. Maybe the tracker could have a "items_log.txt" file where all the items we took and their floors is saved. Each time the tracker sees the "log.txt" is empty, It reads the "items_log.txt" and backup the items. The main problem of this is the tracker can't know if we died and quit or not. Also, I saw that when we doing a "Rerun" run, the tracker is cleared. I don't know if it comes from the same problem or not