WOTG is spamming unstore unit code

The place to post your WML questions and answers.

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.
Post Reply
User avatar
ChaosRider
Posts: 933
Joined: April 15th, 2012, 1:15 pm

WOTG is spamming unstore unit code

Post by ChaosRider »

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?
Error 2.png
Error 2.png (151 KiB) Viewed 831 times
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.
User avatar
Ravana
Forum Moderator
Posts: 3206
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: WOTG is spamming unstore unit code

Post by Ravana »

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))
User avatar
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

Post by Atreides »

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.
User avatar
ChaosRider
Posts: 933
Joined: April 15th, 2012, 1:15 pm

Re: WOTG is spamming unstore unit code

Post by ChaosRider »

Atreides wrote: November 29th, 2024, 11:46 pm 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.
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.
Shiki
Developer
Posts: 368
Joined: July 13th, 2015, 9:53 pm
Location: Germany

Re: WOTG is spamming unstore unit code

Post by Shiki »

Affects ColosseumRandom & co too
Try out the dark board theme.
User avatar
ChaosRider
Posts: 933
Joined: April 15th, 2012, 1:15 pm

Re: WOTG is spamming unstore unit code

Post by ChaosRider »

Shiki wrote: December 12th, 2024, 9:15 pm Affects ColosseumRandom & co too
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.
Post Reply