Results 1 to 6 of 6

SP Research won't show up in MP?

  1. #1
    Member maxdamage's Avatar
    Join Date
    Dec 2003
    Location
    Gauteng,South Africa

    Codex SP Research won't show up in MP?

    As you can see I have "unlocked" 3 Hiigaran sp research options for multiplayer usage so far.The following code is from the modified restrict.lua file I am using:
    Code:
    function RestrictOptions(playerid)
        local playerRace = Player_GetRace(playerid)
        if  playerRace==Race_Hiigaran then
        ---AssaultCorvetteEliteWeaponUpgrade RESEARCH HACK
        ---AttackBomberEliteWeaponUpgrade RESEARCH HACK
            Player_RestrictResearchOption(playerid, "SensorsDowngrade1")
            Player_RestrictResearchOption(playerid, "SensorsDowngrade2")
            Player_RestrictResearchOption(playerid, "SensorsDowngrade3")
            Player_RestrictResearchOption(playerid, "SensorsBackToNormal1")
            Player_RestrictResearchOption(playerid, "SensorsBackToNormal2")
            Player_RestrictResearchOption(playerid, "SensorsBackToNormal3")
            Player_RestrictResearchOption(playerid, "MoverHealthDowngrade")
         ---FrigateHealthUpgradeSPGAME RESEARCH HACK
            Player_RestrictResearchOption(playerid, "KeeperHealthUpgradeSPGAME_LOW")
            Player_RestrictResearchOption(playerid, "KeeperHealthUpgradeSPGAME_MED")
            Player_RestrictResearchOption(playerid, "KeeperHealthUpgradeSPGAME_HIGH")
            Player_RestrictResearchOption(playerid, "KeeperWeaponUpgradeSPGAME_M10_LVL_1")
            Player_RestrictResearchOption(playerid, "KeeperWeaponUpgradeSPGAME_M10_LVL_2")
            Player_RestrictResearchOption(playerid, "KeeperWeaponUpgradeSPGAME_M10_LVL_3")
            Player_RestrictResearchOption(playerid, "KeeperWeaponUpgradeSPGAME_M10_LVL_4")
            Player_RestrictResearchOption(playerid, "KeeperWeaponUpgradeSPGAME_M10_LVL_5")
            Player_RestrictResearchOption(playerid, "KeeperWeaponUpgradeSPGAME_M10_LVL_6")
            Player_RestrictResearchOption(playerid, "KeeperHealthUpgradeSPGAME_M10_LVL_1")
            Player_RestrictResearchOption(playerid, "KeeperHealthUpgradeSPGAME_M10_LVL_2")
            Player_RestrictResearchOption(playerid, "KeeperHealthUpgradeSPGAME_M10_LVL_3")
            Player_RestrictResearchOption(playerid, "AttackDroidHealthUpgradeSPGAME_MED")
            Player_RestrictResearchOption(playerid, "AttackDroidHealthUpgradeSPGAME_HIGH")
            Player_RestrictResearchOption(playerid, "AttackDroidWeaponUpgradeSPGAME_MED")
            Player_RestrictResearchOption(playerid, "AttackDroidWeaponUpgradeSPGAME_HIGH")
        end 
    
        if  playerRace==Race_Vaygr then
            Player_RestrictResearchOption(playerid, "WeakVgrHeavyMissiles")
            Player_RestrictResearchOption(playerid, "HyperspaceRecoveryTimeUpgradeSPGAME")
            Player_RestrictResearchOption(playerid, "HyperspaceTransitionTimeUpgradeSPGAME")
            Player_RestrictResearchOption(playerid, "VaygrCarrierHealthRegenDowngrade")
            Player_RestrictResearchOption(playerid, "ShipyardSpeedDowngradeSPGAME")
            Player_RestrictResearchOption(playerid, "SuperCapHealthUpgradeSPGAME")
            Player_RestrictResearchOption(playerid, "VaygrFrigateHealthUpgradeSPGAME")
            Player_RestrictResearchOption(playerid, "VaygrFrigateHealthRegenDowngradeSPGAME")
            Player_RestrictResearchOption(playerid, "CorvetteHealthUpgradeSPGAME")
            Player_RestrictResearchOption(playerid, "ExtraStrongVgrHeavyMissilesSPGAME")
            Player_RestrictResearchOption(playerid, "VaygrCaptureHack")
            Player_RestrictResearchOption(playerid, "VaygrReduceCaptureHack")
            Player_RestrictResearchOption(playerid, "VaygrCarrierHealthUpgrade")
        end 
    
    end
    
    function MPRestrict()
        local i = 0
        local numplayers = Universe_PlayerCount()
        while  i<numplayers do
            RestrictOptions(i)
            i = (i + 1)
        end 
    
    end
    The only problem is that out of the 3 research "unlocked" only the FrigateHealthUpgradeSPGAME appears in the research menu in-game which I plan to restrict by only allowing it to display once the frigate production subsystem is built.
    Code:
     { 
            Name = "AssaultCorvetteEliteWeaponUpgrade", 
            RequiredResearch = "", 
            RequiredSubSystems = "CorvetteProduction", 
            Cost = 0, 
            Time = 0, 
            DisplayedName = "Elite Assault Corvette Weapon Upgrade", 
            DisplayPriority = 1204, 
            Description = "", 
            UpgradeType = Modifier, 
            TargetType = Ship, 
            TargetName = "Hgn_AssaultCorvetteElite", 
            UpgradeName = "WeaponDamage", 
            UpgradeValue = 2, }, 
        { 
            Name = "AttackBomberEliteWeaponUpgrade", 
            RequiredResearch = "", 
            RequiredSubSystems = "FighterProduction", 
            Cost = 0, 
            Time = 0, 
            DisplayedName = "Elite Attack Bomber Weapon Upgrade", 
            DisplayPriority = 1205, 
            Description = "", 
            UpgradeType = Modifier, 
            TargetType = Ship, 
            TargetName = "Hgn_AttackBomberElite", 
            UpgradeName = "WeaponDamage", 
            UpgradeValue = 1.8, }, 
        { 
            Name = "FrigateHealthUpgradeSPGAME", 
            RequiredResearch = "", 
            RequiredSubSystems = "", 
            Cost = 800, 
            Time = 60, 
            DisplayedName = "$7571", 
            DisplayPriority = 300, 
            Description = "$7572", 
            UpgradeType = Modifier, 
            TargetType = Family, 
            TargetName = "Frigate", 
            UpgradeName = "MAXHEALTH", 
            UpgradeValue = 2.5, },
    What else do I have to do to get the AssaultCorvetteEliteWeaponUpgrade and the AttackBomberEliteWeaponUpgrade to appear in-game?Both the Assault Corvette Elite and the Attack Bomber Elite ships are buildable in-game.
    Last edited by maxdamage; 30th Jul 12 at 1:23 PM.
    ::

  2. #2
    Member 880Zero's Avatar
    Join Date
    Feb 2011
    Location
    Kent, WA, USA
    You have to look at the restrict.lua file in the scripts folder. It restricts what SP elements show up in MP as far as I know.

  3. #3
    Member 880Zero's Avatar
    Join Date
    Feb 2011
    Location
    Kent, WA, USA
    You have to look at the restrict.lua file in the scripts folder. It restricts what SP elements show up in MP as far as I know.

  4. #4
    Member maxdamage's Avatar
    Join Date
    Dec 2003
    Location
    Gauteng,South Africa
    Firstly if you look at the first code that is the modified version of the restrict.lua file that I am using so....Maybe I should have made that clearer.I converted all of the sp maps into mp format but soem of the maps appear to be missing their "main" ship\object eg. for mission 13 Balcora gate which should have the Balcora gate in it but it is missing in the .level file?Why is that?In m14 Sajuuk also has the "main" ship missing?Is that because it is scripted to be "insterted" into the map during the mission?
    Last edited by maxdamage; 30th Jul 12 at 2:04 PM.

  5. #5
    Cost = 0, Time = 0. Those get upgraded automatically as soon as they're available.

  6. #6
    Member maxdamage's Avatar
    Join Date
    Dec 2003
    Location
    Gauteng,South Africa
    Thanks.I had completely forgotten about that.Will adjust them to something small so they show up in the in-game menu.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •