Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
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  
  Pojahns Game Engine 1.0 + Map Pack #1  (Read 3748 times)
0 Members and 1 Guest are viewing this topic.
Offline P0jahn

Senior Member


Projects: 3



« Posted 2013-08-14 02:22:47 »


Forewords:
Pojahn's Game Engine is an open source API developed by Pojahn Moradi which allows you to create Super Meat Boy-style maps without much hassle.
This release contains Pojahns Game Engine 1.0 and Map Pack #1 which includes seven stages.

Usage:
Open Pojahns Game Engine.jar to launch the game. If you dont want to use the default controller, create a new one.
When you are satisfied with your controller, press Load Stage.
Select one of the jar files located in the stage directory and hit Ok. Now comes another window which is completely optional.
This is if you want to to view a replay rather than playing the stage.

The Default Controller:
Left:      Left Arrow
Right:        Right Arrow
Down(unused): Down Arrow
Up(jump):     Space
Pause:      Esc
Suicide:      Q
Special1:     Non-Num 1
Special2:     Non-Num 2
Special3:     Non-Num 3

Future:
The next release by me will be another map pack; Map Pack #2.

Later, a new version of Pojahns Game Engine will be released allowing you to play multiplayer(offline) as well as full documentation and usage of the engine.

Furthermore, if this engine gets popular, online play will be implemented.

Finally, if we get people complaining about not being able to create maps due to lack of java knowledge, some sort of XML parser may be engendered.

Media:

<a href="http://www.youtube.com/v/s8wv4g14TPs?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/s8wv4g14TPs?version=3&amp;hl=en_US&amp;start=</a>

<a href="http://www.youtube.com/v/1ysInyBYWDY?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/1ysInyBYWDY?version=3&amp;hl=en_US&amp;start=</a>

<a href="http://www.youtube.com/v/KpUCG1gbtpw?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/KpUCG1gbtpw?version=3&amp;hl=en_US&amp;start=</a>

Download:

(Make sure you have Java 7 installed)

Map Pack #1:
https://docs.google.com/file/d/0B0PIBO1KrmRaZnFRUGZuNVVyNlU/edit?usp=sharing
Mirror:
http://www.mediafire.com/download/49m9g17pn06zw3p/Map_Pack_%231.zip

Pojahns Game Engine 1.0 Windows:
https://docs.google.com/file/d/0B0PIBO1KrmRaZ2Myamp4ZE5ObFE/edit?usp=sharing

Pojahns Game Engine 1.0 Mac(untested):
https://docs.google.com/file/d/0B0PIBO1KrmRaWm04NW9oTnY1ODA/edit?usp=sharing

Pojahns Game Engine 1.0 Linux(untested):
https://docs.google.com/file/d/0B0PIBO1KrmRadlhZaG1ZRXhINlk/edit?usp=sharing
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Radirius Software Developer


« Reply #1 - Posted 2013-08-14 02:26:22 »

SOOO Excited to try! Pics have me sold!

But...
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
Exception in thread "main" java.lang.UnsupportedClassVersionError: ui/MainClass : Unsupported major.minor version 51.0
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
   at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: ui.MainClass. Program will exit.


I run linux, and this usually happens to some jars. I don't know what it is, but this is just so you know.

Online BurntPizza
« Reply #2 - Posted 2013-08-14 02:28:51 »

SOOO Excited to try! Pics have me sold!

But...
1  
Exception in thread "main" java.lang.UnsupportedClassVersionError: ui/MainClass : Unsupported major.minor version 51.0


I run linux, and this usually happens to some jars. I don't know what it is, but this is just so you know.

It means your java version is incompatible with his jar. Do you have the latest version (Java 7)?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline P0jahn

Senior Member


Projects: 3



« Reply #3 - Posted 2013-08-14 02:33:51 »

Yeah, I think your java is outdated. If it was the native files that was the problems(that the only differences between the rar files), it would crash when loading a stage instead of main class.
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Radirius Software Developer


« Reply #4 - Posted 2013-08-14 02:34:48 »

