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
  #1  
Old 11-23-2011, 04:20 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
Nw2png2.0

First I want to make it clear that I did not code this tool. Alex(born2kill) originally coded it, and you can find it here:
http://forums.graalonline.com/forums...hp?t=134259601
Then Chris Vimes edited it, adding useful things such as the GUI interface and bugs. Then I took over and made some heavy modifications to it.

See the original thread for basic functionality and features.

Newest Features
> Shows you how long in seconds it took to parse and render the map when finished.
> addtiledef support, as well as subbing #L for the level name in addtiledef and addtiledef2.
> Colored bodies in ganis.
> Filter output toggle. Filtering the output will make resized maps look better, but it also increases the filesize by a large margin. This is enabled by default.
> New input for Graal Directory. Instead of assuming your Graal Directory, it will allow you to specify it(in case it is not always in CProgram Files\Graal\). However, it still needs FILENAMECACHE.txt to find the images, so for right now you can't simply direct it to an image folder.

Features I've added
> Recoded rendering. Before it was parsing and rendering NW's and GMAP's in separate functions. This meant any change to the rendering had to be worked into both functions. I've simplified the matter, making the GMAP function call forth the NW function for the levels and stitching the images together. This allows easier editing of the parsing and rendering code as well as easing up some of the heavy memory usage.
> Better image scanning. It was limited in finding necessary images before, but I've changed it instead to rely on Graal's FILENAMECACHE.txt. If you need it to find an image, simply having the image in the Graal directory(doesn't matter where) will allow it to find it. This includes other resources like ganis, but does not apply to levels. The levels must be in the same directory as the gmap file! But make sure your cache is up to date. To update your cache go into your Graal folder and delete FILENAMECACHE.txt, then run Graal. It will take a moment for Graal to start up, but once it does it will have scanned its entire directory and updated the cache.
> setimgpart support. It tries its best to interpret it, as well as its GS2 equivalent.
> addtiledef2 support. Only if addtiledef2 is found in a script in one of the levels. As above, it does its best to interpret the GS1 and GS2 command.
> Positioning code. This is in its infancy stage right now, but I'm attempting to interpret modifications to the position of NPCs via x++, x += 1, x = 32, this.x += 5 and so on. It's only as reliable as I have tested it. I'm pretty sure right now this is only applying to showcharacters, but I will soon add support for regular NPCs as well.
> Basic operations parsing. Before I was simply omitting values with operations, but now I've implementing some basic math parsing, so things like x = 5*3; should work. However I can't take into account variables(at least yet, maybe in the future I can substitute some basic known variables like position into the parsing).
> Gani support. I'm doing my best to interpret and render ganis. Right now they're mostly complete. I think the only thing left to do with them is to color bodies.
> Browsing memory. It remembers your input selections, making it easier to get in and render. This is especially useful when working on a single map, as all you have to do is open the tool and click render, since it remembers your last options.
> A batch file letting you specify a memory heap for the application. Rendering takes a lot of memory, and Java doesn't allocate very much by default. If you get a memory error, try closing and using the bat. Specify a number close to your total RAM in mb. So if you have 4GB of ram, try allocating 3600 or so. It will crash on launching if you allocate too much, so just try a lower value if it does(if you have a 64bit system, having Java 64bit will alleviate a lot of issues).
> No more hanging when it runs out of memory. Now it will notify you that it ran out of memory and reenable the 'Generate!' button, allowing you to change the scale and try again.
> Many bug fixes.

Features Planned
> Assigning images to join classes. I know a lot of servers use joins for NPCs such as doors and such, where the external class is assigning the image, leaving the parser no image info. Eventually you'll be able to keep a list of join classes, and assign them an image you want to be rendered, such as bush=bush.png.

Screenshots

Interface:

Output example:
Click image for larger version

Name:	test.png
Views:	6946
Size:	974.6 KB
ID:	53976

This is still a Work in Progress, so expect bugs, but please let me know! The more bugs I know, the more I can address them to make this as reliable and useful as possible!
Attached Files
File Type: zip NW2PNG2.0.zip (242.3 KB, 8291 views)
File Type: zip NW2PNG2.0.src.zip (14.0 KB, 8158 views)

Last edited by DustyPorViva; 11-23-2011 at 05:43 PM..
Reply With Quote
  #2  
Old 11-23-2011, 04:30 AM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Awesome!
__________________
Reply With Quote
  #3  
Old 11-23-2011, 05:21 AM
ff7chocoboknight ff7chocoboknight is offline
Skyzer Zolderon
ff7chocoboknight's Avatar
Join Date: Dec 2006
Location: New Hampshire, United States
Posts: 725
ff7chocoboknight is a name known to allff7chocoboknight is a name known to allff7chocoboknight is a name known to allff7chocoboknight is a name known to all
Send a message via AIM to ff7chocoboknight Send a message via MSN to ff7chocoboknight
Used wrong tiles for inside of caves.
__________________
Reply With Quote
  #4  
Old 11-23-2011, 05:36 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
Quote:
Originally Posted by ff7chocoboknight View Post
Used wrong tiles for inside of caves.
Elaborate?
Reply With Quote
  #5  
Old 11-23-2011, 10:10 AM
Luda Luda is offline
Registered User
Join Date: Aug 2005
Location: Canada
Posts: 2,071
Luda has much to be proud ofLuda has much to be proud ofLuda has much to be proud ofLuda has much to be proud ofLuda has much to be proud ofLuda has much to be proud of
Send a message via AIM to Luda
Nice!
Reply With Quote
  #6  
Old 11-23-2011, 10:11 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
Well finally got body coloring done thanks to [someone who shall not be named]! I also added a toggle for filtering the output.


By default maps will be filtered, but filtering attempts to make distorted images(which is the case when scaling down) look better. But while they do that, they also add a lot of colors and thus can increase the file size of the map image by a large amount. For example, a filtered 1:2 map of a 3x3 gmap is ~1.5mb. A non-filtered image of the same map is only ~500kb. So it's up to you to decide if you want a better output image with a much larger filesize, or an "uglier" image with a much smaller filesize. You can compare the two images below.

Filtered:


Non-Filtered
Reply With Quote
  #7  
Old 11-23-2011, 04:21 PM
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
Here's a small update.

New Features
> Colored bodies in ganis.
> Filter output toggle. Filtering the output will make resized maps look better, but it also increases the filesize by a large margin. This is enabled by default.
> New input for Graal Directory. Instead of assuming your Graal Directory, it will allow you to specify it(in case it is not always in CProgram Files\Graal\). However, it still needs FILENAMECACHE.txt to find the images, so for right now you can't simply direct it to an image folder.



You can find the updated files in the original post.
Reply With Quote
  #8  
Old 11-23-2011, 07:48 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
An option to just render each level of a GMAP as a separate file might be nice.
__________________
Quote:
Reply With Quote
  #9  
Old 11-23-2011, 08:14 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
You should put this on GitHub so it's easier to keep track of changes and contribute to. I wouldn't mind trying to fix the memory stuff if you do that.
__________________
Reply With Quote
  #10  
Old 11-23-2011, 08:23 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
There's a few problems with this latest version for me.

Quote:
Warning: Could not parse: startx+10.5;
Warning: Could not parse: starty-7;
Warning: Could not parse: startx+2.5;
Warning: Could not parse: starty-9;
Warning: Could not parse: starty-13;
Errors like this I think are occurring because of scripts that contain stuff like:

PHP Code:
this.this.starty 5;
this.this.startx 16;
this.startx this.x;
this.starty this.y;

this.shadow.-= 1
I believe it's with levels containing stuff like that where I've had errors such as:

Quote:
Error: Couldn't load the file classic_overworld_masterlis_03.nw
Error: Level was unable to be rendered for an unknown reason.
In this instance 2 images were randomly cut despite not containing setimgpart:


There's also been several instances of:

Quote:
Warning : Couldn't render the gani "classic_player_idle_01".gani
Could the problem be usage of GS2?

It seems there's a problem with rendering multiple character ganis, they look the same for me:



Aswell as a slight issue with layering, though I imagine it would be difficult to resolve:



Another possible future issue, is that I actually have certain common showcharacters appearance loaded via a class, like castle guard/ninja etc, which would mean their intended look not being rendered with the gani.
Reply With Quote
  #11  
Old 11-23-2011, 09:34 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
http://img717.imageshack.us/img717/6217/test2cg.png

lmao
__________________
Reply With Quote
  #12  
Old 11-24-2011, 12:10 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
Quote:
Originally Posted by ffcmike View Post
Errors like this I think are occurring because of scripts that contain stuff like:

PHP Code:
this.this.starty 5;
this.this.startx 16;
this.startx this.x;
this.starty this.y;

this.shadow.-= 1
Most definitely, I can only provide basic parsing, but I doubt I'd be able to do anything complex like variable tracking. However if it's causing levels not to render I will have to look further into it.

edit: I copied the code and put it into an NPC and the level still rendered. The NPC didn't, but that's to be expected. However, I will try to make it omit such alterations to the x/y instead of overwriting them.

Quote:
Originally Posted by ffcmike View Post
In this instance 2 images were randomly cut despite not containing setimgpart:
I believe this is from me changing the method of rendering gmaps. It's where the level boundaries end, and since levels are rendered individually the NPCs aren't being rendered outside of the boundaries. Fixing this would be pretty difficult, but I think I might have to figure something out because I don't think that's passable. I guess I could make a function to scan for all setimgpart in each level of a gmap and return the list.

Quote:
Originally Posted by ffcmike View Post
There's also been several instances of:

Could the problem be usage of GS2?
Seems I forgot to remove quotation marks when parsing GS2. Will work on that.

Quote:
Originally Posted by ffcmike View Post
It seems there's a problem with rendering multiple character ganis, they look the same for me:

I never parsed character data in GS2. It was very easily to catch

Quote:
Originally Posted by ffcmike View Post
Aswell as a slight issue with layering, though I imagine it would be difficult to resolve:
I can't say it'd be difficult, I'd just have to sort the list, but it'd be more intensive work in an already intensive function.

Quote:
Originally Posted by ffcmike View Post
Another possible future issue, is that I actually have certain common showcharacters appearance loaded via a class, like castle guard/ninja etc, which would mean their intended look not being rendered with the gani.
Well as you can see I already plan to implement a class -> image function. I may be able to add support for character data in the format of:
ninja=skin:black,belt:black,coat:black,sleeves:bla ck,shoes:black,headimg:head17.png,shieldimg:no-shield.png,gani:idle,dir:1

Last edited by DustyPorViva; 11-24-2011 at 12:39 AM..
Reply With Quote
  #13  
Old 11-24-2011, 06:29 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
Quote:
Originally Posted by DustyPorViva View Post
Most definitely, I can only provide basic parsing, but I doubt I'd be able to do anything complex like variable tracking. However if it's causing levels not to render I will have to look further into it.

edit: I copied the code and put it into an NPC and the level still rendered. The NPC didn't, but that's to be expected. However, I will try to make it omit such alterations to the x/y instead of overwriting them.
This is fixed in the next version. Now instead of always overwriting the x/y with modifiers it first checks if it's returning a valid value.

Quote:
Originally Posted by DustyPorViva View Post
I believe this is from me changing the method of rendering gmaps. It's where the level boundaries end, and since levels are rendered individually the NPCs aren't being rendered outside of the boundaries. Fixing this would be pretty difficult, but I think I might have to figure something out because I don't think that's passable. I guess I could make a function to scan for all setimgpart in each level of a gmap and return the list.
Fixed as well, saved the NPCs to an external list and I render them after the gmap is rendered.

Quote:
Originally Posted by DustyPorViva View Post
Seems I forgot to remove quotation marks when parsing GS2. Will work on that.
Also fixed.
Reply With Quote
  #14  
Old 11-24-2011, 07:52 PM
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
New update.

New features
> The ability to split the images when you save a gmap. It will save them in a directory named after the output. So if you put overworldmap.png in the output, it will save it in parent/overworldmap/<levelname>.png. Still provide a PNG as an input though as it's expecting one. However, I will say this may be slower than generating an entire gmap since it has to create a file for each level.
> Full GS2 support for Gani's/showcharacters
> Fixed NPCs being cropped if they exceeded the boundaries of the level
> Also fixed a bug with the scaling formula. So I've provided more scale options, and I may change it to a slider.
> Parsing no longer overwrites the NPCs x/y position unless it returns a valid number. This will stop NPCs from no longer being rendered if the parser hangs on things like variables.

Why can't I edit my thread anymore, dammit It should stop allowing edits from time of the last edit instead of time it was originally posted!
Attached Files
File Type: zip NW2PNG2.0.zip (243.8 KB, 6950 views)
File Type: zip NW2PNG2.0.src.zip (14.7 KB, 6798 views)
Reply With Quote
  #15  
Old 11-24-2011, 08:03 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
No errors were returned for me this time which is good for generating a basic map, however no characters/ganis were rendered.
Reply With Quote
  #16  
Old 11-24-2011, 08:52 PM
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
Quote:
Originally Posted by cbk1994 View Post
You should put this on GitHub so it's easier to keep track of changes and contribute to. I wouldn't mind trying to fix the memory stuff if you do that.
Sorry, missed this post.
https://github.com/dustyshouri/NW2PNG2.0

Quote:
Originally Posted by ffcmike View Post
No errors were returned for me this time which is good for generating a basic map, however no characters/ganis were rendered.
I tested it with a GS2 showcharacter() in the following script:
PHP Code:
function onCreated() {
  
// Initialize the attributes
  
showcharacter();
  
this.headimg     "head19.png";
  
this.colors[0]   = "orange";
  
this.colors[1]   = "gray";
  
this.colors[2]   = "gray";
  
this.colors[3]   = "brown";
  
this.colors[4]   = "black";
  
this.shieldimg   "shield1.gif";
  
this.shieldpower 1;
  
this.dir 3;
  
setcharani("walk",null);

  
this.startx this.x;
  
this.starty this.y;

  
this.this.starty 5;
  
this.this.startx 16;

  
this.shadow.-= 1;

And it worked fine. Could you email me the gmap and levels, or at least one of the levels that's having problems? [email protected]
Reply With Quote
  #17  
Old 11-24-2011, 09:10 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Actually it was my mistake, the gani files were not within the cache, there being no "gani file not found" error.

Edit: Now the weird thing is, I've updated filenamecache, but the program is just getting stuck on generating, there being no command prompt in the background.

Last edited by ffcmike; 11-24-2011 at 09:33 PM..
Reply With Quote
  #18  
Old 11-24-2011, 10:18 PM
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
Quote:
Originally Posted by ffcmike View Post
Actually it was my mistake, the gani files were not within the cache, there being no "gani file not found" error.

Edit: Now the weird thing is, I've updated filenamecache, but the program is just getting stuck on generating, there being no command prompt in the background.
It's hard for me to say exactly what it's hanging up on without seeing the error. Maybe the next version should output all print traces to a log file.
Reply With Quote
  #19  
Old 11-25-2011, 12:37 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
Quote:
Originally Posted by ffcmike View Post
Actually it was my mistake, the gani files were not within the cache, there being no "gani file not found" error.

Edit: Now the weird thing is, I've updated filenamecache, but the program is just getting stuck on generating, there being no command prompt in the background.
Here, newest version writes all stack traces to a log file. That way you can paste the logs so I can review them.
Attached Files
File Type: zip NW2PNG2.0.zip (244.4 KB, 1821 views)
Reply With Quote
  #20  
Old 11-25-2011, 11:51 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by DustyPorViva View Post
Here, newest version writes all stack traces to a log file. That way you can paste the logs so I can review them.
An error.txt file is generated, however no text is contained within it.
I've made sure an older version is still working.
Reply With Quote
  #21  
Old 11-25-2011, 03:13 PM
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
Quote:
Originally Posted by ffcmike View Post
An error.txt file is generated, however no text is contained within it.
I've made sure an older version is still working.
You can try this one, apparently I didn't catch all errors.
Attached Files
File Type: zip NW2PNG2.0.zip (244.4 KB, 1845 views)
Reply With Quote
  #22  
Old 11-25-2011, 06:43 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by DustyPorViva View Post
You can try this one, apparently I didn't catch all errors.
Quote:
java.lang.NumberFormatException: For input string: "="
at java.lang.NumberFormatException.forInputString(Unk nown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at src.born2kill.nw2png.NW2PNGHelper.renderLevel(NW2P NGHelper.java:333)
at src.born2kill.nw2png.NW2PNGHelper.renderGmap(NW2PN GHelper.java:706)
at src.born2kill.nw2png.NW2PNGHelper.run(NW2PNGHelper .java:148)
at java.lang.Thread.run(Unknown Source)

java.lang.NumberFormatException: For input string: "g"
at java.lang.NumberFormatException.forInputString(Unk nown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at src.born2kill.nw2png.NW2PNGHelper.renderLevel(NW2P NGHelper.java:333)
at src.born2kill.nw2png.NW2PNGHelper.renderGmap(NW2PN GHelper.java:706)
at src.born2kill.nw2png.NW2PNGHelper.run(NW2PNGHelper .java:148)
at java.lang.Thread.run(Unknown Source)

java.lang.NumberFormatException: For input string: "="
at java.lang.NumberFormatException.forInputString(Unk nown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at src.born2kill.nw2png.NW2PNGHelper.renderLevel(NW2P NGHelper.java:333)
at src.born2kill.nw2png.NW2PNGHelper.renderGmap(NW2PN GHelper.java:706)
at src.born2kill.nw2png.NW2PNGHelper.run(NW2PNGHelper .java:148)
at java.lang.Thread.run(Unknown Source)
I don't know what this means exactly, but I have re-browsed to each necessary file/location to ensure the destinations exist.
Reply With Quote
  #23  
Old 11-25-2011, 06: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
Good work dusty!

Quote:
ensure to ensure
lol?
__________________
Reply With Quote
  #24  
Old 11-25-2011, 08:45 PM
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
Quote:
Originally Posted by ffcmike View Post
I don't know what this means exactly, but I have re-browsed to each necessary file/location to ensure the destinations exist.
Okay, sorry but I realized it's pretty useless without knowing the levels the errors are occuring in, so I've tried to keep track of the activities somewhat for better debugging. Then at least you could try to trace it down to a specific NPC or at least level. Then you could maybe send me the level.
Attached Files
File Type: zip NW2PNG2.0.zip (245.1 KB, 1899 views)
Reply With Quote
  #25  
Old 11-25-2011, 09:02 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by DustyPorViva View Post
Okay, sorry but I realized it's pretty useless without knowing the levels the errors are occuring in, so I've tried to keep track of the activities somewhat for better debugging. Then at least you could try to trace it down to a specific NPC or at least level. Then you could maybe send me the level.
Figured it out.

The problem happened to be occurring with the very first top left level of the map, even if I had "Render NPCs" unticked.
So I gradually removed all of the more complex NPCs to try and single out the culprit, the problem still happened, and continued until I had removed every NPC, then it managed to move onto the next level.
However adding a simple image only NPC worked, whereas adding an NPC of this.join("object_bush"); caused the problem again.

I hadn't actually got around to testing class images, I tried again after removing "bush=bush.png" from the text file and it's still happening.
Reply With Quote
  #26  
Old 11-25-2011, 09:07 PM
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
Quote:
Originally Posted by ffcmike View Post
Figured it out.

The problem happened to be occurring with the very first top left level of the map, even if I had "Render NPCs" unticked.
So I gradually removed all of the more complex NPCs to try and single out the culprit, the problem still happened, and continued until I had removed every NPC, then it managed to move onto the next level.
However adding a simple image only NPC worked, whereas adding an NPC of this.join("object_bush"); caused the problem again.

I hadn't actually got around to testing class images, I tried again after removing "bush=bush.png" from the text file and it's still happening.
Your current version is in the middle of content updates, so some stuff doesn't work, like the 'Render NPCs' option. Could you tell me the log with the new debug version so I can find out what exactly is chocking the parser, and maybe send me the level it's having problems on?
Reply With Quote
  #27  
Old 11-25-2011, 09:16 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
The same thing happens if I create a blank level in the editor, add an NPC with the script this.join("object_bush");, save it as new1.nw and attempt to render that.
Error log just contained "Parsing level: new1.nw", unless I'm missing something.
Reply With Quote
  #28  
Old 11-25-2011, 09:40 PM
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
Quote:
Originally Posted by ffcmike View Post
The same thing happens if I create a blank level in the editor, add an NPC with the script this.join("object_bush");, save it as new1.nw and attempt to render that.
Error log just contained "Parsing level: new1.nw", unless I'm missing something.
Oh okay, I know the problem. Problem is it's expecting "this.blah = 1" and thus looking for "=" and causing a parsing error when it can't find it(in this case calling a function). It should only attempt to parse variables if actually assigning a value to one now.

Here's an updated version until the "complete" update, the render NPCs option still does nothing, but join classes are now rendered and we can see if it's fixing your issues.
Attached Files
File Type: zip NW2PNG2.0.zip (246.0 KB, 1836 views)
Reply With Quote
  #29  
Old 11-26-2011, 01:04 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Same problem is still occurring.
Reply With Quote
  #30  
Old 11-26-2011, 01:32 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
Quote:
Originally Posted by ffcmike View Post
Same problem is still occurring.
Here, I think I fixed it. I wasn't accounting when searching for a join image reference was returning null.
Attached Files
File Type: zip NW2PNG2.0.zip (246.0 KB, 1803 views)
Reply With Quote
  #31  
Old 11-26-2011, 02:37 AM
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
Will this work on terrain maps?
Reply With Quote
  #32  
Old 11-26-2011, 02:41 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Draenin View Post
Will this work on terrain maps?
Nope.
__________________
Reply With Quote
  #33  
Old 11-26-2011, 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
Quote:
Originally Posted by Draenin View Post
Will this work on terrain maps?
Stefan uses some special licensed generator to render 3D terrain, something I would never be able to emulate. Also, the terrain gmaps don't store level data.

At least because of the nature of 3D terrains using the GraalEditor's mapping function the maps don't end up looking too bad.
Reply With Quote
  #34  
Old 11-26-2011, 04:40 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
New update, and I think as far as features go I'm done. I can't think of much more to add.

New Features
> The choice to disable or enable rendering and parsing(meaning quicker generation) of NPCs. It will still scan for addtiledefs.
> Saving of checkbox options as well now.
> Addition of error logging, you can find the logs in errorLog.txt if anything goes wrong. It will write a stack trace under the level it encountered the error in, and attempt to narrow it down to a specific function.
> Definitions for join classes. You can now assign images, and even ganis, to join classes. When the parser encounters a join command it will scan ClassImages.txt for the appropriate information to render the NPC. Check the text file for more information.
> Fixed more bugs pertaining to parsing. If you were having problems with it hanging on specific levels this should help. Before it was trying to parse specific variables(this.dir = 2) but was also detecting modifiers like this.dir += 2; and encountering parsing problems, causing it to hang. Fixed it by only allowing = and no operation characters to the left or right.

Edit: Okay, finally got it all sorted(I hope). I think that makes all features complete, and only debugging left to do, and hopefully I've gotten rid of a lot. When most of the bugs are fixed I'll have Crono update the original post with explanations and such and the latest files.
Attached Files
File Type: zip NW2PNG2.0.zip (246.7 KB, 1866 views)

Last edited by DustyPorViva; 11-26-2011 at 07:13 AM..
Reply With Quote
  #35  
Old 11-26-2011, 01:14 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Everything appears to be running fairly smoothly now, class assigning works aswell.

One new problem which might only apply to me is that a lot of characters are facing the wrong direction, it seems to be because I also have these NPCs using a variable of "this.dirturn = true;".

Another noticable error is where I was using a specific frame of a gani:
Quote:
Warning : Couldn't render the gani classic_player_walk_01[3].gani
Something else I can't figure out though is where candle.mng is rendering as what appears to be some type of head, which is a bit odd because MNGs aren't supported and this head image isn't used anywhere else on the map:



This could well be the result of setimgpart: this.setimgpart("candle.mng",0,0,32,16);

A couple of things which might be useful, is the detection of a custom variable within an NPC specifically to avoid being rendered within this program, and the ability to set a different sprites.png as some servers may use a custom one, in my case the only difference is semi-transparent shadows. Being able to assign ganis to classes would be cool too.

I've attached the error log incase there's anything of interest.
Attached Files
File Type: txt errorLog.txt (37.9 KB, 1966 views)
Reply With Quote
  #36  
Old 11-26-2011, 03:13 PM
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
Quote:
Originally Posted by ffcmike View Post
One new problem which might only apply to me is that a lot of characters are facing the wrong direction, it seems to be because I also have these NPCs using a variable of "this.dirturn = true;"
Hmm, I don't think that would be parsed into the direction, but I'll take a look into it.

Quote:
Originally Posted by ffcmike View Post
Another noticable error is where I was using a specific frame of a gani:
I anticipated that, but I didn't think many people used that so I didn't bother, I guess I'll implement it However, my gani parsing only parses the first frame so I won't be able to make it parse the specified frame, sorry!


Quote:
Originally Posted by ffcmike View Post
Something else I can't figure out though is where candle.mng is rendering as what appears to be some type of head, which is a bit odd because MNGs aren't supported and this head image isn't used anywhere else on the map:



This could well be the result of setimgpart: this.setimgpart("candle.mng",0,0,32,16);
MNG's aren't supported so I'm not sure what's going on. Hopefully just ignoring images that are MNG will fix this.

Quote:
Originally Posted by ffcmike View Post
A couple of things which might be useful, is the detection of a custom variable within an NPC specifically to avoid being rendered within this program,
hide and hide() maybe? However if I use hide chances are it'll get parsed when it's not supposed to, such as
PHP Code:
function onPlayertouchsme() {
  
hide();
  
sleep(3);
  
show();

Would probably get hidden, and I can't think of another way to fix this other than doing some complex script parsing. If you'd like a custom variable like this.maprender = false; I could easily do that.
Quote:
Originally Posted by ffcmike View Post
and the ability to set a different sprites.png as some servers may use a custom one, in my case the only difference is semi-transparent shadows.
I also anticipated this, but I figured the only thing it affected were shadows. Do you consider this very important?

Quote:
Originally Posted by ffcmike View Post
Being able to assign ganis to classes would be cool too.
You can already do so Check the file, it should have an example and instructions on assigning a gani to a join class.

Last edited by DustyPorViva; 11-26-2011 at 03:51 PM..
Reply With Quote
  #37  
Old 11-26-2011, 03:23 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by DustyPorViva View Post
If you'd like a custom variable like this.maprender = false; I could easily do that.
Yeah that would be useful.

Quote:
Originally Posted by DustyPorViva View Post
I also anticipated this, but I figured the only thing it affected were shadows. Do you consider this very important?
Not really no, I'd actually prefer to prevent showcharacter()'s from being rendered anyway.

Quote:
Originally Posted by DustyPorViva View Post
You can already do so Check the file, it should have an example and instructions on assigning a gani to a join class.
That's good to know, I didn't notice it as I was only extracting the .jar file for each new version.

Edit:
I've tried the assigning of classes to ganis now, strangely this worked as expected:

Quote:
quest_baddy_bird=gani:classic_baddy_bird_idle,para m1:classic_baddy_bird_red.png
But these only rendered the shadow and no image as specified by attr[1]:

Quote:
quest_baddy_chicken=gani:classic_baddy_chicken_idl e,attr1:classic_baddy_chicken_sprites.png

quest_baddy_chick=gani:classic_baddy_chicken_idle, attr1:classic_baddy_chicken_chick.png

quest_baddy_rooster=gani:classic_baddy_chicken_idl e,attr1:classic_baddy_chicken_rooster.png
And:

Quote:
quest_baddy_butterfly=gani:classic_baddy_butterfly _01
Simply produced an error of:

Quote:
Warning : Couldn't find the image gani:classic_baddy_butterfly_01
(I don't know why these quotes have a random space in them, they aren't contained within the text I've entered)

Last edited by ffcmike; 11-26-2011 at 04:08 PM..
Reply With Quote
  #38  
Old 11-26-2011, 05:16 PM
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
Quote:
Originally Posted by ffcmike View Post
Not really no, I'd actually prefer to prevent showcharacter()'s from being rendered anyway.
The problem I'm having with this is actually being able to tell the difference between an actual character gani, and a prop gani like a tree or such. Not everyone uses showcharacter() reliably. The option is there for now, but I don't know if I commented out the functionality or not.

Quote:
Originally Posted by ffcmike View Post
Edit:
I've tried the assigning of classes to ganis now, strangely this worked as expected:
I've fixed this.

> I've also fixed the MNG issue
> added the ability to ignore the rendering of NPCs if you use this.ignorerender = true; in the script of an NPC. However, it's a bit unreliable now, and won't apply to NPC's that aren't setimgpart or ganis, because of the way NPCs are processed(on the fly).
> Fixed the setCharani(gani[frame],null) issue
> I fixed the issue with this.dirturn and so on. Now only applies if the variable is this.dir.
Attached Files
File Type: zip NW2PNG2.0.zip (247.4 KB, 1865 views)
Reply With Quote
  #39  
Old 11-26-2011, 09:10 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
nice =)

you might want to get someone to edit the first post for you, and include the github link.
you might as well clean the first post up a bit with bullet list of what you have added, it's hard to read what you have added, but im sure it's all awesome things (=

i havent been on graal for a while, so i probably wont use it, but from what the posts in this thread can tell me, you have dont a great amount of work!

ill forward the thread to Alex (born2kill) when i see him online, I'm sure he will be surprised!
__________________
.
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
  #40  
Old 11-26-2011, 09:11 PM
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
Quote:
Originally Posted by Deas_Voice View Post
nice =)

you might want to get someone to edit the first post for you, and include the github link.
you might as well clean the first post up a bit with bullet list of what you have added, it's hard to read what you have added, but im sure it's all awesome things (=

i havent been on graal for a while, so i probably wont use it, but from what the posts in this thread can tell me, you have dont a great amount of work!

ill forward the thread to Alex (born2kill) when i see him online, I'm sure he will be surprised!
I'm waiting for it to be completed before I have the original post updated. I don't want to bother Crono every time I make a minor update.
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 07:42 PM.


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