nemaara / A_New_Order

add-on campaign for The Battle for Wesnoth featuring the Akladians; originally by szopen
https://forums.wesnoth.org/viewtopic.php?f=8&t=6486
GNU General Public License v2.0
11 stars 7 forks source link

Switching between scenarios with the `:cl` debug command in the in-game console should always work without error #165

Open cooljeanius opened 11 months ago

cooljeanius commented 11 months ago

Copying this over from #163: When skipping from S04 ("Battle of Barnon") to S05 ("The Swamp Things") with the in-game :cl command, I get:

20240103 01:29:55 info wml: A [recall] tag with the following content failed:
show = no
side = 1
x = 1
y = 1
20240103 01:29:57 error wml: [unstore_unit]: variable 'ano_reme_stored' doesn't contain unit data

We should probably check to make sure that proper cleanup happens even in debug mode. I think that Iris has some code in IftU/AtS to handle situations like this that we could look at for inspiration.

cooljeanius commented 3 months ago

I attempted to address this in #194 a bit, but it didn't really work...