Forged Alliance Forever Forged Alliance Forever Forums 2019-04-26T14:16:40+02:00 /feed.php?f=47&t=17441 2019-04-26T14:16:40+02:00 2019-04-26T14:16:40+02:00 /viewtopic.php?t=17441&p=173986#p173986 <![CDATA[Re: Land Fabs wont produce T3 units]]>
anubis_85 wrote:
to copy the categories like this
UnitList ['T3ArmoredAssaultSorian'] = UnitList ['T3ArmoredAssault']
is not the solution

Well, i tested it and it works. Maybe you put the command inside the table and not outside ?!?

anubis_85 wrote:
the most TM units havn't the categories BOT or TANK [...]
You said there could be problems without these categories
that the AI ​​does not stop producing the units

My observation is that it works.
after adding the categories to the blueprints
for the sorian AI.


Yes and no. The Sorian AI is using the bot categorie in 3 Platoon formers:
T1GhettoSquad -> using "categories.BOT" (Tech1)
T1MassHuntersCategorySorian -> using "categories.BOT" (Tech1)
T2MassHuntersCategorySorian -> using "categories.BOT" (All Tech level!!!)
https://github.com/FAForever/fa/blob/de ... n.lua#L132

And also my AI is using BOT. As example:
https://github.com/Uveso/AI-Uveso/blob/ ... d.lua#L528
As you can see there, it use "MOBILE LAND BOT TECH1" for build ratio.
There will also be platoonbuilder for Tech3 BOTs but they are not finished yet

So at least it will not work for 2 platoonbuilders at the moment.

anubis_85 wrote:
sorian used T3LandBot
the same categorie exist in the normal AI
only T3ArmoredAssault is diffrent


Sorian is using 2 special platoonbuilders:
T2AttackTankSorian
T3ArmoredAssaultSorian
https://github.com/FAForever/fa/blob/de ... n.lua#L163

So also change T2AttackTankSorian

Btw, if you change something inside the files and you want me to view or implement this to the mod then don't add any aditional markers like "-- #############".
I can see all changes with one click. no need for markers.

Just in case you can't explain something in english you can also PM me in german.

Statistics: Posted by Uveso — 26 Apr 2019, 14:16


]]>
2019-04-25T23:13:33+02:00 2019-04-25T23:13:33+02:00 /viewtopic.php?t=17441&p=173957#p173957 <![CDATA[Re: Land Fabs wont produce T3 units]]> I checked it
they split their units
they use the category which works

I tried to copy the categories
this results in the same problem

some units are not produced
AEON and SERAPHIM cease producing units in the T3 factories
after some time, about 25 - 30 minutes

to copy the categories like this
UnitList ['T3ArmoredAssaultSorian'] = UnitList ['T3ArmoredAssault']
is not the solution

other thing

the most TM units havn't the categories BOT or TANK

I changed many units to that !!!

You said there could be problems without these categories
that the AI ​​does not stop producing the units

My observation is that it works.
after adding the categories to the blueprints
for the sorian AI.

the only thing i havn't tested is to add a new lua file with new categories for the TM units in the AIBUILDERS

But that's not the easiest solution
We should try to use the existing categories
I do not understand the problems
why some units are produced and others are not
and then stop the production in the factories

sorian used T3LandBot
the same categorie exist in the normal AI
only T3ArmoredAssault is diffrent

that's why the production of the AEON T3 TM units suddenly worked for me
after changing the categories to T3LandBot

Statistics: Posted by anubis_85 — 25 Apr 2019, 23:13


]]>
2019-04-25T22:41:50+02:00 2019-04-25T22:41:50+02:00 /viewtopic.php?t=17441&p=173956#p173956 <![CDATA[Re: Land Fabs wont produce T3 units]]>
first
I played a lot of battles
the normal AI is terrible: D

each fight takes about 30 minutes
to see that all the factories are at level 3, and whether they produce units

I should test a little more than just if all units are produced
something more effective

