Author Topic: Program Launch Arguments  (Read 794 times)

Offline Rivaryn

  • Newbie
  • *
  • Posts: 4
Program Launch Arguments
« on: July 03, 2013, 12:52:34 pm »
As a corollary to my other post, are there any command line arguments for starting up AIWar currently?  Does anyone know how much work it would take the developers to add a few simple* ones, such as the following:
  • "-h" - Launch the game and enter the Host/New Game screen automatically.
  • "-h <savefile>" - Launch the game and load the save file specified by <savefile>.
  • "-j <IP Address>" - Launch the game and attempt to join a direct connect game at IP listed by <IP Address>.
I'm just curious because if it wouldn't take much effort, I'd like to figure out how to add it to the list of suggested changes/updates, and see if it would be useful to pursue.

*:  These are assumed to be simple since the target functionality already exists in the game, but is by no means a guarantee that they are in fact simple to implement.

Offline TechSY730

  • Core Member Mark V
  • *****
  • Posts: 4,570
Re: Program Launch Arguments
« Reply #1 on: July 03, 2013, 07:47:00 pm »
Ugh. If only I could get some kind remote procedure call or something going, it shouldn't be that bad to "force" it. This is a C# program after all, and these sorts of managed environments are a little easier for the outside world to "work with" than normal native binaries. (Yes, it is Mono instead of a .NET implementation, but the CLR is still there per spec).

Sadly, I am nowhere near as knowledgeable in C# "black magic" as I am with Java "black magic".