T1 T2 T3 ? why and how has the level up chainged

Everything about mods can be found here.

Moderator: Morax

T1 T2 T3 ? why and how has the level up chainged

Postby REPELLERCOM » 09 Feb 2018, 21:11

I need help with this new upgrade thing that you see on mass extractors.
know it stays at T1 and can build all that way to T3 but it is still T1-3 on the engineers i need to know how this has been done so i can fix the many structures that i have implemented the old upgrade system to. also the old upgrade system has stopped working on FAF and so has ruined my changes and i would like to fix but i dont know how to get to the file of changes that they have implemented in that FAF version and so cant back engineer a sulootion any help is apresheated ty.
REPELLERCOM
Crusader
 
Posts: 13
Joined: 17 Jan 2018, 03:01
Has liked: 0 time
Been liked: 0 time
FAF User Name: REPELLERCOM

Re: T1 T2 T3 ? why and how has the level up chainged

Postby Uveso » 09 Feb 2018, 21:44

Well, i don't know what exactly your problem is, but upgrades are handled inside "\fa\lua\ui\game\construction.lua".
Search for the function "function IssueUpgradeOrders(units, bpid)"

There is not really a new upgradesystem. The only change is, you can now add more then one upgrade in a queue.
You can see all changes on our Git-Hub:
https://github.com/FAForever/fa

This was the first PR that changed the upgrade behavior:
https://github.com/FAForever/fa/commit/ ... 594c5b9914
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: T1 T2 T3 ? why and how has the level up chainged

Postby REPELLERCOM » 09 Feb 2018, 23:11

Ok TY for that information.

I am not the best a coding and i am looking for where it spesifyse that type of unit gets this so it functions as resource gathering type structures seem to upgrade EXAMPLE the hydrocarbons seem to upgrade. Then there is the mass storage that dose not it has the visuals of the arrows and all in T1 as the code souses but wen i go to upgrade nothing happens. so i am supposing i either need to put in some sort of redirect or some how add in to the changes that are made a line saying also look here?
REPELLERCOM
Crusader
 
Posts: 13
Joined: 17 Jan 2018, 03:01
Has liked: 0 time
Been liked: 0 time
FAF User Name: REPELLERCOM

Re: T1 T2 T3 ? why and how has the level up chainged

Postby REPELLERCOM » 11 Feb 2018, 23:29

Where would i have to look for changes to do was the ACU unit and lornch?
REPELLERCOM
Crusader
 
Posts: 13
Joined: 17 Jan 2018, 03:01
Has liked: 0 time
Been liked: 0 time
FAF User Name: REPELLERCOM

Re: T1 T2 T3 ? why and how has the level up chainged

Postby Uveso » 12 Feb 2018, 06:11

ACU are not really upgrading, they are enhancing :)
Those enhancements are controlled from the unitscript.

Take a look at "\units\UAL0001\UAL0001_script.lua" and search for the function "CreateEnhancement".
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


Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest