Graal Forums  

Go Back   Graal Forums > Development Forums > Level Design
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #46  
Old 05-18-2013, 09:40 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
I created a patched version of this. The fixed Jar and source are in zip below. If anyone has problems with it I'll work on getting it fixed.
Attached Files
File Type: zip NW2PNG 2.1.zip (32.1 KB, 1748 views)
Reply With Quote
  #47  
Old 05-28-2013, 04:26 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by Cubical View Post
I created a patched version of this. The fixed Jar and source are in zip below. If anyone has problems with it I'll work on getting it fixed.
i don't see any source?

HTML Code:
$ ls -alp
total 96
.classpath
.project
.settings/
NW2PNG2.1.jar
bin/
src/
also, could you explain what you did to "patch" the issue where FILENAMECACHE.txt no longer exists?
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you

Last edited by Deas_Voice; 05-28-2013 at 04:36 PM..
Reply With Quote
  #48  
Old 05-28-2013, 04:34 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Dusty already told me I just forgot to edit my post. I thought I had included. I've since reformatted my computer and lost the changes. I could easily redo it but I'm kinda lazy and don't really want to because it works as it currently is. If anyone wants to fix it all i did was make it generate a new FILENAMECACHE.txt in the ./Graal directory that would generate when it opened.
Reply With Quote
  #49  
