Registered User
Join Date: Mar 2012
Location: New Zealand
Posts: 2,956
|
[v3] Level Editor Basics
level editor basics, with Kiwi
Yeah, this is version three. I was going to add two new sections, but then for various reasons I decided only to go with the tree tutorial. There are others around, but this way they're all in one place. So, for those who didn't see the previous versions, these are various tutorials on how to do basic things with the level editor. They're all in one place so people don't need to make their own threads. They really shouldn't need to do that anyway, because there are guides everywhere, if they knew how to search, but past evidence shows that people can't. So, here we go.
Also, if you like it, feel free to rep me.
- Getting the Level Editor -
- Making an NPC -
- Creating a gMap -
Spoiler
If you don't know, a Gmap (Graal Map) is more than one level connected. They are used, on servers, to create large overworlds. They can be 2x2, 100x100, anything (but I'd advise against creating a 1000x1000 and deciding to make a gigantic world - keep it doable). You open them in the level editor, and use a handy arrow to move around all your levels.
To make one, you can use this handy tool, create by a guy named Rick. Isn't he nice?
It's very easy to use. First, type in your prefix. This can be something like 'mygmap_', or maybe something like 'worldiagmap_' - anything. Just don't forget an underscore. Next, chose your width, and your height. The default, 10x10, would create a Gmap that is ten levels by ten levels.
Finally, choose your center x, and center y. This is a location like the 'unstick me' spot in Graal City - when you appear when you load the level. Now that you've selected all your options, click generate, and your gmap will download onto your computer, in a folder saying '[YOURPREFIX]_'.
To open your Gmap, go into the Level Editor. Select open - it looks like an opened folder. Open your new folder, and select the level that should say, '[YOURPREFIX]_00-00'. Right now, it'll just be one level. But don't worry, to open the rest, simply open up a new NPC, and enter in the following:
PHP Code:
loadmap [YOURPREFIX]_.gmap;
Here is an example of what it should look like:
You should now be able to traverse and create your new world!
[for another handy gMap generation option, take a look at Crow's Gmap Generator]
- Setting a Tileset -
Spoiler
A tileset is a set of graphics used to make Graal servers look different. You can have them in your levels, too.
First, you need to understand that there are two types of tilesets: type 0 and type 1. Type 0 is the illogical mess used in tilesets like pics1, the Classic PC tileset, and the iClassic tileset. It takes some time to get used to, but eventually you do.
Template :: Dusty's Guide
Type 1 is used in tilesets like the Delteria one, and the Era tileset. Tiles are arranged in a manner that is far more logical, but type one tilesets can still take just as long to get used to.
Template :: Template Two
For this guide, we'll pretend you are using a different tileset, and wanting to use pics1. First, make and open up a new NPC in your level, as shown in the NPC section. Type this into it:
PHP Code:
//#CLIENTSIDE if (created) { removetiledefs; addtiledef pics1.png,,0; }
Where 'pics1.png' is is where you put the tileset name. For this, it needs to have '.png' at the end, and the tileset needs to be in the Tiles folder (Graal>Levels>Tiles). Again, it needs to be 8-bit.
Between the next two commas (,), you put the level prefix. For now, you could leave this blank. It's useful if you are working with a gMap, because it will change all the levels with the prefix you put in to have the same tileset (the one you just selected). Example:
PHP Code:
addtiledef pics1.png,mylevel_,0;
Finally, where the '0' is is where the tileset type goes. I sure do hope you haven't forgotten what they are already. You should know, if you read this properly, that, because we're using pics1, it needs to stay a zero. If it was the Era tileset we wanted, it should become a one.
Sometimes, you'll get an error where there's a black zigzag running across the level, and it's grey where the tiles are meant to be. If this happens, make sure the script is all correct. If this still doesn't work, try deleting FILENAMECACHE.txt.
- Tiling Trees -
Last edited by Kiwi; 10-22-2012 at 08:28 PM.
|