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

WebJCS

Reply
 
Thread Tools
Jgke

JCF Member

Joined: Sep 2006

Posts: 974

Jgke is an asset to this forumJgke is an asset to this forum

Nov 19, 2011, 03:43 AM
Jgke is offline
Reply With Quote
Suggestion, an arrow or two to tell the direction of the warp? Like W-->--Wt
It would help showing if the events aren't visible (and make it clearer with multiple warps and warp targets near each other)
djazz

JCF Member

Joined: Feb 2009

Posts: 257

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

Nov 20, 2011, 10:40 AM
djazz is offline
Reply With Quote
Quote:
Originally Posted by Jake View Post
Suggestion, an arrow or two to tell the direction of the warp? Like W-->--Wt
It would help showing if the events aren't visible (and make it clearer with multiple warps and warp targets near each other)
I made so that lines gradient from green to red, adding arrows will get cluttered.
Also some other new stuff, like layer-panning.

http://www.jazz2online.com/downloads/6796/webjcs/
__________________
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

JCF Member

Joined: Feb 2009

Posts: 257

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

Nov 21, 2011, 01:41 AM
djazz is offline
Reply With Quote
How to used flipped tiles for destruct/stomp/collaps/trigger scenery
Not only flipped tiles but also flipped animations!

This only works with WebJCS.

The result:


Behind the scenes:


If you want flipped animations for your destruct/etc-scenery, just edit Anim 1.
To place animations as frames, place the cursor where you usually would, hold Ctrl and click the animation you want to use. Hold F to make it flipped.

In future versions of WebJCS i will probably do so you don't have to put that extra tile (Anim 1) manually. For now, you can place it ANYWHERE in the level, for example behind some layer 3 scenery.

Screenshots of WebJCS running on Windows XP and Ubuntu 11.04 (click for larger version):


__________________
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
Violet CLM

JCF Éminence Grise

Joined: Mar 2001

Posts: 11,063

Violet CLM has disabled reputation

Nov 21, 2011, 11:18 AM
Violet CLM is offline
Reply With Quote
Sounds like you might know something about how to prevent nested animations from crashing TSF? Care to share?
__________________
RedMser

JCF Member

Joined: Sep 2010

Posts: 3

RedMser is doing well so far

Nov 24, 2011, 07:35 AM
RedMser is offline
Reply With Quote
I think it's (or not) a bug, but if you Save the map when trying to use Tile Cache (e.g. for Triggers in background) it won't really work.
Are you planning to add a feature to make Tile Cache stuff easier (Such as you can place Triggers in layer 8 and it automaticly places the Tile Cache tiles.)?

Also what about adding a shortcut for changing the tiletype to normal (e.g. making fog and want to remake it back to normal, then you have to spam rightclick, so what about holding e.g. shift+n to change all back to normal)?
__________________
RedMser is my name and I like games.

Last edited by RedMser; Nov 24, 2011 at 07:46 AM. Reason: Idea
djazz

JCF Member

Joined: Feb 2009

Posts: 257

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

Nov 25, 2011, 10:19 AM
djazz is offline
Reply With Quote
First level made with WebJCS collaboration released!
http://www.jazz2online.com/downloads...sinine-armory/
Thanks to Sean and MSD.
__________________
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

JCF Member

Joined: Feb 2009

Posts: 257

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

Nov 30, 2011, 02:53 PM
djazz is offline
Reply With Quote
I made a short demo of WebJCS on youtube:
__________________
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; Dec 4, 2011 at 08:32 AM. Reason: New video, with music and playing the level in JJ2
djazz

JCF Member

Joined: Feb 2009

Posts: 257

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

Dec 1, 2011, 12:55 PM
djazz is offline
Reply With Quote
Undo and redo functions are now working! Expect a new version soon!

Only stuff drawn in the layers view can be undone/redone. Undo is also disabled for collaborations, gets tricky with multiple people drawing (on maybe same spot).

Edit:
Made a G+ page for WebJCS, see it here:
https://plus.google.com/107569713951933401034
__________________
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; Dec 1, 2011 at 01:36 PM. Reason: G+
djazz

JCF Member

Joined: Feb 2009

Posts: 257

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

Dec 2, 2011, 09:12 AM
djazz is offline
Reply With Quote
WebJCS 1.2 released, download here: http://www.jazz2online.com/downloads/6796/webjcs/
__________________
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

JCF Member

Joined: Feb 2009

Posts: 257

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

Dec 3, 2011, 11:40 AM
djazz is offline
Reply With Quote
WebJCS 1.2.1 released:
Fixed a major bug related to undo/redo.
Animations, tile types and level properties now gets synced while editing in realtime.
New hotkeys for Run, Save As and Open. I can't override Ctrl+N, so it's Alt+N.

