Modified Wolrd Conquest - bugs fixing - Wesnoth 1.18

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: 1168
Joined: April 15th, 2012, 1:15 pm

Modified Wolrd Conquest - bugs fixing - Wesnoth 1.18

Post by ChaosRider »

Hello there. At the beginning I would like to say that MWC was working fine in Wesnoth 1.10 but on version 1.18 of Wesnoth it has some bugs.
I put some effort in to it and I found code part that makes error info. I don't see anything wrong with code so maybe someone else will find the reason of the error info.

It screems Lua error but everything is written in WML.
Spoiler:
Code of event modified world conquest hero:
Spoiler:
Code for MODIFIED_WORLD_CONQUEST_TRAIT_HEROIC
Spoiler:
Code for MODIFIED_WORLD_CONQUEST_EXPERIENCE_PENALTY
Spoiler:
Attachments
Screenshot_1.png
Last edited by ChaosRider on April 17th, 2025, 11:56 am, edited 1 time in total.
Creator of WOTG (+5500 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: 3313
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Modified Wolrd Conquest - bugs fixing - Wesnoth 1.18

Post by Ravana »

So dont create units without type.
User avatar
ChaosRider
Posts: 1168
Joined: April 15th, 2012, 1:15 pm

Re: Modified Wolrd Conquest - bugs fixing - Wesnoth 1.18

Post by ChaosRider »

Ravana wrote: April 17th, 2025, 11:52 am So dont create units without type.
In Wesnoth 1.10 units were created well. Something in code that was working fine in earlier version now its not working on Wesnoth 1.18.
Creator of WOTG (+5500 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
ChaosRider
Posts: 1168
Joined: April 15th, 2012, 1:15 pm

Re: Modified Wolrd Conquest - bugs fixing - Wesnoth 1.18

Post by ChaosRider »

So I just added rand variable that picks of MWC units on 0-1 lvl if variable hero type is empty.
Spoiler:
But its not over of bugs. Right now there is no error of empty unit type.

Picking items doesnt work (which was working in Wesnoth 1.10). Below you have link to addon download for those who want to look in to it.

Modified World Conquest: Modified World Conquest part 2 (units images):
Attachments
Screenshot_2.png
Creator of WOTG (+5500 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: 3313
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Modified Wolrd Conquest - bugs fixing - Wesnoth 1.18

Post by Ravana »

If 1.10 allowed creating units without type then that was bug.
User avatar
ChaosRider
Posts: 1168
Joined: April 15th, 2012, 1:15 pm

Re: Modified Wolrd Conquest - bugs fixing - Wesnoth 1.18

Post by ChaosRider »

Ravana wrote: April 17th, 2025, 1:24 pm If 1.10 allowed creating units without type then that was bug.
Sometimes in World Conquest and Modified World Conquest you had at the scenario beginning 2 or 3 heroes (in Wesnoth 1.10). I think it was just going on without sending back info about empty unit type. I added part of code to choose randomly unit type when hero type variable is empty.

Another bug is with picking items (which you can choose as a bonus after recruiting first unit) by unit.
Creator of WOTG (+5500 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