Open Ashmyr opened 2 years ago
So, heads up, but I edited this to use task list syntax; in the future you can use - [ ]
to make checkboxes when you have another multi-item issue
One more thing I'd add to the list for S18 ("The Investigation"): There should be a visual indicator (halo or something) for when Elara has the fire powerup
(edit: yes I realize the brazier turns lit; I mean a visual indicator on Elara's sprite, like the water indicators in "Forest Fire")
Yeah basically what S18 needs is just a lot more dialogue; there's all sort of interesting images placed around the map that units could comment on...
Argh, now there's a Lua error with S19 ("Prison"): This is new with BfW 1.16; I don't remember it with 1.14...
ok after b459ca5 I feel like I've added enough to be able to check off the first checkbox for now
Argh, now there's a Lua error with S19 ("Prison")...
Console output is:
20220613 21:36:15 info deprecation: wesnoth.get_units has been deprecated indefinitely.; (Note: You should use wesnoth.units.find_on_map instead in new code)
20220613 21:36:15 info deprecation: wesnoth.get_recall_units has been deprecated indefinitely.; (Note: You should use wesnoth.units.find_on_recall instead in new code)
20220613 21:36:15 info deprecation: wesnoth.get_variable has been deprecated indefinitely.; (Note: You should use wml.variables instead in new code)
20220613 21:36:15 info deprecation: helper.parsed has been deprecated indefinitely.; (Note: You should use wml.parsed instead in new code)
20220613 21:36:15 info deprecation: wesnoth.put_unit has been deprecated indefinitely.; (Note: You should use wesnoth.units.to_map instead in new code)
20220613 21:36:15 info deprecation: wesnoth.set_terrain has been deprecated indefinitely.; (Note: You should use wesnoth.current.map[loc]= instead in new code)
20220613 21:36:15 info deprecation: helper.get_variable_array has been deprecated indefinitely.; (Note: You should use wml.array_access.get instead in new code)
20220613 21:36:15 info deprecation: helper.set_variable_array has been deprecated indefinitely.; (Note: You should use wml.array_access.set instead in new code)
20220613 21:36:15 info deprecation: wesnoth.put_recall_unit has been deprecated indefinitely.; (Note: You should use wesnoth.units.to_recall instead in new code)
20220613 21:36:15 info deprecation: wesnoth.set_variable has been deprecated indefinitely.; (Note: You should use wml.variables instead in new code)
20220613 21:36:15 warning wml: could not recall unit: id: Narcatsol
20220613 21:36:15 info deprecation: wesnoth.get_locations has been deprecated indefinitely.; (Note: You should use wesnoth.map.find instead in new code)
20220613 21:36:15 error scripting/lua: lua/core/_initial.lua:50: bad argument #1 to 'elem' (WML table expected, got number)
stack traceback:
[C]: in upvalue 'elem'
lua/core/_initial.lua:50: in field 'put_unit'
~add-ons/The_Earths_Gut/lua_scenarios/19_Prison.lua:21: in local 'put_level_prisoner'
~add-ons/The_Earths_Gut/lua_scenarios/19_Prison.lua:37: in local 'cmd'
lua/wml-utils.lua:144: in field 'handle_event_commands'
lua/wml-flow.lua:5: in function <lua/wml-flow.lua:4>
The effect of this is that Pelcatlus and Dulatus are the only dwarves imprisoned in cells, and Hamel is the only unit recalled at the starting location of the scenario.
@celticminstrel with those deprecations, are the suggested replacements just simple drop-ins for the existing deprecated things? Or is there more to migrating from one to the other?
@knyghtmare any help?
https://wiki.wesnoth.org/LuaAPI/UpdatingFrom14
Most of those are direct drop-in replacements; wml.variables
is not however.
https://wiki.wesnoth.org/LuaAPI/UpdatingFrom14
Most of those are direct drop-in replacements;
wml.variables
is not however.
Hm, looks like the replacement for wesnoth.set_terrain
is a bit more complicated, too... let me see if... and, darn, now it's a different error:
20220702 00:28:47 error config: Multiple [unit_type]s with id=Wose Sapling encountered.
20220702 00:28:47 error config: Multiple [unit_type]s with id=Wose Shaman encountered.
20220702 00:28:50 error scripting/lua: ~add-ons/The_Earths_Gut/lua/teg_wml_tags.lua:10: syntax error near 'end'
stack traceback:
[C]: in field 'dofile'
~add-ons/The_Earths_Gut/lua/main.lua:44: in local 'teg_dofile'
~add-ons/The_Earths_Gut/lua/main.lua:48: in main chunk
[C]: in field 'dofile'
[string " main = wesnoth.dofile("~add-ons/The_Earths_G..."]:1: in local 'bytecode'
lua/wml-tags.lua:265: in local 'cmd'
lua/wml-utils.lua:144: in field 'handle_event_commands'
lua/wml-flow.lua:5: in function <lua/wml-flow.lua:4>
20220702 00:28:50 error wml: [sc_transform_type] not supported
20220702 00:28:50 error wml: [place_door] not supported
ok so now the error is:
20220702 00:44:15 info deprecation: wesnoth.get_variable has been deprecated indefinitely.; (Note: You should use wml.variables instead in new code)
20220702 00:44:15 info deprecation: wesnoth.set_terrain has been deprecated indefinitely.; (Note: You should use wesnoth.current.map[loc]= instead in new code)
20220702 00:44:15 info deprecation: wesnoth.set_variable has been deprecated indefinitely.; (Note: You should use wml.variables instead in new code)
20220702 00:44:15 warning wml: could not recall unit: id: Narcatsol
20220702 00:44:15 error scripting/lua: ~add-ons/The_Earths_Gut/lua_scenarios/19_Prison.lua:21: bad argument #1 to 'to_map' (WML table expected, got number)
stack traceback:
[C]: in field 'to_map'
~add-ons/The_Earths_Gut/lua_scenarios/19_Prison.lua:21: in local 'put_level_prisoner'
~add-ons/The_Earths_Gut/lua_scenarios/19_Prison.lua:38: in local 'cmd'
lua/wml-utils.lua:144: in field 'handle_event_commands'
lua/wml-flow.lua:5: in function <lua/wml-flow.lua:4>
noooo that wasn't supposed to close this!
OK I think I figured it out; it looks like the argument order changed in the migration of wesnoth.put_unit
to wesnoth.units.to_map
...
OK so I got through S19 okay, but now there's a new lua error on victory:
20220702 20:58:14 error scripting/lua: lua/wml-tags.lua:796: bad argument #1 to 'on_board' (location expected, got string)
stack traceback:
[C]: in method 'on_board'
lua/wml-tags.lua:796: in local 'cmd'
lua/wml-utils.lua:144: in field 'handle_event_commands'
lua/wml-flow.lua:51: in local 'cmd'
lua/wml-utils.lua:144: in field 'handle_event_commands'
lua/wml-flow.lua:5: in function <lua/wml-flow.lua:4>
OK so I got through S19 okay, but now there's a new lua error on victory:
20220702 20:58:14 error scripting/lua: lua/wml-tags.lua:796: bad argument #1 to 'on_board' (location expected, got string) stack traceback: [C]: in method 'on_board' lua/wml-tags.lua:796: in local 'cmd' lua/wml-utils.lua:144: in field 'handle_event_commands' lua/wml-flow.lua:51: in local 'cmd' lua/wml-utils.lua:144: in field 'handle_event_commands' lua/wml-flow.lua:5: in function <lua/wml-flow.lua:4>
OK so 727e9b8 appears to have fixed this.
oh hey today I discovered that Anonymissimus is actually on GitHub: @anonymissimus
- [ ] It doesn't feel like you get many units, but you battle dozens of leveled-up units. I would like if you were able to free more units. You only get 1 extra one in the whole scenario, despite it being a really hard dungeon crawl.
In ab8e312 I added some extra moments where you get given some extra experience points, which ought to help with this one.