• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Apollonia

Private
20 Badges
Mar 27, 2018
14
0
  • Crusader Kings III
  • Shadowrun: Hong Kong
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Reapers Due
  • BATTLETECH
  • Surviving Mars
  • Age of Wonders III
  • Stellaris: Galaxy Edition
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
After Sagan went life, I updated my mod with the new Sagan files from github, and the mod shows up properly in the Mod Manager, and it also shows up in the Mod Editor. All my modified values are correctly displayed in the code files, however, the game ignores any changes I made and simply runs with the default values.

I tried to recreate the mod from scratch, with the same results. Any changes to drones or Rover were completely ignored. However, mods about Commander Profiles or Missions Sponsors work just fine.

Anyone experienced similar? Anyone know how to fix it?

https://steamcommunity.com/sharedfiles/filedetails/?id=1364677172
 
I'm not that a great programmer. However, I managed to get the speed by changing the line

function BaseRover:GameInit()
self:SetMoveSpeed(move_speed)

ind the BaseRover.lua by using a direct number instead of move_speed. It is still odd, move_speed gets defined in the Defineclass section, that was already coded by the developers, I merely changed the value from 1000 to 1150. It worked. Until Sagan.

However the definition of RC Transport storage gets defined only in the head of the RC Transport.lua in the line

id = "max_shared_storage", default = 30 * const.ResourceScale

and is touched never gain after that initial definition. As well, changing the value from 30 to 45 worked. Until Sagan. Why does the game insist on using default values, when mods are supposed to override them?
 
This should probably work
Code:
-- if pre doesn't work then built probably will
--~ function OnMsg.ClassesBuilt()
--~ function OnMsg.ClassesPostprocess()
function OnMsg.ClassesPreprocess()

    local orig_RCTransport_GameInit = RCTransport.GameInit
    function RCTransport:GameInit(...)
        self:SetMoveSpeed(move_speed)
        return orig_RCTransport_GameInit(self,...)
    end
    
end
 
Sadly, no. Not as seperate script, nor added into the RCTransport.lua...

Also, my trick that works on Rovers doesn't work with Drones.

I suspect my client, because I really see no other modders noting the game ignores the changing of values...