Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-13-2009, 05:55 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
getrealtileset()

Returns an image of what the players current tileset looks like. This includes a compressed image of addtiledef() and all addtiledef2()'s. Right now we can grab the tileset the player sees, but we can't generate what it looks like when you include addtiledef2's.

Not sure if this should be a level.function() or what... point is I think it'd be useful to be able to work with what the player is really seeing in their level. I know this would be really useful for those scripting real-time level editors.
Reply With Quote
  #2  
Old 11-13-2009, 06:09 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
The way I am doing addtiledef2 in my online level editor is by adding the tiledef2s (by reading their tiledefs file) to a drawing panel, and then using saveimage, and then accessing the image. Only problem with this is that is basically only works on the new version.

There are more efficient ways to do it though, if you use drawing panels for pretty much everything (like dragging tiles around and stuff), you don't even need to generate the image.

Right now, the only reason I am doing it the other way is because I coded the level editor (which is massive now) using only pics1.png to test with, but realized later that I forgot to include support for addtiledef2, so I had/need to change a lot of how the tiles are being handled.

However, if this were to be added, I definitely support it.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #3  
Old 11-13-2009, 06:12 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
That's what I was thinking as well, but isn't there a bug where saved images from drawingpanels aren't being cached properly and thus not available immediately? Alternatively, my suggestion to be able to access a panel directly as an image would be useful as well.
Reply With Quote
  #4  
Old 11-13-2009, 08:27 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Quote:
Originally Posted by DustyPorViva View Post
That's what I was thinking as well, but isn't there a bug where saved images from drawingpanels aren't being cached properly and thus not available immediately? Alternatively, my suggestion to be able to access a panel directly as an image would be useful as well.
Yes there is a bug, but it's fixed in the new version.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
Reply


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

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

Forum Jump


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


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