Well, 5th post in a row :P
__________________
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
Sean

JCF Member

Joined: Oct 2010

Posts: 720

Sean is a forum legendSean is a forum legend

Dec 3, 2011, 04:32 PM
Sean is offline
Reply With Quote
C-c-c-c-c-c-c-combo breaker!

Love how it's all gone so far, and I will be posting up a review once the final version is released!

One thing to note:

I run JJ2 and my normal JCS from a pendrive, and so the path for JJ2 is not consistent. I tried setting the JJ2 path in settings.ini to have two possibilities since they will be the most occuring ones:

1=F:\Applications\Jazz 1.23\Jazz2\
2=G:\Applications\Jazz 1.23\Jazz2\

I then ran WebJCS, but the tilesets didn't show up. Since the drive letter of my pendrive at the time was G:\, I quit and swapped the paths around in settings.ini so that G:\ got scanned first. The tilesets still didn't show up. Once I removed the F:\ drive from settings.ini though, it worked. Maybe add a clause for missing paths?

It should be worth noting at the time that F:\ is a FAT32 partition to swap files between Mac and Windows, and that no Applications folder exists there, much less a Jazz folder.
__________________
drop by my SoundCloud or something if you want, it's my life's pride
djazz

JCF Member

Joined: Feb 2009

Posts: 257

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

Dec 6, 2011, 10:03 AM
djazz is offline
Reply With Quote
Quote:
Originally Posted by Sean View Post
Sean's post
Fixed.

