Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  WIP AppleBean - looking for general input  (Read 6069 times)
0 Members and 1 Guest are viewing this topic.
Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Posted 2012-04-03 02:14:40 »

Hey all! This is the last three weeks work.



I want input about the graphics resolution. I'm not sure what default resolution to go with, and how big the tiles should be for that. Opinions on this please.

Also, just general thoughts.

This is a unit management-thing, kind of like dwarf fortress in the very first stages.

You control with the three mouse-buttons.

Explore yourself Smiley This doesn't do a lot, but it has a lot of code in it (3K lines, which doesn't say a lot at all). That sounds really silly. It's easy to extend now though. I'm still working loads on this.

http://www.javadaemon.com/games/applebean.zip

Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 48
Projects: 4
Exp: 8 years



« Reply #1 - Posted 2012-04-03 03:23:19 »

I think you have deployed with the wrong lwjgl.dll , at least the windows 32 one.
I get a

Quote
Caused by: java.lang.LinkageError: Version mismatch: jar version is '24', native
 library version is '23'
        at org.lwjgl.Sys.<clinit>(Sys.java:118)
        at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
        at org.newdawn.slick.AppGameContainer$1.run(AppGameContainer.java:39)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.newdawn.slick.AppGameContainer.<clinit>(AppGameContainer.java:36)

        at com.javadaemon.applebean.GameMain.main(GameMain.java:107)
        ... 5 more

If I copy the lwjgl.dll from llwjgl-2.8.3, it works. Well... sort of.

then I got this
Quote
768
Tue Apr 03 00:11:16 GMT-03:00 2012 INFO:Slick Build #274
org.newdawn.slick.SlickException: Failed to find value mode: 1366x768 fs=true
        at org.newdawn.slick.AppGameContainer.setDisplayMode(AppGameContainer.ja
va:146)
        at com.javadaemon.applebean.GameMain.main(GameMain.java:109)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)

So I changed the config file to 1024x768 and it worked.

Now about the resolution.... I don't really know what to say. I think it's fine as it is. Or why not letting the player choose resolution  ?

Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #2 - Posted 2012-04-03 03:33:40 »

I think you have deployed with the wrong lwjgl.dll , at least the windows 32 one.
I get a

Quote
Caused by: java.lang.LinkageError: Version mismatch: jar version is '24', native
 library version is '23'
        at org.lwjgl.Sys.<clinit>(Sys.java:118)
        at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
        at org.newdawn.slick.AppGameContainer$1.run(AppGameContainer.java:39)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.newdawn.slick.AppGameContainer.<clinit>(AppGameContainer.java:36)

        at com.javadaemon.applebean.GameMain.main(GameMain.java:107)
        ... 5 more

If I copy the lwjgl.dll from llwjgl-2.8.3, it works. Well... sort of.

then I got this
Quote
768
Tue Apr 03 00:11:16 GMT-03:00 2012 INFO:Slick Build #274
org.newdawn.slick.SlickException: Failed to find value mode: 1366x768 fs=true
        at org.newdawn.slick.AppGameContainer.setDisplayMode(AppGameContainer.ja
va:146)
        at com.javadaemon.applebean.GameMain.main(GameMain.java:109)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)

So I changed the config file to 1024x768 and it worked.

Now about the resolution.... I don't really know what to say. I think it's fine as it is. Or why not letting the player choose resolution  ?


Thank you very much. I have now updated the 32-bit LWJGL, and added the ones for Mac and Linux.
I have also changed the default resolution.

I was more thinking of the tileset. It's very small, but making it 2x the size causes other implications, and just makes it too big. On a big monitor, the current setup may be too small to see properly, and I fear that if the user changes the resolution it runs in, it's be too blurry to enjoy.

I don't want to get too far with the tiles, if I have to redo them all.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Nyhm

Senior Member


Medals: 3
Projects: 1


Island Forge


« Reply #3 - Posted 2012-04-05 18:38:41 »

I haven't been around here for a bit, but I like to scan the Showcase now and then. Certain games just catch my eye (usually with maps, go figure), and AppleBean looks neat!

Sadly, here's what I get in Linux (Ubuntu 10.04 with Sun/Oracle Java 1.6.0_30):

Quote
768
Exception in thread "main" java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
   at java.lang.Runtime.loadLibrary0(Runtime.java:823)
   at java.lang.System.loadLibrary(System.java:1028)
   at org.lwjgl.Sys$1.run(Sys.java:73)
   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:135)
   at org.newdawn.slick.AppGameContainer$1.run(AppGameContainer.java:39)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.newdawn.slick.AppGameContainer.<clinit>(AppGameContainer.java:36)
   at com.javadaemon.applebean.GameMain.main(GameMain.java:107)
   ... 5 more

Where should I place the lwjgl libs (preferably without having to place them in any system directories)? That is, can your application just load them from the current working path? I haven't (yet) worked with Slick2D or lwjgl, so I'm not familiar with how to best deploy them.

I like the direction and look forward to trying it out.

Island Forge: Create Islands with Stories for Others to Explore!
Free-to-Play with Membership and Upgrade options!
Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #4 - Posted 2012-04-06 03:09:07 »

I haven't been around here for a bit, but I like to scan the Showcase now and then. Certain games just catch my eye (usually with maps, go figure), and AppleBean looks neat!

Sadly, here's what I get in Linux (Ubuntu 10.04 with Sun/Oracle Java 1.6.0_30):

Quote
768
Exception in thread "main" java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
   at java.lang.Runtime.loadLibrary0(Runtime.java:823)
   at java.lang.System.loadLibrary(System.java:1028)
   at org.lwjgl.Sys$1.run(Sys.java:73)
   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:135)
   at org.newdawn.slick.AppGameContainer$1.run(AppGameContainer.java:39)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.newdawn.slick.AppGameContainer.<clinit>(AppGameContainer.java:36)
   at com.javadaemon.applebean.GameMain.main(GameMain.java:107)
   ... 5 more

