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 04-01-2015, 10:31 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Online Level Link Editor (OLLE)

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
Attached Files
File Type: txt olle.txt (23.3 KB, 295 views)
__________________
Quote:
Reply With Quote
  #2  
Old 04-02-2015, 01:51 AM
MysticalDragon MysticalDragon is offline
Global Administration
MysticalDragon's Avatar
Join Date: Oct 2002
Location: Lynn Ma
Posts: 883
MysticalDragon is just really niceMysticalDragon is just really nice
Send a message via AIM to MysticalDragon Send a message via MSN to MysticalDragon
Very nice, similar to my version.
__________________
~Delteria Support
~Playerworld Support
~PWA Chief
http://support.toonslab.com
[email protected]



Reply With Quote
  #3  
Old 04-02-2015, 05:46 PM
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 Send a message via Skype™ to MattKan
It's really cool, MD also has a version.
__________________
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
  #4  
Old 04-02-2015, 09:24 PM
AlexDamian AlexDamian is offline
Developer
AlexDamian's Avatar
Join Date: Feb 2015
Location: Georgia
Posts: 5
AlexDamian is an unknown quantity at this point
really nice! Great job fp4.
Reply With Quote
  #5  
Old 04-03-2015, 12:56 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
Great work from you as usual
__________________
Reply With Quote
  #6  
Old 04-03-2015, 03:10 PM
kia345 kia345 is offline
z0rbi 4 life 🤘
kia345's Avatar
Join Date: Dec 2006
Location: delteria
Posts: 6,737
kia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond repute
that's neat, did you see md's version
__________________
pojo
Reply With Quote
  #7  
Old 04-03-2015, 03:42 PM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
This version works better than any interation I've seen yet. Why not combine this system is the online level editor?

Great job.
__________________
Reply With Quote
  #8  
Old 04-03-2015, 04:19 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by Tim_Rocks View Post
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.
__________________
Quote:
Reply With Quote
  #9  
Old 04-03-2015, 04:39 PM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin Send a message via Skype™ to Draenin
Quote:
Originally Posted by fowlplay4 View Post
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?
Reply With Quote
  #10  
Old 04-03-2015, 05:10 PM
MysticalDragon MysticalDragon is offline
Global Administration
MysticalDragon's Avatar
Join Date: Oct 2002
Location: Lynn Ma
Posts: 883
MysticalDragon is just really niceMysticalDragon is just really nice
Send a message via AIM to MysticalDragon Send a message via MSN to MysticalDragon
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.
__________________
~Delteria Support
~Playerworld Support
~PWA Chief
http://support.toonslab.com
[email protected]



Reply With Quote
  #11  
Old 04-03-2015, 05:16 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by Draenin View Post
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.
__________________
Quote:
Reply With Quote
  #12  
Old 04-03-2015, 05:22 PM
MysticalDragon MysticalDragon is offline
Global Administration
MysticalDragon's Avatar
Join Date: Oct 2002
Location: Lynn Ma
Posts: 883
MysticalDragon is just really niceMysticalDragon is just really nice
Send a message via AIM to MysticalDragon Send a message via MSN to MysticalDragon
That issue is fixed on delteria levels save instantly, ill post the updated version sometime.
__________________
~Delteria Support
~Playerworld Support
~PWA Chief
http://support.toonslab.com
[email protected]



Reply With Quote
  #13  
Old 04-04-2015, 04:46 PM
Elk Elk is offline
Sr Marketing Strategist
Elk's Avatar
Join Date: Nov 2005
Location: Deerland
Posts: 3,829
Elk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant future
Send a message via ICQ to Elk Send a message via AIM to Elk Send a message via MSN to Elk Send a message via Yahoo to Elk Send a message via Skype™ to Elk
Quote:
Originally Posted by MysticalDragon View Post
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
__________________
iEra IGN: *Elk (Darkshire)
iCla. IGN: *Elk (Darkshire)
iZone IGN: *Elk (Darkshire)




Reply With Quote
  #14  
Old 04-04-2015, 06:29 PM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
Quote:
Originally Posted by Elk View Post
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.
__________________
Reply With Quote
  #15  
Old 04-04-2015, 09:19 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by Elk View Post
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.
__________________
Quote:
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 07:38 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright (C) 1998-2008 Linux cyberjoueurs All Rights Reserved.