Graal Forums  

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

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-08-2002, 10:24 AM
Graal2001_LAT Graal2001_LAT is offline
Banned
Graal2001_LAT's Avatar
Join Date: Jul 2002
Location: g forums
Posts: 606
Graal2001_LAT is on a distinguished road
Lightbulb Level editing FAQ's

Okay, I have constructed a Level Editing FAQ. Please read this through before posting a new thread, because your answer could be here.


I will start with commands in the editor. (Training and then F4)

alt 0: Creates a log, which also shows people logging on / off
alt 1 : Takes a snapshot of the full level, not showing tiledefs, seteffects, or light effects.
alt 2: Takes a snapshot of the current screen, showing everything.
alt 3: Toggles the minimap on/off
alt 4: Toggles bitrate on/off [Only works online]
alt 5: Takes a snapshot of the level in .graal or .nw format.
alt 6: Records the players movements for scripting. [Does not work online.]
alt 7: Stops recording player movements and creates a recordpos.txt under the /levels directory. [Does not work online.]
alt 8: Zoom in.
alt 9: Zoom out.


For you people who are trying to add your own tileset you made, or add some custom tiles to the current tileset, look here.

addtiledef - This command replaces the whole tileset image with a brand new one. (remember the image has to be 256 colours (8 bit)) The code is this:
NPC Code:
addtiledef tilesetimage,0,0;


The first 0 meaning levelstart, so that say you have a world with level names myworld_1-100. You would put 'addtiledef tilesetimage,myworld_,0;' so that all your levels will have the new tileset. The second 0 is type, 0=normal pics1.png and 1=a newworld type tileset order.


addtiledef2 - This command just replaces part of the tileset image, sort of like putting an image on top of the base image. The code is:
NPC Code:
addtiledef2 tilesetimage,level name,x,y;


The x,y specifies where you want your image to go over the tileset.

Map tutorial

-The text file
You will need a text file with the levels ordered in it.
For example, name the file "bigmap.txt"
So, you open it, and write levels in it. You have a 4x4 map (4 by 4 levels). The levels are listed like this:
-----------------------------------
"mylevel_a-1.nw","mylevel_b-1.nw"
"mylevel_a-2.nw","mylevel_b-2.nw"
-----------------------------------
With the quotations.
That tells the graal.exe how to read your levels when you choose to generate a map.

-The Levels
Okay! We've written the text file, now to make the levels (and link them [not explained... I hope you have enough sense to figure it out!])
Make four levels, and name them

mylevel_a-1.nw
mylevel_b-1.nw
mylevel_a-2.nw
mylevel_b-2.nw

and place them in the same folder as the text file.
link them as needed.

Now, in Level-editting mode (f4) open the first level on your map press "M" and it will ask you if you want to generate a map. Select "yes" or "ok" or whatever, and it will eventually finish with an image asking to be named, sort of. Go to the folder that your levels and .txt are in, and save it. Boom, you have a map image.

To get your map and all the levels to link together, put the script
NPC Code:
setmap mapname.png,bigmap.txt,30,60;

in an NPC in the "starting" level.

Minimap: If you want a minimap just simply follow this: Anyway just take your map and resize it much smaller so that it looks appealing to you in the bottom left hand corner. From there add this code to your previous map script:
NPC Code:
setminimap mapname.png,bigmap.txt,playerx,playery;





If you do not understand any of this, post here and I will answer your question. Special thanks to Torankusu and Zakur for their contributions.

Last edited by Graal2001_LAT; 08-23-2002 at 02:20 AM..
  #2  
Old 08-08-2002, 10:28 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
Spiffy Idea
__________________
  #3  
