Forged Alliance Forever Forged Alliance Forever Forums 2018-08-05T20:47:13+02:00 /feed.php?f=45&t=16225 2018-08-05T20:47:13+02:00 2018-08-05T20:47:13+02:00 /viewtopic.php?t=16225&p=166573#p166573 <![CDATA[Re: Looking for a certain flavor of heavy PD]]> Statistics: Posted by stardust — 05 Aug 2018, 20:47


]]>
2018-06-01T01:50:41+02:00 2018-06-01T01:50:41+02:00 /viewtopic.php?t=16225&p=164342#p164342 <![CDATA[Re: Looking for a certain flavor of heavy PD]]>
Turns out that the seafrigate1.lua file is completely redundant. Removing it fixed the last bug. GLORIOUS!

Thank you all for your assistance! Now to conquer the oceans! :)

Statistics: Posted by stardust — 01 Jun 2018, 01:50


]]>
2018-05-31T16:05:05+02:00 2018-05-31T16:05:05+02:00 /viewtopic.php?t=16225&p=164320#p164320 <![CDATA[Re: Looking for a certain flavor of heavy PD]]>
Code:
warning: SCR_LuaDoFileConcat: Loading "c:\users\stardust\documents\my games\gas powered games\supreme commander forged alliance\mods\naval unit pack 1.0\lua\customunits\seafrigate1.lua" failed: ...forged alliance\mods\naval unit pack 1.0\lua\customunits\seafrigate1.lua(4): `)' expected near `,'

That means, in your mod file "seafrigate1.lua" is a syntax error in line 4:
Code:
`)' expected near `,'


The next error is stopping the game:
Code:
warning: BeginSession() failed: ...aforever\gamedata\lua.nx2\lua\ai\sorianutilities.lua(417): access to nonexistent global variable "UnitList"

While executing the function "BeginSession()" we got an error inside the file sorianutilities.lua while calling the function "AddCustomUnitSupport()" (that's at line 417)

I bet this error is because we have an error inside a custom unit -> seafrigate1.lua

last error:
Code:
warning: Error running lua script: ...amedata\lua.nx2\lua\ai\aiarchetype-managerloader.lua(52): attempt to call method `HasBuilderList' (a nil value)
         stack traceback:
            ...amedata\lua.nx2\lua\ai\aiarchetype-managerloader.lua(52): in function `ExecutePlan'
            ...ogramdata\faforever\gamedata\lua.nx2\lua\aibrain.lua(804): in function `ExecutePlan'
            ...ogramdata\faforever\gamedata\lua.nx2\lua\aibrain.lua(775): in function `EvaluateAIPlanList'
            ...ogramdata\faforever\gamedata\lua.nx2\lua\aibrain.lua(750): in function <...ogramdata\faforever\gamedata\lua.nx2\lua\aibrain.lua:741>

Hard to say if this error is also related to the broken unit.
The function call has its source in aibrain.lua. And aibrain.lua is hooked from the mod Start with SCU
Code:
info: Hooked /lua/aibrain.lua with /mods/startwithscu/hook/lua/aibrain.lua


I suggest to fix first the broken unit, then check if the last error still exist. If yes disable the mod startwithscu.

Statistics: Posted by Uveso — 31 May 2018, 16:05


]]>
2018-05-31T13:16:30+02:00 2018-05-31T13:16:30+02:00 /viewtopic.php?t=16225&p=164313#p164313 <![CDATA[Re: Looking for a certain flavor of heavy PD]]> Statistics: Posted by stardust — 31 May 2018, 13:16


]]>
2018-05-31T03:42:30+02:00 2018-05-31T03:42:30+02:00 /viewtopic.php?t=16225&p=164295#p164295 <![CDATA[Re: Looking for a certain flavor of heavy PD]]>
The FAF game saves the game.log inside:
Code:
C:\ProgramData\FAForever\logs


Did you searched there ?

(Edit) Don't forget to activate game logging inside the FAF client "Options->Settings->Save game logs"

