Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-12-2004, 07:09 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
Creating a gmap

What program is used? I need to convert my overworld into a flat gmap.
Reply With Quote
  #2  
Old 03-12-2004, 07:48 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
No converters :|
read this, it should tell you everything you need to know
Attached Files
File Type: txt gmap.txt (5.2 KB, 803 views)
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #3  
Old 03-12-2004, 10:50 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Thanks chad, I need to touch up on it.
__________________
V$:CONFL16T
Reply With Quote
  #4  
Old 03-12-2004, 11:56 AM
SlikRick SlikRick is offline
Retired
Join Date: Aug 2003
Location: Minnesota,USA
Posts: 685
SlikRick is on a distinguished road
For some reason i couldnt download it
Reply With Quote
  #5  
Old 03-12-2004, 03:30 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
GMAPs Howto
Gmaps are files that contain information about how to links many single level
files (.nw) to a big map that seems like one level in game. This makes it
possible to have a map that shows all player on the same island or area as
yourself, and removes restrictions on what NPCs can do caused by the
seperativity of each level.
Earlier this was done through .txt files merely containing a list of levels,
and the setmap command, but this lacks many of the features the gmap way
provides, and thus shall not be used anymore. Many playerworlds probably still
use the old way, but this is merely because of the difficulties that make it
hard and error prone to convert a whole 'game' to a new format.
Gmaps, if not handmade, are created by the level generator that is installed
through Graal's setup.exe along with the Windows version of the game. To my
knowledge, for Graal's versions for other operating systems there is currently
no device that creates levels or maps.
Gmaps can also hold height information that are used by the Graal engine to
display levels in a three dimensional looking way. The height information is
mainly created by the level editor and the mystical "Terrain Generator"
programs that allows creation of whole islands, but is only available as a
leaked .exe file.

Gmaps are plain text files, and all gmaps as of now start with the string
GRMAP001, followed by a newline. Then, in each line, a 'command' is given,
usually in capital letters. Parameters to those commands are put into the same
line after a whitespace. Some commands are in fact lists, which have nothing
in their line, but which treat all following lines as their parameters until
they see themselves followed by 'END' without any whitespace again.
To learn about all that, in addition to reading this tutorial, I recommend to
check your 'maps' subfolder, and have a look at some PWs' gmaps. I receive my
knowledge of no other source than that.

WIDTH, and HEIGHT, followed by an integral number
Dimensions of the whole map, given in single levels. If given incorrectly,
these can break the whole map, thus be careful.
GENERATED, followed by a level name
Gives the last, or bottom right, level that was generated if the gmap was
created along with a whole set of levels using a device such as the terrain
generator.
LEVELNAMES, followed by a list of levels, and terminated by LEVELNAMESEND
The list of levels that are part of this map. Each 'row' of levels goes into
one line, seperated by commata. There is no commata at the end of a line.
MAPIMG, followed by a PNG file name
The image file that is to be used as the map that players see if they press
their Map key.
MINIMAPIMG, followed by a PNG file name
The image file that is to be used as the mini map in the bottom left corner
of one's screen.
NOAUTOMAPPING, uses no param
Disables the assembly of automagical screenshots into a map that is drawn
over the MAPIMG image.
GENEVENBORDERS, followed by true/false
GENSEED, followed by a big number used to seed randomness
GENBASE, followed by a height value
GENHEIGHT and LEVHEIGHT, followed by a height value
GENCHAOS and LEVCHAOS, followed by a number between 0 and 1, I think, exact to 1/20
HEIGHMAP, followed by a list of height values for each level ordered similar
to the LEVELNAMES list, terminated by HEIGHTMAPEND
RANDOMSEEDS, followed by lots of big numbers, probably ordered similar to the
LEVELNAMES list, terminated by RANDOMSEEDSEND
These are used by the engine to render the level in a 3dy way. I know no
more about them than what is obvious from reading their names. They are
usually set by the terrain generator.

