Need Assistance w/ Configuring Getdown

143 views
Skip to first unread message

Troy

unread,
Jul 28, 2012, 5:13:17 PM7/28/12
to ooo-...@googlegroups.com
Hello, 

I have been struggling the past few days now with trying to add a JVM argument to one of your games, Spiral Knights. I've had no assistance getting this working, and hopefully someone can help me out. Most of what I want to do is listed here:


Basically, I want to add the same information that supplied from Kongregate to the Java applet, in the stand alone client. I am stuck between editing .Jar files, the .plist or something else. I want to be able to launch the Spiral Knights stand alone client and it uses my Kong info that I have added to the Getdown file to log me in automatically. 

Any help would be greatly appreciated. 

Troy

unread,
Jul 30, 2012, 10:13:38 PM7/30/12
to ooo-...@googlegroups.com
Since no one is helping me, how about just telling me where in the Getdown file this specific information is located, or how I can create a script to insert this information to the launcher...

jvmarg = [mac os x-x86_64] -d32
jvmarg = -Xmx256M
jvmarg = -XX:+AggressiveOpts
jvmarg = -XX:SoftRefLRUPolicyMSPerMB=10
# jvmarg = -XX:ErrorFile=%APPDIR%/hs_err.log
jvmarg = -Djava.library.path=%APPDIR%/native
jvmarg = -Dorg.lwjgl.util.NoChecks=true
jvmarg = -Dsun.java2d.d3d=false
jvmarg = -Dappdir=%APPDIR%
jvmarg = -Dresource_dir=%APPDIR%/rsrc

This is listed in the Getdown.txt

Charlie Groves

unread,
Jul 31, 2012, 1:19:52 PM7/31/12
to ooo-...@googlegroups.com
If you look at the end of your applet logs, the full command for
invoking Java is given. Have you tried running that in a shell script?

I believe if you added

/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
-classpath /Users/tk/Library/Application\
Support/spiral/code/config.jar:/Users/tk/Library/Application\
Support/spiral/code/projectx-config.jar:/Users/tk/Library/Application\
Support/spiral/code/projectx-pcode.jar:/Users/tk/Library/Application\
Support/spiral/code/lwjgl.jar:/Users/tk/Library/Application\
Support/spiral/code/lwjgl_util.jar:/Users/tk/Library/Application\
Support/spiral/code/jinput.jar:/Users/tk/Library/Application\
Support/spiral/code/jutils.jar:/Users/tk/Library/Application\
Support/spiral/code/jshortcut.jar:/Users/tk/Library/Application\
Support/spiral/code/commons-beanutils.jar:/Users/tk/Library/Application\
Support/spiral/code/commons-digester.jar:/Users/tk/Library/Application\
Support/spiral/code/commons-logging.jar
-Xdock:icon=/Users/tk/Library/Application\
Support/spiral/rsrc/ui/icon/desktop.icns -Xdock:name=Spiral\ Knights
-Dcom.threerings.getdown=true -d32 -Xmx256M -XX:+AggressiveOpts
-XX:SoftRefLRUPolicyMSPerMB=10
-Djava.library.path=/Users/tk/Library/Application\
Support/spiral/native -Dorg.lwjgl.util.NoChecks=true
-Dsun.java2d.d3d=false -Dappdir=/Users/tk/Library/Application\
Support/spiral -Dresource_dir=/Users/tk/Library/Application\
Support/spiral/rsrc -Dapplet=true -DsessionKey=XXX -Dusername=XXX
-Xmx512M com.threerings.projectx.client.ProjectXApp

to a file like spiral_knights.sh on a single line, substituted your
sessionKey and username into it, and ran sh spiral_knights.sh, it
would run externally from the browser. You'll need to update that
shell script whenever an update changes the launch config options.

I don't know if Spiral Knights is expecting to be able to communicate
back to the applet that launched it. If so, this won't work without a
browser running if you started it like this or through a locally
installed copy.

Editing getdown.txt itself is a path to sadness as your changes will
be overwritten on every launch. Changing any of the files makes them
not match their checksum, which prompts getdown to fetch them again.

Hope this helps,
Charlie

Michael Bayne

unread,
Jul 31, 2012, 2:14:00 PM7/31/12
to ooo-...@googlegroups.com
On Sat, Jul 28, 2012 at 2:13 PM, Troy <thesoul...@gmail.com> wrote:
> Basically, I want to add the same information that supplied from Kongregate
> to the Java applet, in the stand alone client.

I'm assuming you're on a Mac since you are talking about the plist
file. Create a file:

$HOME/Application Support/spiral/extra.txt

and put your extra arguments in it, one per line:

-Dkongregate=true
-DkongregateName=XXX
-DkongregateId=XXX
-DkongregateAuthToken=XXX

These will be added to the command line when launching the game.

-- m...@samskivert.com

Troy

unread,
Jul 31, 2012, 2:44:58 PM7/31/12
to ooo-...@googlegroups.com
You're awesome. I didn't even think to add that to the Extra.txt file because I didn't know that the extra actually added arguments to the launch. Kudos to you, and thank you for helping me escape the browser doom. :) 
Reply all
Reply to author
Forward
0 new messages