Login  Register
 



Post new topicReply to topic
 
Author Message
 PostPosted: 17 Jun, 2012 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
Is there a Command line switch that i can use to load a mod ?

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 17 Jun, 2012 
 

Joined: 05 Oct, 2007
Posts: 16425
Location: camping near the biggest power-up
Offline
Nope.

_________________
Nephylim wrote:
But, an FA army in an FA environment just looks... right.
help wrote:
Does anyone know how to use air transports? I cant get them to pick up troops.


Top
 Profile  
 PostPosted: 17 Jun, 2012 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
gay

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 17 Jun, 2012 
 

Joined: 26 Feb, 2009
Posts: 2996
Offline
you can easly add one though.

_________________
Domino.
______________


Top
 Profile  
 PostPosted: 17 Jun, 2012 
 

Joined: 05 Oct, 2007
Posts: 16425
Location: camping near the biggest power-up
Offline
You would want to hook Mods.lua and have it read off the command line. This won't be multiplayer safe at all.

_________________
Nephylim wrote:
But, an FA army in an FA environment just looks... right.
help wrote:
Does anyone know how to use air transports? I cant get them to pick up troops.


Top
 Profile  
 PostPosted: 17 Jun, 2012 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
I only want it for testing a debugging i just want a shortcut to send me into a map :wink: .


I found this in GameSessionManager.lua any idea how i can add it? thanks

Code:
local function GetCommandLineOptions(isPerfTest)
   local options = table.copy(defaultOptions)

   if isPerfTest then
      options.FogOfWar = 'none'
   elseif HasCommandLineArg("/nofog") then
      options.FogOfWar = 'none'
   end

   local norush = GetCommandLineArg("/norush", 1)
   if norush then
      options.NoRushOption = norush[1]
   end

   if HasCommandLineArg("/predeployed") then
      options.PrebuiltUnits = 'On'
   end

   local victory = GetCommandLineArg("/victory", 1)
   if victory then
      options.Victory = victory[1]
   end

   local diff = GetCommandLineArg("/diff", 1)
   if diff then
      options.Difficulty = tonumber(diff[1])
   end

   return options
end

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 29 Jun, 2012 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
I edited Mods.lua and got it to work but for some reason its not loading mithys mod support 100% so it crashes the game because of ability's the game cant place.


EDIT never mind found a fix.

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 30 Jun, 2012 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
By default cheats should be turned on am i right? looking at this below but for some reason when i start a match using the command line switch cheats are turned off and i've tried adding another line to turn them on but im having no luck.

Code:
local defaultOptions = {
    FogOfWar = 'explored',
    NoRushOption = 'Off',
    PrebuiltUnits = 'Off',
    Difficulty = 2,
    DoNotShareUnitCap = true,
    Timeouts = -1,
    GameSpeed = 'normal',
    UnitCap = '500',
    Victory = 'sandbox',
    CheatsEnabled = 'true',
    CivilianAlliance = 'enemy',
}

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 30 Jun, 2012 
 

Joined: 26 Feb, 2009
Posts: 2996
Offline
Hi,

Something else is setting it false dependant on the game type
And it's setting a pref look for that.

_________________
Domino.
______________


Top
 Profile  
 PostPosted: 30 Jun, 2012 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
I'm thinking the command line is starting a Multiplayer game instead of a skirmish even know skirmish is what its ment to start that's the only thing i can think of, even changing it in lobbyOptions.lua to 2 doesn't work all i get is the message saying trying to cheat not is cheating :P



Code:
    {
        default = 1,
        label = "<LOC lobui_0208>Cheating",
        help = "<LOC lobui_0209>Enable cheat codes",
        key = 'CheatsEnabled',
        pref = 'Lobby_Gen_CheatsEnabled',
        ui_index = 7,
        values = {
            {
                text = "<LOC _Off>Off",
                help = "<LOC lobui_0210>Cheats disabled",
                key = 'false',
            },
            {
                text = "<LOC _On>On",
                help = "<LOC lobui_0211>Cheats enabled",
                key = 'true',
            },
        },
    },

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 01 Jul, 2012 
 

Joined: 26 Feb, 2009
Posts: 2996
Offline
it could well be angine code to stop cheating in x gametype.

_________________
Domino.
______________


Top
 Profile  
 PostPosted: 01 Jul, 2012 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
Domino wrote:
it could well be angine code to stop cheating in x gametype.


I launched a game using the command line in FA it also has the same problem but i cant even get the create unit window to show at all for it.

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Last edited by liveordie on 04 Jul, 2012, edited 1 time in total.

Top
 Profile  
 PostPosted: 01 Jul, 2012 
 
User avatar

Joined: 15 Feb, 2007
Posts: 20036
Location: Presumably, at the time of posting, his computer.
Offline
You lurched the game?

_________________
I'm watchin you!
Image


Top
 Profile  
 PostPosted: 04 Jul, 2012 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
seems cheats are hard locked on in retail another crap gpgs move on there part.

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic



Quick Tools

Search for:
Jump to:  

© 2002-2010 Gas Powered Games Corp. All Rights Reserved. Gas Powered Games is the exclusive trademark of Gas Powered Games Corp.
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
 
Home| Games | Company | News & Press | Support
  Terms of Use   |    Copyright Information   |    Privacy Policy