Back on track Devlog #4 5/26/25


Hey All,

I made it through the week of trials and should be smooth sailing for the next few months! 

Last week, I mentioned I didn't have a lot of time or energy to focus on this but, I did get enough done that I properly spawn ecs entitys now. This has been a great learning experience and I can't wait to tackle the next thing on my list. For now, lets go over what I did this week.

First off, I did a lot of tweaking code to make things run smoother, deleting duplicate lines or comments made earlier intending to put something in a place when I put it in another file. a lot of cleaning up essentially. 

Then I focused on nailing down my json ecs system. It was a lot of trial and errors. I have some parts of the ecs unit in the json like weapons armor speed and personal characteristics. The others like pathfinding and such isn't kept there. This helps keep the files smaller with items that are unique to each character while things that everyone uses isn't added.

Then I got this:
This shows the units for one of the factions randomly placed. underneath it is the console. In the console you can see that for some reason it was loading 305 regiments and 185440 units. This was the error that made me take a break haha. I eventually got it fixed by fixing a silly mistake(commenting out a unit counter) and having the units count outside the generation loop. It wasn't as hard as it would look but was a funny error looking back at it.

This is the outcome and where I currently am at right now:


You can see that the last faction is fixed and shows that it spawned the right amount of units compared to the last one haha. 


Next week tasks:
Implement pathfinding
simple unit logic
weapons?
start with physics?

Thanks for hanging in there with me. See you all next week!

Leave a comment

Log in with itch.io to leave a comment.