Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

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 04:27 PM.


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