Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   TTileMap.saveasimage() (https://forums.graalonline.com/forums/showthread.php?t=134261321)

Crow 12-14-2010 07:48 PM

TTileMap.saveasimage()
 
Quote:

TTileMap.saveasimage(str, int, bool) - generates a screenshot of the whole map, parameters are the file name, number of pixels per unit and if it should clip to visible objects
Found this using /scripthelp. How do we use it? This sounds incredibly useful.

DustyPorViva 12-14-2010 07:54 PM

Can't find it in my scripthelp :(

Crow 12-14-2010 07:55 PM

"/scripthelp screen" brought it up.

fowlplay4 12-14-2010 08:05 PM

Maybe.. level.tiles.saveasimage("testmap.png", 1, true); ?

Crow 12-14-2010 08:53 PM

Doing it on a level that doesn't belong to a gmap spits out an error on RC (Function not found). Doing it either on the level object itself or on the tiles object doesn't cause an error, but it doesn't create an image either. I tried it several times using different ways, also using the full path to the file, making sure the npc server had rw rights to that path; no success so far.

DustyPorViva 12-14-2010 08:56 PM

Have you tried it on a gmap itself?

Crow 12-14-2010 09:08 PM

Quote:

Originally Posted by DustyPorViva (Post 1616274)
Have you tried it on a gmap itself?

First thing I did. Error.

DustyPorViva 12-14-2010 09:13 PM

Well I'm curious as to where it WOULD save, seeing as you're not specifying. Did you check your Graal folder? Screenshots, map folder? Scripts folder(or wherever server script data reverts to).

Crow 12-14-2010 10:36 PM

I went through everything already :(

MrOmega 12-15-2010 03:45 PM

did you try player.gmap.tiles.saveasimage("testmap.png", 1, true);

fowlplay4 12-15-2010 04:32 PM

Well I'd guess the feature is only half-implemented and probably requires instantiating a TTileMap which only Stefan knows how to do.

I personally couldn't find the scripthelp for TTileMap on Zodiac so I guess it's coming with a new npcserver update.

Admins 12-16-2010 01:54 AM

Normally this is not part of v6 yet, it's only in testing phase.

MrOmega 12-16-2010 06:15 PM

Normally? How can we unnormally use it?

Mark Sir Link 07-31-2011 05:58 AM

was this ever made available?

Admins 07-31-2011 09:20 PM

It is not public yet.


All times are GMT +2. The time now is 07:26 PM.

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