Where should I place the lwjgl libs (preferably without having to place them in any system directories)? That is, can your application just load them from the current working path? I haven't (yet) worked with Slick2D or lwjgl, so I'm not familiar with how to best deploy them.

I like the direction and look forward to trying it out.

Thanks for trying! If you happen to have the natives, they just go in the folder. I've done a lot more work on this, but there are some root-optimizations that needs to be done, which will take forever.  Emo

Offline Nyhm

Senior Member


Medals: 3
Projects: 1


Island Forge


« Reply #5 - Posted 2012-04-06 13:17:01 »

Quote
Thanks for trying! If you happen to have the natives, they just go in the folder. I've done a lot more work on this, but there are some root-optimizations that needs to be done, which will take forever.

I see. I figured the .so files from your zip were the natives I would need (not familiar with Slick2D dependencies, but it's something I want to learn about). Best wishes.

Island Forge: Create Islands with Stories for Others to Explore!
Free-to-Play with Membership and Upgrade options!
Offline maxking1234

Senior Newbie





« Reply #6 - Posted 2012-04-10 22:01:54 »

Did you make the graphics yourself? There great!
Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #7 - Posted 2012-04-11 01:31:56 »

Did you make the graphics yourself? There great!

Yeah, I did. They're silly placeholders  Cheesy

Can't tell sarcasm, though  Clueless

Offline maxking1234

Senior Newbie





« Reply #8 - Posted 2012-04-11 09:33:26 »

Did you make the graphics yourself? There great!

Yeah, I did. They're silly placeholders  Cheesy

Can't tell sarcasm, though  Clueless


No sarcasm. They just look perfect for my game so I wondered if you got them of a website, where I could use them Smiley
Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #9 - Posted 2012-04-11 16:10:09 »

No sarcasm. They just look perfect for my game so I wondered if you got them of a website, where I could use them Smiley

Oh, in that case, thank you very much Smiley
Feel free to take them if you want to. Sadly, these are all I've got.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline maxking1234

Senior Newbie





« Reply #10 - Posted 2012-04-11 17:18:12 »

Thanks. I like the crops especially! Smiley
Offline _Al3x

Senior Member


Medals: 7


Indie Games FTW!


« Reply #11 - Posted 2012-04-11 17:34:00 »

I don't know how to play it, I can select a frog-man and move it around, I also made it go chopping, although nothing happend besides a text saying that it was chopping... So I took the other guy and move it to the top to see if it could explore, but no, he can't, so I clicked on the black... backgound so maybe that way he could discover something, yet again, no. But it did happen something, the game crashed.

I know this is heavely work in progress, but could you add a tutorial just here in the first post, to let know what can be made and how, what does each mouse button, what can you do with the guys, and how to do it and also, a bug list, like the one I said, clicking the right mosue button while having a guy selected (to move it out of the map) crashed the game.

Please don't take any offence, because none was intended. I really wish you could progress on the project and let us know about it!

Keep it up! Smiley

Offline Cruiser

Junior Member


Medals: 1
Projects: 1


Twitter: @totallymorten


« Reply #12 - Posted 2012-04-11 17:46:11 »

Cool, worked nicely on windows 7 with Java 7.

I can see that you are also handling dynamic changes to the calculated path (for example if you set the two green guys on collision course, they actually avoid each other :-)).
Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #13 - Posted 2012-04-11 18:01:06 »

I don't know how to play it, I can select a frog-man and move it around, I also made it go chopping, although nothing happend besides a text saying that it was chopping... So I took the other guy and move it to the top to see if it could explore, but no, he can't, so I clicked on the black... backgound so maybe that way he could discover something, yet again, no. But it did happen something, the game crashed.

I know this is heavely work in progress, but could you add a tutorial just here in the first post, to let know what can be made and how, what does each mouse button, what can you do with the guys, and how to do it and also, a bug list, like the one I said, clicking the right mosue button while having a guy selected (to move it out of the map) crashed the game.

Please don't take any offence, because none was intended. I really wish you could progress on the project and let us know about it!

Keep it up! Smiley

Thank you for trying!

You can select more than one guy if you're holding ctrl. The middle-mouse-button controls the camera. I do see the bug you're describing, and I now fixed it on my local build. I do think I'm done with this though (for now), due to the joys of AI programming.
It's a lot of code just for failsafes, and almost as much of this:
1  
2  
3  
4  
Snip snawp = object.getSnip();
if (snawp != null) {
   // Do stuff
}


If anyone wishes to have a peek, I have released the source code over at my blog.
http://javadaemon.com/index.php?page=blog&id=4

Offline _Al3x

Senior Member


Medals: 7


Indie Games FTW!


« Reply #14 - Posted 2012-04-11 18:04:43 »

Don't give up, it's a hard work, but it gives so much in return.
You gain:
- Experience
- Feedback (plus getting to know people)
- Resources (what you do is yours, and you can reuse it)
- Fun (if you really like to make games that is)
Smiley

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

Pippogeek (39 views)
2014-09-24 16:13:29

Pippogeek (30 views)
2014-09-24 16:12:22

Pippogeek (19 views)
2014-09-24 16:12:06

Grunnt (44 views)
2014-09-23 14:38:19

radar3301 (27 views)
2014-09-21 23:33:17

BurntPizza (63 views)
2014-09-21 02:42:18

BurntPizza (32 views)
2014-09-21 01:30:30

moogie (40 views)
2014-09-21 00:26:15

UprightPath (50 views)
2014-09-20 20:14:06

BurntPizza (54 views)
2014-09-19 03:14:18
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!