Forums › English Language Forums › General › General Discussion

Search

Making Spiral Knights portable (more or less)

9 replies [Last post]
Fri, 07/17/2015 - 15:27
Zero-Alveiin's picture
Zero-Alveiin

i often reinstall windows so for me making game portable to some point is essential
cause after each reinstall need of setting up all options and stuff is just preventing me from playing it all
cause i cant remember my settings for all games and trying to recall them all when doing them again are just too painful

so i often search for a way to make it portable and in most times like in this case its possible via BAT files
it looks retro but works pretty well

(im just sharing it cause i think for some ppl here it can be useful to store SK on pendrive and play it idk in school or whatever and in the end do not leave any trace of launching the game on that PC)

if you are not afraid im spreading viruses or whatever here is all stuff pre-made by me

http://www.mediafire.com/download/5932x2img1bkks9/Spiral_Knights.zip

after u unzip this folder you just need to install game to Spiral Knights\App
and Spiral Knights.exe will bring window with option to play the game and load/save/remove settings
Play.exe will only launch the game

if u think i could put some evil in that zip file here is DO IT UR SELF below

trust me it only looks long but it should not take u more than 5-10 mins

so lets start

1. download game from here http://gamemedia.spiralknights.com/spiral/client/spiral-install.exe (this is official link)
and install it to for example to desktop to folder named Spiral Knights

2. go to Spiral Knights Folder and:
2a. - cut all files and folders in there
2b. - in Spiral Knights folder create new folder and rename it to App
2c. - paste all stuff you did cut in step 2a to folder App you created in step 2b
2d. - in Spiral Knights folder create new folder and rename it to Data

3. in Spiral Knights folder create new text file and paste there this

ECHO OFF
CLS
title Spiral Knights
:MENU
ECHO.
ECHO. Choose operation and press ENTER
ECHO.
color 0a
ECHO.
ECHO. 1 - Play Spiral Knights
ECHO.
ECHO. 2 - Load Settings (from FILE to REGISTRY)
ECHO.
ECHO. 3 - Save Settings (from REGISTRY to FILE)
ECHO.
ECHO. 4 - Remove Settings (from REGISTRY)
ECHO.
ECHO. 5 - EXIT
ECHO.
SET /P M= Your choice?:
IF %M%==1 GOTO Play
IF %M%==2 GOTO Load
IF %M%==3 GOTO Save
IF %M%==4 GOTO Remove
IF %M%==5 GOTO Exit
CLS
GOTO MENU
:Play
Start "" "play.exe"
EXIT
:Load
CD "Data"
REGEDIT /s Settings.reg
CD ..
CLS
GOTO MENU
:Save
CD "Data"
regedit /E "Settings.reg" "HKEY_CURRENT_USER\Software\JavaSoft\Prefs\projectx"
CD ..
CLS
GOTO MENU
:Remove
CD "Data"
REGEDIT /s Remove.reg
CD ..
CLS
GOTO MENU
:Exit
Exit

4. click file and select save as in file type select all and name it Spiral Knights.bat
but dont close the file yet

5. now to the same file paste this

CD "App"
"%ProgramFiles%\Java\jre7\bin\java.exe" -Xincgc -Xmx1G -jar getdown-pro.jar .
EXIT

6. click file and select save as in file type select all and name it Play.bat
(if it wont work for you and you have 64 bit machine then u need to install 64 bit java)
but dont close the file yet

7. now to the same file paste this

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\JavaSoft\Prefs\projectx]

8. click file and select save as in file type select all and name it Remove.reg NOW CLOSE the file and move Remove.reg to Data folder

9. now download bat to exe converter http://www.f2ko.de/en/b2e.php
unzip it and launch portable version

10. in bat to exe
- right from Batch file: click button with 3 dots (...) browse to SPIRAL KNIGHTS.BAT and select it
- on lower left check "add administrator manifest"
- OPTIONALLY u can add icon to exe by clicking Version Information tab (there is 1 icon in spiral knights folder)
- click compile and when its done u will have ur 1st exe file now close bat to exe and reopen it

11. in bat to exe
- right from Batch file: click button with 3 dots (...) browse to PLAY.BAT and select it
- on mid left check "Invisible application"
- on lower left check "add administrator manifest"
- OPTIONALLY u can add icon to exe by clicking Version Information tab (there is 1 icon in spiral knights folder)
- click compile and when its done u will have ur 2nd exe file

and thats pretty much it

Few Tips

- Play.exe only starts the game

- Spiral Knights.exe got all options in CMD window

- you need at last once launch Spiral Knights to be able to save settings

- you need at last once save settings to be able to load settings

- settings are saved to Spiral Knights>Data>Settings.reg so its smart to make backup copy of it

- if there comes other version of java you just need to alter this line
"%ProgramFiles%\Java\jre7
so like if java 8 will come u will need
"%ProgramFiles%\Java\jre8

