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 02-05-2011, 02:56 AM
jacob_bald6225 jacob_bald6225 is offline
Doctor Who?
jacob_bald6225's Avatar
Join Date: Feb 2002
Posts: 851
jacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to behold
Png2nw

So I worked out how to take a png and turn it into a playable level. I figured I would share.

I took this level(I don't think Bartholomew will mind-- I doubt he even has this level anymore):
http://forums.graalonline.com/forums...ad.php?t=75934

And produce a level(attached)!

Notice how the npcs that were in the screenshot lay down the corner of a block, so this isn't really feasible with a level that has lighting effects or tons of npcs.

Not much else here-- just figured I'd share what I've been working on.


If you have a level that you want recovered from a screenshot throw it in here and ill have a run at it.
Attached Thumbnails
Click image for larger version

Name:	FFFAF.png
Views:	435
Size:	218.1 KB
ID:	52359  
Attached Files
File Type: nw Bartholomew.nw (9.1 KB, 286 views)
__________________
Reply With Quote
  #2  
Old 02-05-2011, 03:40 AM
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
Good work. Now release the source.
Reply With Quote
  #3  
Old 02-28-2011, 04:03 AM
Darugo Darugo is offline
hi
Darugo's Avatar
Join Date: May 2007
Posts: 64
Darugo is an unknown quantity at this point
That's awesome Have you tried inputting a screenshot of something that doesn't have a actual tileset?
Reply With Quote
  #4  
Old 02-28-2011, 09:06 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
Pretty cool
Reply With Quote
  #5  
Old 02-28-2011, 11:13 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
wait i just realized it said png2nw and not nw2png, is this for real?
__________________
Reply With Quote
  #6  
Old 02-28-2011, 11:25 AM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by Crono View Post
wait i just realized it said png2nw and not nw2png, is this for real?
This, because if so I see MAAAANY good things (plausibly bad things about this) as well.
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #7  
Old 02-28-2011, 11:37 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
Quote:
Originally Posted by Fulg0reSama View Post
This, because if so I see MAAAANY good things (plausibly bad things about this) as well.
nothing bad could possibly come of this
__________________
Reply With Quote
  #8  
Old 02-28-2011, 12:24 PM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by Crono View Post
nothing bad could possibly come of this
Think a little hard on the base concept of this and you may see something.
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #9  
Old 02-28-2011, 01:17 PM
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
Quote:
Originally Posted by Fulg0reSama View Post
Think a little hard on the base concept of this and you may see something.
I already know what you were implying but that's not a problem.
__________________
Reply With Quote
  #10  
Old 02-28-2011, 01:37 PM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by Crono View Post
I already know what you were implying but that's not a problem.
I suppose not now, but I'll agree to the fact there's more pros than there are cons.
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #11  
Old 02-28-2011, 01:51 PM
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
Quote:
Originally Posted by Fulg0reSama View Post
I suppose not now, but I'll agree to the fact there's more pros than there are cons.
When would it be o_o;?
__________________
Reply With Quote
  #12  
Old 02-28-2011, 01:55 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 used to be able to hit alt + 5 to save an online level. Level stealing wouldn't be a problem.
__________________
Reply With Quote
  #13  
Old 02-28-2011, 07:50 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Brilliant concept ! Have you thought about making a map image converter?
__________________
V$:CONFL16T
Reply With Quote
  #14  
Old 02-28-2011, 08: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
Quote:
Originally Posted by WanDaMan View Post
Brilliant concept ! Have you thought about making a map image converter?
Probably impossible. Maps lose data from being shrunken down.
Reply With Quote
  #15  
Old 03-03-2011, 06:35 AM
jacob_bald6225 jacob_bald6225 is offline
Doctor Who?
jacob_bald6225's Avatar
Join Date: Feb 2002
Posts: 851
jacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to behold
Quote:
Originally Posted by DustyPorViva View Post
Probably impossible. Maps lose data from being shrunken down.
Yeah-- I can't think of any way to take a map image and turn it in to levels.

For example -- if two tiles shared the same pixels just arranged in a different fashion(a mirrored version of the same tile like roof corners) it'd be impossible to differentiate.



Quote:
Originally Posted by Darugo View Post
That's awesome Have you tried inputting a screenshot of something that doesn't have a actual tileset?
Like something that I don't have the tileset for... or like a photograph?
__________________

Last edited by jacob_bald6225; 03-03-2011 at 06:46 AM..
Reply With Quote
  #16  
Old 03-03-2011, 07:42 AM
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
How is this possible? How do you define the actual tile orgins since not all screenshots are aligned? What is the average time it takes to compile a image to level? Say a 640x480 png for example.
__________________
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
  #17  
Old 03-03-2011, 03:47 PM
jacob_bald6225 jacob_bald6225 is offline
Doctor Who?
jacob_bald6225's Avatar
Join Date: Feb 2002
Posts: 851
jacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to behold
Quote:
Originally Posted by MrOmega View Post
How is this possible? How do you define the actual tile orgins since not all screenshots are aligned? What is the average time it takes to compile a image to level? Say a 640x480 png for example.
It probably isn't the most efficient technique but here is the gist:

Scan the tileset: Scan each pixel and put the RGB in to a string:

So RGB(0,0)+RGB(0,1).....+RGB(16,16). Since each tile is 16x16 pixels.

After the tileset is scanned it saves the information to the computer so you don't have to rescan for each level.

Then it loops through and checks each pixel of each tile in the screenshot(which is aligned and 1024x1024 pixels). If it matches a tile it adds that tile to a "recently used" array of tiles which get priority checking(so you don't have to loop back through the entire set of tiles after it gets cooking).

Each tile is synced up with the tile hex value(like "AE", or "/3". When it finds the tile it plops down the hex value in the level string. Right now it doesn't save files but outputs them as plaintext which you can copy paste in to a graal file and save with a text editor to get your level.

If the tile is unknown it puts a blackness tile so you can easily tell which tiles are missing.


All in all if the tileset is already scanned IIRC(it has been a few weeks since I generated a level from this). It pumps out the plaintext level in like (EDIT) 50 seconds which I have recorded in a video.

(Does this even make sense to anyone else?)

tl;dr:
1. Tileset scanned-->in order of the corresponding tile hex values.
2. Level is scanned tile by tile and plops out the hex value of the tileset tile that it matches.
3. Plaintext level is made and copy pasted in to a .nw with a text editor.


Again, this is probably not the best way to do this-- but it works.

(EDIT)Main problem here is I have it set up to do multiple levels in a row and as there are more tiles added to the priority list it begins to slow down-- I have a video of generating 6 levels in a row in 6:35 seconds.
__________________
Reply With Quote
  #18  
Old 03-03-2011, 03:52 PM
Rufus Rufus is offline
Registered User
Join Date: Jun 2004
Location: United Kingdom
Posts: 4,698
Rufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud of
I've seen this in action, it's impressive!
__________________
Quote:
Originally Posted by Loriel View Post
Seriously, you have ****-all for content and you're not exactly pulling in new developer talent, angling for prestigious titles should be your last concern.
Reply With Quote
  #19  
Old 03-03-2011, 04:37 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
I'm truly impressed, brilliant!
__________________
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
  #20  
Old 03-06-2011, 04:12 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
Pretty awesome, Zippy.
__________________
Reply With Quote
  #21  
Old 03-24-2011, 12:27 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
so if the screenshot is a normal screenshot anything blocking the tiles (GUI, char, etc) are colored black while the rest is fine? hmm!
__________________
Reply With Quote
  #22  
Old 03-24-2011, 12: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 Crono View Post
so if the screenshot is a normal screenshot anything blocking the tiles (GUI, char, etc) are colored black while the rest is fine? hmm!
Aye, you'd have to fill in the blanks.
Reply With Quote
  #23  
Old 03-26-2011, 05:31 AM
jacob_bald6225 jacob_bald6225 is offline
Doctor Who?
jacob_bald6225's Avatar
Join Date: Feb 2002
Posts: 851
jacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to behold
Quote:
Originally Posted by Crono View Post
so if the screenshot is a normal screenshot anything blocking the tiles (GUI, char, etc) are colored black while the rest is fine? hmm!
This is also extremely useful when ripping tiles you don't have a tileset for too.

Here is an example of ripping tiles due to this perk:

Step 1: Find a level to rip:


Step 2: Run it through without a defined tileset:


Step 3: Build the level from the output. Yellow tiles are unique tiles that appear for the first time. Any time another one of these tiles shows up it is colored green:


Step 4: Overlay the built level with unknown tiles and rip the unique tiles(which were colored yellow in this example).


From there you jump in to photoshop and put the tiles in their right behavioral spots(block/not) and regenerate until you have no missing tiles. Plus side to this is that there are no duplicates when ripping them out.
__________________

Last edited by jacob_bald6225; 03-26-2011 at 06:10 AM..
Reply With Quote
  #24  
Old 03-26-2011, 12:18 PM
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
I miss that level, lol
Reply With Quote
  #25  
Old 03-26-2011, 12:35 PM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
are you still doing this in flash?
Reply With Quote
  #26  
Old 03-26-2011, 01:53 PM
tempandrew tempandrew is offline
Registered User
Join Date: May 2005
Posts: 98
tempandrew is on a distinguished road
This is truly, really impressive. I'm not sure how much practical use this would have, however, other than possibly reviving old levels from screenshots people might have laying around.

Regardless, this is really something. Well done.
__________________
I'm using my main account, now, Pandar.
Reply With Quote
  #27  
Old 03-26-2011, 02:04 PM
Demisis_P2P Demisis_P2P is offline
Kanto League Champion
Demisis_P2P's Avatar
Join Date: Jan 2005
Posts: 2,357
Demisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud of
Quote:
Originally Posted by tempandrew View Post
This is truly, really impressive. I'm not sure how much practical use this would have, however, other than possibly reviving old levels from screenshots people might have laying around.

Regardless, this is really something. Well done.
Another practical sue was just posted.
This can help you build a tileset from screenshots of levels because it can identify the first time each unique tile is used.
__________________
Reply With Quote
  #28  
Old 03-26-2011, 02:21 PM
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
so hot man so hot
__________________
Reply With Quote
  #29  
Old 03-26-2011, 10:25 PM
jacob_bald6225 jacob_bald6225 is offline
Doctor Who?
jacob_bald6225's Avatar
Join Date: Feb 2002
Posts: 851
jacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to beholdjacob_bald6225 is a splendid one to behold
Quote:
Originally Posted by Mark Sir Link View Post
are you still doing this in flash?
Ya because I'm a noob anywhere else.
__________________
Reply With Quote
  #30  
Old 04-19-2011, 11:42 PM
Rufus Rufus is offline
Registered User
Join Date: Jun 2004
Location: United Kingdom
Posts: 4,698
Rufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud of
Quote:
Originally Posted by DARKVILLIN View Post
For most of the Red Squares. Don't use Half Grass...it looks bad
Also for the barrels use a .png with a transparent background. Just using the tileset its fine but don't be afraid to use .pngs in levels. They can fix a lot of tile errors. Also with the path tiles that are used on the inside of a path are used better when framed out. The random water spout...delete it. This isnt zelda The windows. Don't use the half windows...

Besides that there weren't a lot of tile errors. Keep up the work. Hope my input willl help you.
I think you missed the point of the thread.
__________________
Quote:
Originally Posted by Loriel View Post
Seriously, you have ****-all for content and you're not exactly pulling in new developer talent, angling for prestigious titles should be your last concern.
Reply With Quote
  #31  
Old 04-20-2011, 08:23 PM
Aknts Aknts is offline
Level Designer
Aknts's Avatar
Join Date: Apr 2001
Location: USofA
Posts: 3,340
Aknts will become famous soon enough
Send a message via AIM to Aknts
That's cool. There are a lot of levels I have posted on here that I don't have anymore.
__________________
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 08:32 PM.


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