Graal Forums

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

fowlplay4 04-01-2015 10:31 PM

Online Level Link Editor (OLLE)
 
1 Attachment(s)
Hello!

I have created an online level link editor. The purpose is to make it easier to create and link levels in-game.

New Features

1. Quick Linking. Warps you to the destination level where you can place your player where they should be warped to, when done you simply click the 'Link Here' button, fine tune the coordinates and then click Add Link.
2. Re-Warping. Allows you to re-define the warp field location, width and height.
3. Destination Level is now a text box with a drop-down menu that keeps track of the levels you've visited since you turned on the tool.

Install Instructions

Add the script as a weapon on your server. Also update the levelfolders array on the server-side to match your server's folder setup. I set a default one that covers a fairly common/generic set though so it may not be required.

You will also need to give the (npcserver) write access to the level. I.e: rw levels/*.nw

In order to make changes to the levels you will also need write access to the levels as well.

OLLE Usage is automatically logged to logs/olle_log.txt

How to Use

The link editor can be turned on and off by pressing F12 or using the /linkeditor command. Both are easily changed in the script.

Left-click and drag will draw link.

Double-clicking in the boundaries of a link will open the link editor window.

Disclaimers

Changes to links are updated in the level right away so be cautious when editing links.

There is no 'locking-mechanism' so conflicts can occur when two or more people are editing the same links/levels at the same time.

Demo



The Script

MysticalDragon 04-02-2015 01:51 AM

Very nice, similar to my version.

MattKan 04-02-2015 05:46 PM

It's really cool, MD also has a version.

AlexDamian 04-02-2015 09:24 PM

really nice! Great job fp4.

cbk1994 04-03-2015 12:56 AM

Great work from you as usual :)

kia345 04-03-2015 03:10 PM

that's neat, did you see md's version

Tim_Rocks 04-03-2015 03:42 PM

This version works better than any interation I've seen yet. Why not combine this system is the online level editor?

Great job.

fowlplay4 04-03-2015 04:19 PM

Quote:

Originally Posted by Tim_Rocks (Post 1735621)
This version works better than any interation I've seen yet. Why not combine this system is the online level editor?

I prefer the modular approach for maintenance reasons.

I also didn't write the level editor. The most popular one relies on the server to save the level which conflicts with my npc editor and the link editor since they edit the file directly.

Draenin 04-03-2015 04:39 PM

Quote:

Originally Posted by fowlplay4 (Post 1735622)
I also didn't write the level editor. The most popular one relies on the server to save the level which conflicts with my npc editor and the link editor since they edit the file directly.

You can still use them all separately though, right?

MysticalDragon 04-03-2015 05:10 PM

Yes you can, how i combined mines to the level editor i created a new option in the edit drop down and added edit links that triggers the seperate link editor for easy access.

fowlplay4 04-03-2015 05:16 PM

Quote:

Originally Posted by Draenin (Post 1735623)
You can still use them all separately though, right?

yep, i think most people are aware of the tile editor issue in how you have to wait for it to actually save before updating the level and what not.

MysticalDragon 04-03-2015 05:22 PM

That issue is fixed on delteria levels save instantly, ill post the updated version sometime.

Elk 04-04-2015 04:46 PM

Quote:

Originally Posted by MysticalDragon (Post 1735626)
That issue is fixed on delteria levels save instantly, ill post the updated version sometime.

as far as i remember, the npcserver would need access to the files...no?

that involves some risks

Tim_Rocks 04-04-2015 06:29 PM

Quote:

Originally Posted by Elk (Post 1735632)
as far as i remember, the npcserver would need access to the files...no?

that involves some risks

How does that involve risk? The levels you can access are based on rights.

fowlplay4 04-04-2015 09:19 PM

Quote:

Originally Posted by Elk (Post 1735632)
as far as i remember, the npcserver would need access to the files...no?

that involves some risks

With Graal there's really only two options:

1. Full Access
2. No Access

Perhaps if there was a way to specify privileged scripts in server options that would be different. In my mind it would look something like this:

scriptaccess=weapon,WeaponName,(rights_weaponname)

Then we could control script access to files much more easily.


All times are GMT +2. The time now is 06:33 PM.

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