I think of so many things
but i need help

a thing that I would like to change

the early game is hard enought
but the late game is too easy
the normal AI builds far too little defense
The sorian AI is better but not much

what can I change that the enemy builds more defense?
especially in the expansion bases

and one more thing
I do not quite understand the basebuildingtemplates yet

how do I get the AI to build that

first is without
second with buff

Image
Image

this also works with the energy storage system around a power plant
and the enemy should use the repair stations more
this is the most built unit with me

but i havn't any idea how i can change it
not yet ^ ^

Next post is to our problem

Statistics: Posted by anubis_85 — 25 Apr 2019, 22:41


]]>
2019-04-24T00:59:05+02:00 2019-04-24T00:59:05+02:00 /viewtopic.php?t=17441&p=173872#p173872 <![CDATA[Re: Land Fabs wont produce T3 units]]>
anubis_85 wrote:
i try to find an other solution

for the sorian ai it works


Sure it works for the sorian.

Sorian is using the templatename "T3ArmoredAssaultSorian" but normal AI's are using the templatename "T3ArmoredAssault".

So if you use "T3ArmoredAssaultSorian" inside the customunit.lua then only the sorian AI can build this platton, and if you
insert "T3ArmoredAssault" as name, then my AI and the GPG (build in) AI can build the platoon but not the sorian.

The only way to solve this is to have a 2 tables with the same units. One named T3ArmoredAssault and the other T3ArmoredAssaultSorian.

Good thing, we don't need to make 2 identical tables, we can copy them:

In case we have already a table named T3ArmoredAssault, then we can assign the table to an alias named T3ArmoredAssaultSorian like this:
Code:
UnitList['T3ArmoredAssaultSorian'] = UnitList['T3ArmoredAssault']


This way you can copy any platoontemplate to a new name for sorian and still having the original named templates:
Code:
UnitList = {
    T3ArmoredAssault = {
        UEF = {'brnt2htt3', 50}, -- Twister MK3 (Heavy Armored Tank)
        Cybran = {'brmt3ht', 50}, -- Carnage mk.3 (Medium Tank)
        Aeon = {'brot3aa', 50}, -- Tachylite (Mobile Anti-Air)
        Seraphim = {'brpt3bt', 50}, -- Hethaamah (Battle Tank)
    },
    T3LandBot = {
        UEF = {'brnt2htt3', 50}, -- Twister MK3 (Heavy Armored Tank)
        Cybran = {'brmt3ht', 50}, -- Carnage mk.3 (Medium Tank)
        Aeon = {'brot3aa', 50}, -- Tachylite (Mobile Anti-Air)
        Seraphim = {'brpt3bt', 50}, -- Hethaamah (Battle Tank)
    },
}
UnitList['T3ArmoredAssaultSorian'] = UnitList['T3ArmoredAssault']
UnitList['T3LandBotSorian'] = UnitList['T3LandBot']


Btw, don't put any non bot units into the T3LandBot platoon. (like in the example)
The AI can identify and count bot units by reading the unit category from the blueprint 'category.BOT'.
But if you build non BOT units with this platoon, then the AI will infinitely build them.
That's because the unit count for BOTs does not increase and the AI thinks that
building this platoon was not executed and build it again and again...

Please test all changes also with the GPG AI.

Btw are you using the FAF game version or only Steam ?
With FAF you could test my AI ;)

Statistics: Posted by Uveso — 24 Apr 2019, 00:59


]]>
2019-04-23T20:30:14+02:00 2019-04-23T20:30:14+02:00 /viewtopic.php?t=17441&p=173859#p173859 <![CDATA[Re: Land Fabs wont produce T3 units]]>
for the sorian ai it works

Statistics: Posted by anubis_85 — 23 Apr 2019, 20:30


]]>
2019-04-23T20:27:41+02:00 2019-04-23T20:27:41+02:00 /viewtopic.php?t=17441&p=173858#p173858 <![CDATA[Re: Land Fabs wont produce T3 units]]> If I put all units in all categories, then something blocks and the factories do not produce anything

