Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  Battle for the Solar System: Tactics  (Read 4044 times)
0 Members and 1 Guest are viewing this topic.
Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Posted 2014-01-01 08:56:26 »

Happy New Year, all!

Just joined so that I could share a game that I'm working on - a turn based strategy type game, set in space. It's only at v0.1 at the moment, but things have gone quite smoothly so far. At the moment, there aren't any real mission, just some training sections and randomly generated scenarios, which involve blasting down the enemy units.

I'v got a load of features to add to it in the coming months, including a campaign (the details of which I'm still trying to work out - the game's based on a novel trilogy I wrote, so have to fit things into that).

Screens:









You can get the game here:

http://www.battleforthesolarsystem.com/games/

and the gameplay manual can be found here:

http://www.battleforthesolarsystem.com/games/tacticsManual.html

It's only been tested on Linux so far, but the game uses LWJGL and OpenGL, so it should run on Windows and Mac OS, as well.

Will post updates as they come along!
Offline EmanP

Junior Member


Projects: 2
Exp: 3 years


Satisfaction never guaranteed.


« Reply #1 - Posted 2014-01-01 20:27:21 »

Uh oh! UnsatisfiedLinkError for the lwjgl library!

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
C:\Documents and Settings\Owner>java -jar C:\DOCUME~1\Owner\LOCALS~1\Temp\Rar$DR
06.766\TBFTSS-0.1.140101\TBFTSS.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: C
:\Documents and Settings\Owner\natives\lwjgl.dll
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.load0(Unknown Source)
        at java.lang.System.load(Unknown Source)
        at org.lwjgl.Sys$1.run(Sys.java:70)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
        at org.lwjgl.Sys.loadLibrary(Sys.java:95)
        at org.lwjgl.Sys.<clinit>(Sys.java:112)
        at org.lwjgl.opengl.Display.<clinit>(Display.java:132)
        at com.parallelrealities.tbftss.GameWindow.<init>(Unknown Source)
        at com.parallelrealities.tbftss.Main.main(Unknown Source)


Try testing it on other computers before launch :-)

Signed- EmanP
Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Reply #2 - Posted 2014-01-02 07:16:48 »

Hmm, I don't have Windows, so I could only test on Linux.

According to the LWGJL, you need only use:

1  
System.setProperty("org.lwjgl.librarypath", new File("natives").getAbsolutePath());


to get the natives to work. Are you running the jar from the extract directory, as it looks like you're running it from elsewhere. Does it work if you cd into the actual extract dir..?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline quew8

JGO Coder


Medals: 29



« Reply #3 - Posted 2014-01-02 13:54:15 »

I believe that if you do the following, it should work no matter where you run it from:

1  
2  
3  
System.setProperty(
    "org.lwjgl.librarypath",
    new File(getClass().getProtectionDomain().getCodeSource().getLocation().toURI()).getParent() + "natives");


I don't claim that this will work immediately. I haven't tested it so it might need a file separator in there somewhere or it might need to be converted to an absolute path or something like that. I can't be bothered to look up the docs for all those methods.
Offline Longarmx
« Reply #4 - Posted 2014-01-02 14:08:59 »

Looks cool! Very good graphics wise for a v0.1 release. Do you do the art yourself? Also, the particle effects look good.

Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Reply #5 - Posted 2014-01-02 15:19:23 »

Thanks!

I do the graphics myself, yes. I'm not an artist at all, so I'm glad they're at least functional.

As for further game development - right now, I'm working on ideas for the campaign and what it could involve. I don't want to have a linear set of missions, would rather have the player need to secure and keep star systems safe, while pursuing major goals. The fighters will be able to level up (better accuracy, better dodge) and the player will be able to purchase more (if they run out of money, they will need to use Darts until they can afford other fighters again).

The campaign will start to show up in version 0.3 or so, but might still break saves every now again as things change. Hopefully not often, though.

Oh, and I'm working on improving the AI, as I know that that's quite ropey. Something I realised when I was making the game was that, unlike ground-based TBS games, there is no cover and no line of sight. Since we're out in space, you can see everything. I was going to put in a limited sight range, but didn't feel it worked in practice.

If anyone wants tips on how I drew the fighters, I did the following (in Gimp):

  • Drew an outline of the general appearance
  • Filled in the major components - cockpit, wings, etc, with different colours and shades
  • Used a few gradient fills as needed
  • Used the burn and dodge tools to add highlights and lowlights
  • Tweaked the edges as needed
  • Drew a black outline around the fighter

