Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-29-2006, 11:13 PM
Maniaman Maniaman is offline
Registered User
Join Date: Aug 2005
Posts: 326
Maniaman is on a distinguished road
Online Level Editor

I have been doing some work on the online level editor that Stefan made.

Currently supports creating new levels, opening levels (basically warps you to a level), and reading of level links.

I plan to add support for modifying and adding level links soon, although that will be difficult since you have to go through the entire level as plain text and modify a certain line to add links.

Yes, I'm aware that some of the GUI Profiles are incorrect. It would be nice if there was a list of default profiles for basically every GUI Control.


What features would some of you like to see implemented?
Attached Thumbnails
Click image for larger version

Name:	ole012906.png
Views:	409
Size:	138.0 KB
ID:	35144  
__________________

Current Maloria Event: (click to go to it)
Reply With Quote
  #2  
Old 01-29-2006, 11:31 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
I'd love to be able to place NPCs in smaller steps than whole tiles, i.e. placing an NPC at (30.5, 30.25). This was previously mentioned somewhere else, but it's a good idea.
__________________
Skyld
Reply With Quote
  #3  
Old 01-30-2006, 12:36 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
Features already included in the Offline Editor.
  • Right clicking and dragging a selection on the level copies the selection.
  • Double left clicking a tile makes that tile into the default (or background) tile
  • Right clicking on the level when there is no selection bucket fills the tile your cursor is on, plus any adjacent tiles of the same kind with the default tile.
  • Selector lines snap to tile grid
  • Some sort of simple NPC placing/editing system... For doors, lights, misc graphics and the like
  • If not already: Editing levels that have maps
  • Copy, Cut, & Paste
  • Right clicking an NPC duplicates it
  • The ability to show/hide NPCs
  • Double clicking, or move the cursor on top of (in map mode) a level link automatically opens that level.
  • Tabbed browsing
That's all I can think of right now, it's been a while since I've used a level editor (offline or online)