I have no idea why that is

please try it yourself
fight against an AI
You will notice that the units I have mentioned are not produced

that was the reason for the changes
And that was the reason to leave out the standard categories

Statistics: Posted by anubis_85 — 23 Apr 2019, 20:27


]]>
2019-04-23T19:15:01+02:00 2019-04-23T19:15:01+02:00 /viewtopic.php?t=17441&p=173856#p173856 <![CDATA[Re: Land Fabs wont produce T3 units]]>
If you use "T3ArmoredAssaultSorian", then only the sorian AI can build those units.
The GPG and my own AI can't build them with this change. :(

Statistics: Posted by Uveso — 23 Apr 2019, 19:15


]]>
2019-04-23T14:44:45+02:00 2019-04-23T14:44:45+02:00 /viewtopic.php?t=17441&p=173841#p173841 <![CDATA[Re: Land Fabs wont produce T3 units]]> now all missing t3 land units will be produced
here are the files

all in one .rar
https://[email protected]/Sonstiges/Neuer%20Ordner/TM/CustomUnits.rar

severally
https://[email protected]/Sonstiges/Neuer%20Ordner/TM/all%20units%201.lua
https://[email protected]/Sonstiges/Neuer%20Ordner/TM/all%20units%202.lua
https://[email protected]/Sonstiges/Neuer%20Ordner/TM/all%20units%203.lua
https://[email protected]/Sonstiges/Neuer%20Ordner/TM/all%20units%204.lua
https://[email protected]/Sonstiges/Neuer%20Ordner/TM/all%20units%205.lua
https://[email protected]/Sonstiges/Neuer%20Ordner/TM/all%20units%206.lua
https://[email protected]/Sonstiges/Neuer%20Ordner/TM/all%20units%207.lua

--#########################

this marks the position of the changes in the files

now the next problems
I change to the right contribution

Statistics: Posted by anubis_85 — 23 Apr 2019, 14:44


]]>
2019-04-23T00:38:30+02:00 2019-04-23T00:38:30+02:00 /viewtopic.php?t=17441&p=173822#p173822 <![CDATA[Re: Land Fabs wont produce T3 units]]>
T3ArmoredAssault:
https://github.com/FAForever/fa/blob/3b ... s.lua#L460

T3LandBot:
https://github.com/FAForever/fa/blob/3b ... s.lua#L430

They both "should" work.
Also adding the same unit multiple times into different platoontemplates works.

I will test this with sorian AI. Maybe i find the reason why the platoontemplates are not working for sorian AI.

And yes, please upload the fixed customunit.lua files.

Statistics: Posted by Uveso — 23 Apr 2019, 00:38


]]>
2019-04-22T23:08:56+02:00 2019-04-22T23:08:56+02:00 /viewtopic.php?t=17441&p=173813#p173813 <![CDATA[Re: Land Fabs wont produce T3 units]]> At the same time I solved a problem in TM 1.36

i try to explain and post the code

i hope you read it
It will be a longer explanation

some TM units were not produced by AI (only T3 land)
I try to fix this and have produced another bug (Land Fabs wont produce T3 units ....)
list:
UEF:
T3 heavy tank

Cybran:
t3 mdeium tank
t3 laser tank
t3 raptor bot

aeon:
both t3 royalit tanks and both battle bots

seraphim:
t3 battle tank

the problem lies in the costom units.luas

all units 1, all units 2 ......

Code:
T3ArmoredAssault = {
        UEF = {'brnt2htt3', 50}, -- Twister MK3 (Heavy Armored Tank)
        Cybran = {'brmt3ht', 50}, -- Carnage mk.3 (Medium Tank)
        Aeon = {'brot3aa', 50}, -- Tachylite (Mobile Anti-Air)
        Seraphim = {'brpt3bt', 50}, -- Hethaamah (Battle Tank)
    },


