Author Topic: Schildkrötenformation [7DRL 2016]  (Read 24071 times)

Nogoth

  • Newcomer
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Schildkrötenformation [7DRL 2016]
« Reply #15 on: March 12, 2016, 02:46:19 PM »
This is getting better and better...

AgingMinotaur:
Your exception indicates that you do not have the required java version 8. I am using Windows to develop so I only tested the Oracle JRE 1.8.0_74.

Avagart:
Would you mind checking that your graphics driver supports OpenGL 3.1 using the OpenGL Extension Viewer?

I won't mind of course if this is to much trouble. Not your job to debug my program after all...

I might be able to get away with OpenGL 3.0, I will investigate.

Avagart

  • 7DRL Reviewer
  • Rogueliker
  • *
  • Posts: 567
  • Karma: +0/-0
    • View Profile
Re: Schildkrötenformation [7DRL 2016]
« Reply #16 on: March 12, 2016, 03:26:14 PM »
I tried to use this program, but it doesn't work for me. During installation warning window with 'this program needs windows nt' message appears. During loading extensions wiever freezes. I have Windows 7 Ultimate 32-bit. But I'm aware that my graphic (old, not identify-able (lol, but it's true) Intel HD doesn't support OpenGL if it is newer technology.

I will check if Schildkrötenformation would works on my PC later.

Nogoth

  • Newcomer
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Schildkrötenformation [7DRL 2016]
« Reply #17 on: March 12, 2016, 04:50:38 PM »
Tested it on Windows 7, 64Bit with a 980Ti. Works great...
This is making debugging very frustrating ^^

Tilded

  • Newcomer
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: Schildkrötenformation [7DRL 2016]
« Reply #18 on: March 12, 2016, 05:25:23 PM »
OSX 10.11.3, 2015 Macbook Pro

When I try opening the Schildkroetenformation executable, I get:
Code: [Select]
Last login: Sat Mar 12 09:20:59 on ttys001
Note-book:~ Tilded$ /Users/Tilded/Downloads/Schildkroetenformation/bin/Schildkroetenformation ; exit;
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.lwjgl.system.Library.loadSystem(Library.java:97)
at org.lwjgl.system.Library.<clinit>(Library.java:48)
at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:56)
at org.lwjgl.system.libffi.Closure.<clinit>(Closure.java:57)
at de.uni_passau.fim.seibt.engine.Engine.init(Engine.java:68)
at de.uni_passau.fim.seibt.engine.Engine.run(Engine.java:52)
at schildkroetenformation.Main.main(Main.java:13)
Exception in thread "main" java.lang.NullPointerException
at de.uni_passau.fim.seibt.engine.Engine.run(Engine.java:57)
at schildkroetenformation.Main.main(Main.java:13)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...37 completed.

[Process completed]

« Last Edit: March 12, 2016, 05:26:58 PM by Tilded »

Nogoth

  • Newcomer
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Schildkrötenformation [7DRL 2016]
« Reply #19 on: March 12, 2016, 06:10:54 PM »
That one I can solve I think: Your working directory when starting the game must be the bin folder. Sadly there is no good way to tell the JVM where the native libraries are other than passing a relative path to the directory.
Hope I am not misunderstanding your shell there but it looks to me like you started the game using an absolute path to the shellscript rather than by navigating to the bin directory and starting it with "./Schildkroetenformation".
« Last Edit: March 12, 2016, 06:14:48 PM by Nogoth »

Tilded

  • Newcomer
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: Schildkrötenformation [7DRL 2016]
« Reply #20 on: March 12, 2016, 06:21:58 PM »
Now I get this error:
Code: [Select]
Note-book:bin Tilded$ ./Schildkroetenformation
java.lang.ExceptionInInitializerError
at org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:1248)
at de.uni_passau.fim.seibt.engine.Window.init(Window.java:37)
at de.uni_passau.fim.seibt.engine.Engine.init(Engine.java:83)
at de.uni_passau.fim.seibt.engine.Engine.run(Engine.java:52)
at schildkroetenformation.Main.main(Main.java:13)
Caused by: java.lang.IllegalStateException: GLFW windows may only be created on the main thread and that thread must be the first thread in the process. Please run the JVM with -XstartOnFirstThread. For offscreen rendering, make sure another window toolkit (e.g. AWT or JavaFX) is initialized before GLFW.
at org.lwjgl.glfw.EventLoop$OffScreen.<clinit>(EventLoop.java:39)
... 5 more
Exception in thread "main" java.lang.NullPointerException
at org.lwjgl.system.Checks.checkPointer(Checks.java:100)
at org.lwjgl.glfw.GLFW.glfwDestroyWindow(GLFW.java:1275)
at de.uni_passau.fim.seibt.engine.Window.destroy(Window.java:77)
at de.uni_passau.fim.seibt.engine.Engine.run(Engine.java:57)
at schildkroetenformation.Main.main(Main.java:13)

akeley

  • Rogueliker
  • ***
  • Posts: 348
  • Karma: +0/-0
    • View Profile
