g_Classes.CondominiumModern_01.num_families这些代码 怎么用?
g_Classes.CondominiumModern_01.num_families = 100g_Classes.CondominiumModern_01.base_housing_quality = 240
添加进哪里?
应该是加入nolimits.lua文件的吧- -这些代码怎么用 哪找来的是啥含义啊 本帖最后由 abcg 于 2012-4-30 13:37 编辑
在游戏Tropico.exe位置的地方建一个Game文件夹,然后在里面建一个nolimits.lua
在nolimits.lua里面填写这些.....我自己的包括破解上限人数,太阳能发电升级电量多点,2种豪宅人数和服务品质增加,小学人数增加,品质增加~
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
g_Classes.LargeGoldMarker.Amount = 80000000
g_Classes.LargeBauxiteMarker.Amount = 80000000
g_Classes.SmallGoldMarker.Amount = 8000000
g_Classes.LargeIronMarker.Amount = 20000000
SolarPlant["upgrades"]["param1"] = 500
SolarPlant["upgrades"]["param1"] = 600
SolarPlant["upgrades"]["param1"] = 700
g_Classes.CondominiumModern_01.num_families = 50
g_Classes.CondominiumModern_01.base_housing_quality = 240
g_Classes.ApartmentModern_01.num_families = 50
g_Classes.ApartmentModern_01.base_housing_quality = 240
g_Classes.ApartmentModern_02.num_families = 50
g_Classes.ApartmentModern_02.base_housing_quality = 240
g_Classes.GradeSchool.num_people_serviced = 120
g_Classes.GradeSchool.num_workers = 15
g_Classes.GradeSchool.base_service_quality = 110
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
abcg 发表于 2012-4-30 13:32 static/image/common/back.gif
在游戏Tropico.exe位置的地方建一个Game文件夹,然后在里面建一个nolimits.lua
在nolimits.lua里面填写这些 ...
请问移民人口数如何修改啊?是哪条参数? abcg 发表于 2012-4-30 13:32 static/image/common/back.gif
在游戏Tropico.exe位置的地方建一个Game文件夹,然后在里面建一个nolimits.lua
在nolimits.lua里面填写这些 ...
这些代码都是哪里找的啊。参数名完全不懂啊。
fly0025 发表于 2012-4-30 16:16 http://bbs.3dmgame.com/static/image/common/back.gif
这些代码都是哪里找的啊。参数名完全不懂啊。
local MaxPopulation = 20000
这个就是人口!3楼已经改到20000人口了! qwe5512177 发表于 2012-4-30 18:46 static/image/common/back.gif
local MaxPopulation = 20000
这个就是人口!3楼已经改到20000人口了!
我的意思是别的这些参数,是怎么知道的。比如说我改知道农场的工作人口,那这个参数怎么写。
fly0025 发表于 2012-4-30 16:16 static/image/common/back.gif
这些代码都是哪里找的啊。参数名完全不懂啊。
有些参数我也是看不懂,我只看得懂g_Classes那些而已,都是一些建筑物名字,然后要改什么之类的
至于找嘛,是先找破解人口上限那个国外帖子找到的
还有这个帖子第二页也有人发很多,我都没时间测试呢~
http://bbs.3dmgame.com/thread-3047795-2-1.html
页:
[1]