game_error: invalid side(4) found in unit definition

The place to post your WML questions and answers.

Moderators: Developers, 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.

game_error: invalid side(4) found in unit definition

Postby Adamant14 » December 14th, 2012, 11:24 pm

What can cause this error?
error general: Error while playing the game: game_error: invalid side(4) found in unit definition
The error is triggered by a victory event.
but there is no side 4 in this, nor in the following scenario. :hmm:
Last edited by Adamant14 on April 21st, 2013, 5:52 am, edited 5 times in total.
Author of Antar, Son of Rheor: SP Campaign


Please add your (or some other) campaign to this sites: Guide to UMC Campaigns | Players' Review(s) | Please leave a comment here: WML filtering , WML variables
User avatar
Adamant14
Forum Regular
 
Posts: 711
Joined: April 24th, 2010, 1:14 pm

Re: game_error: invalid side(4) found in unit definition

Postby 8680 » December 14th, 2012, 11:37 pm

Do you try to create a unit on nonexistent side 4?
User avatar
8680
Moderator
 
Posts: 729
Joined: March 20th, 2011, 11:45 pm

Re: game_error: invalid side(4) found in unit definition

Postby Adamant14 » December 14th, 2012, 11:45 pm

No, there is nothing related to side four.
In the actual scenario are only three sides, and in the following scenario are only two sides.
Spoiler:
Author of Antar, Son of Rheor: SP Campaign


Please add your (or some other) campaign to this sites: Guide to UMC Campaigns | Players' Review(s) | Please leave a comment here: WML filtering , WML variables
User avatar
Adamant14
Forum Regular
 
Posts: 711
Joined: April 24th, 2010, 1:14 pm

Re: game_error: invalid side(4) found in unit definition

Postby zookeeper » December 15th, 2012, 8:53 am

Well, you got to have made such a mistake somewhere. You sure your utils.cfg or deaths.cfg don't contain anything like that?
User avatar
zookeeper
WML Wizard
 
Posts: 8324
Joined: September 11th, 2004, 10:40 pm
Location: Finland

game_error: invalid side(4) found in unit definition

Postby Adamant14 » December 15th, 2012, 11:21 am

̶I̶̶ ̶̶u̶̶s̶̶e̶̶d̶̶ ̶̶ ̶̶m̶̶a̶̶c̶̶r̶̶o̶̶s̶̶ ̶̶t̶̶o̶̶ ̶̶d̶̶e̶̶f̶̶i̶̶n̶̶e̶̶ ̶̶t̶̶h̶̶e̶̶ ̶̶s̶̶i̶̶d̶̶e̶̶s̶̶,̶̶ ̶̶a̶̶n̶̶d̶̶ ̶̶i̶̶t̶̶ ̶̶s̶̶e̶̶e̶̶m̶̶s̶̶ ̶̶i̶̶t̶̶ ̶̶w̶̶a̶̶s̶̶ ̶̶t̶̶h̶̶a̶̶t̶̶ ̶̶m̶̶a̶̶c̶̶r̶̶o̶̶ ̶̶t̶̶h̶̶a̶̶t̶̶ ̶̶c̶̶a̶̶u̶̶s̶̶e̶̶d̶̶ ̶̶t̶̶h̶̶e̶̶ ̶̶e̶̶r̶̶r̶̶o̶̶r̶̶.̶̶

̶̶I̶̶ ̶̶d̶̶o̶̶n̶̶'̶̶t̶̶ ̶̶k̶̶n̶̶o̶̶w̶̶ ̶̶w̶̶h̶̶y̶̶ ̶̶i̶̶t̶̶ ̶̶w̶̶o̶̶n̶̶'̶̶t̶̶ ̶̶w̶̶o̶̶r̶̶k̶̶,̶̶ ̶̶b̶̶u̶̶t̶̶ ̶̶a̶̶f̶̶t̶̶e̶̶r̶̶ ̶̶r̶̶e̶̶m̶̶o̶̶v̶̶i̶̶n̶̶g̶̶ ̶̶i̶̶t̶̶,̶̶ ̶̶e̶̶v̶̶e̶̶r̶̶y̶̶t̶̶h̶̶i̶̶n̶̶g̶̶ ̶̶w̶̶o̶̶r̶̶k̶̶s̶̶ ̶̶f̶̶i̶̶n̶̶e̶̶ ̶̶n̶̶o̶̶w̶̶.̶̶

