MT-CTF / capturetheflag

Capture the Flag game using the Minetest Voxel Engine
https://ctf.rubenwardy.com
83 stars 88 forks source link

ctf_map crashes #253

Closed skittlemittle closed 5 years ago

skittlemittle commented 5 years ago

When trying to make a new map or editing an existing map for capture the flag, ctf_map seems to be failing with the following errors:

I've had this issue occur with the current master branch of capturetheflag and with releases 1.14.x and 1.12.x

Steps to reporduce:

debug.txt:

-------------
  Separator
-------------

2018-11-18 21:06:10: WARNING[Main]: BanManager: creating /home/shaany/.minetest/worlds/lwiay/ipban.txt
2018-11-18 21:06:10: ERROR[Main]: ModError: Failed to load and run script from /home/shaany/.minetest/mods/ctf_map/init.lua:
2018-11-18 21:06:10: ERROR[Main]: /home/shaany/.minetest/mods/ctf_map/map_maker.lua:5: attempt to call method 'get' (a nil value)
2018-11-18 21:06:10: ERROR[Main]: stack traceback:
2018-11-18 21:06:10: ERROR[Main]:   /home/shaany/.minetest/mods/ctf_map/map_maker.lua:5: in main chunk
2018-11-18 21:06:10: ERROR[Main]:   [C]: in function 'dofile'
2018-11-18 21:06:10: ERROR[Main]:   /home/shaany/.minetest/mods/ctf_map/init.lua:15: in main chunk
2018-11-18 21:06:10: ERROR[Main]: Check debug.txt for details.
ClobberXD commented 5 years ago

Grr... 5.0+ API method again, I guess.

skittlemittle commented 5 years ago

Ahhhhh Im on 4.xx, so close the issue?

ClobberXD commented 5 years ago

No, 0.4.x is still supported. Adding 5.0-only methods is my fault...