Slick Forums

Discuss the Slick 2D Library
It is currently Wed Jun 19, 2013 8:51 am

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Slick Applet on GameJolt
PostPosted: Tue Nov 24, 2009 11:01 am 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1317
Location: Italy
On Tutorial Page About Applets on Wiki i've found a tutorial about create an applet with Slick.
Tutorial works great.. but, there is always a but :D, i'm not able to turn my applet working on local to working with gamejolt.

Any ideas?

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 24, 2009 1:32 pm 
Offline
Game Developer
User avatar

Joined: Sun Nov 12, 2006 8:40 pm
Posts: 578
theres already a number of forum posts on how to get slick applets working with gamejolt, just search the forum for "gamejolt", theres at least 3-4 posts which should contain all the info you need to get your applet working on gamejolt.

first step is get your applet working as a normal applet without gamejolt, then just plug those values into the gamejolt's applet upload process, post here if you run into any problems.


Top
 Profile  
 
PostPosted: Tue Nov 24, 2009 2:29 pm 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1317
Location: Italy
Solved, at last :D
thanks to kappa :D

here the procedure:

A) offline work: follow great tutorial about slick applet, on our wiki:

http://slick.cokeandcode.com/wiki/doku. ... nvironment

B) online work: go to http://gamejolt.com and make an account :D

1) follow this simple screenshots:

Image

- select as game file: lwjgl_util_applet.jar and gameclass: org.lwjgl.util.applet.AppletLoader

- set game parameters as shown into screenshot

- upload all jars that you need. Be aware that you want only in archive string following jars:

Image

Your html will be generated from GameJolt as follow:

Code:
<applet code="org.lwjgl.util.applet.AppletLoader" archive="lwjgl_util_applet.jar,lzma.jar" codebase="/data/games/1134/files/" width="300" height="300">
         <param name="al_title" value="MyGame">
         <param name="al_main" value="org.newdawn.slick.AppletGameContainer">
         <param name="al_logo" value="appletlogo.png">
         <param name="al_progressbar" value="appletprogress.gif">
         <param name="al_jars" value="slick.jar, mygame.jar, lwjgl.jar.pack.lzma, jinput.jar.pack.lzma, lwjgl_util.jar.pack.lzma">
         <param name="al_windows" value="windows_natives.jar.lzma">
         <!-- Main game class is here! -->
         <param name="game" value="org.myorg.mygame.MyGame">
         <param name="al_linux" value="linux_natives.jar.lzma">
         <param name="al_prepend_host" value="false">
         <param name="al_mac" value="macosx_natives.jar.lzma">
         <param name="al_solaris" value="solaris_natives.jar.lzma">
      <p>You need Java installed to play this game. <br> You may use the button below to get it.</p>
      <a href="http://java.com/download" onclick="window.open( this.href ); return false">
         <img src="http://java.com/en/img/everywhere/getjava_lg.gif" alt="Get Java" style="border-style: none">
      </a>

</applet>


and Results is here:

http://gamejolt.com/online/games/other/ ... test/1134/

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 24, 2009 6:11 pm 
Offline

Joined: Mon Jun 01, 2009 11:45 pm
Posts: 2
Hey, man. WOuld you be able to post this on Game Jolt as well? Might be a nice resource!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 24, 2009 11:51 pm 
Offline
Regular

Joined: Sun Oct 11, 2009 8:53 pm
Posts: 219
i have problem,
my only big problem is that my Game is load from a .BAT file
that has this code inside:
Code:
java -Djava.library.path=lib/native;lib/slick.jar;lib/lwjgl.jar -jar Azora4.jar
pause


how can i make my game work Game Jolt?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 25, 2009 1:00 am 
Offline
Game Developer
User avatar

Joined: Sun Nov 12, 2006 8:40 pm
Posts: 578
waltobc6, read the wiki entry on how to get slick applets working (see link in first post), you won't be using the bat file for your applet, instead you'll be specifying parameters in html and using lwjgl_util_applet.jar to install the native files onto computers when the applet is run.

another way you can package your game for gamejolt is make it a downloadable game instead of an applet, this way you just put the needed stuff in a zip files and upload as a downloadable game.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 25, 2009 1:25 am 
Offline
Regular

