![]() |
Online Level editor
1 Attachment(s)
I'm working on an online editor.
Well, actually, 2. The one will be for online use by staff members, where they can drag tiles from a gui directly onto the level. The other one I hope to have added to the login level. It would be a replacement to the current level editor, and allow users to make levels, and save them to their computer. Now, I don't know how to take from the tileset image, and put it onto the level. If anyone's made a level editor in the past, I could use some advice here. I have a screenshot below. The edit level as text button is a feature I plan to add to allow the user to edit NPCs. Got the script from Kuji :D Basically, looking for some help, if anyone is interested, PM me, I would love to have more people working on this. |
This is something that would be best if made with a scripting language that isn't GScript.
|
Quote:
It can be built into the client (login server) It will work for all platforms. :D |
Quote:
Lag. Insufficiency. Uncomfortable. Unsafe. Not For GScript. Not to mention getting a whole bunch of people to input their own little bit to the system will only cause problems in the end. This has been tried before (like NP's online tile layer), but has failed miserably. The only editor I see that is promising is Maniaman's, and that's because he isnt using GScript for it (I think he's using C or so). |
It sounds all well and dandy, but how far are you with it?
|
You're very inspiring Gambet ^^.
Anywho, I'm sure it could be done if effort was put into it. |
All I have is some gui stuffs. :p
All I really need is to understand how to take a part of the image, and convert it to a tile for the level. |
I may have a few materials you could use. I'll get back to you with them.
|
I also plan to add the ability to create a new level, warp there, and edit it.
With the "edit level as text" button, you can edit the links, and npcs as well. On a side note: anyone know why my tileset died? lol. It disappeared, even though I have all the files, etc. |
Sounds good.
|
Quote:
|
Well, if you use mouse down and mouse up, along with the x and y coordinates of when each even happened, selecting multiple tiles shouldn't be that hard.
All I need to do is figure out how to convert from x/y positions on an image to the textual code used in a level. |
Quote:
|
I thought you'd be used to Gambet by now, ya know? Every post is picking on someone else's things, without actually showing he could do better.
|
Quote:
Looks ok cali, but Clash made a superior one. Didn't lay tiles down though. XD |
Well, I have more to add to it. Right now I'm working on the new level function. Joey made something for viewing a level as text...although the script is above my levels XD I plan to integrate that into this. That way, you can edit the board, NPCs, links, signs, etc.
Once I can get it to lay tiles, I can work out ways of making it select multiple tiles, maybe even tiles that have already been laid. A predefined objects portion couldn't be too hard either. |
4 Attachment(s)
I'm working on adding a few things, new levels, predefined objects, and view level at text options. The pics below are the different functions.
*edit* Fixed the text gui |
What about NPC?=O
Predefinied Tiles NPC,Chest, etc.. |
Quote:
This has nothing to do with my scripting ability. If the right person did it, then yes, they probably could pull this off. As nice as a collaboration would be, it's just not very realistic. When you have multiple people working on the same system, you're bound to run into problems. This is supposedly excaliber's project, sure, but he's already taken code from friends that wanted to give their small donation into it. It's not about getting it to work, it's about doing it right, and it's about making it as efficient, user-friendly, and lag-free as possible. This is something that would be near impossible to accomplish if you have multiple scripters working on the same system while changing things around and inputting their own bits and pieces of code. |
Quote:
|
The problem with online level editors is there is no good way to edit npcs or signs. You have to loadlines/savelines to edit npcs or chests. This cuses problems because if i remember correctly, updateboard2 does not save to the .nw file immediately.
|
Yeah.
Well, fix it then. Make one that works on all platforms, and allows the players to make and test NPCs right away. |
Quote:
Quote:
|
Quote:
Quote:
That's why something like this should be in place. Still need a way to take tiles from the image. I'm having trouble decoding Joey's text based editor for taking the text from an NW file, and then saving the changes you make. Any ideas on that? |
I'm on and off a PC, so I can't test a lot. I need to figure out how to convert a normal value to hexadecimal, and placing the found tile on the level.
After that, I need some predefined objects, selecting multiple tiles, text editing, and new level creation. PHP Code:
|
Tiles in the .nw file are base64.
For drawing the current tileset supposedly you can just put "TILES" (with quotes) as the image in the drawing panel. Not sure if this works though. Sometimes it has worked for me, sometimes it hasn't. |
Quote:
|
Perhaps you should look at the old version Stefan released a year ago?
http://forums.graalonline.com/forums...t=level+editor |
You have a great point there!
Maybe I should look into taking this editor, and improving it by adding predefined objects, text editing, etc. The script is below. Predefined objects would be saving the array to a client variable. From there, we would need a gui that would show all the images. X_X This would take me a while...someone better want to step in. PHP Code:
|
This is Joey's level editor. It's text based, so you can edit the NPCs, etc
Only problem is: I can't get it to work x_X PHP Code:
|
Quote:
|
Quote:
|
Quote:
Nothing? I gave an instance on how it could possibly work, then explained why his couldn't. |
Quote:
What additions did you make? You know...now that I think of it. I wasted all that time making a good gui system lol. Oh well. I'd rather have the ability to develop on my Mac than to have made it myself. |
I've been perfecting my current level editor. It can copy but I can improve on the method. It also does layers ^^.
|
Quote:
Also some way of moving the tiles around once you've put them down would be nice too. |
Quote:
|
Quote:
on a more serious note, if they were able to make a built in RC with gscript...level editor shouldn't be so far away. :] |
Stefan's tile editor isn't saving the changes I do to the levels.
I have levelsaveauto=true in the server options, so this should be working....but...it doesn't. :( |
Quote:
|
| All times are GMT +2. The time now is 10:12 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.