Statistics: Posted by Uveso — 31 May 2018, 03:42


]]>
2018-05-31T00:56:24+02:00 2018-05-31T00:56:24+02:00 /viewtopic.php?t=16225&p=164287#p164287 <![CDATA[Re: Looking for a certain flavor of heavy PD]]>
I did a bunch of troubleshooting and had to replace several instances of table.concatenate with TableCat. Also had to import a file that was being referenced but was absent from my file collection. And while my test round worked marvelously well - an AI player was spawned with me and started going about building up a base and military - in FAF, nothing changed. Still no AI player(s)... and yet my log file shows no problems, errors, or warnings of any kind. Most peculiar! Seems like it would either work completely, or still throw me an error, instead of not work with no errors...

Statistics: Posted by stardust — 31 May 2018, 00:56


]]>
2018-05-30T17:08:38+02:00 2018-05-30T17:08:38+02:00 /viewtopic.php?t=16225&p=164269#p164269 <![CDATA[Re: Looking for a certain flavor of heavy PD]]>
Code:
WARNING: ...\naval unit pack 1.0\lua\blackopseffecttemplates.lua(105): attempt to call field `concatenate' (a nil value)
WARNING: stack traceback:
WARNING:         ...\naval unit pack 1.0\lua\blackopseffecttemplates.lua(105): in main chunk
WARNING:         [C]: in function `doscript'
WARNING:         [C]: in function `pcall'
WARNING:         ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
WARNING:         ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
WARNING:         ...er forged alliance\gamedata\lua.scd\lua\sim\unit.lua(3716): in main chunk
WARNING:         [C]: in function `doscript'
WARNING:         [C]: in function `pcall'
WARNING:         ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
WARNING:         ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
WARNING:         ...orged alliance\gamedata\lua.scd\lua\defaultunits.lua(11): in main chunk
WARNING:         ...
WARNING:         ...\gamedata\units.scd\units\uel0001\uel0001_script.lua(12): in main chunk
WARNING:         [C]: in function `doscript'
WARNING:         [C]: in function `pcall'
WARNING:         ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
WARNING:         [C]: in function `CreateInitialArmyUnit'
WARNING:         ...\gamedata\mohodata.scd\lua\sim\scenarioutilities.lua(338): in function `CreateInitialArmyGroup'
WARNING:         ...\gamedata\mohodata.scd\lua\sim\scenarioutilities.lua(469): in function `InitializeArmies'
WARNING:         ...er forged alliance\maps\x1mp_012\x1mp_012_script.lua(4): in function `OnPopulate'
WARNING:         ...orged alliance\gamedata\mohodata.scd\lua\siminit.lua(145): in function <...orged alliance\gamedata\mohodata.scd\lua\siminit.lua:137>
WARNING:         ...orged alliance\gamedata\mohodata.scd\lua\siminit.lua(273): in function `BeginSession'

The only important line is the first line. That's the error message.
All other lines are just a error trace back.