Joined: Sun Oct 11, 2009 8:53 pm
Posts: 219
kappa wrote:
waltobc6, read the wiki entry on how to get slick applets working (see link in first post), you won't be using the bat file for your applet, instead you'll be specifying parameters in html and using lwjgl_util_applet.jar to install the native files onto computers when the applet is run.

another way you can package your game for gamejolt is make it a downloadable game instead of an applet, this way you just put the needed stuff in a zip files and upload as a downloadable game.



i us NetBeans cuz i perfer it.
my problem is:
i got "data" folder which has all the XML and the Images.
but i cant get my game load the "data" folder from the Jar him self
only when the "data" folder is in the same folder as my game Jar.

whats wrong?

second problem

i uploaded to gamejolt my game (with the data in the JAR)
and i dont know why but its reading the data, my game JAR only reading the "data" folder when its hosted by server... dono why, but in my computer when i clicked on it it game me errors of files missing in "data" folder.
ANY WAY i got an error when i load the game, somthing with the XML i have in the game... again, in my computer the game work perfect.
here is the code of the error:
Code:
security: This certificate does not have AIA extension
security: This certificate does not have AIA extension
security: Use OCSP setting from certificate
network: Connecting http://ocsp.thawte.com/ with proxy=DIRECT
network: Connecting http://ocsp.thawte.com:80/ with proxy=DIRECT
security: Certificate validation succeeded using CRL
security: Certificate validation succeeded using OCSP
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment permanent certificate store
Loading: net.java.games.input.DirectAndRawInputEnvironmentPlugin
Wed Nov 25 05:39:53 IST 2009 INFO:Found 0 controllers
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/javax.xml.parsers.DocumentBuilderFactory with proxy=DIRECT
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/javax.xml.parsers.DocumentBuilderFactory with cookie "wp-settings-time-20=1258301609; wp-settings-1=m0%3Do%26m1%3Do%26m2%3Do%26m3%3Do%26m4%3Do%26m5%3Do%26m6%3Do%26m7%3Do%26m8%3Do%26editor%3Dhtml%26urlbutton%3Durlpost%26galfile%3D1; wp-settings-time-1=1258322395; wordpress_test_cookie=WP+Cookie+check"
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/javax.xml.parsers.DocumentBuilderFactory with proxy=DIRECT
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/javax.xml.parsers.DocumentBuilderFactory with cookie "wp-settings-time-20=1258301609; wp-settings-1=m0%3Do%26m1%3Do%26m2%3Do%26m3%3Do%26m4%3Do%26m5%3Do%26m6%3Do%26m7%3Do%26m8%3Do%26editor%3Dhtml%26urlbutton%3Durlpost%26galfile%3D1; wp-settings-time-1=1258322395; wordpress_test_cookie=WP+Cookie+check"
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/org.xml.sax.driver with proxy=DIRECT
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/org.xml.sax.driver with cookie "wp-settings-time-20=1258301609; wp-settings-1=m0%3Do%26m1%3Do%26m2%3Do%26m3%3Do%26m4%3Do%26m5%3Do%26m6%3Do%26m7%3Do%26m8%3Do%26editor%3Dhtml%26urlbutton%3Durlpost%26galfile%3D1; wp-settings-time-1=1258322395; wordpress_test_cookie=WP+Cookie+check"
java.security.AccessControlException: access denied (java.io.FilePermission data\xml\character.xml read)
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkRead(Unknown Source)
   at java.io.FileInputStream.<init>(Unknown Source)
   at java.io.FileInputStream.<init>(Unknown Source)
   at java.io.FileReader.<init>(Unknown Source)
   at xml.Charxml.main(Charxml.java:54)
   at character.Character.<init>(Character.java:50)
   at state.Game.init(Game.java:90)
   at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:164)
   at org.newdawn.slick.AppletGameContainer$Container.initApplet(AppletGameContainer.java:272)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.initGL(AppletGameContainer.java:229)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:216)
   at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:92)
