-
Notifications
You must be signed in to change notification settings - Fork 9
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
Game not loading when adding new blocks #14
Comments
can you please show me your source code? |
this might be caused by a buffer overflow. the inventory size array has a length of 27. But here is l incremented further than the array length. This way you write into memory where some other data could be located which is then overwritten. C can be very nasty when it comes to these things. Also I wouldn't use so many Block Ids just for the different types of wood, but instead use metadata. EDIT: reserve 5 entries per log type in the metadata, so that it will be easier to implement block rotations one day |
Tried using metadata in the same way as you did with the wool blocks but with textures. Still crashes on boot (changes pushed in my fork) |
have you pushed your changes to Github? |
Yes |
https://github.com/firewolfgames/craftus_reloaded/blob/master/source/blocks/Block.c#L22 Anyhow, why have you changed the texture pack? There's a reason why I chose this one(besides that I like it more than the default 😄), namely because it's licensed under CC BY-SA, so there are no copyright infrigements when distributing it, as long you follow it's terms that the author has to be attributed and that the files have to stay under CC BY-SA. |
I feel stupid now 😂 anyways thanks! |
Actually it's not quite solved, still the same error |
So i was adding some more blocks (Block.c, Block.h, Player.c), and to my surprise the game showed me a black screen. I ran it through Citra, and it showed an error message: "Failed to load the texture romfs:/textures/entity/steve.png". After removing some blocks it ran again. https://i.imgur.com/aByzTLy.png
The text was updated successfully, but these errors were encountered: