close

遊戲主目錄下 創建 Game 資料夾

使用 記事本 複製並增減修改以下內容

存成 nolimits.lua

 

local GameEntityCount = 200000
local MaxPopulation = 2500(人口上限)

-- 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, 60)
    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

 

 

---------------------------------------

可修改項目

太陽能發電廠 發電量
        SolarPlant["upgrades"][1]["param1"] = 500
        SolarPlant["upgrades"][2]["param1"] = 600
        SolarPlant["upgrades"][3]["param1"] = 700
電信塔 訊號範圍 滿意度
        TelecomHQ["upgrades"][1]["param1"] = 400
        TelecomHQ["upgrades"][2]["param1"] = 500
        TelecomHQ["upgrades"][3]["param1"] = 600
        TelecomHQ["modes"][1]["param1"] = 35
汙水處理廠
        g_Classes.WaterTreatment.num_workers = 10
        g_Classes.WaterTreatment.job_quality = 85
        g_Classes.WaterTreatment.clamp_radius = 6000
小教堂      
        g_Classes.Church.num_people_serviced = 50
        g_Classes.Church.num_workers = 5
        g_Classes.Church.job_quality = 85
大教堂
        g_Classes.CrystalCathedral.num_people_serviced = 100
        g_Classes.CrystalCathedral.num_workers = 10
        g_Classes.CrystalCathedral.base_service_quality = 240

礦產上限
        g_Classes.LargeGoldMarker.Amount = 80000000
        g_Classes.LargeBauxiteMarker.Amount = 80000000
        g_Classes.SmallGoldMarker.Amount = 8000000
        g_Classes.LargeIronMarker.Amount = 20000000

現代公寓
g_Classes.ApartmentModern_01.num_families = 100
g_Classes.ApartmentModern_01.base_housing_quality = 240
g_Classes.ApartmentModern_02.num_families = 100
g_Classes.ApartmentModern_02.base_housing_quality = 240

現代豪華公寓
        g_Classes.CondominiumModern_01.num_families = 100
        g_Classes.CondominiumModern_01.base_housing_quality = 240
地下鐵 每次建造所增加的錢
        g_Classes.MetroStation.money_cost_add = 2

摩天大酒店
unique表示可以建造的數量

        g_Classes.SkyscraperHotel.num_people_serviced = 50
        g_Classes.SkyscraperHotel.num_workers = 10
        g_Classes.SkyscraperHotel.base_service_quality = 150
        g_Classes.SkyscraperHotel.unique = 10
        g_Classes.SkyscraperHotel.upkeep = 5

七星飯店
        g_Classes.SkyscraperHotelModern.num_people_serviced = 20
        g_Classes.SkyscraperHotelModern.num_workers = 4
        g_Classes.SkyscraperHotelModern.base_service_quality = 160
        g_Classes.SkyscraperHotelModern.job_quality = 72
        g_Classes.SkyscraperHotelModern.unique = 10
        g_Classes.SkyscraperHotelModern.upkeep = 5

小學

        g_Classes.GradeSchool.num_people_serviced = 120
        g_Classes.GradeSchool.num_workers = 15
        g_Classes.GradeSchool.base_service_quality = 110

中學
        g_Classes.HighSchool.num_people_serviced = 70
        g_Classes.HighSchool.num_workers = 10
        g_Classes.HighSchool.base_service_quality = 110

大學
        g_Classes.College.num_people_serviced = 70
        g_Classes.College.num_workers = 10
        g_Classes.College.base_service_quality = 160

科學院
        g_Classes.AcademyOfScience.num_workers = 10
        g_Classes.AcademyOfScience.base_service_quality = 180

醫院
        g_Classes.Hospital.num_people_serviced = 60
        g_Classes.Hospital.num_workers = 10
        g_Classes.Hospital.base_service_quality = 180

垃圾場
        g_Classes.GarbageDump.num_workers = 8
        g_Classes.GarbageDump.job_quality = 70
        g_Classes.GarbageDump.clamp_radius = 1500