Old 08-08-2002, 07:38 PM
Andor_RC14 Andor_RC14 is offline
Registered User
Join Date: Jan 2002
Location: U.S.A - Ohio
Posts: 101
Andor_RC14 is on a distinguished road
Send a message via ICQ to Andor_RC14 Send a message via AIM to Andor_RC14 Send a message via Yahoo to Andor_RC14
Very very well put Mmmmkay. One thing about the map though, you don't have to create a blank .png img in there before the rest of it. I find that harder since I cant make a .png that is just 8bit
__________________


Statistics show that 60% of all statistics are made-up
Manager of Norin.
EX Co-Manager of Bravo Online.
  #4  
Old 08-08-2002, 10:51 PM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Quote:
Originally posted by Andor_RC14
Very very well put Mmmmkay. One thing about the map though, you don't have to create a blank .png img in there before the rest of it. I find that harder since I cant make a .png that is just 8bit
Uh, you have to or the script won't work and generate a map. There has to be an existing image, preferrably in 256 colors/8-bit.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
  #5  
Old 08-08-2002, 11:14 PM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
When generating a map, it all you need is the levels in one folder and then press "m" in the editor, and it creates everything for you -_-
__________________
  #6  
Old 08-09-2002, 03:17 AM
Graal2001_LAT Graal2001_LAT is offline
Banned
Graal2001_LAT's Avatar
Join Date: Jul 2002
Location: g forums
Posts: 606
Graal2001_LAT is on a distinguished road
Quote:
Originally posted by Andor_RC14
Very very well put Mmmmkay. One thing about the map though, you don't have to create a blank .png img in there before the rest of it. I find that harder since I cant make a .png that is just 8bit
Torankusu made the map, I will edit it later to how I do it, which seems easier.
  #7  
Old 08-09-2002, 03:22 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Quote:
Originally posted by zell12
When generating a map, it all you need is the levels in one folder and then press "m" in the editor, and it creates everything for you -_-
a text file is also needed, as well as an image. Or else you get an error in the NPC when you "test" it, thus, not allowing it to work.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
  #8  
Old 08-10-2002, 10:20 PM
Redwizard Redwizard is offline
Official Graal Oldbie
Redwizard's Avatar
Join Date: Oct 2001
Location: South Wales, United Kingdom
Posts: 601
Redwizard is on a distinguished road
Send a message via ICQ to Redwizard Send a message via AIM to Redwizard Send a message via MSN to Redwizard Send a message via Yahoo to Redwizard
My map is glitchy, I have no idea why... can somebody explain to me why it has glitches and stuff in stripes like my map here? It is sooooo ***, and if i look really closely it looks like millions of tilesets shrunk really small
Attached Thumbnails
Click image for larger version

Name:	graalmap2.png
Views:	1528
Size:	67.4 KB
ID:	19573  
  #9  
Old 08-11-2002, 04:02 PM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Quote:
Originally posted by Redwizard
My map is glitchy, I have no idea why... can somebody explain to me why it has glitches and stuff in stripes like my map here? It is sooooo ***, and if i look really closely it looks like millions of tilesets shrunk really small
That happens some times, and it's not the way the map was generated. One of the computers at my grandparents does that, but the levels don't have that on them.
  #10  
Old 08-12-2002, 08:14 PM
SingleChance SingleChance is offline
Kill Pirates
Join Date: Apr 2002
Location: Canada
Posts: 1,296
SingleChance is on a distinguished road
Question

Happend to me when i was making a good level but it actually shoed up on the levels=/
  #11  
Old 08-20-2002, 12:36 PM
Graal2001_LAT Graal2001_LAT is offline
Banned
Graal2001_LAT's Avatar
Join Date: Jul 2002
Location: g forums
Posts: 606
Graal2001_LAT is on a distinguished road
Quote:
Originally posted by Androk2k1
So How exactly do I make levels? I think that's what Level Editing is about...
That is a question without a definite answer, so I cannot write you something which gives you mad ability. (Oh, I believe the 'new' icon in the editor makes a level )

You have to make levels with your knowledge, and then study what you did. See where you can improve, possibly look at other level techniques and adapt your own. Level making takes time, the saying "practice makes pefect" is meaningful.
  #12  
