Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-09-2010, 11:29 PM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
Tile Editor

I know there are many tile editors in the code gallery, but I wanted to release this one that I made. I believe this one has a few features that the others do not, and I believe mine is easier to use and better replicates the offline editor.

The editor does not include things such as sign editing, npc editing, etc.
This is because I wanted to focus mainly on just tile editing.

Laying Tiles
To select and lay tiles, simply left click and drag either the level or the tile window.
Right click on the level to place the tiles.
If you press and hold right click and drag, you can continuously lay tiles.

Bucket Fill
When laying tiles, if you hold shift before you right click, you can use the bucket fill feature.
This feature allows you to fill in a number of tiles automaticaly.
Bucket fill allows for multiple tile bucket fill. (For example, you can fill an area with a 2x2 tile pattern)
Note: Do not try to fill a large area of tiles with bucket fill. You can fill about a level before Graal times out. So, do not try to fill in an entire Gmap.

Other note: When you use the bucket fill, you will see the filled tiles, and a confirmation window will appear. You can then either confirm to make the changes permanent, or cancel to revert back to the original tiles.


There are also text boxes on the tile editor that indicate which level you are in, where your player is standing, and where your mouse is located.
You can check the box to make these coordinates relative to the level, or relative to the gmap you are in.
If you hover over the level name, it will display which gmap you are currently in.

This editor is free to use and edit. Credit would be nice, but is not required. I just did not want to let this go to waste.

(There are a few things that could possibly be fixed up and made more efficient, so, feel free to fix anything, edit anything, etc)

Screenshot and script file attached.

Enjoy ^_^
Attached Thumbnails
Click image for larger version

Name:	level_editor_ss.png
Views:	511
Size:	40.4 KB
ID:	51809  
Attached Files
File Type: txt level_editor.txt (14.5 KB, 487 views)
__________________


Last edited by oo_jazz_oo; 10-10-2010 at 02:50 AM..
Reply With Quote
  #2  
Old 10-09-2010, 11:44 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
nice
Reply With Quote
  #3  
Old 10-10-2010, 02:41 AM
MattKan MattKan is offline
the KattMan
Join Date: Aug 2010
Location: United States
Posts: 1,325
MattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to behold
Send a message via AIM to MattKan
Hmm, I'm trying to make it work, but it doesn't seem to be working very well...Is this meant for v6?
Reply With Quote
  #4  
Old 10-10-2010, 02:43 AM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,745
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
Quote:
Originally Posted by MattKan View Post
Hmm, I'm trying to make it work, but it doesn't seem to be working very well...Is this meant for v6?
probably, since it mentions layers.
__________________
Save Classic!
Reply With Quote
  #5  
Old 10-10-2010, 02:48 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
Quote:
Originally Posted by MattKan View Post
Hmm, I'm trying to make it work, but it doesn't seem to be working very well...Is this meant for v6?
Quote:
Originally Posted by maximus_asinus View Post
probably, since it mentions layers.
No, its not meant for v6.

It should work fine. Just put the script in a weapon, and fire away. I tested it, and it should work.

And I didn't mention tile layers anywhere in my post.

Edit: Ok, there was a small bug that I thought I had fixed before uploading. It wasn't checking if the editor was visible when the graal control was resized, so it would automatically open it on created without actually activating it. Redownload from the first post, and it should be fine.
__________________

Reply With Quote
  #6  
Old 10-10-2010, 03:35 AM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,745
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
haha, sorry, dyslexic
__________________
Save Classic!
Reply With Quote
  #7  
Old 10-10-2010, 05:59 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
I found a bug with v6 only.

If you select tiles from the editor window, then try to place it on the level, you can only place it if you right click + drag.

Altho, you can place tiles from the level normally.

There is absolutely no reason this bug should exist...unless i'm missing something big.
I removed parts of the script, echoed back at certain parts, it should work...it just isn't.

It still works perfectly fine in v5 tho.
__________________

Reply With Quote
  #8  
Old 10-16-2010, 09:23 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Quote:
Originally Posted by oo_jazz_oo View Post
Bucket Fill
When laying tiles, if you hold shift before you right click, you can use the bucket fill feature.
This feature allows you to fill in a number of tiles automaticaly.
Bucket fill allows for multiple tile bucket fill. (For example, you can fill an area with a 2x2 tile pattern)
Note: Do not try to fill a large area of tiles with bucket fill. You can fill about a level before Graal times out. So, do not try to fill in an entire Gmap.
You should have just added that to mine and then call it quits. http://forums.graalonline.com/forums...hp?t=134258087
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
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 04:39 PM.


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