nyje / visual-bots

Helper bots for minetest with visual programming.
Other
8 stars 6 forks source link

save / load problems with subprograms #2

Open TEbinger opened 4 years ago

TEbinger commented 4 years ago

Your vbot is really helpful to teach programming. Unfortunately on our Server (193.31.25.235 Port 30003) saving doesn't work with subprograms. The code is somehow messed up. Is there a way to fix it? How und where is the code saved on the server?

zeuner commented 4 years ago

@TEbinger: I looked into it a bit.

visual-bots seems to store the code using the mod_storage infrastructure, so it ends up in the file "mod_storage/vbots" under the world path. I tried it on my server (running the master branch of visual-bots) and saving and loading seemed to work. On your server, I see the bot name is being put in the list when I hit "save", but when I try to load it, the program is empty. I don't now whether the problem is with saving or with loading. Maybe have a look in the aforementioned file and see whether it contains program data? Also, what branch/commit of visual-bots are you running?