Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-11-2012, 05:21 AM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
Pixel Perfect Tile Editor

[VERSION]1.3.0[/VERSION]
Pixel Perfect Tile Editor
Version
  • - 1.3

Features
  • - Relatively easy setup with simple configuration
  • - Works with graal file browser rights system
  • - Scrolls automatically when selecting large portions of the gui
  • - Open, save, and delete tile clipboard files
  • - Undo & redo (Note: history is cleared when the editor closes)
  • - [Toggle] Fade inactive tilelayers
  • - [Toggle] Level grid to separate tiles
  • - [Toggle] Extra cursor info
  • - [Toggle] External window
  • - Create new levels
  • - Flood fill
  • - Automatically checks if there is an update available when the script is initialized
  • - More

Installation
  1. Create a new weapon script named -Development/TileEditor or
    whatever whatever is pleasing to you
  2. Copy the entire text of the pastebin document into the script
  3. Modify the configuration portion of the script to suit your
    server best
  4. Give (npcserver) the required rights
    By default, this includes:
    rw access to TileEditor/Clipboard/ and subfolders,
    rw access to TileEditor/Data/ and subfolders,
    rw access to a levels folder (to create new levels),
    rw access to levels/images/tileeditor_icon_1-1.png ,
    rw access to levels/images/tileeditor_bucket_1-1.png ,
    rw access to levels/images/tileeditor_pencil_1-1.png
    Quote:
    rw TileEditor/Clipboard/*
    rw TileEditor/Clipboard/*/*
    rw TileEditor/Clipboard/*/*/*
    rw TileEditor/Data/*
    rw TileEditor/Data/*/*
    rw TileEditor/Data/*/*/*
    rw levels/levels/*
    rw levels/images/tileeditor_icon_1-1.png
    rw levels/images/tileeditor_bucket_1-1.png
    rw levels/images/tileeditor_pencil_1-1.png
  5. Give level designers necessary rights
    r and/or w access to TileEditor/Clipboard/ and/or
    subfolders, rw access to level files to use this program on
    Quote:
    rw TileEditor/Clipboard/*
    rw TileEditor/Clipboard/*/*
    rw TileEditor/Clipboard/*/*/*
    rw levels/levels/*
  6. Add the weapon script to the level designers

Directions
  • Type /te into the chat bar to open the program
  • Left click to select tiles, right click to paste the selection

Script Interface
- The following clientside public functions are available:
  • open() - triggers the request to open the editor
  • close() - triggers the program to close
  • isOpen() - returns true if the program is open

What's new in 1.3?
  • Improved the grid feature. It now uses different colors to represent modulo offsets of 64, 32, 16, and 8
  • Fixed the use of the default graal rights system on gmaps. It now will not allow any tiles to be placed unless every part of the rectangle is within a level you have WRITE rights to. (It previously required write rights to the .gmap itself)
  • Added a menu item to check for an update within the program at Options->Check for update
  • Other small bug fixes, optimizations, and meaningless changes


Note: tiles in screenshot are just some free tiles found online

Please report any problems or bugs in this thread. I will try to fix it as soon as I have time. Also any suggestions for a future version are welcome! Enjoy!

PASTEBIN

http://pastebin.graalcenter.org/read/6101023324639

Old versions:
1.2
1.1 revision 3
Attached Thumbnails
Click image for larger version

Name:	ppte.png
Views:	5968
Size:	426.3 KB
ID:	55061  
__________________

Last edited by Skyld; 09-18-2012 at 09:19 PM..
Reply With Quote
  #2  
Old 09-11-2012, 09:38 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Looks nice, good work. Thanks for sharing.
__________________
Reply With Quote
  #3  
Old 09-11-2012, 09:42 AM
NicoX NicoX is offline
Kingdoms Management
NicoX's Avatar
Join Date: Mar 2004
Location: Frankfurt/Main, Germany
Posts: 1,933
NicoX will become famous soon enough
Send a message via AIM to NicoX Send a message via MSN to NicoX
Good job!
__________________
Yours Sincerely,

-Nico
(GK Management)

Clash: Nico, I'm going to give you an example of good management.
Clash: One of my staff removed my RC and banned me.
Clash: I didn't ban or remove their RC after I got another one to fix me.
Clash: Do you know why?
Björn: Because you IP banned him ?

Stefan logged on.
(npcserver) has reset the attributes of Stefan
*Stefan: ah my client crashed








Reply With Quote
  #4  
Old 09-11-2012, 01:14 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
It looks nice. Good job!
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #5  
Old 09-11-2012, 06:09 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Looks... very interesting!
__________________
MEEP!
Reply With Quote
  #6  
Old 09-11-2012, 08:25 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
Brilliant contribution + rep.
__________________
V$:CONFL16T
Reply With Quote
  #7  
Old 09-12-2012, 04:01 AM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
Thanks for the positive feedback. I hope the editor works well for everyone's purposes. Let me know if you have any problems.

I made a few updates:
  • Automatically checks if there is an update available when the script is initialized
  • [Toggle] Extra cursor info
  • Optimizations and bug fixes to the flood fill algorithm

The original post has been updated with the new version.
__________________
Reply With Quote
  #8  
Old 09-12-2012, 08:44 AM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Quote:
Originally Posted by 0PiX0 View Post
Thanks for the positive feedback. I hope the editor works well for everyone's purposes. Let me know if you have any problems.

I made a few updates:
  • Automatically checks if there is an update available when the script is initialized
  • [Toggle] Extra cursor info
  • Optimizations and bug fixes to the flood fill algorithm

The original post has been updated with the new version.
Fantastic, really good work.
Reply With Quote
  #9  
Old 09-13-2012, 03:35 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
Was wondering when I'd see this...

It's fantastic
__________________
Quote:
Originally Posted by Satoru Iwata
On the other hand, free-to-play games, if unbalanced, could result in some consumers paying extremely large amounts of money, and we can certainly not expect to build a good relationship with our consumers in this fashion. In order to have a favorable long-term relationship, we would like to offer free-to-play games that are balanced and reasonable.
Quote:
Originally Posted by Unximad
Eurocenter Games remains attached to the values of indies game developer and to the service our playerbase community.
Reply With Quote
  #10  
Old 09-18-2012, 02:07 AM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
It's very frustrating that I cannot edit the original post. I plan on doing updates every now and then to this, and I really would like to be able to update my post.

I have come out with a new release: 1.3

http://pastebin.graalcenter.org/read/6101023324639

What's new in this version?
  • Improved the grid feature. It now uses different colors to represent modulo offsets of 64, 32, 16, and 8
  • Fixed the use of the default graal rights system on gmaps. It now will not allow any tiles to be placed unless every part of the rectangle is within a level you have WRITE rights to. (It previously required write rights to the .gmap itself)
  • Added a menu item to check for an update within the program at Options->Check for update
  • Other small bug fixes, optimizations, and meaningless changes

If a moderator could update the original post or allow me access to edit it again, I would be very grateful. The update checking feature of the program will not work if the original post cannot be updated.

Important: If you update the original post, please change the text between [VERSION] and [/VERSION] to 1.3.0 so that the program's update checking works.

Thank you!
__________________
Reply With Quote
  #11  
Old 09-18-2012, 11:47 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
You can't edit posts after 24 hours, which is really annoying in the Code Gallery. If you ask a moderator, they'll generally do it for you.
__________________
Reply With Quote
  #12  
Old 09-18-2012, 12:32 PM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is a jewel in the roughTricxta is a jewel in the rough
Nice work pix, I was wondering what you'd been up to.
__________________
Quote:
Originally Posted by Crono View Post
No look at it, Stefan is totally trolling Thor. Calling Classic a "playerworld" (something it's not supposed to be) is the ultimate subtle insult to a true fan.

It's genius.
Reply With Quote
  #13  
Old 09-21-2012, 03:08 AM
boolean boolean is offline
it wasn't me
boolean's Avatar
Join Date: Sep 2011
Posts: 16
boolean is on a distinguished road
and it only took 2000 lines of boilerplate code to get a thread that lacks any criticism whatsoever

lol k
__________________
Reply With Quote
  #14  
Old 09-28-2012, 06:59 AM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
New Version 1.4
http://pastebin.graalcenter.org/read/92657616352

Here's what's new:
  • File -> Update Level ( immediately saves tile changes to the level file you are currently in )
  • Layer -> Add ( Adds a tilelayer )
  • Layer -> Remove ( Removes a tilelayer. Note that the default client behavior of removing a tilelayer can be very buggy. It's not recommended to remove tilelayers. )
  • Fixed a few problems with rights on gmaps.
  • Other minor fixes and changes as usual

There are changes which must be made to (npcserver) rights. This is the new list of default (npcserver) rights:
Quote:
rw TileEditor/Clipboard/*
rw TileEditor/Clipboard/*/*
rw TileEditor/Clipboard/*/*/*
rw levels/images/tileeditor_icon_1-1.png
rw levels/images/tileeditor_bucket_1-1.png
rw levels/images/tileeditor_pencil_1-1.png
rw levels/*
rw levels/*/*
rw levels/*/*/*
rw levels/*/*/*/*
rw to all levels is required for the these features:
  • Create new levels
  • Force immediate level save
  • Add and remove tilelayers
however, rw to all levels will also be required for future features.

Here's the current goal for version 1.5:
  • View/Edit signs
  • View/Edit level links
  • View/Edit npcs
  • Rename from "Tile Editor" to "Level Editor"

Please report any problems you find.
__________________
Reply With Quote
  #15  
Old 10-01-2012, 03:04 AM
Bam112 Bam112 is offline
◕ ◡ ◕
Bam112's Avatar
Join Date: Mar 2012
Posts: 41
Bam112 is on a distinguished road
Nice work!
__________________
Happy halloween!
Reply With Quote
Reply

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


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