Old 08-21-2002, 01:13 AM
Cid_Night Cid_Night is offline
Registered User
Cid_Night's Avatar
Join Date: Jun 2002
Location: CT USA
Posts: 907
Cid_Night is on a distinguished road
Send a message via AIM to Cid_Night
wow, thanks mmmmkay, this taught me how to make maps, now i am able to make large scale projects much easier, look at the map ima workin on...
Attached Images
 
__________________
Cid Night -Doomsday Co-Manager-
  #13  
Old 08-23-2002, 02:22 AM
Graal2001_LAT Graal2001_LAT is offline
Banned
Graal2001_LAT's Avatar
Join Date: Jul 2002
Location: g forums
Posts: 606
Graal2001_LAT is on a distinguished road
Quote:
Originally posted by Androk2k1
What about mini map? What size should it be? How does it work?
Quote:
Originally posted by Graal2001_LAT
Minimap: If you want a minimap just simply follow this: Anyway just take your map and resize it much smaller so that it looks appealing to you in the bottom left hand corner. From there add this code to your previous map script:
NPC Code:
setminimap mapname.png,bigmap.txt,playerx,playery;


  #14  
Old 08-25-2002, 11:58 PM
Graal2001_LAT Graal2001_LAT is offline
Banned
Graal2001_LAT's Avatar
Join Date: Jul 2002
Location: g forums
Posts: 606
Graal2001_LAT is on a distinguished road
Quote:
Originally posted by zell12
not working >=(
Be more specific...
  #15  
Old 08-26-2002, 12:00 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
The map was all black :O I fiexed it though, I had to regenerate the levels and overwrite the old .png img
__________________
  #16  
Old 09-02-2002, 09:19 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
Question Hmmm

Hmmm to create a map dont you
Save all the files for this in 1 folder
-----------
1,)make some levels and name them what you want.
2,)make a text document called Test.txt and add the levels in as "levelname.nw","levelname1.nw"
3,)then open graal and open the main level where you start
4,)put this in a NPC

------------
setmap graalmap.png,test.txt,x,y;
------------
5,)close the NPC box and press CTRL + M
6,)Save it as graalmap
7,)Then play the level and then press F4
8,)and press M Save it as Testmapsmall and save it to where all of the other levels,.png and stuff


Hmm isnt that right?!
__________________
V$:CONFL16T
  #17  
Old 09-02-2002, 09:57 PM
Graal2001_LAT Graal2001_LAT is offline
Banned
Graal2001_LAT's Avatar
Join Date: Jul 2002
Location: g forums
Posts: 606
Graal2001_LAT is on a distinguished road
Re: Hmmm

Quote:
Originally posted by WanDaMan
Hmmm to create a map dont you
Save all the files for this in 1 folder
-----------
1,)make some levels and name them what you want.
2,)make a text document called Test.txt and add the levels in as "levelname.nw","levelname1.nw"
3,)then open graal and open the main level where you start
4,)put this in a NPC

------------
setmap graalmap.png,test.txt,x,y;
------------
5,)close the NPC box and press CTRL + M
6,)Save it as graalmap
7,)Then play the level and then press F4
8,)and press M Save it as Testmapsmall and save it to where all of the other levels,.png and stuff


Hmm isnt that right?!
Yes that's pretty much what I specified to do. Although my way is more professional.
  #18  
Old 09-03-2002, 04:13 AM
Torankusu_2002 Torankusu_2002 is offline
'been round.
Torankusu_2002's Avatar
Join Date: Nov 2001
Posts: 1,246
Torankusu_2002 is on a distinguished road
Re: Hmmm

Quote:
Originally posted by WanDaMan
Hmmm to create a map dont you
Save all the files for this in 1 folder
-----------
1,)make some levels and name them what you want.
2,)make a text document called Test.txt and add the levels in as "levelname.nw","levelname1.nw"
3,)then open graal and open the main level where you start
4,)put this in a NPC