Sat, 07/18/2015 - 06:01
#1
Bopp's picture
Bopp
okay, I'll bite

Why do you "often reinstall Windows"?

Sat, 07/18/2015 - 06:31
#2
Fehzor's picture
Fehzor

Reinstalling my operating system seems like a pretty swell Friday night if you ask me. There are some pretty sweet loading bars hiding in that installation disk.

What if you stored a copy of the game on an external hard drive/large flash drive of some sort? Then instead of re-installing it via the website or whatnot, you could just drag and drop the installation manually and probably keep your settings.

Sat, 07/18/2015 - 09:20
#3
Bopp's picture
Bopp
to each his own?

Reinstalling my operating system seems like a pretty swell Friday night if you ask me. There are some pretty sweet loading bars hiding in that installation disk.

Everybody has kinks. As long as no one gets hurt, they shouldn't be judged. That said, your tastes are Wrong.

Sat, 07/18/2015 - 23:21
#4
Zero-Alveiin's picture
Zero-Alveiin
@Bopp i got two 1 tTB HDDs i

@Bopp

i got two 1 tTB HDDs i install windows on 1 and when something starting to crap and i dont feel like fixing it or i have windows on it for too long and it starts to slow donw i unplug that hdd plug 2nd hdd and install windows on it then i plug that 1st hdd as slave and just copy 4 folders (2 with games 1 with music 1 with programs ) over 2nd hdd on which i just installed windows (i got like 150gb free space left thats problem too) < which kinda slow my pc if i install tooo much stuff

and every time something goes bad i just repeat the process

like when i install some free programs (for example to convert music or video) and they force to install their 3rd party sheet (bars addons and others) which is hard to uninstall i dont feel like fixing it i prefer to make clean installation
when windows installation is like 30-40 mins and data copying is like 2-3h (and after that im sure everything will work)

and thats why i got everything portable so i dont need to install set up and configure everything from the start i just copy it over clean installation and its ready to use

like i didnt needed to configure winamp or skype or any browser from like 7 years already? and same goes with games

@Fehzor yes thats right but only on that copy of windows + if ur friend come to u with his SK on flash drive he would need to play with ur settings and ur login would appear while he loads his copy on ur pc

thats why there are option to load/save and remove settings

and even more kids in some schools cant leave trace of playing on dat pc so this is kinda essential to have ur settings in file in game folder load them from it and when ur done playing just remove them from registry

and lets say you wanna take ur copy and ur settings to play on vacation on ur lets say cousins pc or whatever u would need dat settings and if ur cousin would feel like it to play it too he would need his own copy with his own settings

its just a solution for ppl dat need portable version for whatever reason and not replacement for original launcher

Sun, 07/19/2015 - 08:51
#5
Krakob's picture
Krakob

Sounds like you're going through a lot more trouble than necessary. You could just do stuff like that in a virtual machine, or you could just try to find better software (there usually is) which doesn't have crapware bundled with it, or you could just opt out of those things. Try Unchecky.

Sun, 07/19/2015 - 11:15
#6
Zero-Alveiin's picture
Zero-Alveiin
@Krakob-Is-Renamed i dont

@Krakob-Is-Renamed

i dont realy understand how unchecky should help me

anyway there are programs like thin app or cameyo to make any program portable but i dont know how SK would work after making it portable when SK update comes

so in the end my method seems clear to me easy and most important it works just fine so i really dont care about making it other way

i just shared it for ppl who need portable version of SK like me for same or other reason and willing to give minimum effort to it

Sun, 07/19/2015 - 14:47
#7
Krakob's picture
Krakob

Unchecky would help you avoid a lot of crapware. With some more caution, and that, you could avoid getting crap on your PC and avoid formatting so often. Or you could use a virtual machine for sketchy software.

Sun, 07/19/2015 - 17:27
#8
Bopp's picture
Bopp
switch OSs

I would just switch operating systems, away from Windows. But users who want to stick with Windows might appreciate your tutorial. Cheers.

Mon, 07/20/2015 - 00:45
#9
Zero-Alveiin's picture
Zero-Alveiin
@Krakob-Is-Renamed ow i was

@Krakob-Is-Renamed

ow i was thinking u are referring to making SK portable thats why i did not understand

it wont help me i just give an example there are lots of more problems i encounter like once i installed new codecs and in some games videos was upside down reinstall fixed it but then i realize it was that codecs

there are really tons of tons of problems that occurs and i just dont feel like fixing them i prefer to sacrifice my time and fix all in 1 shoot

@Bopp

i got too many games and stuff designed for windows 98 or XP so switching to other system would automatically make big part of them stop working so changing system isnt solution to me

thank you guys for your help but well i dont need any help at all trust me i just wanted to share it for ppl who may need/want it

Powered by Drupal, an open source content management system