Urbanite Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Tropico 4 No Pop Cap

Go down

Tropico 4 No Pop Cap Empty Tropico 4 No Pop Cap

Post by Lord Archeneon Sat Apr 14, 2012 11:31 pm

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
Lord Archeneon
Lord Archeneon
Emperor
Emperor

Posts : 37
Points : 6522
Reputation : 0
Join date : 2012-02-13
Location : The Hall of Epicness

https://urbaniteforums.rpg-board.net

Back to top Go down

Tropico 4 No Pop Cap Empty Re: Tropico 4 No Pop Cap

Post by Lord Archeneon Sat Apr 14, 2012 11:33 pm

Lord Archeneon
Lord Archeneon
Emperor
Emperor

Posts : 37
Points : 6522
Reputation : 0
Join date : 2012-02-13
Location : The Hall of Epicness

https://urbaniteforums.rpg-board.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum