Graalians

Graalians (https://www.graalians.com/forums/index.php)
-   General Graal Discussion (https://www.graalians.com/forums/forumdisplay.php?f=2)
-   -   [v3] Level Editor Basics (https://www.graalians.com/forums/showthread.php?t=11234)

Kiwi 10-22-2012 10:02 AM

[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 -
Spoiler

First, you need to open up the Graal client. Log in, and in the bottom left of the window you will see this:
http://i1085.photobucket.com/albums/...raal/Start.png
Click start, and select 'Install Packages'. You will now see this:
http://i1085.photobucket.com/albums/...llPackages.png
Next, click, in the section 'Developer Tools', click 'Level Editor'. I made a handy red square to show you where it is (even if it is a wee bit small). You will now see a screen similar to this:
http://i1085.photobucket.com/albums/...or_install.png
In the bottom middle, there will be a button saying 'Install'. It's different to me because I've already installed it.

It will download it to your 'Graal' folder. Open it up, and you will see this:
http://i1085.photobucket.com/albums/...aal/Hurrah.png
NOTE: The Level Editor a .exe file, so you can only open it on Windows (unless you have Wine). An alternative option is Gonstruct.



- Making an NPC -
Spoiler

First, you'll need to open up Level Editor. On the right hand side, you should see this:
http://i1085.photobucket.com/albums/...ditor-Side.png
Click the option in the minuscule red square. You will see this:
http://i1085.photobucket.com/albums/..._selection.png
See that outline that kind of looks like one of those white body outlines at a crime scene, except in this crime scene the body was run over by a tank? Click it, and drag it on to your level. Double click it, and this will open:
http://i.imgur.com/lqSr1.png
The bottom white writing area is where you put the NPC script. To the right is the handy basic script list, and up the top is where you select the NPC image. Pretty simple.

NPCs are often used for treetops you can walk behind, or to add in tiles that aren't in the tileset. If you want to make your own NPC images, they MUST saved in 8-bit, or else they won't work.



- 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.

http://i1085.photobucket.com/albums/...pGenerator.png

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]_'.

http://i1085.photobucket.com/albums/..._toolbar-1.png

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:
http://i.imgur.com/LSFCT.png
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 -


Dylan 10-22-2012 10:36 AM

Great little tutorial. :3 need to spread rep sry

Trylios 10-22-2012 11:46 AM

I do not know gmap a lot but I just would like to ask a question, the letters and numbers after the prefix of the filename is not that organized and sucks, is there a possible way to change it in a easy way? I have changed some filename and tried it again on the Level Editor, it doesn't let me go to that level.

I hope you could help, Thanks.

Johnaudi 10-22-2012 12:59 PM

Level Editor isn't a good tool for Gmaps.

Good tutorial tho!

Robert. 10-22-2012 04:45 PM

There is a special programme for Gmaps. I think you can download it in Developement Tools.

Johnaudi 10-22-2012 08:13 PM

Quote:

Posted by Robert. (Post 218492)
There is a special programme for Gmaps. I think you can download it in Developement Tools.

Yes, I'm used to it a lot, I'll make a tutorial about it tomorrow =]

Kiwi 10-22-2012 09:30 PM

I made it on what I use, and how I like to do things. I find the one in the tutorial best, so.

MattKan 10-22-2012 09:52 PM

Quote:

Posted by Johnaudi (Post 218435)
Level Editor isn't a good tool for Gmaps.

Good tutorial tho!

Works perfectly for me :0

Nivag pls 10-23-2012 02:21 AM

Looking good :)

ArtaXerXes 10-24-2012 04:24 AM

This is a great tutorial for a Graal player who hasn't dabbled in Graal development yet!

Johnaudi 10-24-2012 09:05 PM

Quote:

Posted by MattKan (Post 218634)
Works perfectly for me :0

It does, but placing tiles between two levels will be cut by the left, so it won't be very handy.

Trylios 10-25-2012 07:29 AM

I don't think that is "_" is needed on the prefix because it will be doubled.

Crow 10-25-2012 02:38 PM

Quote:

Posted by Trylios (Post 218415)
I do not know gmap a lot but I just would like to ask a question, the letters and numbers after the prefix of the filename is not that organized and sucks, is there a possible way to change it in a easy way? I have changed some filename and tried it again on the Level Editor, it doesn't let me go to that level.

I hope you could help, Thanks.

The format used by Rick, which I also inherited in my tool, is actually just perfect, and, in fact, very organized. Levels to the right and bottom of the "center" get numbered accordingly, levels to the left and top get letters instead. This allows easy expansion of gmaps at a later point in time. You can't just rename the levels either, since you would also have to rename their links in the adjacent levels and their reference in the .gmap file.


Quote:

Posted by Trylios (Post 220349)
I don't think that is "_" is needed on the prefix because it will be doubled.

You're correct.

Fatnoob 10-25-2012 03:45 PM

I wanna know when graal is making MAC OS X programs... >_<

Kiwi 10-25-2012 08:22 PM

Quote:

Posted by Fatnoob (Post 220539)
I wanna know when graal is making MAC OS X programs... >_<

Use Gonstruct and stop complaining. I want a brand new shiny level editor first.

Dylan 10-31-2012 01:09 AM

This should be stickied, I keep having to scroll through pages to find it.

Kiwi 11-07-2012 06:18 AM

Quote:

Posted by Dylan (Post 223981)
This should be stickied, I keep having to scroll through pages to find it.

Ehhh. It doesn't need to be. It'd be nice if there was a tutorial thread like the level one on the official forums so this just doesn't get lost though. It can't serve it's purpose if people don't know it exists.

Shiz 11-10-2012 08:30 PM

Oh thank god I found this. Been wondering about this for awhile but too busy to go search for it. Thanks man :-)

