axcore / unigame

Minimal base game for Minetest
Other
0 stars 0 forks source link

Unigame Crashes When Eating Chestnut From Builtin Advanced Cuisine #1

Open FriendlyGamer opened 11 months ago

FriendlyGamer commented 11 months ago

I loaded a test world of this game on the 5.7.0 Minetest Linux Client and my game crashes when eating a chestnut.

That crash was from Builtin Advanced Cuisine.

I set the the builtin Advanced Cuisine from ten to six but no other changes.

This was from "playme" remix, with no other remixes or mods.

axcore commented 11 months ago

Sorry, I was not able to reproduce this:

System: Linux Mint Minetest client: 5.7.0 Unilib: 0.15.0 Remix: "playme" "Size of the cuisine history": changed from 10 to 6

Can you please try to crash your client, then take a screenshot that shows the error message

FriendlyGamer commented 11 months ago

Screenshot from 2023-10-12 12-33-41

That was on Fedora 38 Workstation with the following client installation Screenshot from 2023-10-12 11-59-34

Hope this all helps!

axcore commented 10 months ago

Seems to be a Minetest bug; when you change any integer in Minetest settings, Minetest stores it as a string, rather than a number. Strangely, floating point numbers are stored correctly when you change them.

I can work around it, in the meantime, it's convenient to set these values in unilib's override file, ../unigame/mods/unilib/lib/system/override.lua - in this case, uncommenting the line

--unilib.cuisine_history_max_size = 10

And changing its value, like so

unilib.cuisine_history_max_size = 6