Author Topic: Food for thought 2: Standalone Only Multiplayer  (Read 8246 times)

0 Members and 2 Guests are viewing this topic.

Offline m!m

  • 211
Re: Food for thought 2: Standalone Only Multiplayer
Are we speaking of simply relaunching our own process? If so then we could just use the commandline argument array passed to main which includes the path to the executed executable. You could simply use that if it works on all platforms. If it doesn't work then we can just use the respective OS APIs to get the path.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Food for thought 2: Standalone Only Multiplayer
I'm talking about spawning a second process using the same command line plus -standalone.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline m!m

  • 211
Re: Food for thought 2: Standalone Only Multiplayer
Then I'm pretty sure that the first element of the command line array should work on all platforms.

 
Re: Food for thought 2: Standalone Only Multiplayer
Not sure if it's related, but just in case, I feel I should mention OSX has a nasty tenancy to suppress multiple instances of the same program by default.  To get around it you have to have the system do it with the "open" command.

Something to do with the silly autosave and resume feature in osx.

 
Re: Food for thought 2: Standalone Only Multiplayer
That shouldn't be a problem at the process level — OS X is still POSIX.
The good Christian should beware of mathematicians, and all those who make empty prophecies. The danger already exists that the mathematicians have made a covenant with the devil to darken the spirit and to confine man in the bonds of Hell.

  

Offline Echelon9

  • 210
Re: Food for thought 2: Standalone Only Multiplayer
There's definitely a way to do it on OS X. I'd press ahead getting Windows working first and we can then adjust for other platforms.