Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   GuiTilesCtrl and related functions (https://forums.graalonline.com/forums/showthread.php?t=134266068)

xXziroXx 03-22-2012 07:32 PM

GuiTilesCtrl and related functions
 
What is a GuiTilesCtrl and how do I use it? Seems to come with a few interesting functions:

GuiTilesCtrl.loadtilemap(str, str) - returns object
GuiTilesCtrl.loadtilemapxml(str) - returns object


PHP Code:

-  TTileMap (TGraalVar):
-    
clear() - clears the tile maponly works for script-created tile maps
-    destroy() - deletes the tile maponly works for script-created tile maps
-    findanimation(str) - returns object
-    findimagemap(str) - returns object
-    loadtilemap(strstr) - returns object - use loadTileMapXML instead
-    loadtilemapxml(str) - returns object loads a level in the new format (gxml); this is for data processing only, if you want to display it then use GuiTilesCtrl or create a gmap with the line TILEMAP yourmap.gxml
-    saveasimage(strintbool) - generates a screenshot of the whole mapparameters are the file namenumber of pixels per unit and if it should clip to visible objects 


DustyPorViva 03-22-2012 07:54 PM

I believe Stefan is implementing a new level format that was adopted from one of their other games:
http://wiki.graal.net/index.php/Euro...derland_Online

When he stated a while ago that there was a new editor in the making, I believe this is the format it used. I doubt there is any way to use those, though, because the format has not been released, nor has the editor.

xXziroXx 03-22-2012 09:21 PM

Quote:

Originally Posted by DustyPorViva (Post 1689645)
I believe Stefan is implementing a new level format that was adopted from one of their other games:
http://wiki.graal.net/index.php/Euro...derland_Online

When he stated a while ago that there was a new editor in the making, I believe this is the format it used. I doubt there is any way to use those, though, because the format has not been released, nor has the editor.

Possibly. But then again, it might be Graal related, especially considering this:

Quote:

if you want to display it then use GuiTilesCtrl or create a gmap with the line TILEMAP yourmap.gxml

DustyPorViva 03-22-2012 09:37 PM

Quote:

Originally Posted by xXziroXx (Post 1689649)
Possibly. But then again, it might be Graal related, especially considering this:

It is Graal related as Stefan has shown interest in bringing it to Graal, but everything I said still stands. The editor still hasn't been released(surprise) and neither has the format.

fowlplay4 03-23-2012 12:31 AM

Enjoy your goose-chase.

PHP Code:

<?xml version="1.0"?>
<level>
    <layerconfig />
    <imagemaps>
        <imagemap>
          <imageName></imageName>
          <imageMode></imageMode>
          <cellWidth></cellWidth>
          <cellHeight></cellHeight>
          <filterMode></filterMode>
        </imagemap>
    </imagemaps>
    <animations>
        <animation>
          <imageMap></imageMap>
          <animationFrames></animationFrames>
          <animationTime></animationTime>
        </animation>
    </animations>
    <objects>
        <object>
          <Layer></Layer>
          <Position></Position>
          <size></size>
          <animationName></animationName>
        </object>
    </objects>
    <tilelayers>
        <tilelayer>
          <Layer></Layer>
          <Position></Position>
          <size></size>
          <tileCountX></tileCountX>
          <tileCountY></tileCountY>
          <tileSizeX></tileSizeX>
          <tileSizeY></tileSizeY>
          <tile />
        </tilelayer>
    </tilelayers>
</level>



All times are GMT +2. The time now is 02:33 PM.

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