I then continued to make tweaks as need when I looked at the sprite in game, such as darkening or lightening parts. Not too much, though. Another tip is to look at screenshots of arcade games from the 80s and 90s (and games on the SNES and Megadrive), and zoom in a lot to check out the shading and forms. Can seem daunting at first, but once you get the general principal, it's not too bad. Well, I say that, but I'm not making animated sprites, so that might be a whole other ballgame! Wink
Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Reply #6 - Posted 2014-01-02 21:20:12 »

I believe that if you do the following, it should work no matter where you run it from:

1  
2  
3  
System.setProperty(
    "org.lwjgl.librarypath",
    new File(getClass().getProtectionDomain().getCodeSource().getLocation().toURI()).getParent() + "natives");


I don't claim that this will work immediately. I haven't tested it so it might need a file separator in there somewhere or it might need to be converted to an absolute path or something like that. I can't be bothered to look up the docs for all those methods.

Thanks for this, dude! Seems to work fine in Eclipse. Only had to add a / before the natives. So,

1  
2  
3  
System.setProperty(
    "org.lwjgl.librarypath",
    new File(getClass().getProtectionDomain().getCodeSource().getLocation().toURI()).getParent() + "/natives");


Will see how it goes on my next release. If all fails, I'll just write some shell scripts to handle the launching Wink
Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Reply #7 - Posted 2014-01-05 16:41:03 »

I've just uploaded a new build of the game. This isn't quite 0.2 yet, but it's getting there.

New features include:

  • The start of the campaign (using test star systems)
  • Improvements to the enemy AI
  • A new mission type - Patrol
  • Difficulty balancing

Those who are interested can grab it from here:

http://www.battleforthesolarsystem.com/games/TBFTSS-0.1.140105.zip
Offline ShuKen

Junior Member


Medals: 4



« Reply #8 - Posted 2014-01-07 04:17:18 »

Problems over here (win7 64bits)

23:20:36 [main] ERROR com.parallelrealities.tbftss.Main - Unhandled error occurred. Game exiting.
org.lwjgl.LWJGLException: Failed to create window
   at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:218) ~[TBFTSS.jar:na]
   at org.lwjgl.opengl.Display.createWindow(Display.java:303) ~[TBFTSS.jar:na]
   at org.lwjgl.opengl.Display.create(Display.java:845) ~[TBFTSS.jar:na]
   at org.lwjgl.opengl.Display.create(Display.java:754) ~[TBFTSS.jar:na]
   at org.lwjgl.opengl.Display.create(Display.java:736) ~[TBFTSS.jar:na]
   at com.parallelrealities.tbftss.GameWindow.<init>(Unknown Source) ~[TBFTSS.jar:na]
   at com.parallelrealities.tbftss.Main.<init>(Unknown Source) [TBFTSS.jar:na]
   at com.parallelrealities.tbftss.Main.main(Unknown Source) [TBFTSS.jar:na]
Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Reply #9 - Posted 2014-01-07 16:42:54 »

Hmm, that's a bit of an odd one. Clueless

At first, I thought it might be because the game was trying to get into fullscreen, but the line I use for creating the window is as simple as:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
public GameWindow() throws LWJGLException
{
   Display.setTitle("TBFTSS: Tactics");
   Display.setDisplayMode(new DisplayMode(Constants.SCREEN_WIDTH, Constants.SCREEN_HEIGHT));
   Display.create();

   initVersion();

   initOpenGL();
}


Then again, maybe I should try and force fullscreen false in there. Runs in windowed mode on Linux, but perhaps Windows is a different story. Could also be the DLLs..?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Reply #10 - Posted 2014-01-08 10:10:43 »

Decided to install the latest version of LWJGL (had been using an older version before) and tested on Windows 7. Game loads up and works fine, now. Will post an update this weekend (will be v0.2! woooooo!)  Grin
Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Reply #11 - Posted 2014-01-10 07:51:03 »

Not quite the weekend, but almost! Anyway, here's the v0.2 download!

http://www.battleforthesolarsystem.com/games/TBFTSS-0.2.140109.zip

Fingers crossed it will run without problems on all machines (certainly runs fine on Linux). The game is still using some placeholder data, such as the star systems (which will be replaced with those from the books), but the actual combat sequences are playable. I'm cracking on with the v0.3 version now.

If you get any errors about serialization, you'll sadly have to delete your save file (tbftss.ser). That'll all settle down closer to v1.0.
Offline Gornova

Senior Member


Medals: 1
Projects: 3



