Activity
Mon
Wed
Fri
Sun
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
Jan
Feb
Mar
What is this?
Less
More

Memberships

Ooga Booga Game Devs

3k members β€’ Free

2 contributions to Ooga Booga Game Devs
trying to setup a floor data system that can save
so the idea is that my tower has floors, and each floor will keep track of what is on that floor like what buildings are on the tiles and what entities are where etc. and then the world will have a list of floors, and that list should be able to work with the save / load system. Here's some of the relevant code I have so far: typedef Vector2i Tile; typedef struct TileData TileData; struct TileData { Tile tile; BuildingData building; }; typedef struct FloorData FloorData; struct FloorData { int floorID; TileData tiles[MAX_TILE_COUNT]; Entity entities[MAX_ENTITY_COUNT]; }; typedef struct World World; struct World { float64 time_elapsed; UXState ux_state; FloorData floors[MAX_FLOOR_COUNT]; ItemData items[ITEM_MAX]; }; the game starts up fine but the second time the game starts up I get the attached error. How do I solve this error? Thanks.
trying to setup a floor data system that can save
1 like β€’ Sep '24
If I understand your code correctly you try to (in your procedure world_attempt_load_from_disk) to os_read_entire_file_s(STR("world"), & result, temp_allocator); Which uses the temp_allocator to load the world file. If that file is bigger than 2 MB you will crash. Increasing the temp_allocator size makes it stop. Check how big your world file is on disk. The progamm probably starts when you don't have a world file and then crashes the second time because it generated one and doesn't have enough room to store it. The temporary storage allocator will wrap around to the start when you allocate more memory than it has but will never let you allocate anything larger than TEMPORARY_STORAGE_SIZE at once.
What does '90 days challenge' mean?
As far as the videos go it took roughly 60 days from 'day 1' to 'day 14'. so 15 days ~= 60 days 90 days ~= 360 days Does one video represent a day of work done? Or an amount of work one is expected to get done in about one work day?
1 like β€’ Sep '24
Thanks for the answers. I get that a lot of work goes into making videos, answering questions and other work, and in my opinion you don't need to worry about making it truly daily videos. I was just interested for my own learning and schedule. Because I couldn't get some of the things you've done in a day, done in a day. Thanks for the good videos.
1-2 of 2
Tobias Krumholz
2
15points to level up
@tobias-krumholz-2483
yes

Active 465d ago
Joined Aug 13, 2024