Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spamming ham in the debug menu while standing over the fire crashes the game #8

Open
hardliner66 opened this issue Aug 5, 2023 · 5 comments

Comments

@hardliner66
Copy link

hardliner66 commented Aug 5, 2023

Basically, title. It seems when you spam ham over the fire, it somehow tries to access some entity that's already gone, which crashes the game.

Error:

fatal: flecs.c: 7994: assert: ecs_is_alive(world, entity) INVALID_PARAMETER
run Aftersun: error: the following command exited with error code 3:
C:\projects\zig\aftersun\zig-out\bin\Aftersun.exe
Build Summary: 11/13 steps succeeded; 1 failed (disable with --summary none)
run transitive failure
└─ run Aftersun failure
@foxnne
Copy link
Owner

foxnne commented Aug 6, 2023

Thanks for this report! Honestly the spawning of entities and the cooking system is probably the most questionable thing in here, I'm not too surprised you found a bug with it. I'll look into this and potentially rework the way it works altogether.

@hardliner66
Copy link
Author

Yeah, thought that there is wonky stuff going on. I really like the game tho and might "steal" some of your code if that's fine. As it's really barebones, but goes in a similar direction that I want to go, I think it's a good inspiration now. So, thanks for the great work. :)

@foxnne
Copy link
Owner

foxnne commented Aug 6, 2023

Yeah! Im pretty happy with the tile based movement and animation systems, feel free to steal whatever code is applicable for you. I'm also pretty happy with the heightmap/shadow system too and my pixel art editor has a handy height map editor for making those maps. Like you said it's all bare bones but the foundation is there for the character controller and things like that.

@hardliner66
Copy link
Author

hardliner66 commented Aug 10, 2023

Is this the editor you used for graphics? https://pixieditor.net/

I'm just trying to figure out how your stuff works :D

@foxnne
Copy link
Owner

foxnne commented Oct 13, 2023

Is this the editor you used for graphics? https://pixieditor.net/

I'm just trying to figure out how your stuff works :D

So sorry I missed this and didn't get back to you. I wrote my own pixel art and animation editor I use for this project:
pixi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants