![]() |
Online JCS level editor [moved from JJ2+]
Quote:
dunno if is possible to make this..:rolleyes: |
Quote:
|
What about this:
I working on a web-based JCS using JavaScript and PHP, it's not much preassure on the server, because the PHP is generating the tileset image, level data only, Ajax is only needed if you want to save. You can put tiles in the lvl, nothing more yet. No save feature because I don't know how to make the 2D arrays into J2l words. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Why not plug into Jazz2Online somehow to get the tilesets? That way you only get approved ones.
I'm interested in testing this - I'm an experienced webdeveloper so I might have suggestions. What I'm wondering is, how is it collaborative? The problem with AJAX isn't keeping a connection open (the point of AJAX is that it doesn't) but that if you want realtime collaboration you need a huge amount of requests/updates to the server. That was what broke my tool: it used one request per tile. That'd bring the server down in no time. Browser protection prevents you from opening a connection using javascript to another client. How is the level editor collaborative if it only uses AJAX while saving? Is it collaborative the way google docs is? You save a file, someone else can open it? |
So, this found I when I looked out the new html5 standard coming (hopefully) in a couple of years, but some features already exists (FF 3.5, more maybe):
HTML 5 for a better Web Some parts of the site: Quote:
EDIT1: Shouldn't this be on the JCS sub-forum? EDIT2: Here is a web-worker example: http://www.whatwg.org/demos/workers/primes/page.html EDIT3: I've uploaded the web-JCS so that you can try it out. Click here! |
Would suggest some indication that tiles are being loaded after you select a tileset. Also, I presume the collaboration feature's not there yet?
EDIT: Oh wait, I totally misread your posts, you never announced a collaboration feature. Bummer. In any case I would suggest thinking twice about replication offline JCS' layout for web use. I don't know what the goal of your app is, but offline layouts don't necessarily adapt to online ones well. Would suggest rethinking how JCS should work, so that a webJCS has added value above the regular one (ease of use, features that you would only be able to offer on the internet (for example: integration into existing information places, collaboration) |
I just opened the link to your web JCS. It works, but it ran and almost frooze loading (which took about 5 minutes) then it nearly freezes again when trying to change layers =\
|
Quote:
|
Yes it also freeze when trying to see the mask of tiles, but is a good start of this project ;) keep working!
|
Quote:
Also, this might be interesting: http://www.sitepoint.com/article/mul...ng-javascript/ |
Quote:
|
Cookies? How are you going to store 256+64 tiles+events on 8 layers in a cookie? I would recommend to either save it in a homegrown format and then later on allow downloads by converting it to a j2l file (needs a 1-way .j2l implementation), or saving/loading in .j2l on the server (needs 2-way)
The app feels much more responsive now. Alternatively, maybe it works to not make 256*64 |
If the data should be saved on the server, then make a php that save it. Or save it locally with cookies or LocalStorage(read that html5 page)
And the page is faster because of... read my last post |
I have the same problem the tileset respond very hard when change it.
But now when I change the layers it works very fast ;) that's good. |
You could always use a Flash version. Flash cookies can store larger amounts of data.
|
I think I found the store solution: localStorage
http://people.w3.org/mike/localstorage.html But it's not supported in all browsers |
Quote:
|
Quote:
|
Quote:
Something that someone could help me with is, my web-JCS working with the levels as 2D arrays, would be great if this somehow was converted into J2L "words" and "dictionary" so you actually can run the level in JJ2. |
New WebJCS
Okay, time for a revival.. :-)
The old WebJCS got old, as it used old technology. I have now made a new version, which works much better than the old, but it is still a alpha version. (Works best in Firefox, and it's slow in Chrome.. weird..) This version got some new features than the old, which are multiple select in tileset and drag to place tiles. I will add new features, such as multiple layers, parallax scrolling, animations, level properties, open/save, collaborative level editing and so on... And, why would you use this instead of the normal JCS you may wonder? Because you maybe want to load/view/edit a level where you don't have access to JCS, or (which I will add later) if you want to work collaborative with someone else. At the moment there only exists one tileset, but I will implant a "get tileset from j2o" feature so u can use any tileset on there (FQuist's idea), or maybe I will add "upload tileset" if you want to use your custom ones. This is a project I make for fun, so, enjoy! :D |
Quote:
|
This looks very promising, although I don't understand the point entirely if there won't be a collaborative aspect. I guess it allows people who don't have access to JJ2 or JCS to make their own levels which is a potentially excellent achievement.
I echo the sentiment that it shouldn't grab from J2O, though. Either have the tilesets preloaded for speed or host them on the same server, for courtesy's sake, or allow uploads. |
The best use for this would be the fact that no JJ2 installation is required to edit levels. Thus for example, you could easely make small tweaks to your levels while at work. And collaborative editing could bring interesting community projects, perhaps LMAT level editing? Anyway, I'd say this is, together with JJ2+, one of the coolest JJ2 related programs of today! ;)
|
Great work. The editor seems to be off to a nice start, and I can't wait to see more functions implemented.
Quote:
|
Seems like good ideas, ill keep them in mind :-)
Anyway, I have implanted a save feature (File -> Save), which works very good! If you find any bugs, please let me know :D Edit1: Now you can use any tileset, in the menu, :D Edit2: Now you can skip that passwordbox! Edit3: Now all layers! |
Quote:
|
I'm not sure if this is an admin post or a personal post, but I don't think that even an "open" level (were we to incorporate such distinctions) should allow edits to be uploaded automatically. This is the internet; there are trolls here. But I could imagine a system wherein you could make some small changes to someone's upload (fixing bugs, mostly) and submit your edit to the uploader for approval. The uploader would get an email notification (or PM, depending on their user preferences, I suppose) and could choose whether to approve the edit as a replacement for the original version, to approve it as an attachment (like an alternate version built to support a slightly different gametype), or disapprove it, if it's trash or something. Honestly that might even be more useful with tilesets, so that you could fix people's palettes and such more easily, if they'd allow you to.
|
Quote:
Although now that it's been mentioned, I think some kind of open level system would be worth looking into. |
Quote:
|
That sounds rather unwieldy.
|
Quote:
|
Quote:
|
Hey, I'm here to say that the save function now works very well! I made it so the passwordbox is not displayed, layer 4 is loaded by default in JCS, all layers are saved.. I will now move on to Level properties and Layer properties :)
About this.. to moderate others levels.. isn't really related to WebJCS as it's only J2L files, but it would be cool to somehow implant WebJCS there too. Edit1: Implanted Level properties! |
Project Forward once made a very collaborative level and there are plenty of smaller collaborations among two or three people, all of which seem to work out. I think making the collaboration this much more direct, along the lines of Google Docs, could only lead to bigger and better things.
|
Quote:
|
| All times are GMT -8. The time now is 04:20 AM. |
Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
JCF © 2001-Infinity Jazz2Online