JL235
JGO Ninja    Posts: 660 Medals: 21
|
 |
«
on:
2010-02-12 10:40:08 » |
|
It's been a while, but I've finally gotten around to finishing another title for my site: Pip The Pea! Quite a simple game. Your in control of a small pea (called Pip) who you can guide using the mouse. You need to collect Diamonds, but as you do Ghosts appear. Hit a Ghost and you die. Left click to use a Stomp that scares away all nearby Ghosts, but you only have a certain amount. Collecting Diamonds will get you new Stomps. Link!Enjoy!
|
|
|
|
|
|
JL235
JGO Ninja    Posts: 660 Medals: 21
|
 |
«
Reply #2 on:
2010-02-12 13:01:18 » |
|
It's an applet.
After googling that error is sometimes given as an alternative to a classNotFoundException. I don't know what's causing it because lots of people have played it. My only guess can be it failed to correctly download in some way (i.e. timed out half way through). In which case trying again should solve the issue.
You could also try upgrading your JVM (I've had plenty of JVM bugs reported to me).
However could you also please post the full Java version that is stated in the Java console (i.e. for me it's: Java Plug-in 1.6.0_17, Using JRE version 1.6.0_17-b04 Java HotSpot(TM) Client VM). Although a runtime comes with the JDK, it isn't always used by default.
|
|
|
|
Games published by our own members! Go get 'em!
|
|
DzzD
|
 |
«
Reply #3 on:
2010-02-12 13:13:03 » |
|
works well until I got the following ( when clicking the blue diamond ) : Java Plug-in 1.6.0_18 Utilisation de la version JRE 1.6.0_18-ea-b04 Java HotSpot(TM) Client VM Répertoire d'accueil de l'utilisateur = C:\Users\DzzD
---------------------------------------------------- ----------------------------------------------------
Exception in thread "Thread-16" java.lang.IllegalArgumentException: Width cannot be less or equal to 0, width: 0 at com.studiofortress.sf.structure.Actor.setWidth(Actor.java:337) at com.studiofortress.sf.structure.Actor.setSize(Actor.java:325) at com.studiofortress.pip.game.Stomp.act(Stomp.java:48) at com.studiofortress.sf.structure.World$2.iterate(World.java:85) at com.studiofortress.sf.structure.World$2.iterate(World.java:81) at com.studiofortress.sf.util.collections.CachingHashMap.iterateKeys(CachingHashMap.java:161) at com.studiofortress.sf.util.collections.CachingHashSet.iterate(CachingHashSet.java:42) at com.studiofortress.sf.structure.SortedActors.iterate(SortedActors.java:43) at com.studiofortress.sf.structure.World.actActors(World.java:752) at com.studiofortress.sf.structure.World.act(World.java:742) at com.studiofortress.pip.game.Board.act(Board.java:178) at com.studiofortress.sf.structure.World$2.iterate(World.java:85) at com.studiofortress.sf.structure.World$2.iterate(World.java:81) at com.studiofortress.sf.util.collections.CachingHashMap.iterateKeys(CachingHashMap.java:161) at com.studiofortress.sf.util.collections.CachingHashSet.iterate(CachingHashSet.java:42) at com.studiofortress.sf.structure.SortedActors.iterate(SortedActors.java:43) at com.studiofortress.sf.structure.World.actActors(World.java:752) at com.studiofortress.sf.structure.World.act(World.java:742) at com.studiofortress.sf.structure.MainLoop.runFrame(MainLoop.java:205) at com.studiofortress.sf.structure.MainLoop.run(MainLoop.java:174) at com.studiofortress.sf.util.structure.NonBlockingMainLoop.access$001(NonBlockingMainLoop.java:14) at com.studiofortress.sf.util.structure.NonBlockingMainLoop$1.run(NonBlockingMainLoop.java:31)
also dont know if it is normal but I got two black wide border (at the right and top of the applet) where ghost cannot come and where I can safely rest as long as I wanted.
|
|
|
|
JL235
JGO Ninja    Posts: 660 Medals: 21
|
 |
«
Reply #4 on:
2010-02-12 13:57:28 » |
|
works well until I got the following ( when clicking the blue diamond ) Solved. When you click it actually makes him stomp that scares away ghosts, but the sprite used is scaled. That starting scale must have been set to less then 0.5. Now I have it max between the size and 1. :also dont know if it is normal but I got two black wide border (at the right and top of the applet) where ghost cannot come and where I can safely rest as long as I wanted.
Nope, that's not normal. Doesn't appear for me in FireFox, what browser are you using?
|
|
|
|
steveyO
Sr. Member   Posts: 308 Medals: 4
|
 |
«
Reply #5 on:
2010-02-12 14:10:47 » |
|
Java Plug-in 1.6.0_14 Using JRE version 1.6.0_14-b08 Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\Administrator
Tried 3 times, same error each time. The reason I asked is WebStart hasn't worked on my laptop since I upgraded to 1.6 (some caching issue), although never had a problem with applets before. So this may be related (if the applet is reading from the cache, which it appears to be doing!!).. Other than that, no idea.. Good luck!
|
|
|
|
DzzD
|
 |
«
Reply #6 on:
2010-02-12 14:30:52 » |
|
Solved. When you click it actually makes him stomp that scares away ghosts, but the sprite used is scaled. That starting scale must have been set to less then 0.5. Now I have it max between the size and 1. Nope, that's not normal. Doesn't appear for me in FireFox, what browser are you using?
IE8 inded ! seems that the game canvas is offseted left/bottom (about 20/30 pixels)
|
|
|
|
JL235
JGO Ninja    Posts: 660 Medals: 21
|
 |
«
Reply #7 on:
2010-02-12 14:33:18 » |
|
try going to Control Panel -> Java -> Advanced Tab -> expand Java Plug-in -> and 'Enable the next-generation Java Plug-in' should be checked, try unchecking it. If it's not checked, then try checking it and running the game again. But I'm pretty sure it should be checked.
That might get my applet running, but I doubt it will fix webstart.
|
|
|
|
JL235
JGO Ninja    Posts: 660 Medals: 21
|
 |
«
Reply #8 on:
2010-02-12 14:35:56 » |
|
IE8 inded !
seems that the game canvas is offseted left/bottom (about 20/30 pixels)
Can you post a screenshot? It doesn't occur in IE8 for me either (with and without compatability view).
|
|
|
|
DzzD
|
 |
«
Reply #9 on:
2010-02-12 14:44:09 » |
|
try going to Control Panel -> Java -> Advanced Tab -> expand Java Plug-in -> and 'Enable the next-generation Java Plug-in' should be checked, try unchecking it. If it's not checked, then try checking it and running the game again. But I'm pretty sure it should be checked.
That might get my applet running, but I doubt it will fix webstart.
what a strange solution  but no that is not the issue, the checkbox was already checked, I try uncheked & checked => same issue, anyway it wouldn't have be a good solution also note that all is ok until the main gamescreen appear (after clicking "Play") see screenshot below
|
|
|
|
Games published by our own members! Go get 'em!
|
|
JL235
JGO Ninja    Posts: 660 Medals: 21
|
 |
«
Reply #10 on:
2010-02-12 14:56:16 » |
|
ah sorry, that solution was actually aimed at SteveyO. Sometime around Java 6 update 14 (maybe an earlier version, maybe later) they changed the applet launcher so that it allows the use of JNLP files. Checking it off will cause the applet tag to ignore the JNLP file and in this case it will be launched using the JNLPAppletLauncher.
|
|
|
|
steveyO
Sr. Member   Posts: 308 Medals: 4
|
 |
«
Reply #11 on:
2010-02-12 15:30:12 » |
|
Ok, that worked, the 2nd time.. (First time, it crashed firefox, didn't manage to catch the exception on the console, went off quick).. Nice smooth graphics btw.. ran ok until when I died, then couldnt close the browser tab in Firefox... (Had to kill firefox via task manager after some pissing about). However this could be my machine, normal applets work with no bother, but not too sure on JOGL..
|
|
|
|
Alan_W
JGO Ninja    Posts: 732 Medals: 8
Java tames rock!
|
 |
«
Reply #12 on:
2010-02-12 15:35:31 » |
|
Worked beautifully: Windows 7: IE 8 Also worked in Firefox 3.6
|
Time flies like a bird. Fruit flies like a banana.
|
|
|
JL235
JGO Ninja    Posts: 660 Medals: 21
|
 |
«
Reply #13 on:
2010-02-12 19:00:58 » |
|
I've just altered the game, although I haven't made it too easy. Main changes are that scores are now a multiple of 100 (to make them look more impressive) and using a Stomp now kills Ghosts! So you can last for longer.
|
|
|
|
Ranger
Sr. Member   Posts: 338
|
 |
«
Reply #14 on:
2010-02-12 20:22:18 » |
|
That was fun! Great gfx. I noticed the menu buttons would sometimes not register a click.
|
|
|
|
|
teletubo
« League of Dukes » Sr. Member      Posts: 430 Medals: 15
|
 |
«
Reply #15 on:
2010-02-12 21:51:23 » |
|
Very nice , ran totally fine here (Win XP, Firefox, Java 5).
And I noticed the same issue with menu clicks , sometimes I had to insist to do something .
Oh, and please, a Pause button ! sometimes I see my Messenger windows blinking and it just make me nervous not being able to open it .
|
|
|
|
|
JL235
JGO Ninja    Posts: 660 Medals: 21
|
 |
«
Reply #16 on:
2010-02-12 22:08:03 » |
|
Very nice , ran totally fine here (Win XP, Firefox, Java 5).
And I noticed the same issue with menu clicks , sometimes I had to insist to do something .
Oh, and please, a Pause button ! sometimes I see my Messenger windows blinking and it just make me nervous not being able to open it .
It might have to be a pause key, I don't like the idea of adding more stuff on top of the screen. I'll also look into the menu buttons.
|
|
|
|
JL235
JGO Ninja    Posts: 660 Medals: 21
|
 |
«
Reply #17 on:
2010-02-13 13:04:45 » |
|
Menu buttons are fixed, it was due to timing differences between the two control systems I had (they detected mouse clicks just after each other and so were out of sync).
|
|
|
|
CommanderKeith
JGO Wizard     Posts: 1447 Medals: 9
|
 |
«
Reply #18 on:
2010-02-19 14:23:08 » |
|
Very nice, loaded and ran well. I liked the black background on the loading animation... much better than the default white!  FPS must have been high since it ran very smoothly. The graphics were great, and the way it loaded and was presented was very good. The only thing is that it didn't kill the java process when I closed the tab in firefox. I'm using java 6 plugin 2. Great work! Keith
|
|
|
|
JL235
JGO Ninja    Posts: 660 Medals: 21
|
 |
«
Reply #19 on:
2010-02-19 15:20:12 » |
|
FPS must have been high since it ran very smoothly. The graphics were great, and the way it loaded and was presented was very good. The only thing is that it didn't kill the java process when I closed the tab in firefox. I'm using java 6 plugin 2. I'm not to blame for that. FireFox continues to run Java processes for a while after you've closed the tab. If you re-open the tab before the process has been killed then it will re-use it and just call the applets start() method. Static information from the last time it ran is still stored, such as the name you used when submitting highscores (which is usually stored statically in my games). But don't worry, stop() is called on the Applet when the tab is closed so it won't be wasting CPU. But I'm glad you like it! I only did the game quickly to get some new content on the site, but it's become one of the most popular on the site with lots of people asking me to build in more (to make it into a proper full game). Thanks for the feedback.
|
|
|
|
fruitmaze
Full Member   Posts: 153 Medals: 3
|
 |
«
Reply #20 on:
2010-02-22 07:32:02 » |
|
It works smooth on my computer. I enjoyed playing the game. It has nice graphics and it is easy to get started. Also a good idea with the diamonds that can eliminate ghosts.
|
|
|
|
|
|