Register FAQ Search Today's Posts Mark Forums Read
Go Back   JazzJackrabbit Community Forums » Open Forums » JCS & Scripting

WebJCS

Reply
 
Thread Tools
djazz djazz's Avatar

JCF Member

Joined: Feb 2009

Posts: 257

djazz is OFF DA CHARTdjazz is OFF DA CHARTdjazz is OFF DA CHART

Jan 13, 2015, 02:10 PM
djazz is offline
Reply With Quote
Quote:
Originally Posted by JangoCF View Post
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.
__________________
WebJCS 2 (new and in progress)
WebJCS 1 (old but complete)
SGIP Simple Games in Progress list
Level Packer v2 - With a GUI!
PHP Tileset Compiler
Slaz Slaz's Avatar

JCF Member

Joined: Aug 2004

Posts: 1,314

Slaz is OFF DA CHARTSlaz is OFF DA CHARTSlaz is OFF DA CHART

Jan 14, 2015, 03:45 PM
Slaz is offline
Reply With Quote
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!
__________________
Add SlazRabbit on Xbox Live if you want to play some GoW1/2/3/J or Destiny1/2.
Jazz Jackrabbit 2 Forever!!
Civilian Defence Force - Jazz2 Visual Fantasers
djazz djazz's Avatar

JCF Member

Joined: Feb 2009

Posts: 257

djazz is OFF DA CHARTdjazz is OFF DA CHARTdjazz is OFF DA CHART

Jan 12, 2017, 09:08 AM
djazz is offline
Reply With Quote
Sneak peek of WebJCS 2.0, a work in progress. Playing with layer view modes.

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

__________________
WebJCS 2 (new and in progress)
WebJCS 1 (old but complete)
SGIP Simple Games in Progress list
Level Packer v2 - With a GUI!
PHP Tileset Compiler
djazz djazz's Avatar

JCF Member

Joined: Feb 2009

Posts: 257

djazz is OFF DA CHARTdjazz is OFF DA CHARTdjazz is OFF DA CHART

Jan 24, 2017, 10:40 PM
djazz is offline
Reply With Quote
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!
__________________
WebJCS 2 (new and in progress)
WebJCS 1 (old but complete)
SGIP Simple Games in Progress list
Level Packer v2 - With a GUI!
PHP Tileset Compiler

Last edited by djazz; Jan 24, 2017 at 10:51 PM.
Slaz Slaz's Avatar

JCF Member

Joined: Aug 2004

Posts: 1,314

Slaz is OFF DA CHARTSlaz is OFF DA CHARTSlaz is OFF DA CHART

Jan 25, 2017, 02:22 AM
Slaz is offline
Reply With Quote
The noted features work for me with WebGL on in the latest versions of Chrome and Safari. X-Ray view plays nice in action!
__________________
Add SlazRabbit on Xbox Live if you want to play some GoW1/2/3/J or Destiny1/2.
Jazz Jackrabbit 2 Forever!!
Civilian Defence Force - Jazz2 Visual Fantasers
Darkhog Darkhog's Avatar

JCF Member

Joined: May 2012

Posts: 227

Darkhog is notorious for his worthless posts

Jan 25, 2017, 10:42 AM
Darkhog is offline
Reply With Quote
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?).
__________________
Code:
    .──.
   │O_O │
   ││_╱ │
  ╱╱   │╲
 (|▔╲  │ )
