Modified Wolrd Conquest - bugs fixing - Wesnoth 1.18
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: 1168
- Joined: April 15th, 2012, 1:15 pm
Modified Wolrd Conquest - bugs fixing - Wesnoth 1.18
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.
Code of event modified world conquest hero:
Code for MODIFIED_WORLD_CONQUEST_TRAIT_HEROIC
Code for MODIFIED_WORLD_CONQUEST_EXPERIENCE_PENALTY
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:
Spoiler:
Spoiler:
Spoiler:
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.
Re: Modified Wolrd Conquest - bugs fixing - Wesnoth 1.18
So dont create units without type.
- ChaosRider
- Posts: 1168
- Joined: April 15th, 2012, 1:15 pm
Re: Modified Wolrd Conquest - bugs fixing - Wesnoth 1.18
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.
- ChaosRider
- Posts: 1168
- Joined: April 15th, 2012, 1:15 pm
Re: Modified Wolrd Conquest - bugs fixing - Wesnoth 1.18
So I just added rand variable that picks of MWC units on 0-1 lvl if variable hero type is empty.
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):
Spoiler:
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:
Spoiler:
Spoiler:
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.
Re: Modified Wolrd Conquest - bugs fixing - Wesnoth 1.18
If 1.10 allowed creating units without type then that was bug.
- ChaosRider
- Posts: 1168
- Joined: April 15th, 2012, 1:15 pm
Re: Modified Wolrd Conquest - bugs fixing - Wesnoth 1.18
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.