Page 1 of 1
bug
Posted: Sat May 29, 2021 1:43 pm
by ericdauriac
Hello,
I am building an A3R type mod and on a test part I get an error message. What does this error message mean?
"FAILED(handle_unit_script_for_country_join): attached first_element as f"
RE: bug
Posted: Sun May 30, 2021 10:49 pm
by Hubert Cater
This might be linked to the use of TYPE=2 in the UNIT events. If you change this to TYPE=1 or TYPE=0 and then recompile the events and resave the campaign, it should work from there with a freshly started game after that.
RE: bug
Posted: Wed Jun 02, 2021 12:50 pm
by ericdauriac
I deleted all type = 2 by type = 1. The problem persists.
RE: bug
Posted: Thu Jun 03, 2021 10:13 am
by Hubert Cater
Just to be sure, did you recompile the campaign scripts, resave the campaign and then start a fresh game after that?
I just ask as the fix won't take effect until you start a fresh game with the newly corrected campaign.
RE: bug
Posted: Thu Jun 03, 2021 1:01 pm
by ericdauriac
yes, I recompiled scripts, resave the campaign and made a new game.
RE: bug
Posted: Thu Jun 03, 2021 9:35 pm
by Hubert Cater
Could you send me the saved turn where this error occurs? As well as the customized campaign with the recent corrections?
Please send to
support@furysoftware.com
Thanks,
Hubert
RE: bug
Posted: Thu Jun 03, 2021 9:36 pm
by Hubert Cater
If the files are too big for email, you can use something like WeTransfer to send the files. I would need the campaign subfolders as well.
https://wetransfer.com
RE: bug
Posted: Fri Jun 04, 2021 11:46 am
by ericdauriac
Ok for wetransfert
RE: bug
Posted: Mon Jun 07, 2021 1:28 pm
by Hubert Cater
Hi Eric,
Thanks for the files and when I checked the campaign in the Editor, it showed an '*' next to the UNIT event list. This tells me that it still needed to be recompiled and likely this is the source of your continued issue here.
If you open the campaign, navigate to Campaign->Edit Event Scripts and then select the UNIT event in the list and then press 'Update' this should recompile the corrected script for you.
Save the campaign after that and then start a fresh game with this newly updated campaign and the issue will hopefully go away after that.
One other thing I noticed is that if you attempt to play in 3D mode the editor and game will likely crash as 'unit_counter_sprites_flag.png' file is the wrong size, e.g. it is the same size as the 'zoom' version of the file. It should be 1300x282 pixels in size and not 700x162.
Hope this helps,
Hubert