明輝手游網(wǎng)唯一官網(wǎng):m.79things.com

本站App下載  |  

首頁 > 游戲資訊 > 單機(jī)游戲

最高指揮官-修改心得

作者:佚名   來源:本站   時間:2023-08-24  點(diǎn)擊:

電腦大家應(yīng)該不怎么陌生吧!現(xiàn)在電腦已經(jīng)普及到大多數(shù)人的家庭之中了,電腦的用途非常地廣,不同年齡段、不同行業(yè)的人對電腦的用處不同。但是對于很多的年輕人來說電腦最大的用途就是玩游戲了。電腦游戲大家肯定玩過吧!它可以使人上癮。

1、安裝目錄gamedata\*.scd文件為zip編碼,只要更改后輟為.zip .rar即可打開。
2、后面的.bp和.lua文件用記事本即可打開。
3、修改前去掉.scd文件只讀屬性。
-----------------------------------------
要修改的文件為:
units.scd (所有單位藍(lán)圖,blueprint(bp))
projectiles.scd (發(fā)射物,彈頭等,后面有修改核彈和戰(zhàn)列艦主炮需要)
mods.scd (安裝時官方帶的3個mod,最后一個為2倍資源)
--------------------------------------------------
先來說說這個mods.scd的修改,以2倍資源來舉例:
打開mods.scd(rar)\mods\ResourceRich\hook\lua\system\Blueprints.lua
文件內(nèi)容:
function ModBlueprints(all_bps)
    local econScale = 30.0
    
    #loop through the blueprints and adjust as desired.
    for id,bp in all_bps.Unit do
        if bp.Economy.ProductionPerSecondMass then
           bp.Economy.ProductionPerSecondMass = bp.Economy.ProductionPerSecondMass * econScale
        end
        if bp.Economy.ProductionPerSecondEnergy then
           bp.Economy.ProductionPerSecondEnergy = bp.Economy.ProductionPerSecondEnergy * econScale
        end  
    end
end
將econScale符值,數(shù)字即為資源倍數(shù)。
更改后保存文件,會提示更新壓縮包,確定,最后將后輟改回.scd即可游戲。

(建議只修改此mod來進(jìn)行游戲,按下面方法修改單位的話,會大大減少游戲樂趣及游戲壽命,hehe~)
-------------------------------------------------------------------------------
units.scd的修改(這個文件有650多M,改后重新壓縮時間較長)
打開units.rar\units\,會看到很多UAB0101這樣的目錄:
先看我整理的我喜歡的Cybran族單位目錄參照
urb0101 = landfactory
   0103 = Naval Factory
   0201 = t2 landfactory
   0203 = T2 Naval Factory
   0301 = T3 Land Factory
   0302 = Tier 3 Air Unit Factory
   0303 = T3 Naval Factory
   0304 = Quantum Gate
   1101 = Power Generator
   1102 = Hydrocarbon Power Plant
   1103 = Tier 1 Mass Extractor
   1104 = Mass Fabricator
   1105 = Energy Storage
   1106 = Mass Storage
   1201 = Tier 2 Power Generator
   1202 = Tier 2 Mass Extractor
   1301 = Power Generator
   1302 = Tier 2 Mass Extractor
   1303 = T3 Mass Fabricator
   2108 = Tactical Missile Launcher
   2302 = Long Range Artillery
   2305 = Strategic Missile Launcher
   3104 = Omni Sensor Suite
   3201 = Long Range Radar
   4202 = Shield Generator
   4302 = Strategic Missile Defense
url0001 = Commander Unit
   1015 = T1 Engineer
   0208 = Tier 2 Engineer
   0309 = Tier 3 Engineer
   0402 = Spider Bot
urs0201 = Destroyer
   0202 = Cruiser 
   0203 = Attack Sub
   0302 = Battleship
   0303 = Aircraft Carrier 
   0304 = Strategic Missile Submarine

看到了么,URB****、UEL****、UAS****等目錄,其中U就是unit,R、E、A等就是cybran,uef,aeon三族的簡寫,而第三位的B、L、S、A等就是building、land、sea、air的簡寫。
-------------------------------------------------------------------
怎么找到要修改的單位對應(yīng)的目錄呢?以URB4202(Cybran族的護(hù)盾)為例。
打開lua.scd(rar)\lua\modules\basetemplates.lua(基本模板),翻至最后,看最后幾百行,:)
有這樣的定義:
        # Cybran Building List(Cybran族建筑列表)
        # -Shield Defense(護(hù)盾定義)
        {
            'T2ShieldDefense',
            'urb4202',  ----當(dāng)當(dāng)當(dāng)當(dāng)
        },
        # Artillery Structures(小二炮定義,hehe~,它的確是T2么)
        {
            'T2Artillery',
            'urb2303', ----當(dāng)當(dāng)當(dāng)當(dāng)
        },