------------
setmap graalmap.png,test.txt,x,y;
------------
5,)close the NPC box and press CTRL + M
6,)Save it as graalmap
7,)Then play the level and then press F4
8,)and press M Save it as Testmapsmall and save it to where all of the other levels,.png and stuff


Hmm isnt that right?!
isn't this the same as what I wrote...?
__________________
torankusu's
  #19  
Old 09-07-2002, 08:27 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
heh

sorry toran i didnt know but thats the way i do it and it works all the time for me :/
__________________
V$:CONFL16T
  #20  
Old 09-23-2002, 11:28 PM
Timpan3 Timpan3 is offline
Registered User
Timpan3's Avatar
Join Date: Apr 2002
Location: Stockholm, Sweden.
Posts: 969
Timpan3 is on a distinguished road
Send a message via AIM to Timpan3
Re: heh

Quote:
Originally posted by WanDaMan
sorry toran i didnt know but thats the way i do it and it works all the time for me :/
Wow .. Are you learning english? Great work
__________________

Rate Fairly :O
1 2 3 4 5
- AIM : HoOLiGaN4LyFe
- Email : [email protected]
- Nick : Kosma
- Server : Classic/Frolic
- Current Jobs : Malhangaia LAT
  #21  
Old 09-29-2002, 02:37 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
Lol very fast ^-^
__________________
V$:CONFL16T
  #22  
Old 10-09-2002, 03:37 AM
SupermanJR SupermanJR is offline
Registered User
Join Date: Sep 2002
Posts: 176
SupermanJR is on a distinguished road
K. Tutorial.

Okay. I took the time to make a vague tutorial for linking levels. You have to have Microsoft Word, (.bmp format), and Winzip.

I hope this helps a few of you guys.

<file removed - please repost in a safer format such as .htm or .txt>
  #23  
Old 12-08-2002, 02:07 PM
cody1990 cody1990 is offline
Registered User
Join Date: Nov 2002
Posts: 62
cody1990 is on a distinguished road
Send a message via AIM to cody1990 Send a message via Yahoo to cody1990
where is the classic tileset saved
__________________
[img]Donut.bmp[img]
  #24  
Old 12-08-2002, 04:53 PM
syltburk syltburk is offline
shutup ctrl+s
syltburk's Avatar
Join Date: Oct 2001
Location: Sweden, Stockholm
Posts: 3,018
syltburk is an unknown quantity at this point
Send a message via ICQ to syltburk Send a message via AIM to syltburk Send a message via Yahoo to syltburk
Quote:
Originally posted by cody1990
where is the classic tileset saved

addtiledef pics1.png,(levelname),1;

i think for classic tileset its sunrise.png;








__________________
  #25  
Old 12-15-2002, 08:56 PM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
He wanted to know where it was saved, not how to add a tileset!
__________________
--Spark911
  #26  
Old 12-16-2002, 01:51 AM
syltburk syltburk is offline
shutup ctrl+s
syltburk's Avatar
Join Date: Oct 2001
Location: Sweden, Stockholm
Posts: 3,018
syltburk is an unknown quantity at this point
Send a message via ICQ to syltburk Send a message via AIM to syltburk Send a message via Yahoo to syltburk
Quote:
Originally posted by Spark910
He wanted to know where it was saved, not how to add a tileset!
ah i see, go to graal2001 folder, levels, tiledef and whoala there it is.
__________________
  #27  
Old 02-15-2003, 09:45 PM
PrinceDark PrinceDark is offline
Criminal X
PrinceDark's Avatar
Join Date: Feb 2003
Location: Miami, Florida
Posts: 662
PrinceDark will become famous soon enough
.../graal2001/pics1.png
__________________
- Criminal X: certified nut case
  #28  