Re: Schildkrötenformation [7DRL 2016]
« Reply #21 on: March 12, 2016, 07:37:59 PM »
Tried the new version, it freezes on the start screen (there`s some gfx and words START/QUIT).

Strange, because my system is similar to yours - Win 8.1 64x, 780 Ti with new-ish drivers.

Avagart

  • 7DRL Reviewer
  • Rogueliker
  • *
  • Posts: 567
  • Karma: +0/-0
    • View Profile
Re: Schildkrötenformation [7DRL 2016]
« Reply #22 on: March 12, 2016, 07:46:27 PM »
Also doesn't work on Win10 x64, Radeon R9380X with newest drivers...

Nogoth

  • Newcomer
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Schildkrötenformation [7DRL 2016]
« Reply #23 on: March 12, 2016, 07:59:20 PM »
You have to select things with Up/Down + Enter in the start screen. There should be a visual difference (around the words) between having Start/Quit selected. Or is it not responding at all akeley?

Tilded: Can you try starting the shellscript with the environment variable "JAVA_OPTS" set to "-XstartOnFirstThread"? Don't know how that error could come about, Engine.run() is called directly from the main() method. Might be that the jre on the Mac does something weird necessitating that JVM switch.

And thanks for trying Avagart..
I suppose LWJGL is a lot less robust than I thought.

akeley

  • Rogueliker
  • ***
  • Posts: 348
  • Karma: +0/-0
    • View Profile
Re: Schildkrötenformation [7DRL 2016]
« Reply #24 on: March 12, 2016, 08:08:05 PM »
A-ha! I thought for some reason the game is entirely mouse driven. Works fine now!

Seems like a cool game too..though bit busy now, will have to play more later.

What does "Schildkröten" stand for anyway?

Nogoth

  • Newcomer
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Schildkrötenformation [7DRL 2016]
« Reply #25 on: March 12, 2016, 08:47:22 PM »
Schildkrötenformation is the german word for tortoise formation. Quite the beautifull example of german word craftsmanship.
For a more visual explanation of the tortoise formation refer to this.

AgingMinotaur

  • Rogueliker
  • ***
  • Posts: 805
  • Karma: +2/-0
  • Original Discriminating Buffalo Man
    • View Profile
    • Land of Strangers
Re: Schildkrötenformation [7DRL 2016]
« Reply #26 on: March 12, 2016, 08:52:47 PM »
"Schildkrötenformation" is indeed a beautiful word, and an extra fitting term for the Roman defensive position since "Schildkröte" literally means "shield-toad".

AgingMinotaur:
Your exception indicates that you do not have the required java version 8. I am using Windows to develop so I only tested the Oracle JRE 1.8.0_74.
That makes sense. I'm using the free java version (icedtea) that comes with Debian. There are ways to install Sun Java, though, maybe I'll get around to test it again soon-ish.

As always,
Minotaruos
This matir, as laborintus, Dedalus hous, hath many halkes and hurnes ... wyndynges and wrynkelynges.

Nogoth

  • Newcomer
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Schildkrötenformation [7DRL 2016]
« Reply #27 on: March 12, 2016, 09:16:38 PM »
I made some more gifs showing off the additions since the last ones. Barbarians, death and attack animations and the like. Also you can get new recruits by rescuing them from cages (and via another, secret way).




Tilded

  • Newcomer
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: Schildkrötenformation [7DRL 2016]
« Reply #28 on: March 12, 2016, 11:07:51 PM »
Another error: The targeted version of OS X does not support OpenGL 3.0 or 3.1. My computer seems to support OpenGL 4.1. Does that mean I'd have to download version 3.1 to run the game?

Nogoth

  • Newcomer
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Schildkrötenformation [7DRL 2016]
« Reply #29 on: March 13, 2016, 09:43:38 AM »
Hey,

kind of a catch 22 there. I requested a low version of OpenGL so as many people as possible can play it... however OSX seems to prevent the usage of a version that old even if the graphics card could handle it.
I think what I will do is request a newer version (3.3 Core Profile with forward compatibility). A lot of older hardware won't run it but I think the graphics cards > 2010 will have less problems with it.

I won't be online (holidays :)) for the next few days so here is a summary:

Get the game here or here if the first version does not work.

If you can run the game:

- Choose Start/Quit using Up/Down + Enter in the start screen.
- 12345 choose the formation, Q/E rotate it, Left click stabs in the direction the romans are facing (any direction, not just Up/Down/Left/Right).
- The romans have a shield in front of them that will stop the barbarians.
- Get new guys from cages or from another source ;)
- Find the golden eagle (some of your guys will surround it) and slay all barbarians to win.

If you can not:

- The working directory when running the game must be the 'bin' folder.
- Make sure you have Java 8 installed (most recent update is best) and that it is accessible from your console. It has to be in your path or the JAVA_HOME system variable must be set.
- Make sure your graphics driver supports at least OpenGL 3.1 and your operating system is not preventing apps from using it (OSX :( )
- See this post for how to get the console to stay open if you are on Windows.
- Good luck? Sorry...

As I said, after a bit of a 7DRL cooldown period I will work on ways to make the game more compatible with different OS/OpenGL versions.