So this is the error:
Code:
WARNING: ...\naval unit pack 1.0\lua\blackopseffecttemplates.lua(105): attempt to call field `concatenate' (a nil value)

This error means, in your modfile called "\naval unit pack 1.0\lua\blackopseffecttemplates.lua" is an error in line 105 (something is wrong with "concatenate")

If you open the the file "\naval unit pack 1.0\lua\blackopseffecttemplates.lua" you will find this line:
Code:
ZCannonHit01 = table.concatenate(ZCannonHit02, ZCannonHit03)

As you see there is a command called:
Code:
table.concatenate()

This command only exist in the SupCom FAF game version. This will not work with the steam game.

The old game and maybe also steam has the command TableCat to merge arrays.
Add to the beginning of the file "\naval unit pack 1.0\lua\blackopseffecttemplates.lua" the following line:
Code:
TableCat = import('utilities.lua').TableCat

Now change the command from
Code:
ZCannonHit01 = table.concatenate(ZCannonHit02, ZCannonHit03)

to
Code:
ZCannonHit01 = TableCat(ZCannonHit02, ZCannonHit03)


Now try again and see if the error in line 105 is gone.

Statistics: Posted by Uveso — 30 May 2018, 17:08


]]>
2018-05-30T03:50:55+02:00 2018-05-30T03:50:55+02:00 /viewtopic.php?t=16225&p=164106#p164106 <![CDATA[Re: Looking for a certain flavor of heavy PD]]>
I went through ALL my unit mod files and changed all filepaths to point to my custom files instead of their source files. Turns out there was a fair bit of correcting to be done!

Still no AI though. Here's a new errorlog. I did notice some cropped paths that point to my supcom directory that have problems, but I never touched any of them. I've attached an updated errorlog, if anyone is able to shed some light on the matter. Much appreciated!

Statistics: Posted by stardust — 30 May 2018, 03:50


]]>
2018-05-29T13:23:26+02:00 2018-05-29T13:23:26+02:00 /viewtopic.php?t=16225&p=164080#p164080 <![CDATA[Re: Looking for a certain flavor of heavy PD]]> Statistics: Posted by stardust — 29 May 2018, 13:23


]]>
2018-05-29T01:25:39+02:00 2018-05-29T01:25:39+02:00 /viewtopic.php?t=16225&p=164051#p164051 <![CDATA[Re: Looking for a certain flavor of heavy PD]]>
you are using the steam version of supreme commander!

Black Ops FAF needs the FAF game version.
Because the function table.concatenate() only exist in FAF file "utils.lua"

Code:
Error importing '/mods/blackopsfaf-unleashed/lua/blackopseffecttemplates.lua'


Looks like you are using a effecttemplate from Black ops or at least some unitblueprint or script or weapon or projectile is using it.

Statistics: Posted by Uveso — 29 May 2018, 01:25


]]>
2018-05-28T23:40:20+02:00 2018-05-28T23:40:20+02:00 /viewtopic.php?t=16225&p=164044#p164044 <![CDATA[Re: Looking for a certain flavor of heavy PD]]>
However, the log also tells me that you're not running any other mods other than your own - and the fact that it's not recognizing the concatenate command at line 105 tells me it's either a typo, or a function reference outside of your mod.

Statistics: Posted by Sprouto — 28 May 2018, 23:40


]]>
2018-05-28T23:14:05+02:00 2018-05-28T23:14:05+02:00 /viewtopic.php?t=16225&p=164043#p164043 <![CDATA[Re: Looking for a certain flavor of heavy PD]]>
Any help you can provide is appreciated. I'm absolutely mystified how minor changes to a unit's stats file can totally break the AI from even starting up...

Statistics: Posted by stardust — 28 May 2018, 23:14


]]>
2018-05-28T17:48:33+02:00 2018-05-28T17:48:33+02:00 /viewtopic.php?t=16225&p=164025#p164025 <![CDATA[Re: Looking for a certain flavor of heavy PD]]>
we always need the full game.log, not only some lines.

Code:
attempt to call field `concatenate' (a nil value)


This error happens if you don't have the function table.concatenate() registered in LUA.

If you log shows some errors that are related to utils.lua, then check why this happens.

In case you are using Black Ops FAF version with a non FAF game version,then this also can happen.

Statistics: Posted by Uveso — 28 May 2018, 17:48


]]>
2018-05-27T18:12:22+02:00 2018-05-27T18:12:22+02:00 /viewtopic.php?t=16225&p=163974#p163974 <![CDATA[Re: Looking for a certain flavor of heavy PD]]>

Statistics: Posted by stardust — 27 May 2018, 18:12


]]>
2018-05-27T01:43:41+02:00 2018-05-27T01:43:41+02:00 /viewtopic.php?t=16225&p=163927#p163927 <![CDATA[Re: Looking for a certain flavor of heavy PD]]> Post a game log game.log or .zip the unit dir and post it.

Statistics: Posted by Uveso — 27 May 2018, 01:43


]]>