Here's something I'm making for next version (you can't see it, but the lizards are animated).
I made a PHP script to create a simplified JSON version of Anims.j2a, with only the images. JavaScript then renders the data.
Thx Neobeo!
__________________
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
Neobeo

JCF Member

Joined: Sep 2002

Posts: 409

Neobeo is an asset to this forumNeobeo is an asset to this forum

Dec 6, 2011, 10:43 AM
Neobeo is offline
Reply With Quote
Now all that's left to do is to run the JJ2 engine in the parallax view \o/.
__________________
<TABLE border=1><TR><TD>Facts:
Jazz Sprite Dynamite (JSD)
Tileset Extractor
Neobeo's Firetruck

</TD><TD>Myths:
Jazz Creation Station Plus (JCS+) - 10%
Coming soon - a dedicated server! - 25%
Jazz Sprite Dynamite v2 (JSDv2) - 2%
Another generic single-player level - 0%
</TD></TR></TABLE>
Jgke

JCF Member

Joined: Sep 2006

Posts: 974

Jgke is an asset to this forumJgke is an asset to this forum

Dec 6, 2011, 10:44 AM
Jgke is offline
Reply With Quote
Yeah, let's wait for it to be released!
cooba

JCF Veteran

Joined: Jan 2004

Posts: 7,813

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

Dec 6, 2011, 01:01 PM
cooba is offline
Reply With Quote
It's looking alright but can you perhaps make that optional?
Stijn

Administrator

Joined: Mar 2001

Posts: 6,965

Stijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to behold

Dec 6, 2011, 01:04 PM
Stijn is offline
Reply With Quote
How do you find out at what position to draw the object sprite? And what happens with events like the Bolly Boss?
djazz

JCF Member

Joined: Feb 2009

Posts: 257

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

Dec 7, 2011, 12:04 AM
djazz is offline
Reply With Quote
Quote:
Originally Posted by cooba View Post
It's looking alright but can you perhaps make that optional?
There's a switch, "Events", on the Parallax View toolbar, just as there is for the layer view.

Quote:
Originally Posted by Stijn View Post
How do you find out at what position to draw the object sprite? And what happens with events like the Bolly Boss?
All sprites/animations are centered on the position of the event for now. I won't make anything physics/mask related, it would be too slow. For example horizontal springs won't get flipped near a masked tile on their right side.
As for multi-sprite/multi-anim events such as Bolly Boss, CTF Base etc. I will have to make special cases. Also, some animations require palette index changing, such as gems to make gems all colors.
__________________
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
Jgke

JCF Member

Joined: Sep 2006

Posts: 974

Jgke is an asset to this forumJgke is an asset to this forum

Dec 7, 2011, 02:17 AM
Jgke is offline
Reply With Quote
Quote:
For example horizontal springs won't get flipped near a masked tile on their right side.
Why
djazz

JCF Member

Joined: Feb 2009

Posts: 257

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

Dec 7, 2011, 02:42 AM
djazz is offline
Reply With Quote
Quote:
Originally Posted by Jake View Post
Why
Quote:
Originally Posted by DJazz View Post
...it would be too slow.
I'm not trying to rebuild the JJ2 engine into WebJCS :P
__________________
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
Jgke

JCF Member

Joined: Sep 2006

Posts: 974

Jgke is an asset to this forumJgke is an asset to this forum

Dec 7, 2011, 03:17 AM
Jgke is offline
Reply With Quote
There aren't that many springs in levels. Couldn't you do something per-spring?
cooba

JCF Veteran

Joined: Jan 2004

Posts: 7,813

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

Dec 7, 2011, 05:24 AM
cooba is offline
Reply With Quote
Quote:
Originally Posted by DJazz View Post
There's a switch, "Events", on the Parallax View toolbar, just as there is for the layer view.
Ah, missed it.
Quote:
Originally Posted by Jake View Post
There aren't that many springs in levels. Couldn't you do something per-spring?
Save and Run?
Jgke

JCF Member

Joined: Sep 2006

Posts: 974

Jgke is an asset to this forumJgke is an asset to this forum

Dec 7, 2011, 05:43 AM
Jgke is offline
Reply With Quote
But KDE crashes with save + run when I stop JJ2...
Neobeo

JCF Member

Joined: Sep 2002

Posts: 409

Neobeo is an asset to this forumNeobeo is an asset to this forum

Dec 7, 2011, 07:09 AM
Neobeo is offline
Reply With Quote
Quote:
Originally Posted by Jake View Post
There aren't that many springs in levels. Couldn't you do something per-spring?
Quote:
Originally Posted by 1.23 Source Code
A horizontal spring is flipped if and only if the pixel at (-17, 15) is unmasked and the pixel at (47, 15) is masked. The reference point (0,0) is given by the top-left corner of the tile on which the spring event is placed.
You'd really only need to check two pixels.
__________________
<TABLE border=1><TR><TD>Facts:
Jazz Sprite Dynamite (JSD)
Tileset Extractor
Neobeo's Firetruck

</TD><TD>Myths:
Jazz Creation Station Plus (JCS+) - 10%
Coming soon - a dedicated server! - 25%
Jazz Sprite Dynamite v2 (JSDv2) - 2%
Another generic single-player level - 0%
</TD></TR></TABLE>
djazz

JCF Member

Joined: Feb 2009

Posts: 257

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

Dec 7, 2011, 10:32 AM
djazz is offline
Reply With Quote
Quote:
Originally Posted by Neobeo View Post
You'd really only need to check two pixels.
Oh, thanks neobeo! Next WebJCS gets good-looking horizontal springs! It's not perfect, but it should work 99% of the use cases.


With these animations, when compressing all files, it grows above J2O's 2Mb limit, so I'll probably start host it on my site again. Soon.
Also, the multisprites Bolly Boss, Floating Lizard and CTF Base all look pixel perfect! All poles work! Moths gets correct type. Ceiling springs. Gems not in weird colors!
__________________
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
cooba

JCF Veteran

Joined: Jan 2004

Posts: 7,813

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

Dec 7, 2011, 10:47 AM
cooba is offline
Reply With Quote
Psst, your red springs are floating two or three pixels too high.
djazz

JCF Member

Joined: Feb 2009

Posts: 257

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

Dec 7, 2011, 11:06 AM
djazz is offline
Reply With Quote
Quote:
Originally Posted by cooba View Post
Psst, your red springs are floating two or three pixels too high.
No gravity, no physics, no JJ2 engine.
__________________
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
cooba

JCF Veteran

Joined: Jan 2004

Posts: 7,813

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

Dec 7, 2011, 12:12 PM
cooba is offline
Reply With Quote
Well, if you can figure out how to render a flipped horizontal spring, you can probably figure out how to display a regular spring at the bottom of its tile.
GoldRabbit

JCF Member

Joined: Jul 2006

Posts: 219

GoldRabbit is an asset to this forumGoldRabbit is an asset to this forum

Dec 7, 2011, 03:13 PM
GoldRabbit is offline
Reply With Quote
Quote:
Originally Posted by Neobeo View Post
Quote:
Originally Posted by 1.23 Source Code
blah blah
wat
__________________
so we will shut our mouth when
we are trying to be bastards
and speak loudly when we see injustice
because everybody plays the game this way

saints especially
Stijn

Administrator

Joined: Mar 2001

Posts: 6,965

Stijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to behold

Dec 7, 2011, 04:39 PM
Stijn is offline
Reply With Quote
Quote:
Originally Posted by cooba View Post
Well, if you can figure out how to render a flipped horizontal spring, you can probably figure out how to display a regular spring at the bottom of its tile.
This is actually a lot harder than it would seem. The hotspot/coldspot/whatever it was called that is stored for each sprite is not consistent (or at least not in any way I've been able to find) so you need to either implement some crude physics simulation (find mask beneath object spawn point) or store the offset at which to start drawing for each individual event.
Neobeo

JCF Member

Joined: Sep 2002

Posts: 409

Neobeo is an asset to this forumNeobeo is an asset to this forum

Dec 8, 2011, 12:58 AM
Neobeo is offline
Reply With Quote
Most objects have their sprite drawn at (15, 15). There are a small number of exceptions. In partcular, for springs:
Quote:
Originally Posted by 1.23 Source Code
Ceiling springs are drawn at (15, 11).
Also, for objects that "fall to the ground" at the start, these are divided, for whatever reason, into two classes:
Quote:
Originally Posted by 1.23 Source Code
First type: Tuf Turt, Lizard, Hatter, Dog, Skeleton, Turtle, Lab Rat, Sucker, Helmut, Fat Chick, Demon, Monkey, Stand Monkey, Eva, Warp, Birdy, Crab, and a bunch of bosses. These fall by checking every pixel underneath a certain "starting point" which is calculated using a mix of frame size and hotspot values and stops when it hits a mask.

Second type: Steam, (Vertical, Non-Ceiling) Springs, Sign posts, Monitors, Crates, Big Rock, Big Box, Dragon, Fencer, Moth. These fall by moving a certain "starting point" down 4 pixels until it hits a mask. This point is calculated by using a mix of frame size, hotspot and coldspot.
__________________
<TABLE border=1><TR><TD>Facts:
Jazz Sprite Dynamite (JSD)
Tileset Extractor
Neobeo's Firetruck

</TD><TD>Myths:
Jazz Creation Station Plus (JCS+) - 10%
Coming soon - a dedicated server! - 25%
Jazz Sprite Dynamite v2 (JSDv2) - 2%
Another generic single-player level - 0%
</TD></TR></TABLE>
Toni_

JCF Member

Joined: Oct 2011

Posts: 193

Toni_ is doing well so far

Dec 8, 2011, 02:49 AM
Toni_ is offline
Reply With Quote
What the hell? 1.23 source code? You have it?
Sean

JCF Member

Joined: Oct 2010

Posts: 720

Sean is a forum legendSean is a forum legend

Dec 8, 2011, 03:55 AM
Sean is offline
Reply With Quote
No, he's just stating what it does. No one in this community has the source code, if we had we'd immediately share it.
__________________
drop by my SoundCloud or something if you want, it's my life's pride
Jgke

JCF Member

Joined: Sep 2006

Posts: 974

Jgke is an asset to this forumJgke is an asset to this forum

Dec 8, 2011, 03:56 AM
Jgke is offline
Reply With Quote
Problem, JRU?
cooba

JCF Veteran

Joined: Jan 2004

Posts: 7,813

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

Dec 8, 2011, 05:43 AM
cooba is offline
Reply With Quote
Shut up about the source code in the WebJCS thread please
djazz

JCF Member

Joined: Feb 2009

Posts: 257

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

Dec 8, 2011, 06:44 AM
djazz is offline
Reply With Quote
Quote:
Originally Posted by cooba View Post
Well, if you can figure out how to render a flipped horizontal spring, you can probably figure out how to display a regular spring at the bottom of its tile.
Once again, thank you neobeo!

__________________
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

JCF Member

Joined: Feb 2009

Posts: 257

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

Dec 9, 2011, 02:20 AM
djazz is offline
Reply With Quote
You can now preview different ambient light levels in the Parallax View!
Steady and pulze lights works at the moment. Flicker is harder, but i could just put a less luminating circle for them
You can change the preview-level by dragging the slider on the parallax's toolbar.

Screenshot:

(ignore the 5 in top left corner, just debugging how many lights that are visible)
__________________
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
Jgke

JCF Member

Joined: Sep 2006

Posts: 974

Jgke is an asset to this forumJgke is an asset to this forum

Dec 9, 2011, 02:54 AM
Jgke is offline
Reply With Quote
Woo @ the level!
Sean

JCF Member

Joined: Oct 2010

Posts: 720

Sean is a forum legendSean is a forum legend

Dec 9, 2011, 07:10 AM
Sean is offline
Reply With Quote
Now all that's left... is the release.
__________________
drop by my SoundCloud or something if you want, it's my life's pride
djazz

JCF Member

Joined: Feb 2009

Posts: 257

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

Dec 9, 2011, 08:00 AM
djazz is offline
Reply With Quote
Quote:
Originally Posted by Sean View Post
Now all that's left... is the release.
It's on my server, until an admin can put it on J2O, as it's bigger than 2 Mb.
__________________
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

JCF Member

Joined: Feb 2009

Posts: 257

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

Dec 17, 2011, 04:12 AM
djazz is offline
Reply With Quote
Me, Cirno and Sir. Ementaler made a screencast of realtime level collaboration in WebJCS! Enjoy!




Quote:
ÐJazz: green springs are better
SE': Racist.
ÐJazz:
__________________
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; Dec 17, 2011 at 05:40 AM.
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 12:35 AM.