Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Code Gallery (https://forums.graalonline.com/forums/forumdisplay.php?f=179)
-   -   Online Level Editor (https://forums.graalonline.com/forums/showthread.php?t=134260115)

firefighter 08-08-2010 05:48 PM

Online Level Editor
 
2 Attachment(s)
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.

PowerProNL 08-08-2010 08:06 PM

Nice :D BUMP BUMP

LordOfPi13 08-25-2010 04:48 AM

Cool!
 
Nice

Dnegel 08-25-2010 10:35 PM

Tried it a thousand times, it's really useful, I recommend it.

N01ze 08-28-2010 11:59 PM

Uhm It dosent seem to be opening :o

firefighter 08-29-2010 09:06 PM

You only need to say /leveleditor to open it ;)

Matt 09-01-2010 08:19 PM

Very nice ! ^^


All times are GMT +2. The time now is 06:10 AM.

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