Tropico 4 No Pop Cap
Page 1 of 1
Tropico 4 No Pop Cap
Go into your Tropico 4 game directory.
Under Kalypso Media/Tropico 4/ ( make a folder and name it "Game" )
Inside the folder named "Game", create a basic text file.
Name the txt file nolimits.lua now it should be a lua file
edit the lua file using notepad
paste this script using notepad
local GameEntityCount = 200000
local MaxPopulation = 20000
-- Original mod code
function NoLimitsMod()
-- Sets the entity count
config.MaxGameObjectExCount = GameEntityCount
config.MaxGameObjectCount = GameEntityCount
-- Remove the road construction limitations
road_construction.ReachedLimit = function(x)
return false
end
-- Sets the population
MigrationMaxCitizens = MaxPopulation
ImmigrationRandomize = function(y)
return MulDivRound(y, MaxPopulation - CitizenCount, 375)
end
end
-- Only fire once
local FiredOnce = false
-- UA Set Mode
OnMsg.UASetMode = function(actions,mode)
-- Fire until fired once
if not FiredOnce then
-- If we boot, trip it ...
if(mode == "Boot") then
FiredOnce = true
-- Run the thread to bypass it
CreateRealTimeThread(function()
-- Do mod loading code here.
NoLimitsMod()
-- Reconfigure/force the settings every map load.
OnMsg.MapPermanentObjectsLoaded = function()
NoLimitsMod()
end
end)
end
end
end
-- Legacy load (what the original mod used)
OnMsg.ClassesPreprocess = function()
NoLimitsMod()
end
Under Kalypso Media/Tropico 4/ ( make a folder and name it "Game" )
Inside the folder named "Game", create a basic text file.
Name the txt file nolimits.lua now it should be a lua file
edit the lua file using notepad
paste this script using notepad
local GameEntityCount = 200000
local MaxPopulation = 20000
-- Original mod code
function NoLimitsMod()
-- Sets the entity count
config.MaxGameObjectExCount = GameEntityCount
config.MaxGameObjectCount = GameEntityCount
-- Remove the road construction limitations
road_construction.ReachedLimit = function(x)
return false
end
-- Sets the population
MigrationMaxCitizens = MaxPopulation
ImmigrationRandomize = function(y)
return MulDivRound(y, MaxPopulation - CitizenCount, 375)
end
end
-- Only fire once
local FiredOnce = false
-- UA Set Mode
OnMsg.UASetMode = function(actions,mode)
-- Fire until fired once
if not FiredOnce then
-- If we boot, trip it ...
if(mode == "Boot") then
FiredOnce = true
-- Run the thread to bypass it
CreateRealTimeThread(function()
-- Do mod loading code here.
NoLimitsMod()
-- Reconfigure/force the settings every map load.
OnMsg.MapPermanentObjectsLoaded = function()
NoLimitsMod()
end
end)
end
end
end
-- Legacy load (what the original mod used)
OnMsg.ClassesPreprocess = function()
NoLimitsMod()
end
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|