Kiwi 11-10-2012 08:32 PM

Quote:

Posted by ShizGodsu (Post 230692)
Oh thank god I found this. Been wondering about this for awhile but too busy to go search for it. Thanks man :-)

No problem :] did you find it via my signature or a search?

Shiz 11-10-2012 08:37 PM

Quote:

Posted by Kiwi (Post 230693)
No problem :] did you find it via my signature or a search?

Signature, haha. Always helps.

Shiz 01-04-2013 06:42 PM

I honestly don't know what im doing wrong to put era tiles in. I did everything you said to do, but it's still as the classic one. :/

Alex Damian 01-05-2013 06:07 AM

Great job! Awesome tutorial.

ihermes 01-05-2013 07:04 AM

ohh
kiwi <3

captainbligh 01-08-2013 03:15 AM

:( its so complicated... they should make it simple, like rpgvx

Kiwi 01-09-2013 11:33 PM

Quote:

Posted by captainbligh (Post 275604)
:( its so complicated... they should make it simple, like rpgvx

I've played around with that, and I found it way more complicated. The level editor will probably just take some getting used to for you.

Zerxus 01-10-2013 11:15 PM

Its nice someone actually spent time to make tutorials for this things.. :) gj kiwi

Ignatius 01-14-2013 12:50 AM

Where does it download to?

Kiwi 01-14-2013 12:52 AM

Quote:

Posted by Ignatius (Post 278794)
Where does it download to?

Graal folder

Ignatius 01-14-2013 12:55 AM

wheres that lol

I downloaded it, now, where do I go on my PC to find the Graal Folder?

Kiwi 01-14-2013 12:55 AM

Quote:

Posted by Ignatius (Post 278800)
wheres that lol

I downloaded it, now, where do I go on my PC to find the Graal Folder?

Errr I dunno haha. I think it's a subfolder in documents?

Ignatius 01-14-2013 12:56 AM

k lemme check

Kiwi 01-14-2013 12:57 AM

Quote:

Posted by Ignatius (Post 278803)
k lemme check

you go sir, I believe in you

Ignatius 01-14-2013 12:58 AM

NOPE

not there lol

Kiwi 01-14-2013 01:00 AM

Quote:

Posted by Ignatius (Post 278806)
NOPE

not there lol

Well I dunno where it is. Program files? It's in my documents folder, for whatever reason. You can just search for it, I guess.

Ignatius 01-14-2013 01:01 AM

already checked programs and x86 and documents... how would i search

Kiwi 01-14-2013 01:13 AM

Quote:

Posted by Ignatius (Post 278814)
already checked programs and x86 and documents... how would i search

Are you on windows? If you are just to to computer and search in the search bar

Ignatius 01-14-2013 01:14 AM

no folder:/

Kiwi 01-14-2013 01:19 AM

Quote:

Posted by Ignatius (Post 278832)
no folder:/

Do you actually have Graal downloaded and stuff?

Sensativity 01-14-2013 02:10 AM

Quote:

Posted by ShizGodsu (Post 273465)
I honestly don't know what im doing wrong to put era tiles in. I did everything you said to do, but it's still as the classic one. :/

You have to drag and drop a blank npc and place the following script in.
PHP Code:

//#CLIENTSIDE
function onCreated (){
removetiledefs;
addtiledef namegoeshere.png,,0  



Kiwi 01-14-2013 02:34 AM

Quote:

Posted by Sensativity (Post 278886)
You have to drag and drop a blank npc and place the following script in.
PHP Code:

//#CLIENTSIDE
function onCreated (){
removetiledefs;
addtiledef namegoeshere.png,,0  



But the 0 should be a 1 for the era tileset.

Sensativity 01-14-2013 06:48 AM

PHP Code:

function onCreated (){
  
addtiledef erastilesetiamgenamehere.png,#L,0;
}

//for it to work offline you can use this 

if(created){
 
addtiledef erastilesetiamgenamehere.png,#L,0;



FaTaLFuN 03-10-2013 03:40 PM

On my graal there is no level editor button under development tools. The only thing under that is Remote Control plz help!

iDylan 03-10-2013 07:05 PM

Quote:

Posted by FaTaLFuN (Post 310183)
On my graal there is no level editor button under development tools. The only thing under that is Remote Control plz help!

Start> Install Packages> Level Editor> Install.

Kyle Kol 03-22-2013 01:06 AM

You aren't supposed to use the Level Editor for Gmaps...? *mind blown*

CHAOS* 03-28-2013 08:03 PM

Quote:

Posted by Ignatius (Post 278832)
no folder:/

I got the same problem :/

Cup Of Joe 05-30-2013 03:46 AM

AHH HOW DO I OPEN MY GRAAL FOLDER?

iDylan 05-30-2013 01:37 PM

Quote:

Posted by Cup Of Joe (Post 359805)
AHH HOW DO I OPEN MY GRAAL FOLDER?

Search for Graal, or open it by going to My Computer>C:>Users>''your name''>Graal.

KittyBoo 07-09-2013 01:35 AM

Uhh Yea I Cant Find My Graal Folder Btw I Use Windows

Hugop 10-25-2013 06:26 PM

thanks

SpyN64 11-06-2013 05:27 PM

only if i had the time ;-;


All times are GMT. The time now is 07:56 AM.

Powered by vBulletin/Copyright ©2000 - 2026, vBulletin Solutions Inc.