̶̶S̶̶o̶̶ ̶̶t̶̶h̶̶e̶̶ ̶̶p̶̶r̶̶o̶̶b̶̶l̶̶e̶̶m̶̶ ̶̶i̶̶s̶̶ ̶̶s̶̶o̶̶l̶̶v̶̶e̶̶d̶̶ ̶̶f̶̶o̶̶r̶̶ ̶̶m̶̶e̶̶.̶̶

̶̶T̶̶h̶̶a̶̶n̶̶k̶̶s̶̶ ̶̶f̶̶o̶̶r̶̶ ̶̶t̶̶h̶̶e̶̶ ̶̶a̶̶n̶̶s̶̶w̶̶e̶̶r̶̶s̶̶.̶̶ ̶̶ ̶̶:̶̶)̶̶

EDIT: No that wasn't the solution.
Last edited by Adamant14 on April 21st, 2013, 9:09 pm, edited 2 times in total.
Author of Antar, Son of Rheor: SP Campaign


Please add your (or some other) campaign to this sites: Guide to UMC Campaigns | Players' Review(s) | Please leave a comment here: WML filtering , WML variables
User avatar
Adamant14
Forum Regular
 
Posts: 711
Joined: April 24th, 2010, 1:14 pm

Re: [SOLVED] game_error: invalid side(4)found in unit defini

Postby zookeeper » December 15th, 2012, 4:45 pm

Might have something to do with recall list carryover then, if some enemy sides in the next scenario are supposed to be persistent.
User avatar
zookeeper
WML Wizard
 
Posts: 8324
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: [SOLVED] game_error: invalid side(4)found in unit defini

Postby doofus-01 » December 15th, 2012, 5:44 pm

I can't speak to your particular case, Adamant14, but I've found that error pops up in 1.11.0 (maybe 1.11.1 too, but hasn't happened to me yet) and it seems intermittent. Sometimes side 1 is invalid, and it goes away for reasons I can't figure out. It may be a sign of buggy WML, but I think the given error is a red herring.
Bad Moon Rising | Trinity | Archaic Era | Tales of the Setting Sun(WIP)
Available for BfW 1.10 but only actively developed for BfW 1.11/1.12
User avatar
doofus-01
Art Contributor
 
Posts: 2679
Joined: January 6th, 2008, 9:27 pm
Location: US of AAA

Re: [SOLVED] game_error: invalid side(4)found in unit defini

Postby Elvish_Hunter » December 15th, 2012, 6:08 pm

Adamant14 wrote:The error is triggered by a victory event.
but there is no side 4 in this, nor in the following scenario.
If you're still using 1.11.0, then it's this bug: https://gna.org/bugs/index.php?20208 . The solution is simple: update to 1.11.1. 8)
For bug report purpose: I'm playing Wesnoth 1.11.11 on Windows 7 and trunk on Linux Xubuntu 13.04.
Current maintainer of The Sojournings of Grog , Children of Dragons , A Rough Life and Wesnoth Lua Pack
Co-author of The White Troll
User avatar
Elvish_Hunter
Developer
 
Posts: 1127
Joined: September 4th, 2009, 2:39 pm
Location: Lintanir Forest...

game_error: invalid side(4) found in unit definition

Postby Adamant14 » January 8th, 2013, 5:54 pm

I forget to mention that this happened on BfW 1.11.0,
so according to Elvish_Hunter's post I will update to BfW 1.11.1

Thanks to you all for your answers. :)

EDIT:

Updated to BfW version 1.11.1
Last edited by Adamant14 on April 21st, 2013, 9:09 pm, edited 1 time in total.
Author of Antar, Son of Rheor: SP Campaign


Please add your (or some other) campaign to this sites: Guide to UMC Campaigns | Players' Review(s) | Please leave a comment here: WML filtering , WML variables
User avatar
Adamant14
Forum Regular
 
Posts: 711
Joined: April 24th, 2010, 1:14 pm

recal-list problem (only) with BfW 1.11.1?

Postby Adamant14 » January 8th, 2013, 5:54 pm