« Reply #12 - Posted 2014-01-10 14:06:05 »

works fine with windows 7 and java 6.

my 2 cents:
- use a launch4j or similar programs to build exe => noobs find scary jars (windows noobs btw)
- i prefer select with left mouse button and then right mouse button to make action => is possible ?
- maybe a minimap/radar in left/right corner?
- for noobs could be useful tooltip over buttons
- what kind of library are you using for interface? seems good
- I like to see when enemy moves Cheesy

good work so far!

Blog | Last game Drone Defense 0.2 | In progress Drone Defense
Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Reply #13 - Posted 2014-01-11 09:21:32 »

Thanks for the comment, Gornova! I'll definitely consider some of those. The mini radar is a good idea, as are the tool tips for a battle icons (which I'll make prettier in later versions).

The interface is something I created myself. The widgets are simply some text with a background and some highlights. Whenever the player clicks the screen, I check to see if they've clicked a widget and invoke its function Smiley

Now working on set missions, and the ability to buy and sell units!
Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Reply #14 - Posted 2014-01-14 21:50:50 »

Thought I'd post a little update - some screenshots from the upcoming v0.3. Still using the test systems right now, but planning on getting the actual star systems from the novels into the game from v0.5 onward:


The galactic map, showing a campaign mission active in the Alpha system. At the top, we can see (L-R) the amount of money the player has, the current time (year, day of year, hour), the number of active missions and alerts, the number of star systems belonging the allies, the number of star systems that have gone rogue, the number that have been invaded by the Pandorans, and the total number of units the player has.


The star system view, showing the units stationed there. The short description of the campaign mission is shown, and the player can buy, sell, and transfer units. Patrol and Start Mission are ghosted until the player has selected at least one unit to deploy.


Buying units. You can have up to 48 units stationed in a star system, and cannot purchase more than that. Darts are always free, which is why they cost nothing. I figured this was important in case the player runs out of money and cannot fight the war. Darts are, however, rather crap.


A random event in the Beta system, either an attack on civilians there, or general sweep mission. Random events expire after 48 hours and the player is penalised for not dealing with it (by way of a system stability decrease). Campaign don't currently expire.
Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Reply #15 - Posted 2014-01-27 10:38:00 »

v0.3 is now out.

New features in this version include:

  • Ability to buy, sell, and transfer units
  • Anti-terror missions, where you need to protect civilians
  • Mini radar on the battle screen
  • A bunch of other tweaks
  • Linux shell script and Windows bat file for launching the game

You can download it from here - http://www.battleforthesolarsystem.com/games/TBFTSS-0.3.140126.zip

I'm moving onto v0.4 now, and have finally settled on how I want the game to play out. Things will hopefully start to stabilize in the next couple of versions, so people won't have to delete their save files with each version bump!
Offline Gornova

Senior Member


Medals: 1
Projects: 3



« Reply #16 - Posted 2014-01-28 21:04:34 »

is not working with Java 7 :

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/parallelr
ealities/tbftss/Main : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: com.parallelrealities.tbftss.Main. Program will e
xit.

Blog | Last game Drone Defense 0.2 | In progress Drone Defense
Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Reply #17 - Posted 2014-01-28 23:31:24 »

Hmm, that's odd. I've actually compiled this version with OpenJDK 7:

1  
2  
3  
4  
5  
steve@reddwarf ~ $ java -version
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4-0ubuntu0.12.04.2)
OpenJDK Server VM (build 24.45-b08, mixed mode)
steve@reddwarf ~ $


Was on 6 beforehand. I upgraded when I wasn't able to run anyone else's projects from here Clueless

Are you on Windows, Mac, or Linux..?
Offline Gornova

Senior Member


Medals: 1
Projects: 3



« Reply #18 - Posted 2014-01-28 23:36:27 »

windows xp with Java 7:

java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)

Blog | Last game Drone Defense 0.2 | In progress Drone Defense
Offline HeroesGraveDev

JGO Kernel


Medals: 238
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #19 - Posted 2014-01-28 23:43:29 »

That's strange.

I've only ever seen that error happen when you try and run Java 7 applications with Java 6.

Offline Gornova

Senior Member


Medals: 1
Projects: 3



« Reply #20 - Posted 2014-01-29 10:51:21 »

I see in your MANIFEST.MF this entry:

Created-By: 1.7.0_51-b00 (Oracle Corporation)

maybe could be a problem ?

Blog | Last game Drone Defense 0.2 | In progress Drone Defense
Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Reply #21 - Posted 2014-01-29 15:47:08 »

