Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #31  
Old 09-17-2010, 04:01 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Requesting sticky on this thread, such an awesome feature.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #32  
Old 09-17-2010, 04:06 PM
MrOmega MrOmega is offline
One More Time
MrOmega's Avatar
Join Date: Aug 2010
Location: TN, USA
Posts: 631
MrOmega is an unknown quantity at this point
Send a message via AIM to MrOmega Send a message via MSN to MrOmega Send a message via Yahoo to MrOmega
http://forums.graalonline.com/forums...0&postcount=51
yes just look at my gmap it rendered. (Note that I had to add in the NPCs but was simple and took like 5 mins maybe :P)
__________________
Time is the fire in which we burn...
Up, Up, Down, Down, Left, Right, Left, Right, B, A, Select, Start! Now I got 99 LIVES!!!
Reply With Quote
  #33  
Old 09-17-2010, 05:09 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
sticky plx
Reply With Quote
  #34  
Old 09-19-2010, 04:24 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
fu this aint no democracy >:[

also i still havent got mine to work...halp
__________________
Reply With Quote
  #35  
Old 10-04-2010, 08:42 PM
Seich Seich is offline
Noctorious' NeoHunter
Seich's Avatar
Join Date: Jun 2008
Location: Honduras
Posts: 193
Seich will become famous soon enough
Send a message via MSN to Seich Send a message via Yahoo to Seich
Quote:
Originally Posted by Crono View Post
eh tried to run it for once and it said java isnt recognized as an internal or external blahblah

i already have jre installed
Try adding jre to your system's 'Path' variable.

(This is for windows 7, it should be similar for all other windows based OSs)
Go to Control Panel -> System -> Advanced system settings.

Then click on the Environmental Variables button on the Advanced tab.

Look for the Path Variable in System variables.

Once you find it click on edit then, try adding something like: ";CProgram Files\Java\jre6\bin" to the end of the string in the variable value textbox. Make sure to have the semi-colon dividing it from the variable that's before this new one.


Then click ok and ok again and try it. Hopefully it should work now.

Last edited by Seich; 10-04-2010 at 08:50 PM.. Reason: I had the urge to add images...
Reply With Quote
  #36  
Old 11-02-2010, 12:36 AM
N01ze N01ze is offline
Level Designer
N01ze's Avatar
Join Date: Aug 2010
Posts: 46
N01ze is on a distinguished road
This is great, thanks
Reply With Quote
  #37  
Old 01-18-2011, 09:23 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
I created a GUI for this.



The source and the binary are attached. To use it, download NW2PNG.jar.zip, and launch the JAR file inside the ZIP. Most operating systems should let you double click it to open it, otherwise launch it via a command prompt with the command "java -jar NW2PNG.jar".

Changes from the original:
  • Now cross-platform compatible
  • Fixed a bug causing a crash if NPCs were at a non-integer x/y (such as 20.5)
  • Levels and GMAPs can now be scaled to a variety of scales (1:1, 1:2, 1:4, 1:16, 1:32, 1:64)
  • Now loads images from the Graal folder; you don't have to put them in images/* now
  • You can specify the tileset (selects pics1.png by default if it can find your Graal installation)
  • You can specify the source
  • You can specify the output file

If you're generating an image for a large map or the program freezes in the middle of generating an image, you probably need to increase the heap size so it can use more memory. Open a command prompt and run the program with "java -Xmx3000m -jar NW2PNG.jar", replacing 3000 with the amount of memory (in MB) you want it to be able to use.

I tested this on Ubuntu, Windows 7, and Mac. It was able to generate a 27 MB 1:1 image of Era's map (which is 14x19), although it took about 10 minutes to generate since there was a lot of memory swapping involved.

I haven't gotten born2kill's permission to do this, but since he published his source code I assume he's okay with it. My source code is released into the public domain.
Attached Files
File Type: zip NW2PNG.src.zip (7.7 KB, 208 views)
File Type: zip NW2PNG.jar.zip (11.9 KB, 208 views)
__________________
Reply With Quote
  #38  
Old 01-18-2011, 09:24 AM
Seeya Seeya is offline
ω
Seeya's Avatar
Join Date: Jul 2007
Location: Seminole, FL
Posts: 1,903
Seeya is a splendid one to beholdSeeya is a splendid one to beholdSeeya is a splendid one to beholdSeeya is a splendid one to beholdSeeya is a splendid one to behold
Send a message via AIM to Seeya
noiz
__________________
Kale Vimes

Reply With Quote
  #39  
Old 01-18-2011, 11:12 AM
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 cbk1994 View Post
I haven't gotten born2kill's permission to do this, but since he published his source code I assume he's okay with it. My source code is released into the public domain.

i think his idea was that, this code was going to be open sourced because he was talking about putting it on github or something along those lines.
i'll tell him that you updated the code when i see him online.
__________________
.
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 01-18-2011, 03:10 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
Just stops at "Generating..." no matter what I do.
Reply With Quote
  #41  
Old 01-18-2011, 08:17 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
Quote:
Originally Posted by DustyPorViva View Post
Just stops at "Generating..." no matter what I do.
Try launching it with "java -jar NW2PNG.jar" from the command line and see if it shows any errors when you hit "Generate" (the errors would be shown in the command prompt.)
__________________
Reply With Quote
  #42  
Old 01-18-2011, 10:36 PM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
I think the major upgrade you can do to this is not keep the whole image or the whole gmap in memory. Work with both of them in chunks which occasionally get read/written to disk.
Reply With Quote
  #43  
Old 01-18-2011, 10:59 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
Quote:
Originally Posted by WhiteDragon View Post
I think the major upgrade you can do to this is not keep the whole image or the whole gmap in memory. Work with both of them in chunks which occasionally get read/written to disk.
I don't know much about Java's image libraries but I'm guessing it may not be possible since it would need the whole image in memory to save it as a PNG.
__________________
Reply With Quote
  #44  
Old 01-20-2011, 09:34 PM
born2kill born2kill is offline
Mainly GS2+Java Scripter
Join Date: Nov 2006
Posts: 17
born2kill will become famous soon enough
Smile

Oh hey
First of all I'm glad that this project is still alive and very impressed that cbk worked on it
Well I left graal a longer time ago because of school and other stuff and
Im kinda sorry for the rather crappy source code (Thats how it looks like in my eyes nowdays)
Well in the last months/years I worked like 24/7 with Java - for school and personal stuff
and even for my own MMO 2D game ( + The Android App for it )
(Not released yet :P)

I just wanted to say that Im going to do a little rewrite on the system, including any functionality you guys want to have

@cbk if you want you can do a little gui for it too :P
__________________
I keep messages in forums to the most important ones
Check out all of my other usefull threads here:
http://forums.graalonline.com/forums...&starteronly=1
Reply With Quote
  #45  
Old 01-26-2011, 02:55 AM
MattKan MattKan is offline
the KattMan
Join Date: Aug 2010
Location: United States
Posts: 1,325
MattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to behold
Send a message via AIM to MattKan
Just out of curiosity, what does .nw stand for?
__________________
Quote:
Originally Posted by Satoru Iwata
On the other hand, free-to-play games, if unbalanced, could result in some consumers paying extremely large amounts of money, and we can certainly not expect to build a good relationship with our consumers in this fashion. In order to have a favorable long-term relationship, we would like to offer free-to-play games that are balanced and reasonable.
Quote:
Originally Posted by Unximad
Eurocenter Games remains attached to the values of indies game developer and to the service our playerbase community.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 02:55 PM.


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