Author Topic: Capturing blockland dedicated server output...  (Read 1436 times)

Hi all

I am trying to capture the output of Blockland's dedicated server. I used to do it simply by piping the STDOUT of blockland.exe -dedicated. Now with the launcher, however, I am not sure how to best approach this. Because the launcher launches blockland.exe -dedicated on its own accord, I'm not sure how I can get the output of the console. If I just launch BlocklandLauncher.exe -dedicated, I end up with the launcher output, but then it terminates as soon as the actual server launches.

Any ideas?

You have to start the Blockland EXE directly. Since you're skipping the launcher, you'll have to make your own.

I thought that might be the case. I assume that I need to pass it some argument(s) to simulate the launcher?

Code: [Select]
ptlaaxobimwroe -profilePath E:/path/to/game
And then, add the regular arguments as usual.

Gotcha thanks. Just out of curiosity, how did you figure that out? My launcher.log has these relevant lines:
Code: [Select]
Launching Blockland.exe
launcherRunGame C:\Documents and Settings\sterling\My Documents\Blockland//Blockland.exe
  args: -dedicated -map skylands
Trying to launch game with CreateProcess, binary is 'C:\Documents and Settings\sterling\My Documents\Blockland//Blockland.exe'
which aren't especially revealing. Did you replace blockland.exe with a script that captures its parameters or something?

EDIT: To clear up any confusion for the sake of whoever wants to do this later, you literally need to have ptlaaxbimwroe in there... its not a placeholder, lol. So:
Code: [Select]
Blockland.exe ptlaaxobimwroe -profilePath C:\Blockland//Blockland.exe -your -args -here
« Last Edit: July 03, 2012, 11:43:17 AM by cucumberdude »

It's intentionally not revealing. I dumped the process list in this way:

Code: [Select]
WMIC PROCESS get Caption,Commandline,Processid
That gets PIDs, processes' paths and arguments, and the processes' names.

Cool thanks.

Also, for anyone interested, I seem to have located the source of the(? maybe a?) blockland launcher: http://pastebin.com/CQHmCNrR

Not sure if this is the 'genuine' launcher source - but it certainly looks a lot like the launcher!

Cool thanks.

Also, for anyone interested, I seem to have located the source of the(? maybe a?) blockland launcher: http://pastebin.com/CQHmCNrR

Not sure if this is the 'genuine' launcher source - but it certainly looks a lot like the launcher!
Looks like someone's implementation of the launcher. I have one myself but it's only an updater.

Yeah, I guess the 'real' one is probably not written in python.

Cool thanks.

Also, for anyone interested, I seem to have located the source of the(? maybe a?) blockland launcher: http://pastebin.com/CQHmCNrR

Not sure if this is the 'genuine' launcher source - but it certainly looks a lot like the launcher!
That seems to be a derivative of my rewrite. :D

FWIW, my original launcher is https://gist.github.com/e989154794d8940c331e. Also, BlocklandGlass contains a JVM launcher which (in my experience) is much faster than both the stock launcher and my Python launcher. It's available at http://github.com/BlocklandGlass/JockLaunch.
« Last Edit: July 03, 2012, 05:25:15 PM by DontCare4Free »