Weird that other jars would run... They were J7 as well. But alas, Ill reinstall J7.

Offline P0jahn

Senior Member


Projects: 3



« Reply #5 - Posted 2013-08-14 02:39:17 »

You could also try these two files:
http://www.speedyshare.com/FNBbe/Linux-Test.rar
Online BurntPizza
« Reply #6 - Posted 2013-08-14 02:40:15 »

For more info: StackOverflow question.

Also, P0jahn, what version did you compile for?
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Radirius Software Developer


« Reply #7 - Posted 2013-08-14 02:48:35 »

Nope. I just reinstalled it, checked, and found that 51 corresponds to J7 (which I got and reinstalled), and it still did not work. What do I do?

Offline P0jahn

Senior Member


Projects: 3



« Reply #8 - Posted 2013-08-14 03:01:00 »

Also, P0jahn, what version did you compile for?
I dont now :/ I edited Pojahns Game Engine.jar for Windows by replacing all the windows related DLL files with the Linux's .SO files.
My class files are compiled on my pc for my os(windows). But afaik, it does not matter what the class files are compiled to(or if such thing even exists), its the jvm that matters. Have I missed something?
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Radirius Software Developer


« Reply #9 - Posted 2013-08-14 03:12:20 »

You could also try these two files:
http://www.speedyshare.com/FNBbe/Linux-Test.rar
Just use mediafire. I do not want to use their installer and get trolled with ads.

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

Senior Member


Projects: 3



« Reply #10 - Posted 2013-08-14 03:17:55 »

You dont need an installer. Check the link at the top, its a direct link Smiley

http://www.speedyshare.com/FNBbe/download/Linux-Test.rar
Online BurntPizza
« Reply #11 - Posted 2013-08-14 03:19:29 »

Also, P0jahn, what version did you compile for?
I dont now :/ I edited Pojahns Game Engine.jar for Windows by replacing all the windows related DLL files with the Linux's .SO files.
My class files are compiled on my pc for my os(windows). But afaik, it does not matter what the class files are compiled to(or if such thing even exists), its the jvm that matters. Have I missed something?

Cross-version compiling
Google for more.
Offline Troncoso

JGO Coder


Medals: 20



« Reply #12 - Posted 2013-08-14 03:21:56 »

How are you installing Java anyway? If you are using Linux, then generally, you'll have to set the new version as default before it'll actually use it.

update-alternatives --config java
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Radirius Software Developer


« Reply #13 - Posted 2013-08-14 03:25:16 »

Wow. It worked. But there are no loads for me to go to!

Offline P0jahn

Senior Member


Projects: 3



« Reply #14 - Posted 2013-08-14 03:50:41 »

Exactly what worked? And what do you mean by "loads"?
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Radirius Software Developer


« Reply #15 - Posted 2013-08-14 04:15:15 »

sorry, Stages. I downloaded your map pack, and it did not work. Apparently, rars don't work. But I just cannot get rars to work, so no opening it...

Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 128
Projects: 4
Exp: 3 years



« Reply #16 - Posted 2013-08-14 07:44:31 »

You can't open a rar?
http://www.rarlab.com/download.htm Smiley
Offline P0jahn

Senior Member


Projects: 3



« Reply #17 - Posted 2013-08-14 14:10:35 »

To avoid downloading winrar, I have updated the links so that they are now zip files.
Offline SHC
« Reply #18 - Posted 2013-08-15 05:32:23 »

@wesley.laferriere

If you are on ubuntu, you can install RAR addin for Archiver.

1  
sudo apt-get install unrar

It requires you to setup the
ubuntu multiverse
repository which is probably added already.

Online gouessej
« Reply #19 - Posted 2013-08-15 12:18:26 »

Wow. It worked. But there are no loads for me to go to!
You can use OpenJDK 1.7. I think OpenJDK 1.6 is still used by default under some distros (Ubuntu 12.04?) but not mine (Mageia Linux 2).

Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Radirius Software Developer