Now, imagine you have a gmap and a set of levels and want to actually use it
on Graal. The main thing is to load it by using the clienstide script command
loadmap, which takes the name of a gmap as a parameter, without the .gmap
extension. This is usually done by a NPC Weapon that each player has, like
-System, or -Initialization, and as Stefan loads all gmaps as soon as a player
connects to the server, I suggest you do so too.
This will enable the engine to assign levels the player enters or sees. Levels
must still have link areas to each other in order to move on the map. But as
you are going to use the gmap on your playerworld, you need to make it
available for players to download, by putting it inside the levels/ folder
hierarchy using the RC's file manager, and adding it to the folder
configuration as mere level; level *.gmap, for example. It is neccessary to
additionally register it as file in the folder configuration, but there is no
gmap category to put it under.
To make the NPC Server aware of your gmaps, you need to list them in the
server options too. Add a new option gmaps= followed by a comma seperated list
of names without the .gmap extension. If your line gets too stuffed, you can
as well use multiple lines, as long as you prefix each one with gmaps=. The
entries in each lines will be added, and not replace each other.

TODO:
Make up sensible order for the commands.
Probably should ask Stefan about those:
How obsolete is it to use all of WIDTH, HEIGHT, GENERATED and LEVELSLIST?
MAPIMG and the like: Omit or put -?
That's it.
__________________
V$:CONFL16T
Reply With Quote
  #6  
Old 03-12-2004, 03:41 PM
SlikRick SlikRick is offline
Retired
Join Date: Aug 2003
Location: Minnesota,USA
Posts: 685
SlikRick is on a distinguished road
Thanks Wan...Always wondered how to do it O_o
Reply With Quote
  #7  
Old 03-12-2004, 10:01 PM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Heh I made a generator long ago, it should work fine:
http://gscript.us/gmap.php
Reply With Quote
  #8  
Old 03-13-2004, 12:36 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
Originally posted by Riot
Heh I made a generator long ago, it should work fine:
http://gscript.us/gmap.php
I'm going to try that later
__________________
V$:CONFL16T
Reply With Quote
  #9  
Old 03-14-2004, 07:11 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
You folks could give me some credit at least
Reply With Quote
  #10  
Old 03-15-2004, 01:12 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally posted by Loriel
You folks could give me some credit at least
did you write that text file? cause if you did you should have put your name in there, I can't do everything y'know!
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #11  
Old 03-15-2004, 01:23 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Well, I am distributing it on my webspace, so I would assume people know when they take it.
Reply With Quote
  #12  
Old 03-15-2004, 06:03 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
meh, I don't even remember downloading it, I'm sure I got it from the forums somehow, anywho good jorb!!
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #13  
Old 03-15-2004, 05:23 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Thanks
Perhaps I should come up with more documentation?
Reply With Quote
  #14  
Old 03-15-2004, 05:52 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Examples would be nice I guess?
Like if I add this it'll alter this:
something like that'd be nice..
__________________
V$:CONFL16T
Reply With Quote
  #15  
Old 03-15-2004, 06:51 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally posted by Loriel
Thanks
Perhaps I should come up with more documentation?
remake npcprogramming.doc? :grin: haha
That would be a big task, be better to have a team of some sort so it would actually get done. I'll help ya if you're up to it though.
someone else volunteer too!
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial

Last edited by Dach; 03-15-2004 at 08:35 PM..
Reply With Quote
  #16  
Old 03-15-2004, 08:28 PM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Quote:
Originally posted by Dach


remake npcprogramming.doc? :grin: haha
Yhat would be a big task, be better to have a team of some sort so it would actually get done. I'll help ya if you're up to it though.
someone else volunteer too!
::waves:: you could count me in
__________________
Reply With Quote
  #17  
Old 09-23-2005, 12:01 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
The gamp generator linked in this thread points to a URL that is broken.
Anyone care to point me in another place i can find the gmap generator?
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #18  
Old 09-23-2005, 01:12 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by prozac424242
The gamp generator linked in this thread points to a URL that is broken.
Anyone care to point me in another place i can find the gmap generator?
Just download the dev package. It's located in graalfolder\terraingerator
__________________
Liek omigosh.

Reply With Quote
  #19  
Old 09-23-2005, 08:54 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
This thread is a year old. Don't revive old threads.
__________________
Skyld
Reply With Quote
  #20  
Old 09-23-2005, 01:45 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally Posted by prozac424242
The gamp generator linked in this thread points to a URL that is broken.
Anyone care to point me in another place i can find the gmap generator?
notepad.
Reply With Quote
Reply


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 07:01 PM.


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