New features that do not exist on the offline level editor.
  • A check box for 'NPC grabbing'. If checked any NPCs who's X/Y is in a selection of tiles gets dragged along with that selection of tiles when they're moved.
  • Zoomed out editing (When in map mode) Allows you to zoom out an view several levels at once when in map mode... This probably isn't possible, but I figure it's worth a mention.
  • Better selector: Holding shift allows you to add onto a current selection of tiles. Holding Ctrl allows you to subtract. (Much like Photoshop's marquee tool)

That's all that I could think of off of the top of my head... Some things might not be clear, if something isn't clear just let me know and I will try to clarify.
Reply With Quote
  #4  
Old 01-30-2006, 01:41 AM
Maniaman Maniaman is offline
Registered User
Join Date: Aug 2005
Posts: 326
Maniaman is on a distinguished road
Some nice ideas. I will try to implement some of them. I will try to add most of the offlien editor features to the new editor.

Quote:
Zoomed out editing (When in map mode) Allows you to zoom out an view several levels at once when in map mode... This probably isn't possible, but I figure it's worth a mention.
I don't think this is possible.


The level link list/link details is now coded. Still have not added actual changing of the link data.
I am trying to keep the OLE similar to the old level editor in some ways. (see attachment).
Attached Thumbnails
Click image for larger version

Name:	ole012906-2.png
Views:	269
Size:	160.3 KB
ID:	35146  
__________________

Current Maloria Event: (click to go to it)
Reply With Quote
  #5  
Old 01-31-2006, 02:22 AM
Maniaman Maniaman is offline
Registered User
Join Date: Aug 2005
Posts: 326
Maniaman is on a distinguished road
I have created the GUI for listing signs and the GUI for editing signs.

Also, I do not plan to add support for old graal baddies and chests, as most servers do not use the classic systems.

Ajira has been helping me with some things, and is working on getting sign loading working. The screenshot is just some test text.

Comments/Suggestions?
Attached Thumbnails
Click image for larger version

Name:	ole013006.png
Views:	247
Size:	147.0 KB
ID:	35164  
__________________

Current Maloria Event: (click to go to it)
Reply With Quote
  #6  
Old 01-31-2006, 03:19 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
Looking good. Will you be adding in customization of the windows? Colour/alpha?
Reply With Quote
  #7  
Old 01-31-2006, 03:55 AM
Maniaman Maniaman is offline
Registered User
Join Date: Aug 2005
Posts: 326
Maniaman is on a distinguished road
Hmm... Might be able to add that. Low on the priority list though.
__________________

Current Maloria Event: (click to go to it)
Reply With Quote
  #8  
Old 02-03-2006, 03:26 AM
Samurai_X2689 Samurai_X2689 is offline
Cap' n Jack
Join Date: Jan 2006
Posts: 30
Samurai_X2689 is on a distinguished road
Quote:
Originally Posted by haunter
Looking good. Will you be adding in customization of the windows? Colour/alpha?
couldnt you just do that by changing the profile and makeing the img yourself?
__________________

Saranghae! No Homo!
Reply With Quote
  #9  
Old 02-03-2006, 03:38 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
I was working on one, but I got pissed off at not being able to figure out how Stefan converted tiles to the two-letter format used in .nw files and scrapped it.
Attached Thumbnails
Click image for larger version

Name:	editor.png
Views:	251
Size:	47.8 KB
ID:	35235  
Reply With Quote
  #10  
Old 02-03-2006, 03:56 AM
Jackel9 Jackel9 is offline
Dimension Zero Founder
Jackel9's Avatar
Join Date: Nov 2005
Location: NC SONZ
Posts: 193
Jackel9 is on a distinguished road
Wow the level editor script is so Difficult.
I havent met anybody who have mastered it yet.
__________________

Reply With Quote
  #11  
Old 02-03-2006, 05:09 AM
Eagle Eagle is offline
Registered User
Eagle's Avatar
Join Date: Jul 2004
Location: Boston, MA
Posts: 584
Eagle will become famous soon enough
Send a message via AIM to Eagle
Nice man. I agree with shadowless though, it would be really cool to add some features as in the offline editor, suck asright clicking and copying the tile(s) and such.
__________________

AIM : FCartman007
Old account - 190
Reply With Quote
  #12  
Old 02-03-2006, 05:19 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Maniaman
I have been doing some work on the online level editor that Stefan made.

Currently supports creating new levels, opening levels (basically warps you to a level), and reading of level links.

I plan to add support for modifying and adding level links soon, although that will be difficult since you have to go through the entire level as plain text and modify a certain line to add links.

Yes, I'm aware that some of the GUI Profiles are incorrect. It would be nice if there was a list of default profiles for basically every GUI Control.


What features would some of you like to see implemented?
You're not impressing me -_-. But hey, you know the gui functions and I'm never going to touch them.

It's pretty easy to do the level links if you can load the lines of the file.
just insert the line:
LINK levelname x y width height newx newy
after the newline character if the line before is the last one that starts with BOARD. Of course, remember to make a new line break after that. Level links are by far the simplest insertion feature because they only take one line.
Quote:
Originally Posted by Yen
I was working on one, but I got pissed off at not being able to figure out how Stefan converted tiles to the two-letter format used in .nw files and scrapped it.
Well, we all know J4 is the blackness tile. The easiest way to tackle this problem would be to copy and paste the tileset into a level, and then load the level into an array filter.

One question, however, does the online editor directly load pics1.png? It should be broken down into two graphics unless Stefan made exception for the image size limitation in GUI objects.

Last edited by jake13jake; 02-03-2006 at 05:30 AM..
Reply With Quote
  #13  
Old 02-07-2006, 04:37 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
Quote:
Originally Posted by Samurai_X2689
couldnt you just do that by changing the profile and makeing the img yourself?
No idea... I'm not much of a scripter.

Anyway, I'm still very interested in this. Please! Keep posting about your progress.
Reply With Quote
  #14  
Old 02-07-2006, 10:48 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Looking nice MM.
Just wondering, when you place a tile, will it save to that level or once you update it will it be the origional? That's a problem with the current online level editor.
__________________
Reply With Quote
  #15  
Old 02-07-2006, 06:58 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by xAndrewx
Looking nice MM.
Just wondering, when you place a tile, will it save to that level or once you update it will it be the origional? That's a problem with the current online level editor.
updateboard2 x,y,width,height; saves level board modifications if serveroption savelevels=true (serverside)
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
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 02:29 PM.


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