Graal Forums  

Go Back   Graal Forums > Development Forums > Level Design
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-28-2009, 06:58 AM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
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.
Reply With Quote
  #2  
Old 07-28-2009, 07:18 AM
Programmer Programmer is offline
Coder
Programmer's Avatar
Join Date: Jan 2008
Location: -78.464422, 106.837328
Posts: 449
Programmer has a spectacular aura aboutProgrammer has a spectacular aura about
Send a message via AIM to Programmer Send a message via MSN to Programmer Send a message via Yahoo to Programmer
Quote:
Originally Posted by Draenin View Post
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.
__________________
- Iᴀɴ Zɪᴍᴍᴇʀᴍᴀɴ
Reply With Quote
  #3  
Old 07-28-2009, 07:49 AM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Quote:
Originally Posted by Programmer View Post
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.

Last edited by Draenin; 07-28-2009 at 06:33 PM..
Reply With Quote
  #4  
Old 07-28-2009, 01:06 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
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
Reply With Quote
  #5  
Old 07-28-2009, 07:21 PM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 02:53 PM.


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