java.security.AccessControlException: access denied (java.io.FilePermission .\data\images\skills\bubble.png read)
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkRead(Unknown Source)
   at java.io.File.exists(Unknown Source)
   at org.newdawn.slick.util.FileSystemLocation.getResourceAsStream(FileSystemLocation.java:52)
   at org.newdawn.slick.util.ResourceLoader.getResourceAsStream(ResourceLoader.java:61)
   at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:169)
   at org.newdawn.slick.Image.<init>(Image.java:189)
   at org.newdawn.slick.Image.<init>(Image.java:165)
   at org.newdawn.slick.Image.<init>(Image.java:153)
   at org.newdawn.slick.Image.<init>(Image.java:131)
   at character.SkillTree.<init>(SkillTree.java:148)
   at character.Character.<init>(Character.java:67)
   at state.Game.init(Game.java:90)
   at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:164)
   at org.newdawn.slick.AppletGameContainer$Container.initApplet(AppletGameContainer.java:272)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.initGL(AppletGameContainer.java:229)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:216)
   at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:92)
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/javax.xml.parsers.DocumentBuilderFactory with proxy=DIRECT
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/javax.xml.parsers.DocumentBuilderFactory with cookie "wp-settings-time-20=1258301609; wp-settings-1=m0%3Do%26m1%3Do%26m2%3Do%26m3%3Do%26m4%3Do%26m5%3Do%26m6%3Do%26m7%3Do%26m8%3Do%26editor%3Dhtml%26urlbutton%3Durlpost%26galfile%3D1; wp-settings-time-1=1258322395; wordpress_test_cookie=WP+Cookie+check"
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/javax.xml.parsers.DocumentBuilderFactory with proxy=DIRECT
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/javax.xml.parsers.DocumentBuilderFactory with cookie "wp-settings-time-20=1258301609; wp-settings-1=m0%3Do%26m1%3Do%26m2%3Do%26m3%3Do%26m4%3Do%26m5%3Do%26m6%3Do%26m7%3Do%26m8%3Do%26editor%3Dhtml%26urlbutton%3Durlpost%26galfile%3D1; wp-settings-time-1=1258322395; wordpress_test_cookie=WP+Cookie+check"
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/javax.xml.parsers.DocumentBuilderFactory with proxy=DIRECT
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/javax.xml.parsers.DocumentBuilderFactory with cookie "wp-settings-time-20=1258301609; wp-settings-1=m0%3Do%26m1%3Do%26m2%3Do%26m3%3Do%26m4%3Do%26m5%3Do%26m6%3Do%26m7%3Do%26m8%3Do%26editor%3Dhtml%26urlbutton%3Durlpost%26galfile%3D1; wp-settings-time-1=1258322395; wordpress_test_cookie=WP+Cookie+check"
java.lang.NumberFormatException: For input string: ""
   at java.lang.NumberFormatException.forInputString(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at character.Character.<init>(Character.java:134)
   at state.Game.init(Game.java:90)
   at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:164)
   at org.newdawn.slick.AppletGameContainer$Container.initApplet(AppletGameContainer.java:272)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.initGL(AppletGameContainer.java:229)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:216)
   at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:92)
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/org.xml.sax.driver with proxy=DIRECT
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/org.xml.sax.driver with cookie "wp-settings-time-20=1258301609; wp-settings-1=m0%3Do%26m1%3Do%26m2%3Do%26m3%3Do%26m4%3Do%26m5%3Do%26m6%3Do%26m7%3Do%26m8%3Do%26editor%3Dhtml%26urlbutton%3Durlpost%26galfile%3D1; wp-settings-time-1=1258322395; wordpress_test_cookie=WP+Cookie+check"
java.security.AccessControlException: access denied (java.io.FilePermission data\xml\monsters\2.xml read)
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkRead(Unknown Source)
   at java.io.FileInputStream.<init>(Unknown Source)
   at java.io.FileInputStream.<init>(Unknown Source)
   at java.io.FileReader.<init>(Unknown Source)
   at xml.Monsterxml.main(Monsterxml.java:86)
   at monster.Monster.<init>(Monster.java:41)
   at state.Game.getMobsSet(Game.java:522)
   at state.Game.init(Game.java:97)
   at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:164)
   at org.newdawn.slick.AppletGameContainer$Container.initApplet(AppletGameContainer.java:272)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.initGL(AppletGameContainer.java:229)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:216)
   at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:92)
