HardFFA causes civilians to spawn twice?

Everything about mods can be found here.

Moderator: Morax

HardFFA causes civilians to spawn twice?

Postby UnorthodoxBox » 19 Apr 2019, 05:22

While testing a map, i noticed Hard FFA mod causes civilians to spawn twice, and i was wondering if there is any solution to this.
The log from the game WITHOUT the mod: https://pastebin.com/cfeaJYkd .
The log from the game WITH Hard FFA mod: https://pastebin.com/dwvEFQUN

I would greatly appreciate if anyone could help me figure out what causes this.
User avatar
UnorthodoxBox
Avatar-of-War
 
Posts: 182
Joined: 01 Sep 2014, 01:51
Has liked: 131 times
Been liked: 54 times
FAF User Name: Box-

Re: HardFFA causes civilians to spawn twice?

Postby Uveso » 19 Apr 2019, 21:50

When i start the mod then i don't see civilan armies at all.
What options do i need to set ?

What map are you using ?

If you press [ALT]+[F2] ingame, how many civilian armies do you see ? Mabye 2 ?

Civilian: ARMY_9
Cicilian: NEUTRAL_ARMY
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: HardFFA causes civilians to spawn twice?

Postby UnorthodoxBox » 20 Apr 2019, 02:36

The map used is Alpha 7 Battle Royale (an map made for experimental game type) and the only options are the default ones (other than Hard FFA mod being turned on).
https://gyazo.com/3039579c504754a50679952c34af290a << From this screenshot, you can see only two armies (neutral and 17) spawn for the civilians. It is the same as without the mod, having both armies. Without the mod, civilian structures spawn once, with the mod, they spawn twice.
User avatar
UnorthodoxBox
Avatar-of-War
 
Posts: 182
Joined: 01 Sep 2014, 01:51
Has liked: 131 times
Been liked: 54 times
FAF User Name: Box-

Re: HardFFA causes civilians to spawn twice?

Postby Uveso » 20 Apr 2019, 12:16

ScenarioUtils.CreateArmyGroup() is called from the mods simInit.lua file,
but CreateArmyGroup() is also called from the map script file (alpha_7_battle_royale_script.lua)
( ScenarioUtils.InitializeArmies() is already executing CreateArmyGroup() )

That's why all units from the map file are created twice.

Go to the mod file:
Code: Select all
[...]\Mods\Hard FFA (ACUS spawn in T2 transport in center)\hook\lua\simInit.lua

change line 23 from:

Code: Select all
local tblGroup = ScenarioUtils.CreateArmyGroup( strArmy, 'INITIAL')
to:

Code: Select all
local tblGroup = tblData
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: HardFFA causes civilians to spawn twice?

Postby UnorthodoxBox » 20 Apr 2019, 18:20

would this mean everyone would have to edit the mod file or else it will desync?
User avatar
UnorthodoxBox
Avatar-of-War
 
Posts: 182
Joined: 01 Sep 2014, 01:51
Has liked: 131 times
Been liked: 54 times
FAF User Name: Box-

Re: HardFFA causes civilians to spawn twice?

Postby Uveso » 20 Apr 2019, 19:10

Yes that's right.

It is a sim mod, and everyone needs the same change/file or it will desync at the first tick.
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: HardFFA causes civilians to spawn twice?

Postby UnorthodoxBox » 20 Apr 2019, 21:03

is there a way i can change the map instead?
User avatar
UnorthodoxBox
Avatar-of-War
 
Posts: 182
Joined: 01 Sep 2014, 01:51
Has liked: 131 times
Been liked: 54 times
FAF User Name: Box-

Re: HardFFA causes civilians to spawn twice?

Postby Uveso » 20 Apr 2019, 21:14

No you can't.
If you do so, then the map won't work without the mod.
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: HardFFA causes civilians to spawn twice?

Postby UnorthodoxBox » 20 Apr 2019, 21:40

Well the map is designed to be played ONLY with the mod, so it should be alright then, correct? The map should not be played without Hard FFA
User avatar
UnorthodoxBox
Avatar-of-War
 
Posts: 182
Joined: 01 Sep 2014, 01:51
Has liked: 131 times
Been liked: 54 times
FAF User Name: Box-


Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest