ID:159535
 
I want to make a code that causes a client to open their own instance of a game on a local machine but only after resources are done downloading...

Is there any way to accomplish this?
I have tried using run('GameName.dmb') and things to this effect however that just makes the Options and Messages menu pop up and not the game itself, though it still is listed in my processes as a new dreamseeker.exe
In response to AJX
OK, I never attempted this, also, I've been away from BYOND using Flash, But here's what I believe best will work, Because we do the same in our host management Lib.
#include "Game.dmb"
mob
proc
Run_Game()
shell(usr,'Game.dmb')

I know shell would do it, But look it up if I did it wrong
Good Luck!
-TJ Rodreguies, C.E.O of World Build
In response to World Build
.> That's a pretty surprising amount of mistakes in so little code. It doesn't look like you understand how any of #include, usr (no usr in proc >_>) and shell() work (or even single quotes, it seems).

You can indeed use shell() to execute a program, but it runs only server-side and takes one arg which is a text string of the system command to execute.
In response to Kaioken
You could have just as easily said, "Hey, that doesn't work," without the criticism.

And why spend the time correcting him and still not giving a relevant answer to the initial question?


So anyway... I tried usr<<link("byond://AJX.Hubname") and that brought the user to the hub entry associated with it, but didn't start the game like I'd prefer.
In response to AJX
AJX wrote:
So anyway... I tried usr<<link("byond://AJX.Hubname") and that brought the user to the hub entry associated with it, but didn't start the game like I'd prefer.

I'd try
usr << link("byond://AJX.Invasion##local")

though, I have not tested it.

Btw. this requires a valid download link on the hub page (which your game currently does not provide), if you want it to work.
In response to Schnitzelnagler
Ahh... Invasion. Very sleuthy of you. But that isn't the hub entry in question. :)

I tried your suggestion, and it didn't work.
I also tried a few other things... Among them:
    usr<<run("C:/Program Files/BYOND/bin/byond.exe \"//ajx.servercommunicationtest/%23%23version=0%23%23webid=dafff1b43daa5b57f0fc7561fb2461c119f04da00fd2ea4b")
usr<<link("byond://ajx.servercommunicationtest/##version=0##webid=dafff1b43daa5b57f0fc7561fb2461c119f04da00fd2ea4b")

And a few others. No positive results -.-'

In response to AJX
AJX wrote:
Ahh... Invasion. Very sleuthy of you. But that isn't the hub entry in question. :)

Damn *grins*
Worth a try though. And here I was thinking I'd be smart to find the game that does not provide a download link, listed under your games!

I tried your suggestion, and it didn't work.

I mentioned that you are going to need a working, valid download link on the hub for this to work though.

        verb
Launch()
usr << link("byond://Abra.Castle##local")


Compiled and tested.
I was asked if I wanted to follow the link, with a warning that this would disconnect me from the currently running world.
Upon selecting yes, I was automatically presented with Castle (though I had that game already downloaded, so I couldn't test for the automatic download part, but I guess you could emulate this through ftp()?).
In response to Schnitzelnagler
Oooh. My link was bursted. :( Very odd annoyances with the BYOND file system.
In response to Kaioken
No, it's the fact where I've been gone having a life. Not sitting on my PC giving a crap about DM. I've been gone for a few months, give me a break.
In response to World Build
Point is, you shouldn't be attempting to give help if you aren't sure its correct, obviously even more so if you haven't even touched DM in a long while. Nothing more than common sense.