The error message is gone, but now I have a broken-recall-list problem. :(
Gitanomad_X wrote:I've encountered a bug in the "Revenge" scenario on Mac OSX 10.8.2, Wesnoth 11.1, Antar 0.9.3. The recall list is empty and I can only recruit new units.

link to the post

In my campaign I have two different sides, alternately playable by the player.
A human side that is always side=1, and a elvish side that is in the first scenario it appears side=2, and in all other scenarios side=1.
With Bfw 1.8 and 1.10 I never had problems with recall lists and switching sides.
But now working with BfW 1.11.1 the elvish sides recall list is gone in the second scenario the elves appear. :(
This never happened to me working with earlier BfW versions.
I added save_id and persistent=yes, but the recall-list is still gone.
Maybe it is a BfW version 1.11.1 bug.

EDIT: The bug does not appear in BfW version 1.11.0!

Cephalo has a similar problem with his campaign:
cephalo wrote:Hmm, I've been playtesting this campaign with 1.11, and I have a broken recall list between Ariphron's refugees, Shifty's spy mission, and Jevyan taking over Ariphron's recall list. Does anyone know if other campaigns have similar issues porting to 1.11? I'll have to fix it after the holidays. Nobody has noticed any such trouble with 1.10 right? I'm assuming this is 1.11 related.
link to the post
Author of Antar, Son of Rheor: SP Campaign


Please add your (or some other) campaign to this sites: Guide to UMC Campaigns | Players' Review(s) | Please leave a comment here: WML filtering , WML variables
User avatar
Adamant14
Forum Regular
 
Posts: 711
Joined: April 24th, 2010, 1:14 pm

Re: recal-list problem (only) with BfW 1.11.1?

Postby henne » February 26th, 2013, 8:14 pm

Adamant14 wrote:
EDIT: The bug does not appear in BfW version 1.11.0!


Yeah that's true, I'll downgrade until it's fixed then
Henry Nioxin shampoo works well. See nioxin reviews to learn about nioxin shampoo, be sure to read nioxin shampoo reviews
henne
 
Posts: 1
Joined: February 26th, 2013, 8:12 pm

game_error: invalid side(4) found in unit definition

Postby Adamant14 » February 26th, 2013, 8:23 pm

By the way, does anybody know about the progress of BfW version 1.11.2?
Last edited by Adamant14 on April 21st, 2013, 9:08 pm, edited 1 time in total.
Author of Antar, Son of Rheor: SP Campaign


Please add your (or some other) campaign to this sites: Guide to UMC Campaigns | Players' Review(s) | Please leave a comment here: WML filtering , WML variables
User avatar
Adamant14
Forum Regular
 
Posts: 711
Joined: April 24th, 2010, 1:14 pm

Re: recall list problem (only) with BfW 1.11.1?

Postby Elvish_Hunter » February 27th, 2013, 10:54 am

It has been just fixed for 1.11.2: https://gna.org/bugs/?20373
For bug report purpose: I'm playing Wesnoth 1.11.11 on Windows 7 and trunk on Linux Xubuntu 13.04.
Current maintainer of The Sojournings of Grog , Children of Dragons , A Rough Life and Wesnoth Lua Pack
Co-author of The White Troll
User avatar
Elvish_Hunter
Developer
 
Posts: 1127
Joined: September 4th, 2009, 2:39 pm
Location: Lintanir Forest...

game_error: invalid side(4) found in unit definition

Postby Adamant14 » February 27th, 2013, 7:59 pm

Elvish_Hunter wrote:It has been just fixed for 1.11.2: https://gna.org/bugs/?20373
Yes, I noticed that. :)
But does anyone know when 1.11.2 will be released?
I don't ask for the exact date, I only want to know if we have to wait for days or rather for weeks, or maybe months.
Last edited by Adamant14 on April 21st, 2013, 9:07 pm, edited 1 time in total.
Author of Antar, Son of Rheor: SP Campaign


Please add your (or some other) campaign to this sites: Guide to UMC Campaigns | Players' Review(s) | Please leave a comment here: WML filtering , WML variables
User avatar
Adamant14
Forum Regular
 
Posts: 711
Joined: April 24th, 2010, 1:14 pm

game_error: invalid side(4) found in unit definition

Postby Adamant14 » April 20th, 2013, 8:41 pm

Sorry for resurrecting this thread.
Maybe I should have to start a new one, but on the other hand my problem is related to this thread somehow.

The issue with the second human leader is fixed.
Many thanks for that;
But in my campaign I have also a AI-controlled (persistent) side.
The use of 'save_id' and 'persistent=yes' seems to crash the game.

When I remove 'persistent=yes', then the next scenario starts without any problem,
otherwise I get an error message, and the next scenario wont load.
The error message is:
"Error while playing the game: game_error: invalid side(4) found in unit definition"
error_message.PNG

(the persistent AI side was side number 4 in my previous scenario)



Also reported here on Gna

BfW 1.11.2
Windows 7
Author of Antar, Son of Rheor: SP Campaign


Please add your (or some other) campaign to this sites: Guide to UMC Campaigns | Players' Review(s) | Please leave a comment here: WML filtering , WML variables
User avatar
Adamant14
Forum Regular
 
Posts: 711
Joined: April 24th, 2010, 1:14 pm


Return to WML Workshop

Who is online

Users browsing this forum: No registered users and 2 guests