2 weeks later…. ashfall is finally taking shape
It’s been about 2 weeks since my last devlog, and through this time period, I had been contemplating about my decisions and future while things in my irl life were overwhelming me. After coming back from this break, I realised the foundation of ashfall wasnt at all how i imagined it initially when first creating ashfall in stardance.
So…..
I present to you: Ashfall v2
Whats new:
- revamp of project architecture
- built world/zone/location JSON database structure
- made data.py to dynamically load location data
- Loading mechanic, and improved error handling
At this point most of Ashfall is just a skeleton of what it’s meant to be since almost all the data driven architecture consists of empty JSON files, with a singular populated JSON file for testing loading
Getting the loader to work was hellish too…
I kept on being unable to return the data within the populated JSON file from the data.py loader, this recurring error “path doesn’t exist?: Errno….” just kept on coming back to haunt me
firstly, it was the construction of the file path with the parameters passed into the JSON loader within data.py 🥀
I spent way too long tryna figure out exactly why my game loop couldnt find a file that was literally within my project but after fixing the path post brainstorming, i managed to get the JSON data returned properly as a dictionary instead of ‘None’
it was a small fix but seeing my data.open_location("world1", "blackwatch", "armoury") actually retrun data felt euphoric for some reason