╱'╲_▔ _╱`╲
╲___) (___╱  TUX LOVES YOU.
Seren Seren's Avatar

JCF Member

Joined: Feb 2010

Posts: 864

Seren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to all

Jan 25, 2017, 11:09 AM
Seren is offline
Reply With Quote
Quote:
Originally Posted by Darkhog View Post
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?
__________________

I am an official JJ2+ programmer and this has been an official JJ2+ statement.
djazz djazz's Avatar

JCF Member

Joined: Feb 2009

Posts: 257

djazz is OFF DA CHARTdjazz is OFF DA CHARTdjazz is OFF DA CHART

Jan 25, 2017, 01:43 PM
djazz is offline
Reply With Quote
Quote:
Originally Posted by Darkhog View Post
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.
__________________
WebJCS 2 (new and in progress)
WebJCS 1 (old but complete)
SGIP Simple Games in Progress list
Level Packer v2 - With a GUI!
PHP Tileset Compiler
djazz djazz's Avatar

JCF Member

Joined: Feb 2009

Posts: 257

djazz is OFF DA CHARTdjazz is OFF DA CHARTdjazz is OFF DA CHART

Jan 31, 2017, 03:24 AM
djazz is offline
Reply With Quote
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.



https://youtu.be/ObbvMaaMkF4
__________________
WebJCS 2 (new and in progress)
WebJCS 1 (old but complete)
SGIP Simple Games in Progress list
Level Packer v2 - With a GUI!
PHP Tileset Compiler

Last edited by djazz; Jan 31, 2017 at 02:36 PM.
djazz djazz's Avatar

JCF Member

Joined: Feb 2009

Posts: 257

djazz is OFF DA CHARTdjazz is OFF DA CHARTdjazz is OFF DA CHART

Feb 5, 2017, 08:36 AM
djazz is offline
Reply With Quote
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

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!
__________________
WebJCS 2 (new and in progress)
WebJCS 1 (old but complete)
SGIP Simple Games in Progress list
Level Packer v2 - With a GUI!
PHP Tileset Compiler

Last edited by djazz; Feb 5, 2017 at 01:28 PM.
Darkhog Darkhog's Avatar

JCF Member

Joined: May 2012

Posts: 227

Darkhog is notorious for his worthless posts

Feb 7, 2017, 06:13 AM
Darkhog is offline
Reply With Quote
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?
__________________
Code:
    .──.
   │O_O │
   ││_╱ │
  ╱╱   │╲
 (|▔╲  │ )
╱'╲_▔ _╱`╲
╲___) (___╱  TUX LOVES YOU.
cooba cooba's Avatar

JCF Veteran

Joined: Jan 2004

Posts: 7,812

cooba is a glorious beacon of lightcooba is a glorious beacon of lightcooba is a glorious beacon of lightcooba is a glorious beacon of lightcooba is a glorious beacon of lightcooba is a glorious beacon of light

Feb 7, 2017, 06:46 AM
cooba is offline
Reply With Quote
Quote:
Originally Posted by DJazz View Post
undocumented JJ2+ feature
https://www.jazz2online.com/jj2plus/...layer::xOffset
djazz djazz's Avatar

JCF Member

Joined: Feb 2009

Posts: 257

djazz is OFF DA CHARTdjazz is OFF DA CHARTdjazz is OFF DA CHART

Feb 7, 2017, 07:02 AM
djazz is offline
Reply With Quote
Quote:
Originally Posted by Darkhog View Post
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.
__________________
WebJCS 2 (new and in progress)
WebJCS 1 (old but complete)
SGIP Simple Games in Progress list
Level Packer v2 - With a GUI!
PHP Tileset Compiler
djazz djazz's Avatar

JCF Member

Joined: Feb 2009

Posts: 257

djazz is OFF DA CHARTdjazz is OFF DA CHARTdjazz is OFF DA CHART

Feb 8, 2017, 05:08 AM
djazz is offline
Reply With Quote
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!
__________________
WebJCS 2 (new and in progress)
WebJCS 1 (old but complete)
SGIP Simple Games in Progress list
Level Packer v2 - With a GUI!
PHP Tileset Compiler
Marijn

JCF Member

Joined: Feb 2006

Posts: 210

Marijn is doing well so far

Mar 5, 2017, 09:43 AM
Marijn is offline
Reply With Quote
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 Zerg's Avatar

JCF Member

Joined: Oct 2010

Posts: 175

Zerg is doing well so far

Apr 24, 2021, 02:52 AM
Zerg is offline
Reply With Quote
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 Love & Thunder's Avatar

JCF Member

Joined: Sep 2011

Posts: 1,101

Love & Thunder has disabled reputation

Apr 24, 2021, 07:11 AM
Love & Thunder is offline
Reply With Quote
You're better off using MLLE instead these days.
__________________
Zerg Zerg's Avatar

JCF Member

Joined: Oct 2010

Posts: 175

Zerg is doing well so far

Apr 24, 2021, 12:54 PM
Zerg is offline
Reply With Quote
Is it possible to use MLLE for online collaborations?
Violet CLM Violet CLM's Avatar

JCF Éminence Grise

Joined: Mar 2001

Posts: 10,978

Violet CLM has disabled reputation

Apr 24, 2021, 01:45 PM
Violet CLM is offline
Reply With Quote
Sadly it is not.
__________________
Reply

Thread Tools

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 On

Forum Jump

All times are GMT -8. The time now is 01:35 PM.