Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Level Design (https://forums.graalonline.com/forums/forumdisplay.php?f=6)
-   -   Terraingen Maps (https://forums.graalonline.com/forums/showthread.php?t=87132)

Draenin 07-28-2009 06:58 AM

Terraingen Maps
 
Hey guys. I need a little help with something.

I am looking to test some terraingen maps offline and am trying to get the scripts working for it. Is there some special place I need to put my gmap files? And in addition, I need to modify a script to where it will load properly offline. So far, I've got:

PHP Code:

if(created){addtiledef picso2.png,psi_a-1.nw,0;}
if(
created){loadmap psi.gmap;} 

At the moment, the editor acts like it wants to load the tiles and gmap, turning solid black, but there are no tiles snowing, and none of the vertices you can grab onto to raise or lower the land.

Any help with this would be greatly appreciated.

Programmer 07-28-2009 07:18 AM

Quote:

Originally Posted by Draenin (Post 1511097)
Hey guys. I need a little help with something.

I am looking to test some terraingen maps offline and am trying to get the scripts working for it. Is there some special place I need to put my gmap files? And in addition, I need to modify a script to where it will load properly offline. So far, I've got:

PHP Code:

if(created){addtiledef picso2.png,psi_a-1.nw,0;}
if(
created){loadmap psi.gmap;} 

At the moment, the editor acts like it wants to load the tiles and gmap, turning solid black, but there are no tiles snowing, and none of the vertices you can grab onto to raise or lower the land.

Any help with this would be greatly appreciated.

Try this script:
PHP Code:

if(created)
{
loadmap psi;
addtiledef picso2.png,psi_,0;


The .nw and .gmap files should be in the same folder as well. Hope this helps.

Draenin 07-28-2009 07:49 AM

Quote:

Originally Posted by Programmer (Post 1511099)
Try this script:
PHP Code:

if(created)
{
loadmap psi;
addtiledef picso2.png,psi_,0;



Okay, I got the tileset to load, at least. The issue was with it not being 8-bit. However, the loadmap command doesn't seem to be working.

Terraingen's documentation says something about loadmaps.txt, and I'm wondering if I need to be doing something there. And if so, what do I need to change in the level? I've tried creating loadmaps.txt, and the only line in there is the gmap name. (psi.gmap) The gmap itself is in Graal/Psi, along with all the other .nw files, but the terrain isn't loading, nor are all the levels loading at once so I can quickly scroll across the gmap. I've also tried just using 'psi' instead, but that still does nothing.

Crow 07-28-2009 01:06 PM

The loadmaps.txt file has to be in your Graal root folder. It needs (as far as I know) two lines for every map, in your case "psi" and "psi.gmap".
Should do the trick :)

Draenin 07-28-2009 07:21 PM

Okay, got it working. Thanks Crow.

Apparently, my main problem was that, in psi.gmap, I hadn't changed the parts that still said 'myworld' to 'psi' instead, so it was trying to load the end level as myworld still, even though I had renamed all the files to start with psi. However, the lines in loadmaps.txt were still pretty important.


All times are GMT +2. The time now is 04:51 AM.

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