Apparently, b00 is the build number, which means that's build 0. Not sure that should be the case.

I'll take another look and see what I can find out.

In the meantime, for v0.4 I'm working on updating the combat from turn-based to pauseable real time, instead. I'm not sure that turn based works, as the combat is quite straight forward. I'll see what happens, though. It might end up that the game is too hard in real time Wink
Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Reply #22 - Posted 2014-02-01 18:52:44 »

I've been playing around this week with making the battles realtime. However, I don't think it works too well, and can see it becoming far too frantic. With a limited number of units, you'd have to be constantly pausing the game, and keeping an eye on how they were doing.

If anyone is interested, you can see a video of how it would play here:

http://www.battleforthesolarsystem.com/games/realtime.avi

I was thinking that maybe the battles could be a mixture of turn based and real time, but that still presented the issue of trying to manage the units over a large playfield. So, looks like the game will be turn based. I'll likely ditch the level-up mechanic, though.

Incidentally, it's the 5th anniversary of the first book's release, and so to celebrate, I've reduced the prices of the books on Amazon for a limited time. So anyone interested in reading them can grab them for cheap! You can get more info here:

http://www.battleforthesolarsystem.com/news/149-bftss-trilogy-for-just-0-99-each.html

Right, time to crack on with v0.4. Hopefully this one won't suffer from that weird version error when I post it Wink
Offline Slyth2727
« Reply #23 - Posted 2014-02-01 18:59:53 »

At first glance this looks like fun!
I think you should add a parallax background and maybe put in some solar system images randomly throughout the place.

Was I before Chuang Tzu who dreamt about being a butterfly, or am I now a butterfly who dreams about being Chuang Tzu?
Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Reply #24 - Posted 2014-02-01 23:38:59 »

I'm going to be adding in some starfields on the battle screen at some point, as well as planet based on the star system you're currently in. The background of the star systems will also be different. But that'll come later, when the gameplay is more nailed down Wink
Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Reply #25 - Posted 2014-02-02 17:22:39 »

A new build has been posted:

http://www.battleforthesolarsystem.com/games/TBFTSS-0.3.140202.zip

Compiled with Java 7 (1.7.0_51 - OpenJDK). I'm curious to see if people are able to run this version, or if it's going to fall over again. There are Linux and Windows shell scripts to run.

Unzip, and use either tbftss.sh or tbftss.bat to run the game.
Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Reply #26 - Posted 2014-02-02 18:01:55 »

There's also a (short) video here for people to watch, if they're interested:

http://www.battleforthesolarsystem.com/games/TBFTSS01.mp4
Offline Gornova

Senior Member


Medals: 1
Projects: 3



« Reply #27 - Posted 2014-02-02 18:23:38 »

still this problem:

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/parallelr
ealities/tbftss/Main : Unsupported major.minor version 51.0

with

java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)

btw: oracle/sun jre!

Blog | Last game Drone Defense 0.2 | In progress Drone Defense
Offline StephenJSweeney

Junior Member


Medals: 1
Projects: 3



« Reply #28 - Posted 2014-02-02 18:38:02 »

That's really, really weird  Clueless

I'll have to give it a go on a few other systems. Any one else experiencing the same thing? Maybe it's the version of Java 7 that's been shipped to Ubuntu. Perhaps its knackered.
Offline Slyth2727
« Reply #29 - Posted 2014-02-02 20:03:41 »

I'm on Arch, lemme test it out. I'll be right back.

Alright it ran fine. I have Java 7 installed with fglrx drivers Arch 64 bit. It crashed when I finished the second tutorial mission but that's a bug in the code I assume. Ran smoothly other than that. I like it!

Was I before Chuang Tzu who dreamt about being a butterfly, or am I now a butterfly who dreams about being Chuang Tzu?
Pages: [1] 2
  ignore  |  Print  
 
 

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

ctomni231 (37 views)
2014-07-18 06:55:21

Zero Volt (35 views)
2014-07-17 23:47:54

danieldean (28 views)
2014-07-17 23:41:23

MustardPeter (31 views)
2014-07-16 23:30:00

Cero (46 views)
2014-07-16 00:42:17

Riven (47 views)
2014-07-14 18:02:53

OpenGLShaders (36 views)
2014-07-14 16:23:47

Riven (36 views)
2014-07-14 11:51:35

quew8 (32 views)
2014-07-13 13:57:52

SHC (69 views)
2014-07-12 17:50:04
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!