Slick Forums

Discuss the Slick 2D Library
It is currently Fri May 24, 2013 7:30 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: "font.fnt not found"
PostPosted: Fri Aug 10, 2012 10:22 am 
Offline

Joined: Fri Aug 10, 2012 10:15 am
Posts: 3
I'm having the following error spew from my IDE:
Code:
java.io.IOException: while parsing Theme XML: file:/C:/Users/Archelaus/IdeaProjects/ProjectTMO/out/production/ProjectTMO/com/reddit/Fedelaus/projecttmo/resources/ProjectTMO.xml
   at de.matthiasmann.twl.theme.ThemeManager.parseThemeFile(ThemeManager.java:276)
   at de.matthiasmann.twl.theme.ThemeManager.createThemeManager(ThemeManager.java:190)
   at de.matthiasmann.twl.theme.ThemeManager.createThemeManager(ThemeManager.java:155)
   at com.reddit.Fedelaus.projecttmo.ProjectTMO.initGUI(ProjectTMO.java:65)
   at com.reddit.Fedelaus.projecttmo.ProjectTMO.init(ProjectTMO.java:41)
   at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:390)
   at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314)
   at com.reddit.Fedelaus.projecttmo.Game.main(Game.java:18)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: java.io.FileNotFoundException: C:\Users\Archelaus\IdeaProjects\ProjectTMO\out\production\ProjectTMO\com\reddit\Fedelaus\projecttmo\resources\font.fnt (The system cannot find the file specified)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.<init>(FileInputStream.java:138)
   at java.io.FileInputStream.<init>(FileInputStream.java:97)
   at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
   at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
   at java.net.URL.openStream(URL.java:1035)
   at de.matthiasmann.twl.utils.XMLParser.<init>(XMLParser.java:123)
   at de.matthiasmann.twl.renderer.lwjgl.BitmapFont.loadFont(BitmapFont.java:285)
   at de.matthiasmann.twl.renderer.lwjgl.LWJGLCacheContext.loadBitmapFont(LWJGLCacheContext.java:123)
   at de.matthiasmann.twl.renderer.lwjgl.LWJGLRenderer.loadFont(LWJGLRenderer.java:358)
   at de.matthiasmann.twl.theme.ThemeManager.parseFont(ThemeManager.java:427)
   at de.matthiasmann.twl.theme.ThemeManager.parseThemeFile(ThemeManager.java:310)
   at de.matthiasmann.twl.theme.ThemeManager.parseThemeFile(ThemeManager.java:271)
   ... 12 more


http://i46.tinypic.com/2isk3zo.png
http://i45.tinypic.com/2hrhatz.png

http://pastebin.com/6jtu3i7n
pastebin of my XML file itself.

Two pictures showing my xml file, which cannot find the font.fnt file, being right next to the file.

It reports it cannot find the correct file, when the file is there in my IDE and in explorer. What am I doing wrong here?


Top
 Profile  
 
 Post subject: Re: "font.fnt not found"
PostPosted: Fri Aug 10, 2012 6:53 pm 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1173
The pastebin link is invalid, but otherwise it looks ok. Maybe something is blocking the access to that file?

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
 Post subject: Re: "font.fnt not found"
PostPosted: Fri Aug 10, 2012 9:06 pm 
Offline

Joined: Fri Aug 10, 2012 10:15 am
Posts: 3
Apologies, here is a correct one.
http://pastie.org/4451869
It's pretty much default at the current moment


Top
 Profile  
 
 Post subject: Re: "font.fnt not found"
PostPosted: Fri Aug 10, 2012 9:35 pm 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1173
Maybe Idea ignored .fnt files and did not copy them into the out/ folder?

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
 Post subject: Re: "font.fnt not found"
PostPosted: Fri Aug 10, 2012 10:31 pm 
Offline

Joined: Fri Aug 10, 2012 10:15 am
Posts: 3
Ahah, it doesn't appear in the out directory, I do apologize for not thinking of checking there. I figured because it wasn't on my IntelliJ ignore list it would get placed there. Do you know where it specifies to ignore this file? I tried File > Settings > Version Control > Ignored Files and all I have there are workspace.xml and an .iws file.


Top
 Profile  
 
 Post subject: Re: "font.fnt not found"
PostPosted: Sat Aug 11, 2012 6:53 am 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1173
As I never used that IDE - no. But the setting you mentioned is most likely the wrong one - as this is not a version control issue.

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
 Post subject: Re: "font.fnt not found"
PostPosted: Sat Aug 11, 2012 5:52 pm 
Offline
Site Admin

Joined: Mon Dec 08, 2008 2:17 pm
Posts: 140
Have a look at the compiler settings


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

All times are UTC


Who is online

Users browsing this forum: No registered users 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:  
Powered by phpBB® Forum Software © phpBB Group