Old 05-28-2013, 06:33 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by Cubical View Post
Dusty already told me I just forgot to edit my post. I thought I had included. I've since reformatted my computer and lost the changes. I could easily redo it but I'm kinda lazy and don't really want to because it works as it currently is. If anyone wants to fix it all i did was make it generate a new FILENAMECACHE.txt in the ./Graal directory that would generate when it opened.
recreated your changes by using JDGUI and adapting your code to Oracle Java instead of openJDK, which might not work for most people (didn't work for me)

src is available at github, also created a pullrequest to dusty's repo to maintain a centralized place for the code.
Attached Files
File Type: zip NW2PNG2.1.zip (30.5 KB, 1715 views)
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #50  
Old 06-03-2013, 06:51 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Quote:
Originally Posted by Cubical View Post
I created a patched version of this. The fixed Jar and source are in zip below. If anyone has problems with it I'll work on getting it fixed.
Quote:
Originally Posted by Deas_Voice View Post
recreated your changes by using JDGUI and adapting your code to Oracle Java instead of openJDK, which might not work for most people (didn't work for me)

src is available at github, also created a pullrequest to dusty's repo to maintain a centralized place for the code.
Neither of your patches work for me. Cubical's opens, but the process halts at "Generating..." while Deas' java file refuses to open altogether.

Edit: This "Generating..." hang is now happening with Dusty's submissions too.
Reply With Quote
  #51  
Old 06-03-2013, 07:20 PM
cyan3 cyan3 is offline
Registered User
cyan3's Avatar
Join Date: Nov 2005
Location: England
Posts: 2,919
cyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant future
Quote:
Originally Posted by Emera View Post
Neither of your patches work for me. Cubical's opens, but the process halts at "Generating..." while Deas' java file refuses to open altogether.

Edit: This "Generating..." hang is now happening with Dusty's submissions too.
Deas version won't run for me either. I suspect it has something to do with the manifest because it throws this error message when I run it though the terminal:

HTML Code:
no main manifest attribute, in NW2PNG2.1.jar
Edit: The problem was because the manifest doesn't indicate what the main class is and can be easily fixed by adding the text below to the manifest file:

HTML Code:
Class-Path: .
Main-Class: src.org.graalcenter.nw2png.GraphicalNW2PNG

Last edited by cyan3; 06-03-2013 at 07:26 PM.. Reason: .
Reply With Quote
  #52  
Old 06-03-2013, 07:36 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Quote:
Originally Posted by cyan3 View Post
Deas version won't run for me either. I suspect it has something to do with the manifest because it throws this error message when I run it though the terminal:

HTML Code:
no main manifest attribute, in NW2PNG2.1.jar
Edit: The problem was because the manifest doesn't indicate what the main class is and can be easily fixed by adding the text below to the manifest file:

HTML Code:
Class-Path: .
Main-Class: src.org.graalcenter.nw2png.GraphicalNW2PNG
See, when I open the manifest file, those lines are already there.

HTML Code:
Manifest-Version: 1.0
Class-Path: .
Main-Class: src.org.graalcenter.nw2png.GraphicalNW2PNG
This is what I get from my console.

HTML Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Aaron>cd C:\Users\Aaron\Downloads

C:\Users\Aaron\Downloads>java -Xmx1024m -jar mapimg\map\NW2PNG2.1.jar
no main manifest attribute, in mapimg\map\NW2PNG2.1.jar

C:\Users\Aaron\Downloads>
Which is exactly the same, haha.
Reply With Quote
  #53  
Old 06-03-2013, 07:38 PM
cyan3 cyan3 is offline
Registered User
cyan3's Avatar
Join Date: Nov 2005
Location: England
Posts: 2,919
cyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant future
Quote:
Originally Posted by Emera View Post
See, when I open the manifest file, those lines are already there.

HTML Code:
Manifest-Version: 1.0
Class-Path: .
Main-Class: src.org.graalcenter.nw2png.GraphicalNW2PNG
They aren't in Deas version or at least not for me.
Reply With Quote
  #54  
Old 06-03-2013, 07:48 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Quote:
Originally Posted by cyan3 View Post
They aren't in Deas version or at least not for me.
That's odd. I'm defo using Deas' version too. I tried deleting the file and adding it to the jar again, but still no luck. It always returns that error.
Reply With Quote
  #55  
Old 06-03-2013, 08:23 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
ok, lets try that again, here's a new jarfile exported from the patch i made
Attached Files
File Type: zip NW2PNG2.1.zip (31.6 KB, 1677 views)
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #56  
Old 07-24-2013, 01:50 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
A bit late on this thread, but this tool is very useful.

It is working well for me, with the exception of not being able to load custom images made as tiles (added by addtiledef2 in gs1). Says it "couldn't load the file <filename>" etc...

Using DEAS latest version attached ^

Is there a directory I need to store these images in within the graal folder? They are all currently located in my graal/levels/images/download folder...

//edit copied to the following directories: graal/levels/images

and now I only get the error for:
NPC Code:

[20:47:01]: Generating...
[20:47:01]: Creating new FILENAMECACHE.txt file in local directory CUsers\Bradley\Graal
[20:47:01]: Created new FILENAMECACHE.txt file in local directory



and no activity afterwards...

error log: Parsing level: toran_00-00.nw
__________________
Quote:
Originally posted by Spark910
Think befreo you type.

Last edited by Torankusu; 07-24-2013 at 02:09 AM..
Reply With Quote
  #57  
Old 07-24-2013, 03:13 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
As far as Deas' version goes his change was mostly to fix the fact that Graal no longer uses Filenamecache.

However if you want to try my version out, you can still force filenamecache via deleting filenamecache.txt from your Graal folder and then running GraalEditor.exe.
Reply With Quote
  #58  
Old 07-24-2013, 03:07 PM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
I was able to generate images (did not include added tiledefs for some reason..) earlier no problem, even for the entire gmap, but the only thing I have done differently is store the images in a different directory (graal/levels/images instead of graal/levels/images/downloads) and I get errors with both versions.

I removed the images from both of the previously listed directories, and it is now able to generate a .png of the level, but does not include tiledefs, and gives me an error that it cannot LOAD the images when it generates the .png from my level...

SO, Maybe I am overlooking something, but what directory in my graal folder do I need to ensure I have the images for the tiles I am using (that the nw2png cannot find...)

Quote:
Originally Posted by ffcmike View Post
It seems the recent changes to file cache'ing in V6 prevents images from being found by this tool, which is a massive shame.
I am assuming this is the source of my problems ^ ^ ?
__________________
Quote:
Originally posted by Spark910
Think befreo you type.

Last edited by Torankusu; 07-24-2013 at 03:50 PM..
Reply With Quote
  #59  
Old 08-02-2014, 02:05 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Sorry for bumping an old thread, but is anyone by chance interested in a Graal to PNG program as well? If so I can probably make something for it. Tho I havent gotten to loading NPC's just tile data. Alternatively I could do Graal to nw. I dont have any zelda format to test tho.
Reply With Quote
  #60  
Old 08-02-2014, 12:02 PM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Really wish this worked for terrain too, but it will probably never happen. :[
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:00 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.