View Single Post
  #1  
Old 08-08-2010, 05:48 PM
firefighter firefighter is offline
Registered User
Join Date: Jan 2009
Location: Germany
Posts: 70
firefighter is on a distinguished road
Online Level Editor

Hello,

I scripted a simple Online Level Editor in GraalScript2 and I think that it is useful for many LAT's (I'm not so good in doing this ). Simply add the attached script to a weapon (e.g. "-Staff/LevelEditor"). It has the following features:
  • select tiles from tileset (rectangular selection by dragging)
  • select tiles from level (rectangular selection by dragging)
  • selected tiles are showed semi-transparent
  • leveleditor GUI automatically hides while being in "placing mode"
  • (re)place tiles in the level with selected ones on mouse position by pressing left mouse button
  • cancel placing tiles by pressing right mouse button
  • create levels online (simply type a level name with or without .nw extension and it will be created in "levels/_test" (by default - can by changed in serverside part))
  • please make sure that you have set "savelevels=true" (and optionally "savelevelsmessage=false" to disable RC messages when saving levels) in the server options
  • to be able to create levels online and use them you also need to have "rw levels/_test" in (npcserver) rights folder configuration and "level _test/*.nw" in normal folder configuration

You can add accounts (for staffs that should be able to edit and/or create levels online) to the account arrays defined in the serverside part of the script.
Attached Thumbnails
Click image for larger version

Name:	leveleditor_screenshot.png
Views:	756
Size:	63.0 KB
ID:	51472  
Attached Files
File Type: txt leveleditor.txt (10.8 KB, 1126 views)
Reply With Quote