Tropico 4 No Pop Cap

View previous topic View next topic Go down

Tropico 4 No Pop Cap

Post by Lord Archeneon on 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
avatar
Lord Archeneon
Emperor
Emperor

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

http://urbaniteforums.halofight.com

Back to top Go down

Re: Tropico 4 No Pop Cap

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

avatar
Lord Archeneon
Emperor
Emperor

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

http://urbaniteforums.halofight.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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