JazzJackrabbit Community Forums

JazzJackrabbit Community Forums (http://www.jazz2online.com/jcf/index.php)
-   JCS & Scripting (http://www.jazz2online.com/jcf/forumdisplay.php?f=5)
-   -   WebJCS (http://www.jazz2online.com/jcf/showthread.php?t=19193)

djazz Jan 13, 2015 02:10 PM

Quote:

Originally Posted by JangoCF (Post 485025)
Hey DJazz,

Looks like a sweet program from what I've seen so far. Have looked at some videos. Pretty gud stoof.

Can't get logging in to work. The instant I assign myself a name, the console spits out the message "JangoCF (Shrooblord) left: Connection dropped by remote peer." Do you have any ideas on what could be causing this?

I added you on Skype.
I think it's because this code is too old for newer web browsers, causing the WebSocket connection to fail.
With "the console" do you mean the one on the webpage or in the terminal window? Any other messages?

I really want to rewrite WebJCS from scratch, but with a full-time job it's hard to find enough time for it.

Slaz Jan 14, 2015 03:45 PM

btw, I'm still happily using WebJCS 1.3.3 on my home network, and it still works perfect on my Chromebook as well. Collab is turned off here so I don't know if that still works. Keep in mind though, company/school networks are usually strictly firewalled which may also cause problems with Websocket.

Just so you know that there are more people appreciating this project! ;)

djazz Jan 12, 2017 09:08 AM

Sneak peek of WebJCS 2.0, a work in progress. Playing with layer view modes.

YouTube video: https://youtu.be/0Gtq5QnjlJw

[IMG]http://i.imgur.com/Emcxn5G.gif[/IMG]

djazz Jan 24, 2017 10:40 PM

You can try out the latest build of WebJCS 2 (only tested in Chrome/Chromium) here: http://webjcs.djazz.se
If tiles look messed up, try disabling the WebGL renderer in File > Preferences, then reload page.

Not much to do yet except scrolling, zooming and changing layer view modes. I'm working on it!

Slaz Jan 25, 2017 02:22 AM

The noted features work for me with WebGL on in the latest versions of Chrome and Safari. X-Ray view plays nice in action!

Darkhog Jan 25, 2017 10:42 AM

Please do test with Firefox as well. Some people don't want to use memory hog called Chrome.

//edit: and please put it up on GitHub or something. So it can be developed faster by more people and so someone else can host it if for some reason you won't be able to do so in the future (I don't think we want to lose such a great tool, do we?).

Seren Jan 25, 2017 11:09 AM

Quote:

Originally Posted by Darkhog (Post 491038)
and please put it up on GitHub or something. So it can be developed faster by more people and so someone else can host it if for some reason you won't be able to do so in the future (I don't think we want to lose such a great tool, do we?).

So, almost like, the link called "WebJCS on Github" that's already present in the Help menu?

djazz Jan 25, 2017 01:43 PM

Quote:

Originally Posted by Darkhog (Post 491038)
Please do test with Firefox as well. Some people don't want to use memory hog called Chrome.

//edit: and please put it up on GitHub or something. So it can be developed faster by more people and so someone else can host it if for some reason you won't be able to do so in the future (I don't think we want to lose such a great tool, do we?).

Seems to run fine in Firefox right now.
Later, you will be able to download and install WebJCS as a regular program. If you're on Arch Linux/Manjaro/Antergos, you can install it from the AUR.
When running it standalone it uses Electron. It also have read and write access to files directly on your drive, just like JCS.

Github link: https://github.com/daniel-j/webjcs

Some help with development would be very appreciated! I have been doing this solo for too long.

djazz Jan 31, 2017 03:24 AM

You can now edit the tiles and save it to J2L.
Use B to select tiles in the layer view. It's not perfect yet, will make it work like in JCS. Animations can't be selected atm, only from tileset and layer.
There is also a separate mask togglebutton for the layers.
Horizontal and vertical tile flipping is supported (use plus to see result).
New WebGL renderer that should be more robust and compatible.
Layer properties and level properties dialogs have been added.

[IMG]https://i.imgbox.com/YNbs8IBl.png[/IMG]

https://youtu.be/ObbvMaaMkF4

djazz Feb 5, 2017 08:36 AM

Added a feature unique (as of date) to WebJCS 2: You can offset layer by N pixels! JJ2+ have support for it but no level editor has. See a demo here: https://youtu.be/DRkI-KRsR7o

[IMG]https://i.imgbox.com/FLoLIT2h.png[/IMG]
Probably not a good idea to use on layer 4, because mask and events don't get moved. Use this to for example offset layer 5 by half a tile.

EDIT: Turns out it is an undocumented JJ2+ feature. Ah well, plus only then!

Darkhog Feb 7, 2017 06:13 AM

Nice progress! But since in the end it will be just another exe app, what's the point in doing it in html5 if it won't be actually fully usable on the web? Wouldn't making it as an SDL or Allegro app be better? Or if you don't like C++ for some reason, C# with Monogame?

cooba Feb 7, 2017 06:46 AM

Quote:

Originally Posted by DJazz (Post 491091)
undocumented JJ2+ feature

https://www.jazz2online.com/jj2plus/...layer::xOffset

djazz Feb 7, 2017 07:02 AM

Quote:

Originally Posted by Darkhog (Post 491099)
Nice progress! But since in the end it will be just another exe app, what's the point in doing it in html5 if it won't be actually fully usable on the web? Wouldn't making it as an SDL or Allegro app be better? Or if you don't like C++ for some reason, C# with Monogame?

I know JavaScript and web tech. I do not know other languages that well. If I were to port it it would use Qt5/C++ since that is what Tiled is written in, which is quite similar. Similarly, Project Carrot, the open source JJ2 engine, uses Qt5 and SFML. It is important for me that the editor runs well on all platforms.

Advantages to it being web is that you can quickly share a link to invite to collaboration without them having to download and install the application. Easy access is important I think.

The only features that the web version will miss out on is local file system access and the ability to run the level in JJ2 by hitting Ctrl+R.

djazz Feb 8, 2017 05:08 AM

Basic collaboration have been implemented! To try it, go to http://webjcs.djazz.se and click Collab > Join/create session in the menu. Enter a name for the session and click OK. Open another browser window and repeat the steps, make sure you use the same session name. Or invite a friend. When you close all pages the session gets destroyed automatically. Only drawing tiles are synced for now!

Starting a new session will use the current level you are editing. Joining an already created session will overwrite your current one with the one from the server!

Marijn Mar 5, 2017 09:43 AM

Djazz, or consider a nodejs/electron build if you want to build a standalone app, it required little porting and runs any common os today.

Zerg Apr 24, 2021 01:52 AM

Hey, do you know if this is still working?
I've tried running it after port forwarding, setting up rules in the firewall, and changing the settings.ini(s). This is what happens, from any pc I try it when I try to connect to any other pc:
C:\JazzJackrabbitTSF>.\node server.js
Starting server on port 8100
Note: The server is not passworded
Sat, 24 Apr 2021 09:37:12 GMT: Zerg joined
Sat, 24 Apr 2021 09:37:12 GMT: Zerg left: Connection dropped by remote peer.

I've found that this last error message is from a node module/ this file: https://www.jazz2online.com/download...ectionjs/info/

Love & Thunder Apr 24, 2021 06:11 AM

You're better off using MLLE instead these days.

Zerg Apr 24, 2021 11:54 AM

Is it possible to use MLLE for online collaborations?

Violet CLM Apr 24, 2021 12:45 PM

Sadly it is not.


All times are GMT -8. The time now is 07:53 AM.

Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
JCF © 2001-Infinity Jazz2Online