java.security.AccessControlException: access denied (java.io.FilePermission . read)
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkRead(Unknown Source)
   at java.io.File.exists(Unknown Source)
   at org.newdawn.slick.util.FileSystemLocation.getResourceAsStream(FileSystemLocation.java:52)
   at org.newdawn.slick.util.ResourceLoader.getResourceAsStream(ResourceLoader.java:61)
   at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:169)
   at org.newdawn.slick.Image.<init>(Image.java:189)
   at org.newdawn.slick.SpriteSheet.<init>(SpriteSheet.java:129)
   at org.newdawn.slick.SpriteSheet.<init>(SpriteSheet.java:115)
   at org.newdawn.slick.SpriteSheet.<init>(SpriteSheet.java:102)
   at monster.Monster.<init>(Monster.java:70)
   at state.Game.getMobsSet(Game.java:522)
   at state.Game.init(Game.java:97)
   at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:164)
   at org.newdawn.slick.AppletGameContainer$Container.initApplet(AppletGameContainer.java:272)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.initGL(AppletGameContainer.java:229)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:216)
   at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:92)
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/org.xml.sax.driver with proxy=DIRECT
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/org.xml.sax.driver with cookie "wp-settings-time-20=1258301609; wp-settings-1=m0%3Do%26m1%3Do%26m2%3Do%26m3%3Do%26m4%3Do%26m5%3Do%26m6%3Do%26m7%3Do%26m8%3Do%26editor%3Dhtml%26urlbutton%3Durlpost%26galfile%3D1; wp-settings-time-1=1258322395; wordpress_test_cookie=WP+Cookie+check"
java.security.AccessControlException: access denied (java.io.FilePermission data\xml\monsters\3.xml read)
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkRead(Unknown Source)
   at java.io.FileInputStream.<init>(Unknown Source)
   at java.io.FileInputStream.<init>(Unknown Source)
   at java.io.FileReader.<init>(Unknown Source)
   at xml.Monsterxml.main(Monsterxml.java:86)
   at monster.Monster.<init>(Monster.java:41)
   at state.Game.getMobsSet(Game.java:522)
   at state.Game.init(Game.java:97)
   at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:164)
   at org.newdawn.slick.AppletGameContainer$Container.initApplet(AppletGameContainer.java:272)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.initGL(AppletGameContainer.java:229)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:216)
   at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:92)
java.security.AccessControlException: access denied (java.io.FilePermission . read)
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkRead(Unknown Source)
   at java.io.File.exists(Unknown Source)
   at org.newdawn.slick.util.FileSystemLocation.getResourceAsStream(FileSystemLocation.java:52)
   at org.newdawn.slick.util.ResourceLoader.getResourceAsStream(ResourceLoader.java:61)
   at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:169)
   at org.newdawn.slick.Image.<init>(Image.java:189)
   at org.newdawn.slick.SpriteSheet.<init>(SpriteSheet.java:129)
   at org.newdawn.slick.SpriteSheet.<init>(SpriteSheet.java:115)
   at org.newdawn.slick.SpriteSheet.<init>(SpriteSheet.java:102)
   at monster.Monster.<init>(Monster.java:70)
   at state.Game.getMobsSet(Game.java:522)
   at state.Game.init(Game.java:97)
   at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:164)
   at org.newdawn.slick.AppletGameContainer$Container.initApplet(AppletGameContainer.java:272)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.initGL(AppletGameContainer.java:229)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:216)
   at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:92)