« Reply #20 - Posted 2013-08-15 21:34:22 »

Oh, It opens now. I just tried to download the map pack, but it was SOOO big! It crashed my computer it took so long! And please...
USE MEDIA FIRE!!!
Seriously! It makes 0 sense to use google drive! Just use mediafire! It is faster, less laggy, and all around has more storage (I think)!

Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #21 - Posted 2013-08-15 22:29:29 »

Seriously your computer cant handle downloading 173 MB of data? It has a problem then. Also, Google drive is just as viable an option as any other file hosting site like dropbox. In fact, dropbox is better for indie games because you can get a free account with direct links and fast downloads. Mediafire is starting to get meh. Most of the time the site glitches out and I have to spend 2 minutes constantly refreshing the download page before it finally starts downloading.

Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Radirius Software Developer


« Reply #22 - Posted 2013-08-15 23:03:31 »

Really  Stare? I have never, and I mean never, had a problem with Mediafire! Only with dropbox! Also, I beg to differ on direct links. You can just right click on the Download button, copy url, and then make a link! I did it here, in the download section. Hover over it, and it shows it links to mediafire, and still direct download!

Also, my computer downloads many many things really fast. When I get games, it usually takes 10 seconds. And those seem to be bigger! But whatever. Just not google drive. Google's servers are just slow sometimes (not to say that they are not doing the best job at search engines in the world!). I would even go for dropbox, just not google drive.

Also, google drive is not as good.
See here

Offline P0jahn

Senior Member


Projects: 3



« Reply #23 - Posted 2013-08-15 23:36:16 »

Google Drive seems safe(i e my files wont be auto-removed after a while) and its really fast. I always exceed 5mb/s when downloading from it.
Anyway, alternative links added(media fire).
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Radirius Software Developer


« Reply #24 - Posted 2013-08-16 00:08:24 »

Thanks. That went faster.
When I unzipped it, I put the two folders (res, and stages) in the stages folder. For replays, I just put in hello world into the text box and pressed open. It gave me a dialogue box about scores, then java just stopped.

1  
2  
3  
4  
5  
6  
7  
8  
9  
java.lang.NullPointerException
   at game.essentials.Utilities.getFiles(Utilities.java:444)
   at game.essentials.Utilities.loadDataImages(Utilities.java:223)
   at climb.ClimbMe.init(ClimbMe.java:47)
   at game.core.Engine.init(Engine.java:234)
   at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:390)
   at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314)
   at game.essentials.GameLauncher.launchGame(GameLauncher.java:35)
   at ui.StartFrame$1$1.run(StartFrame.java:104)

Offline P0jahn

Senior Member


Projects: 3



« Reply #25 - Posted 2013-08-16 00:34:15 »

The game tried to load the images for the main character but the files was not found so it crashed.
You should not put the map pack content in the stage folder. Extract them into the games root directory(Pojahns Game Engine).
For replay, press cancel, dont open anything.
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Radirius Software Developer


« Reply #26 - Posted 2013-08-16 00:40:06 »

Thanks! It works now!
Anyways, I played it, and it is pretty good! I love the music. Just one problem. The character disappears sometimes, and turns invisible. He mostly flickers, but sometimes, I cannot even see him!
Solid game anyways though. Bravo! I apoligize for the long time getting it set up!

Offline P0jahn

Senior Member


Projects: 3



« Reply #27 - Posted 2013-08-16 01:19:07 »

Thanks! Glad you liked it.  Smiley
Thats an odd problem you got. I have tried it on multiple computers(all Windows) and never experienced such bug.
The problem may be lie within your computer or by LWJGL. I dont know and its impossible for me to tell. Try updating your graphic drivers.
Offline P0jahn

Senior Member


Projects: 3



« Reply #28 - Posted 2013-08-25 01:59:28 »

Added three videos. Did anyone else try it? Please comment!

1. What did you like/hate?
2. Would you ever develop at least one stage if you thought the API was simple enough?
Pages: [1]
  ignore  |  Print  
 
 

 
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!