知道了吧,找到了吧。
打開units.scd(rar)\units\URB4202\URB4202_script.lua,看上面幾行注釋,有g(shù)as powered程序員留下的描述:#**  Summary  :  Cybran Shield Generator Script。
如果有東西不好找,把units.scd全部解壓出來,然后用windows搜索關(guān)鍵字。
-----------------------------------
終于到具體修改了:
URB4202(Cybran族的護(hù)盾)
units.scd(rar)\units\URB4202\URB4202_unit.bp (藍(lán)圖文件)
我摘其中的幾段給大家,很簡單的。

    Categories = {(種類定義)
        'SELECTABLE',
        'BUILTBYTIER2ENGINEER',
        'BUILTBYTIER3ENGINEER',
        'BUILTBYTIER2COMMANDER',
        'BUILTBYTIER3COMMANDER',
        'CYBRAN',(所屬種族)
        'STRUCTURE',
        'DEFENSE',
        'TECH2',
        'SHIELD',
        'DRAGBUILD',
        'SIZE12',
        'VISIBLETORECON',
        'RECLAIMABLE',
    },
    Defense = {
        ArmorType = 'Normal',
        Health = 50000,(生命值)
        MaxHealth = 50000,(最大生命值)
        RegenRate = 200,(回血率,就是量,200/秒)
        Shield = {(能量盾定義)
            ShieldEnergyDrainRechargeTime = 5,
            ShieldMaxHealth = 4000,
            ShieldRechargeTime = 18,(格擋后重新充能時間)
            ShieldRegenRate = 800,
            ShieldRegenStartTime = 13,
            ShieldSize = 18,
            ShieldVerticalOffset = -3,
        },(很容易懂的吧)
    },
    Economy = {
        BuildCostEnergy = 2000,(建造需電能,越多所需建造時間越長)
        BuildCostMass = 160,(建造需Mass,同上)
        BuildRate = 10,(建造倍率)
        BuildTime = 60,(建造時間)
----------------------------------
Enhancements = {(此段為cy族盾的4層升級定義)
        Shield1 = {(層1)
            BuildCostEnergy = 3000,
            BuildCostMass = 300,
            BuildTime = 60,
            Icon = 'ch-01',
            MaintenanceConsumptionPerSecondEnergy = 200,
            Name = 'Shield Expansion 1 of 4',
ShieldEnergyDrainRechargeTime = 5,
            ShieldEnhancementNumber = 1,
            ShieldMaxHealth = 7000,
            ShieldRechargeTime = 16,
            ShieldRegenRate = 1400,
            ShieldRegenStartTime = 14,
            ShieldSize = 22,
            ShieldVerticalOffset = -3,
            Slot = 'Shield',
        },
        Shield2 = {(層2)
            BuildCostEnergy = 15000,
            BuildCostMass = 1000,
            BuildTime = 60,
            Icon = 'ch-02',
            MaintenanceConsumptionPerSecondEnergy = 300,
            Name = 'Shield Expansion 2 of 4',
            Prerequisite = 'Shield1',
            ShieldEnergyDrainRechargeTime = 5,
            ShieldEnhancementNumber = 2,
            ShieldMaxHealth = 10000,
            ShieldRechargeTime = 18,
            ShieldRegenRate = 2000,
            ShieldRegenStartTime = 16,
            ShieldSize = 28,
            ShieldVerticalOffset = -4,
            Slot = 'Shield',
        },
        Shield3 = {(層3)
            BuildCostEnergy = 30000,
            BuildCostMass = 1500,
            BuildTime = 60,
            Icon = 'ch-03',
            MaintenanceConsumptionPerSecondEnergy = 400,
            Name = 'Shield Expansion 3 of 4',
            Prerequisite = 'Shield2',
            ShieldEnergyDrainRechargeTime = 5,
            ShieldEnhancementNumber = 3,
            ShieldMaxHealth = 13000,
            ShieldRechargeTime = 20,
            ShieldRegenRate = 2600,
            ShieldRegenStartTime = 18,
            ShieldSize = 34,
            ShieldVerticalOffset = -5,
            Slot = 'Shield',
        },
        Shield4 = {(層4)
            BuildCostEnergy = 50000,
            BuildCostMass = 3000,
            BuildTime = 60,
            Icon = 'ch-04',
            MaintenanceConsumptionPerSecondEnergy = 500,
            Name = 'Shield Expansion 4 of 4',
            Prerequisite = 'Shield3',
            ShieldEnergyDrainRechargeTime = 5,
            ShieldEnhancementNumber = 4,
            ShieldMaxHealth = 400000,
            ShieldRechargeTime = 3,
            ShieldRegenRate = 4000,
            ShieldRegenStartTime = 3,
            ShieldSize = 40,
            ShieldVerticalOffset = -6,
            Slot = 'Shield',
        },(嗯,很好理解)
-------------------------
再來看URB2305,Cybran族的核彈:
基本屬性同盾,但它是武器,看此段:
    Veteran = {(等級升級)
        Level1 = 100,(1星所需殺人數(shù))
        Level2 = 200,
        Level3 = 500,
        Level4 = 1000,
        Level5 = 2000,(5星所需殺人數(shù))
    },
    Weapon = {
        {
            Audio = {
                Fire = Sound {
                    Bank = 'URLWeapon',
                    Cue = 'URB2305_Missile_Cruise',
                    LodCutoff = 'Weapon_LodCutoff',
                },
            },
            BallisticArc = 'RULEUBA_None',
            Buffs = {
                {
                    Add = {
                        OnImpact = true,
                    },
                    AppliedToTarget = true,
                    BuffType = 'STUN',
                    Duration = 15,
                    Radius = 40,
                    TargetAllow = 'ALLUNITS',
                },
            },
            CollideFriendly = false,
            CountedProjectile = true,
            Damage = 0,
            DamageType = 'Normal',
            DisplayName = 'EMP Flux Warhead',
            EnergyDrainPerSecond = 0,
            EnergyRequired = 0,
            FireTargetLayerCapsTable = {
                Land = 'Land|Water',
                Seabed = 'Land|Water',
                Sub = 'Land|Water',
                Water = 'Land|Water',
            },
            FiringTolerance = 2,(落點(diǎn)誤差)
            ForceSingleFire = true,(沒有試驗)
            InitialProjectileStorage = 100,(初始(造好后)自帶的彈藥數(shù))
            Label = 'NukeMissiles',
            ManualFire = 1,
            MaxProjectileStorage = 100,(最大儲彈量)
            MaxRadius = 20000,(最大攻擊范圍)
            MinRadius = 0,(最小攻擊范圍)
            MuzzleSalvoDelay = 0,
            MuzzleSalvoSize = 1,
            MuzzleVelocity = 0,
            NukeInnerRingDamage = 70000,(內(nèi)圈傷害值)
            NukeInnerRingRadius = 30,
            NukeInnerRingTicks = 24,
            NukeInnerRingTotalTime = 24,
            NukeOuterRingDamage = 500,(外圈傷害值)
            NukeOuterRingRadius = 40,
            NukeOuterRingTicks = 20,
            NukeOuterRingTotalTime = 10,
            NukeWeapon = true,
            ProjectileId = '/projectiles/CIFEMPFluxWarhead01/CIFEMPFluxWarhead01_proj.bp',(ProjectileId(發(fā)射物序號),這里很重要,按給出的路徑:安裝目錄下\projectiles.scd(rar)/CIFEMPFluxWarhead01/CIFEMPFluxWarhead01_proj.bp,打開后可以看到核彈彈頭速度等,按攔截導(dǎo)彈速度修改后,對方兩族攔截速度慢,就不能攔截你的nukeclear了)
            ProjectilesPerOnFire = 1,(每次開火的發(fā)射物數(shù),同上沒有試驗)
            RackBones = {
                {
                    MuzzleBones = {
                        'Projectile',
                    },
                    RackBone = 'Projectile',
                },
            },
            RackFireTogether = false,
            RackRecoilDistance = 0,
            RackReloadTimeout = 0,
            RackSalvoChargeTime = 0,
            RackSalvoReloadTime = 0,
            RackSalvoSize = 1,
            RackSlavedToTurret = false,
            RateOfFire = 1,(重要參數(shù),開火速率,像cy的T3軌道炮為0.0375)
            TargetCheckInterval = 0.5,
            TargetRestrictDisallow = 'UNTARGETABLE',
            TurretDualManipulators = false,
            TurretPitch = 0,
            TurretPitchRange = 0,
            TurretPitchSpeed = 0,
            TurretYaw = 0,
            TurretYawRange = 0,
            TurretYawSpeed = 0,
            Turreted = false,
            WeaponCategory = 'Missile',
            WeaponRepackTimeout = 5,
            WeaponUnpackAnimation = '/units/urb2305/urb2305_aactivate.sca',
            WeaponUnpackAnimationRate = 1,
            WeaponUnpacks = true,
        },
    },
 

 


玩游戲可以在很大程度上讓大家放松放松,但是我建議大家不要把過多的時間投入到工作當(dāng)中,因為這樣的話大家很有可能上癮,這樣不利于大家的工作或者是學(xué)習(xí)。

推薦游戲

換一換