Old 04-15-2003, 08:14 PM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
Anyone more Q's people want to know an answer to?
__________________
--Spark911
  #29  
Old 06-11-2003, 12:22 AM
Azrael528 Azrael528 is offline
Registered User
Join Date: May 2003
Location: New Jersey
Posts: 151
Azrael528 is on a distinguished road
Re: Re: heh

Quote:
Originally posted by Timpan3

Wow .. Are you learning english? Great work
ive seen much worse, and also for the people saying you have to create a blank .png image i havent had to do that and it still works for me, so i dunno...
__________________
*Azrael528 aka Outlaw aka Bronson

Quote:
Pickles your freakin' sister has been IMing me. Unless she's hot tell her to stop.
-ShadowStrike2k1
  #30  
Old 06-11-2003, 12:39 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
Someone make a program to add the level names automatically
to the map.txt thing.

Or someone can tell me how to add them manually. Say I got:
level_a-1.nw level_a-2.nw level_a-3.nw level_a-4.nw
level_b-1.nw level_b-2.nw level_b-3.nw level_b-4.nw
level_c-1.nw level_c-2.nw level_c-3.nw level_c-4.nw
level_d-1.nw level_d-2.nw level_d-3.nw level_d-4.nw

How would that be ordered in the txt?
Like:
"level_a-1.nw","level_a-2.nw","level_a-3.nw","level_a-4.nw",
"level_b-1.nw","level_b-2.nw","level_b-3.nw","level_b-4.nw",
"level_c-1.nw","level_c-2.nw","level_c-3.nw","level_c-4.nw",
"level_d-1.nw","level_d-2.nw","level_d-3.nw","level_d-4.nw",
__________________
  #31  
Old 06-11-2003, 04:15 AM
Azrael528 Azrael528 is offline
Registered User
Join Date: May 2003
Location: New Jersey
Posts: 151
Azrael528 is on a distinguished road
Quote:
Originally posted by zell12
Someone make a program to add the level names automatically
to the map.txt thing.

Or someone can tell me how to add them manually. Say I got:
level_a-1.nw level_a-2.nw level_a-3.nw level_a-4.nw
level_b-1.nw level_b-2.nw level_b-3.nw level_b-4.nw
level_c-1.nw level_c-2.nw level_c-3.nw level_c-4.nw
level_d-1.nw level_d-2.nw level_d-3.nw level_d-4.nw

How would that be ordered in the txt?
Like:
"level_a-1.nw","level_a-2.nw","level_a-3.nw","level_a-4.nw",
"level_b-1.nw","level_b-2.nw","level_b-3.nw","level_b-4.nw",
"level_c-1.nw","level_c-2.nw","level_c-3.nw","level_c-4.nw",
"level_d-1.nw","level_d-2.nw","level_d-3.nw","level_d-4.nw",
'

no, itd go:

"level_a-1.nw","level_b-1.nw"
"level_a-2.nw","level_b-2.nw"

and so forth, letters are horizontal and numbers are vertical locations
__________________
*Azrael528 aka Outlaw aka Bronson

Quote:
Pickles your freakin' sister has been IMing me. Unless she's hot tell her to stop.
-ShadowStrike2k1
  #32  
Old 12-29-2004, 07:01 AM
g0atex g0atex is offline
new account "Luciano"
g0atex's Avatar
Join Date: Sep 2004
Posts: 107
g0atex is on a distinguished road
Quote:
Originally Posted by Azrael528
'

no, itd go:

"level_a-1.nw","level_b-1.nw"
"level_a-2.nw","level_b-2.nw"

and so forth, letters are horizontal and numbers are vertical locations
So to make it horizontal you'd have to make it "level_1a.nw","level1_b","level1_c","...", seems a little tedious to me. Does it matter?
  #33  
Old 12-29-2004, 07:44 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
This thread is über old.

Closed because I can.
Closed Thread

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 11:50 PM.


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