水廠
        g_Classes.WaterTreatment.num_workers = 10
        g_Classes.WaterTreatment.job_quality = 85
        g_Classes.WaterTreatment.clamp_radius = 6000

其中clamp_radius = 6000 是處理範圍
job_quality 修改超過50 不然幾乎沒人要當收垃圾的.....

教堂
        g_Classes.Church.num_people_serviced = 90
        g_Classes.Church.num_workers = 15
        g_Classes.Church.job_quality = 85
大教堂
        g_Classes.Cathedral.num_people_serviced = 180
        g_Classes.Cathedral.num_workers = 20

鑽石教堂
            g_Classes.CrystalCathedral.num_people_serviced = 200
            g_Classes.CrystalCathedral.num_workers = 20
            g_Classes.CrystalCathedral.base_service_quality = 240

總統府(舊的)
        g_Classes.Palace.num_workers = 10
總統府(新的)
        g_Classes.Presidency.num_workers = 16

超級市場 儲存量
        g_Classes.Supermarket.MaxProductionQuantity = 250000

        g_Classes.Hospital.num_people_serviced = 40 #醫院接40人
        g_Classes.Hospital.num_workers = 8 #醫生8個

        g_Classes.Church.num_people_serviced = 32 #教堂接32人
        g_Classes.Cathedral.num_people_serviced = 48
        g_Classes.Cathedral.num_workers = 6
        g_Classes.CrystalCathedral.num_people_serviced = 64
        g_Classes.CrystalCathedral.num_workers = 8

        g_Classes.GarbageDump.num_workers = 8
        g_Classes.GarbageDump.job_quality = 50
        g_Classes.GarbageDump.clamp_radius = 800 #原數是400,遊戲感覺沒擴大範圍效果
        g_Classes.WaterTreatment.num_workers = 8
        g_Classes.WaterTreatment.job_quality = 75
        g_Classes.WaterTreatment.clamp_radius = 1200

        g_Classes.GradeSchool.num_people_serviced = 64
        g_Classes.GradeSchool.num_workers = 8

        g_Classes.Casino.base_service_quality = 75 #提高賭場服務品質試圖吸引客人
        g_Classes.Zoo.base_service_quality = 60 #降低動物園服務品質不要那麼不和諧
        g_Classes.Theater.num_people_serviced = 20
        g_Classes.Pub.base_service_quality = 45

        g_Classes.WindTurbine.blueprint_cost = 500 #降低風電藍圖錢
        g_Classes.WindTurbine.money_cost = 1000 #降低風電建設費用
        g_Classes.WindTurbine.upkeep = 75 #確實降低了維持費,但遊戲中每月50塊不是75塊?

        TelecomHQ["upgrades"][1]["param1"] = 200 #電信總部升級範圍測試通過
        TelecomHQ["upgrades"][2]["param1"] = 200 #電信總部升級範圍測試通過
        TelecomHQ["upgrades"][3]["param1"] = 200  #電信總部升級範圍測試通過
        TelecomHQ["modes"][1]["param1"] = 30 #顧客滿意度升30

        g_Classes.ArmyBase.num_workers = 4
        g_Classes.ArmyBase.num_families = 32
        g_Classes.ArmyBase.base_housing_quality = 90 #升基地房屋品質
        g_Classes.ArmyBase.base_service_quality = 90 #升基地醫療品質

        g_Classes.PoliceStation.num_workers = 4

        g_Classes.BotanicalGarden.num_workers = 2 #減園藝小屋工人
        g_Classes.BotanicalGarden.unique = 3 #園藝小屋最高3個
        g_Classes.BotanicalGarden.money_cost = 5000
        g_Classes.BotanicalGarden.blueprint_cost = 3000

        g_Classes.Newspaper.money_cost = 3000
        g_Classes.Newspaper.blueprint_cost = 2000

        g_Classes.TeamstersOffice.num_workers = 8 #加運輸司機人數

 

 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 茶米 的頭像
    茶米

    茶米記事簿

    茶米 發表在 痞客邦 留言(0) 人氣()