WOTG is spamming unstore unit code
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
- ChaosRider
- Posts: 933
- Joined: April 15th, 2012, 1:15 pm
WOTG is spamming unstore unit code
I dont know where in my code is a core of the problem. Ive checked all die events and added if there if variable isnt null then unstore unit. Game is still spamming info about unstoring unit that is null. Anyone can take a look in to abilities.cfg file that you can find in to my addon folder macros?
Creator of WOTG (+4500 units), MWC (+615 units), SurvivorsArea, RandomColosseum, RC WOTG, RC MWC, ColosseumRandomClonesBattle, BetweenDarknessAndLight, StealingWeapons, MoreUnitsForms, MoreDamageTypes, CanBeOnlyOne, ColosseumOneWinner, BonusSpam, CriticalStrike - available at 1.18 Wesnoth server.
Re: WOTG is spamming unstore unit code
I would edit wesnoth.wml_actions.unstore_unit to log more context of that tag execution. For example
wesnoth.message("INFO","V."..k.." is nil at "..debug.traceback("",2))
- Atreides
- Posts: 1186
- Joined: March 30th, 2019, 10:38 pm
- Location: On the 2nd story of the centre village of Merwuerdigliebe turning the lights on and off
Re: WOTG is spamming unstore unit code
Your recruit bonus addon has exactly the same errors as I wrote in its thread. My guess was that it was die events that fired on every death, not only of the unit with a specific ability.
- ChaosRider
- Posts: 933
- Joined: April 15th, 2012, 1:15 pm
Re: WOTG is spamming unstore unit code
Thx for information. I added to all die events from Chaos Maps and Recruit Bonuses part with if (checking if the variable to unstore isnt null) before unstoring unit and now there is no error info. This topic can be closed now.
New versions of Chaos Map, Recruit Bonuses and WOTG are available on wesnoth v1.18 server.
Creator of WOTG (+4500 units), MWC (+615 units), SurvivorsArea, RandomColosseum, RC WOTG, RC MWC, ColosseumRandomClonesBattle, BetweenDarknessAndLight, StealingWeapons, MoreUnitsForms, MoreDamageTypes, CanBeOnlyOne, ColosseumOneWinner, BonusSpam, CriticalStrike - available at 1.18 Wesnoth server.
Re: WOTG is spamming unstore unit code
Affects ColosseumRandom & co too
Try out the dark board theme.
- ChaosRider
- Posts: 933
- Joined: April 15th, 2012, 1:15 pm
Re: WOTG is spamming unstore unit code
Once I will be done with new 3p campaign Im gonna check colosseum addons.
Creator of WOTG (+4500 units), MWC (+615 units), SurvivorsArea, RandomColosseum, RC WOTG, RC MWC, ColosseumRandomClonesBattle, BetweenDarknessAndLight, StealingWeapons, MoreUnitsForms, MoreDamageTypes, CanBeOnlyOne, ColosseumOneWinner, BonusSpam, CriticalStrike - available at 1.18 Wesnoth server.