Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Level Design (https://forums.graalonline.com/forums/forumdisplay.php?f=6)
-   -   Nw2png (https://forums.graalonline.com/forums/showthread.php?t=134259601)

Gunderak 11-21-2011 09:58 AM

May I ask what you use to make these Java applets?
Also shouldn't "saveing" be "saving"?
Well maybe in america it might be "saveing" not sure, but in Aus its Saving.

cbk1994 11-21-2011 10:14 AM

Quote:

Originally Posted by Gunderak (Post 1674911)
May I ask what you use to make these Java applets?
Also shouldn't "saveing" be "saving"?
Well maybe in america it might be "saveing" not sure, but in Aus its Saving.

They're not applets, and yes it should be saving. The misspelling was from the original author. I noticed it but neglected to correct it when I was making the GUI.

Gunderak 11-21-2011 11:10 AM

Ahok, fair enough on the spelling error.
But what is used to make Java things like this? I have Java ME SDK 3.0.
Is this adequate?

fowlplay4 11-21-2011 04:23 PM

The Java SE SDK.

Gunderak 11-22-2011 12:16 AM

I shall have to download that.

DustyPorViva 11-22-2011 02:09 AM

Almost done with gani rendering:
http://i.imgur.com/MWOBz.png

Also, if anyone familiar with Java could help me figure out how to change the color value of a specified palette index that'd be great. I found out how to replace colors with a new color, but Graal does it via palette index.

callimuc 11-22-2011 03:26 AM

Nice stuff. Does/will it also detect GS2 scripts? Or just for the setimgpart()?

fowlplay4 11-22-2011 03:32 AM

Quote:

Originally Posted by callimuc (Post 1674996)
Nice stuff. Does/will it also detect GS2 scripts? Or just for the setimgpart()?

He said in his post above that it does.

Might run into an issue if you use math to calculate the x/y though.

DustyPorViva 11-22-2011 03:42 AM

Quote:

Originally Posted by fowlplay4 (Post 1674997)
He said in his post above that it does.

Might run into an issue if you use math to calculate the x/y though.

I hadn't considered that. I will have to go through eventually and recode it to at least not crash in instances like that, and MAYBE look into a math parser.

I'll probably also start a new thread so I can better document changes and features since I can't access the OP in this thread.

DustyPorViva 11-22-2011 09:23 AM

Ended up having to recode a good chunk of the parsing/rendering. Before it had two different functions for rendering a level and gmap, but they both shared the same code. So I took the level renderer and made it spit out an image instead, and now for rendering gmaps it simply calls the nw renderer for each level in the gmap and stitches them together. Before every time I changed the rendering I had to do it to both the gmap and the nw function, and that was a pain. Now it should probably be much easier to make changes to the renderer.

Will fine-tune and update it tomorrow with its own thread.

Gunderak 11-22-2011 10:12 AM

Have you ever considered Program Engineering as a career choice?
I really think with the motivation you have towards projects you could for sure make alot of money.

fowlplay4 11-22-2011 04:38 PM

Quote:

Originally Posted by DustyPorViva (Post 1675023)
Now for rendering gmaps it simply calls the nw renderer for each level in the gmap and stitches them together.

Will people still need to set the memory heap to absurd sizes?

DustyPorViva 11-22-2011 05:59 PM

Quote:

Originally Posted by fowlplay4 (Post 1675044)
Will people still need to set the memory heap to absurd sizes?

Well I was just able to render one of the gmaps I've been testing on NW2PNG at 1:1 without setting the heap size, something I wasn't able to do before. So it has improved a little, but you'll probably still need to for larger maps, yes. Java has JAI, which can work with images without buffers, but I have no experience with it and it'd be a challenge to recode the rendering to that.

Quote:

Originally Posted by Gunderak (Post 1675031)
Have you ever considered Program Engineering as a career choice?
I really think with the motivation you have towards projects you could for sure make alot of money.

O.o this is a small project, and I'm just editing someone elses code...

DustyPorViva 11-22-2011 06:46 PM

Okay, I've added so it parses some basic math. Now I gotta go through and make sure things are in order before an update. I still haven't managed to color bodies yet :/

DustyPorViva 11-23-2011 12:43 AM

1 Attachment(s)
A preview of the output so far. All I have to do is color bodies and squash a few smaller bugs.

callimuc 11-23-2011 12:56 AM

Very nice. Does that head in the water stand for anything you added/needs to get fixed or was it just a test?

DustyPorViva 11-23-2011 01:10 AM

Quote:

Originally Posted by callimuc (Post 1675092)
Very nice. Does that head in the water stand for anything you added/needs to get fixed or was it just a test?

The head in the water is a swimming NPC :P

Gunderak 11-23-2011 06:05 AM

Yes but it seems as if you know how to code.
And your doing this free of charge for the benefit of a community right?

DustyPorViva 11-23-2011 07:09 AM

Quote:

Originally Posted by Gunderak (Post 1675134)
Yes but it seems as if you know how to code.
And your doing this free of charge for the benefit of a community right?

Some people like doing nice things. I have happened to give a lot to this community over the years, this is somewhat minor in comparison.


Also, the new version can be found here: http://forums.graalonline.com/forums...hp?t=134265086

callimuc 11-23-2011 06:47 PM

Quote:

Originally Posted by DustyPorViva (Post 1675101)
The head in the water is a swimming NPC :P

Just saw that in your other post :P Couldn“t exactly say it since I was checking that picture on my iPod.


All times are GMT +2. The time now is 10:22 AM.

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