• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

[GS] Trying to update my mod showing All rankings even when disabled, but they changed how the files work

R4lfXD

Chieftain
Joined
Dec 2, 2017
Messages
16
Basically, up until now, I was able to just comment few 'if' lines to get the tabs to show, they would fill in later in the code automatically. Except for the Overall tab, that wouldn't fill in.

Now after the expansion, not only the, it seems like, reworked how to files work, adding bunch of line at the start - "GLOBALS" area, and also adding another version of the files in Expansion2 folder. Even though the lines I used to comment are still there, it's not enough anymore, and somewhere it probably checks for victoryType and finds none.
And I can't figure out how to fix this. Funny thing is, the old file I had set up for Rise and Fall still works for GS, but without Diplo victory, the new science victory tweaks and anything else they added, and would probably break soon.

Let me point you to the critical files. Probably would be easier for you to go through them:
Base/Assets/UI/PartialScreens/WorldRankings.lua (main one)
Base/Assets/UI/ARXManager.lua
and the new ones, adds Diplomatic Victory (as a custom victory type, kind of a bucher work, isnt it?) and new Science stuff
\DLC\Expansion2\UI\Replacements\WorldRankings_Expansion2.lua
\DLC\Expansion2\UI\Replacements\ARXManager_Expansion2.lua

My edit is based on AllWorldRankings mod, that I sadly can't even find here anymore, it's from pre-RiseAndFall.

Also, I saw a Debug option at the start of the first file to force turn them all on. It doesn't work for me, but maybe you know if there is a way to make it work? Would be probably easiest to use that.

Can post exaclty what I was commenting if that would help in any way.
 
Back
Top Bottom