But I'll have to do some meta-programming next it looks like, to generate the SQL queries from the odin structs.
TODO meta-programming: https://github.com/duchainer/odin-raylib-hot-reload-game-template/commit/99769b374d6c1276149aed3b68f3c01694ca0fe9
But I'll have to do some meta-programming next it looks like, to generate the SQL queries from the odin structs.
TODO meta-programming: https://github.com/duchainer/odin-raylib-hot-reload-game-template/commit/99769b374d6c1276149aed3b68f3c01694ca0fe9
Got the very first proof-of-concept of my save and load gameplay session record-and-replay : https://github.com/duchainer/odin-raylib-hot-reload-game-template/commit/ccca3f69e40a3a45acc8d90367a4d59788e5e797
Small video: https://youtu.be/hXTD354t8ZA
It uses SQLite files and uses Write-ahead-log to store things in a crash-proof way (as long as the computer is not the one crashing, more-or-less)
Next up, store things better than the whole CommodinoStruct every frame 😉 ( as that currently constrain my MAX_FRAME_COUNT to be pretty low for now 😅 )
For context, that simple 2d game is really just for prototyping that gameplay record-and-replay system.
I plan to use it in some 3d multiplayer Valheim like at some point. 🙂
I watched www.youtube.com/watch?v=W20t1zCZv8M&t=1339s and now I want that in my games. I implemented the very very beginning of record-and-replay for a simple game I made, here: https://github.com/duchainer/odin-raylib-hot-reload-game-template/tree/commodino--full-game-record-and-replay--based-on-trijam-322--sacrifice
But now I've seen https://www.youtube.com/watch?v=72y2EC5fkcE and that sounds even better. ( Shoutout to @leddoo for linking that awesome video in his latest blog about a time-traveling debugger: https://handmade.network/p/675/blindspot/blog/p/9082-the_first_1.5_years#30579 ) I'm not too sure if I could have the [craddle] of the hot-reload integrate that, or if it would need something even more external or meta-programming-related, but I'll see :)
I'll see how all that can be integrated with my longer term project of a multiplayer Valheim-like, using Raylib and Odin-lang or Jai-lang (depending on how much compile-time stuff I'll need).
I wish you a great day. Ha
On monday, I streamed work on Commodino for about 5 hours. I was able to make a commodino_assert that, on fail, replays the last frame update & draw. That is like having a assert that doesn't crash the game, but instead keeps you in that frame state to fix it in-situ : https://www.twitch.tv/videos/2573133461?t=01h12m59s
On Tuesday, I did not have electricity at my home for most of the day, so couldn't work on it...
On Wednesday, I had some family & chores stuff to deal with.
But I did get to meet someone with similar ambitions, and tomorrow (Thursday) I'll work on getting multi-frame commodino_assert, in some sense: https://discord.com/channels/568138951836172421/1417566310010982490/1420223097880969258
Feel free to join me when I start streaming around 10 EST tomorrow morning: https://www.twitch.tv/duchainer