Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   getrealtileset() (https://forums.graalonline.com/forums/showthread.php?t=134256920)

DustyPorViva 11-13-2009 05:55 PM

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.

Tigairius 11-13-2009 06:09 PM

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.

DustyPorViva 11-13-2009 06:12 PM

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.

Tigairius 11-13-2009 08:27 PM

Quote:

Originally Posted by DustyPorViva (Post 1538168)
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.


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

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