Adventure Game Studio

Community => General Discussion => Topic started by: arj0n on Sun 19/02/2012 13:18:28

Title: AGS Exe parameter(s)
Post by: arj0n on Sun 19/02/2012 13:18:28
Can't find them so maybe there just aren't any, but are there any other AGS game exe parameters besides '--setup'?
Title: Re: AGS Exe parameter(s)
Post by: Construed on Sun 19/02/2012 19:06:30
I cant find any either, but you can change the exe icon and the setup icon as well.
Title: Re: AGS Exe parameter(s)
Post by: Calin Leafshade on Sun 19/02/2012 19:12:10
Lots of command line args

relevant code:

for (ee=1;ee<argc;ee++) {
    if (argv[ee][1]=='?') return 0;
    if (stricmp(argv[ee],"-shelllaunch") == 0)
      change_to_game_dir = 1;
    else if (stricmp(argv[ee],"-updatereg") == 0)
      debug_flags |= DBG_REGONLY;
    else if (stricmp(argv[ee],"-windowed") == 0)
      force_window = 1;
    else if (stricmp(argv[ee],"-fullscreen") == 0)
      force_window = 2;
    else if (stricmp(argv[ee],"-hicolor") == 0)
      force_16bit = 1;
    else if (stricmp(argv[ee],"-letterbox") == 0)
      force_letterbox = 1;
    else if (stricmp(argv[ee],"-record") == 0)
      play.recording = 1;
    else if (stricmp(argv[ee],"-playback") == 0)
      play.playback = 1;
#ifdef _DEBUG
    else if ((stricmp(argv[ee],"--startr") == 0) && (ee < argc-1)) {
      override_start_room = atoi(argv[ee+1]);
      ee++;
    }
#endif
    else if ((stricmp(argv[ee],"--testre") == 0) && (ee < argc-2)) {
      strcpy(return_to_roomedit, argv[ee+1]);
      strcpy(return_to_room, argv[ee+2]);
      ee+=2;
    }
    else if (stricmp(argv[ee],"--15bit")==0) debug_15bit_mode = 1;
    else if (stricmp(argv[ee],"--24bit")==0) debug_24bit_mode = 1;
    else if (stricmp(argv[ee],"--fps")==0) display_fps = 2;
    else if (stricmp(argv[ee],"--test")==0) debug_flags|=DBG_DEBUGMODE;
    else if (stricmp(argv[ee],"-noiface")==0) debug_flags|=DBG_NOIFACE;
    else if (stricmp(argv[ee],"-nosprdisp")==0) debug_flags|=DBG_NODRAWSPRITES;
    else if (stricmp(argv[ee],"-nospr")==0) debug_flags|=DBG_NOOBJECTS;
    else if (stricmp(argv[ee],"-noupdate")==0) debug_flags|=DBG_NOUPDATE;
    else if (stricmp(argv[ee],"-nosound")==0) debug_flags|=DBG_NOSFX;
    else if (stricmp(argv[ee],"-nomusic")==0) debug_flags|=DBG_NOMUSIC;
    else if (stricmp(argv[ee],"-noscript")==0) debug_flags|=DBG_NOSCRIPT;
    else if (stricmp(argv[ee],"-novideo")==0) debug_flags|=DBG_NOVIDEO;
    else if (stricmp(argv[ee],"-noexceptionhandler")==0) usetup.disable_exception_handling = 1;
    else if (stricmp(argv[ee],"-dbgscript")==0) debug_flags|=DBG_DBGSCRIPT;
    else if (stricmp(argv[ee],"-registergame") == 0)
    {
      justRegisterGame = true;
    }
    else if (stricmp(argv[ee],"-unregistergame") == 0)
    {
      justUnRegisterGame = true;
    }
    else if ((stricmp(argv[ee],"-loadsavedgame") == 0) && (argc > ee + 1))
    {
      loadSaveGameOnStartup = argv[ee + 1];
      ee++;
    }
    else if ((stricmp(argv[ee],"--enabledebugger") == 0) && (argc > ee + 1))
    {
      strcpy(editor_debugger_instance_token, argv[ee + 1]);
      editor_debugging_enabled = 1;
      force_window = 1;
      ee++;
    }
    else if (stricmp(argv[ee],"--takeover")==0) {
      if (argc < ee+2)
        break;
      play.takeover_data = atoi (argv[ee + 1]);
      strncpy (play.takeover_from, argv[ee + 2], 49);
      play.takeover_from[49] = 0;
      ee += 2;
    }
    else if (argv[ee][0]!='-') datafile_argv=ee;
  }
Title: Re: AGS Exe parameter(s)
Post by: arj0n on Mon 20/02/2012 09:41:39
@Grim: I know, my 2010 Blockz demo got different exe and setup icons :-)

@Calin: Thanx but I know of the internal ones.
I'm specifically looking for any game executable parameters (not related to the editor) if there are.

Like the '--setup'. Maybe there are more like one to ask the ACI version number for example?

But I'm afraid there aren't any besides the setup parameter...
Title: Re: AGS Exe parameter(s)
Post by: Calin Leafshade on Mon 20/02/2012 10:23:45
They are the game engine flags taken directly from main(). I'm afraid that there arent any others besides --setup
Title: Re: AGS Exe parameter(s)
Post by: arj0n on Mon 20/02/2012 11:28:42
Thanx again Calin, seems indeed there aren't any other external ones.