Hi,
Today I installed SpiralKnights on my linux PC for the first time. Downloading is no problem, but the game window just stays black, no sound, no different cursor, and closes after approximately 2 seconds.
I have a Radeon HD 6770 (technically identical to the HD 5770) and use fglrx 11.8 as driver (since the open source drivers don't work at all).
projectx.log is empty except for the line that says that it starts to log.
Actually, it's the JVM that crashes. Here's the JVM-logfile: http://pastie.org/2417995
I tested it both with openjdk and sun's jvm as well as I tested both the applet to start as well as the "download version". I get the exact same error with each of them.
Linux: Game window closes right after start
Its generally assumed Linux users know what they are doing. Linux installs are usually a combination of package installation, registration and in some cases compiling source code. But there should be pre-complied java binary packages from whichever repository your distro likes to use.
however, I've heard the fglrx drivers are problematic on the newer cards.
Are you trying to use openjdk here (or openjdk & the sun one at once)? Tried switching to the proprietary one ALONE ( no openjdk installed at all)? Also it's not a bad idea to include what distribution you are using in posts like this. Like p.e.: with ubuntu/debian you might need to reconfigure your update alternatives or something (haven't done that for a while) to make sure it uses the right java version.
Edit: sry, I need to learn to read :P so: log from using the sun version might help.
First, thanks for the answers.
I know what I'm doing since I'm a Java programmer ;) As I wrote, I tried it first with the proprietary Java and then with OpenJDK. The crash log is identical (except for the first lines where it says which Java version and vm is used).
And as I wrote (and as is visible from the crash log) the problem isn't java but the native libraries delievered with SpiralKnights.
By the way, the spiral configuration file on linux is in a subfolder of ~/.java .
Good to know that you know what you're doing (why didn't you write something like that FIRST? ;)), that eliminates about 99% of the possibilities including the ones I had in mind when I wrote my last post... and all ideas I still had left... so...
I guess all I can do is recommend you focus on using sun's jre6u26 + webstart for now while you try to fix this (trying around with openjdk I didn't get SK running at all and with sun-jre7 I had to fix some stuff first that might be quite distracting if you already have other problems. jre6u26 was fine out of the box. I had some trouble with the installer-version of the game & "debugging" was sort of messy there. That was some SK updates ago, but I'd guess jre6 / webstart should still be least problematical).
Also good luck!
Thank you, but I don't think I'll try it anymore. It is most likely a problem between fglrx and lwjgl. And the radeon driver refuses to work, not because of the graphics card (which is supported) but because it claims there are no monitors at all and there's no way to tell it that there is one and which one it is.
Anyway, so I think I'll have to keep booting Windows to play it.
Damn you, AMD!
I can only imagine the chaos when the 7000s hit the market.
Wait, what, so now is it X / the whole proprietary-driver-thing or just SK? I don't really get where the problem is, so here's just some random ideas in case you're ever in the mood to try around again:
- Make sure the modeline SK tries to choose is available (if it tries to force one that isn't supported by the xserver, the messages you get *look* sort of as if it couldn't find a monitor), maybe check xorg.log if it got rejected
- Disable / enable fullscreen by editing the SK settings file, try different resolutions
- Try without compositing / misc other features enabled...
- I think some of those cards need KMS set up *exactly* in the right way to deal with some situations, so maybe check your grub kernel line for vga settings that don't belong there any more, mkinitcpio for modules to include at boot time and stuff... the prerequisites for the setup here kept changing so fast for a while now, it's easy to miss something between kernel & video driver updates ;).
- Run SK in its own xserver without a window manager or anything (xinit)
- Not a good solution, but theoretically SK should run in wine.
- Maybe try another monitor cable (dvi / analog / hdmi...), those graphics drivers can be quite stubborn when they get bad info from a "smart" monitor that thinks it's a TV at the moment (or possibly a toaster or something). God I hate those EDID's things, that's such a huge step back from just "hitting your monitor if the picture sucks". xD
Try updating your java. As said here: Technical problems? Read this first!
I'm not sure where the settings file is kept on Linux, although I am a Linux user myself. I surprised that they left that out of that thread.