the category T3ArmoredAssault does not exist
the category in the sorian AI calls T3ArmoredAssaultSorian

i have change the categorys in the first 7 "all untis .luas" to ....

Code:
T3LandBot = {
        UEF = {'brnt2htt3', 50}, -- Twister MK3 (Heavy Armored Tank)
        Cybran = {'brmt3ht', 50}, -- Carnage mk.3 (Medium Tank)
        Aeon = {'brot3aa', 50}, -- Tachylite (Mobile Anti-Air)
        Seraphim = {'brpt3bt', 50}, -- Hethaamah (Battle Tank)
    },


T3LandBot is an unused Category i ve found in the sorian AI


and i ve forgotten to delete the old category
Thus, the units were present twice in the same lua and generated an error
Therefore, the mistake that some land factories have stopped producing

I played a lot of battles in the last few days and tested it

now it works

if you want i can upload the 7 luas to an ftp server
thus less work for you

best regards

Statistics: Posted by anubis_85 — 22 Apr 2019, 23:08


]]>
2019-04-21T14:36:38+02:00 2019-04-21T14:36:38+02:00 /viewtopic.php?t=17441&p=173717#p173717 <![CDATA[Re: Land Fabs wont produce T3 units]]> the enemy spam very very much t1 and t2 units but in the T3 land factories its seems that something blocked
from 30 minutes

https://[email protected]/Sonstiges/Neuer%20Ordner/no%20t3%20units.SCFAReplay

its an older replay so i ve all mods aktivated
i make a new replay with a new instalation off FA, sorian and TM

day by day I can see better how the AI works
I would like to help you solve some small problems

But first I have to get the problem under control

Statistics: Posted by anubis_85 — 21 Apr 2019, 14:36


]]>
2019-04-20T20:12:02+02:00 2019-04-20T20:12:02+02:00 /viewtopic.php?t=17441&p=173660#p173660 <![CDATA[Re: Land Fabs wont produce T3 units]]> I already downloaded this version one or two weeks ago
you wrote that you have platoonbuilder for T1 but not yet for T2 and T3

Is that correct?
or have you already added some?

then I download that again

Statistics: Posted by anubis_85 — 20 Apr 2019, 20:12


]]>
2019-04-20T20:02:01+02:00 2019-04-20T20:02:01+02:00 /viewtopic.php?t=17441&p=173658#p173658 <![CDATA[Re: Land Fabs wont produce T3 units]]>
thank's for your feedback.

I don't know why the sorian AI is not building T3 land units after a while.
i will check this after the weekend.

If you like to test it, i can upload a beta version of V1.37.
I added some real AI platoon builder to the mod and fixed several bugs.

Statistics: Posted by Uveso — 20 Apr 2019, 20:02


]]>
2019-04-20T19:25:12+02:00 2019-04-20T19:25:12+02:00 /viewtopic.php?t=17441&p=173649#p173649 <![CDATA[Land Fabs wont produce T3 units]]>
It's the first time I write here
Hello to all

please excuse that I do not post the log file.
I do not use the FAF client

I have been using TM for some time now
very nice mod

specifications:
sorian AI v. 2.1.2 latest

TM: 1.36
SC FA 1.66
no other mods

my problem:
if i use TM some enemys do not produce T3 units in all land fabs.
they stop producing after a while.

all air fabs produce but the land fabs standing still
except for a factory that produces every now and then
but this works without TM
I tried this in some battles

I have read about this problem
You talked to someone about it
Unfortunately I can not find the post anymore

I did not fall on my head
but until I found the problem passes too much time
You have already dealt with this problem
you build your own AI

I hope you can help me
I am certainly not the only one who has this problem
at least I think ^ ^

I found and fixed some other "bugs" but one after the other
I post this later in the correct post

my english is not the best
i hope you understand me

SCFA must be more difficult: D
the AI is too easy ^^

best regards

Statistics: Posted by anubis_85 — 20 Apr 2019, 19:25


]]>