java.security.AccessControlException: access denied (java.io.FilePermission .\data\images\interface\NpcDialog.png read)
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkRead(Unknown Source)
   at java.io.File.exists(Unknown Source)
   at org.newdawn.slick.util.FileSystemLocation.getResourceAsStream(FileSystemLocation.java:52)
   at org.newdawn.slick.util.ResourceLoader.getResourceAsStream(ResourceLoader.java:61)
   at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:169)
   at org.newdawn.slick.Image.<init>(Image.java:189)
   at org.newdawn.slick.Image.<init>(Image.java:165)
   at org.newdawn.slick.Image.<init>(Image.java:153)
   at org.newdawn.slick.Image.<init>(Image.java:131)
   at monster.Npc.<init>(Npc.java:152)
   at state.Game.init(Game.java:111)
   at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:164)
   at org.newdawn.slick.AppletGameContainer$Container.initApplet(AppletGameContainer.java:272)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.initGL(AppletGameContainer.java:229)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:216)
   at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:92)
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/org.xml.sax.driver with proxy=DIRECT
network: Connecting http://gamerhost.net/talh/WEB_ROOT/mygamelib/META-INF/services/org.xml.sax.driver with cookie "wp-settings-time-20=1258301609; wp-settings-1=m0%3Do%26m1%3Do%26m2%3Do%26m3%3Do%26m4%3Do%26m5%3Do%26m6%3Do%26m7%3Do%26m8%3Do%26editor%3Dhtml%26urlbutton%3Durlpost%26galfile%3D1; wp-settings-time-1=1258322395; wordpress_test_cookie=WP+Cookie+check"
java.security.AccessControlException: access denied (java.io.FilePermission data\xml\battle.xml read)
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkRead(Unknown Source)
   at java.io.FileInputStream.<init>(Unknown Source)
   at java.io.FileInputStream.<init>(Unknown Source)
   at java.io.FileReader.<init>(Unknown Source)
   at xml.Battlexml.main(Battlexml.java:128)
   at state.Battle.init(Battle.java:76)
   at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:164)
   at org.newdawn.slick.AppletGameContainer$Container.initApplet(AppletGameContainer.java:272)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.initGL(AppletGameContainer.java:229)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:216)
   at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:92)
Wed Nov 25 05:39:56 IST 2009 ERROR:For input string: ""
java.lang.NumberFormatException: For input string: ""
   at java.lang.NumberFormatException.forInputString(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at state.Battle.init(Battle.java:78)
   at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:164)
   at org.newdawn.slick.AppletGameContainer$Container.initApplet(AppletGameContainer.java:272)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.initGL(AppletGameContainer.java:229)
   at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:216)
   at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:92)


i hope some one can help me :<


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 25, 2009 6:32 am 
Offline
Regular

Joined: Mon Feb 23, 2009 11:32 am
Posts: 113
did you use the whole classpath thing to get inside the jar, or just read a file.

if the latter, then it is trying to access the useres harddrive, and it hten needs to be signed.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 25, 2009 10:39 am 
Offline
Regular

Joined: Sun Oct 11, 2009 8:53 pm
Posts: 219
h3ckboy wrote:
did you use the whole classpath thing to get inside the jar, or just read a file.

if the latter, then it is trying to access the useres harddrive, and it hten needs to be signed.


didnt understand you... :<

edit:
if i understand you,
ur asking how i called the XML files?
i got class in my game that controle and read each xml,
class for the characters xml,
class for the monsters xml,
class for the skills xml,
and npc and quests.

every class call the xml in this way:
xr.parse( new InputSource(new FileReader( "data/xml/character.xml" )) );


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 25, 2009 4:13 pm 
Offline
Regular

Joined: Mon Feb 23, 2009 11:32 am
Posts: 113
this might help you I dunno, never done that much work with xml

http://www.cejug.org/display/~htmfilho/ ... +in+itself


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 25, 2009 9:37 pm 
Offline
Regular

Joined: Sun Oct 11, 2009 8:53 pm
Posts: 219
h3ckboy wrote:
this might help you I dunno, never done that much work with xml

http://www.cejug.org/display/~htmfilho/ ... +in+itself


i get error:
"non-static variable this cannot be referenced from a static context"


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 27, 2009 3:56 pm 
Offline
Regular

Joined: Mon Feb 23, 2009 11:32 am
Posts: 113
hmm, well, are you calling it from a static context ;)

if so, then just call it from a non-static context lol....


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 13, 2011 9:34 pm 
Offline

Joined: Sun Mar 27, 2011 6:44 pm
Posts: 87
Location: Finland
I just want to thanks Gornova81 for exelent tutorial how to relese slick gama at Game jolt. Everything went right with first try.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group