Register FAQ Search Today's Posts Mark Forums Read
Go Back   JazzJackrabbit Community Forums » Open Forums » General Jazz Jackrabbit Talk

JJ2+ v5.12 (last updated 20 August, 2023)

Reply
 
Thread Tools
cooba

JCF Veteran

Joined: Jan 2004

Posts: 7,815

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 3, 2013, 04:36 AM
cooba is offline
Reply With Quote
Quote:
Originally Posted by FawFul View Post
Not sure if mentioned already, but i tried Sir elementalers Day/Night script today and i couldn't last in jj2 for longer than 2 minutes. fps dropped to 3 at a certain point with shortly an access violation after. Now i wanted to know what was going on, and apparently jj2 eats more and more memory over time. You start of with like 10mb memory usage for jj2. and in less than 2 minutes that turns into 600mb and it just keeps raising till it's too much to handle probably. I think this memory usage raising is a major bug and should be fixed as soon as possible.
This has been already fixed in the upcoming patch and will be released in the coming days.
Old Feb 3, 2013, 06:40 AM
Jerrythabest
This message has been deleted by Jerrythabest. Reason: Cooba was first.
djazz

JCF Member

Joined: Feb 2009

Posts: 257

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

Feb 3, 2013, 01:49 PM
djazz is offline
Reply With Quote
I made a blade gun, that the player can steer/control by moving.
Demo: http://www.youtube.com/watch?v=Qr8pahz-QTs



__________________
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 3, 2013 at 02:21 PM.
Violet CLM

JCF Éminence Grise

Joined: Mar 2001

Posts: 11,047

Violet CLM has disabled reputation

Feb 3, 2013, 02:01 PM
Violet CLM is offline
Reply With Quote
That is remarkably similar to what I was thinking would be cool for the blade gun, minus the not working online very well. EDIT: Oh, wait, now I see the trigger scenery. Never mind.
__________________

Last edited by Violet CLM; Feb 4, 2013 at 12:11 AM.
djazz

JCF Member

Joined: Feb 2009

Posts: 257

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

Feb 3, 2013, 02:20 PM
djazz is offline
Reply With Quote
This works very well in online-mode, as long as all the players have the same speed for all clients, as all clients do the same calculation.
__________________
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
GLaDOS

JCF Member

Joined: Aug 2010

Posts: 40

GLaDOS is doing well so far

Feb 4, 2013, 12:17 AM
GLaDOS is offline
Reply With Quote
Quote:
Originally Posted by Jerrythabest View Post
Well, I'd consider the lack of packet functions in AngelScript a major factor. The only reason it's not in there right now is because it's really difficult to pull off. But it must happen someday!
Okay, that is understandable. A good alternative for now could be a "/s" command prefix that hides console messages for the following command, such as jjChat("/s trigger 2 on") for using triggers as global variables without spamming the console.
Jerrythabest

JCF Member

Joined: Apr 2005

Posts: 2,602

Jerrythabest is a forum legendJerrythabest is a forum legendJerrythabest is a forum legend

Feb 4, 2013, 12:31 AM
Jerrythabest is offline
Reply With Quote
Quote:
Originally Posted by DJazz View Post
This works very well in online-mode, as long as all the players have the same speed for all clients, as all clients do the same calculation.
I think it's just as good as the Bouncer, then. Looks awesome!

Also kudos to Stijn for the snippet DB!

Quote:
Originally Posted by GLaDOS View Post
Okay, that is understandable. A good alternative for now could be a "/s" command prefix that hides console messages for the following command, such as jjChat("/s trigger 2 on") for using triggers as global variables without spamming the console.
Silencing the commands would be nice, but sadly due to the structure of the code it would require quite some work. Maybe we need to expose the features through the API directly, so you wouldn't need to rely on commands.
__________________
GLaDOS

JCF Member

Joined: Aug 2010

Posts: 40

GLaDOS is doing well so far

Feb 4, 2013, 01:55 AM
GLaDOS is offline
Reply With Quote
Quote:
Originally Posted by Jerrythabest View Post
Silencing the commands would be nice, but sadly due to the structure of the code it would require quite some work. Maybe we need to expose the features through the API directly, so you wouldn't need to rely on commands.
While I do not know exactly how the code works internally, couldn't this be solved through a bool that the /s command would set for the duration of the executed command that would be checked by the console output function and suppress its output if true?


Meh, I wish I could contribute better than just suggesting rough means of implementation based on speculations around the source code...
Jerrythabest

JCF Member

Joined: Apr 2005

Posts: 2,602

Jerrythabest is a forum legendJerrythabest is a forum legendJerrythabest is a forum legend

Feb 4, 2013, 02:14 AM
Jerrythabest is offline
Reply With Quote
Hmm, I first thought of having such a bool and passing it on with the commands, but indeed a more quick-and-dirty approach would be to have a global bool to silence the system messages altogether while executing the command. Let's see.
__________________
Old Feb 4, 2013, 02:17 AM
Jerrythabest
This message has been deleted by Jerrythabest. Reason: wrong topic
GLaDOS

JCF Member

Joined: Aug 2010

Posts: 40

GLaDOS is doing well so far

Feb 4, 2013, 02:27 AM
GLaDOS is offline
Reply With Quote
It could be a temporary solution until someone is willing to help out with adapting all commands to take and respect a silence parameter.
DennisKainz

JCF Member

Joined: Dec 2005

Posts: 422

DennisKainz is notorious for his worthless posts

Feb 4, 2013, 02:42 AM
DennisKainz is offline
Reply With Quote
I really shouldn't have doubted you developers. I never thought I'd see so much progress in so little time. I saw butterflies following paths, timers for completing tasks, lizard ambushes, poisonous water flows, drivable platforms, timed out bonus stages, weather and daytime changing in a single level, a new boss, immortal skeletons, scrolling rooms ... I thought I'd have not seen any of these until year 2019. Instead, it's all here, already.

I feel so ashamed for doubting you admin/developers and your good intentions towards JJ2.

Besides, I can't understand a thing of this Angel Script thing. The only thing I managed to do is making the job seat in a Hotel level spawn food on the tables.
Jerrythabest

JCF Member

Joined: Apr 2005

Posts: 2,602

Jerrythabest is a forum legendJerrythabest is a forum legendJerrythabest is a forum legend

Feb 4, 2013, 06:47 AM
Jerrythabest is offline
Reply With Quote
well, I'd say the food thing is a very nice start for a script
__________________
GLaDOS

JCF Member

Joined: Aug 2010

Posts: 40

GLaDOS is doing well so far

Feb 4, 2013, 09:29 AM
GLaDOS is offline
Reply With Quote
Sorry for the scripting feature request spam (maybe you guys just so happen to need someone to implement all of this missing AS stuff), but are we going to see some multiplayer related getter functions anytime soon? Things like checking for started/stopped game, pregame and timelimit, as well as some form of /reset detection would be immensely helpful for creating custom game modes (which is what I am currently doing).
Violet CLM

JCF Éminence Grise

Joined: Mar 2001

Posts: 11,047

Violet CLM has disabled reputation

Feb 4, 2013, 11:57 AM
Violet CLM is offline
Reply With Quote
Quote:
Originally Posted by GLaDOS View Post
S(maybe you guys just so happen to need someone to implement all of this missing AS stuff)
when we add new coders to the project, they disappear. it's a worrisome pattern.

anyway the answer to your question is yes, and soon.
__________________
GLaDOS

JCF Member

Joined: Aug 2010

Posts: 40

GLaDOS is doing well so far

Feb 4, 2013, 12:04 PM
GLaDOS is offline
Reply With Quote
Ow... let's hope the project won't die out due to sudden mass-inactivity among the devs.
Anyway, thank you very much for listening to the suggestions. As always, great job; I'm eagerly looking forward to the next release!
djazz

JCF Member

Joined: Feb 2009

Posts: 257

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

Feb 4, 2013, 12:13 PM
djazz is offline
Reply With Quote
Some show-off!
Sorry for the lag burst at 5:00, I just don't know what went wrong 9_6

__________________
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
burnout92

JCF Member

Joined: Dec 2012

Posts: 236

burnout92 is doing well so far

Feb 4, 2013, 12:58 PM
burnout92 is offline
Reply With Quote
Might be a question? How to insert mp3 or wav music for a level? Because i saw the mp3 and wav support JJ2+.
__________________
"Where I walk, I walk alone. Where I fight, I fight alone" Akuma from Street Fighter Alpha The Animation
Violet CLM

JCF Éminence Grise

Joined: Mar 2001

Posts: 11,047

Violet CLM has disabled reputation

Feb 4, 2013, 01:02 PM
Violet CLM is offline
Reply With Quote
Same as .s3m, .mod, .xm, etc. Just put the music file in the same folder as JJ2 and then type the filename in "Music file" in JCS or jjMusicLoad, depending on where you're doing this.
__________________
burnout92

JCF Member

Joined: Dec 2012

Posts: 236

burnout92 is doing well so far

Feb 4, 2013, 01:23 PM
burnout92 is offline
Reply With Quote
Thanks for your help. Patch was very good anyway. Maybe it's better play with this amazingly good game on online. In addition, I would like to wish good luck to the patch development. Fixes the single player mode or just the multi player mode?
__________________
"Where I walk, I walk alone. Where I fight, I fight alone" Akuma from Street Fighter Alpha The Animation
Violet CLM

JCF Éminence Grise

Joined: Mar 2001

Posts: 11,047

Violet CLM has disabled reputation

Feb 4, 2013, 05:55 PM
Violet CLM is offline
Reply With Quote
New release!
As ever, click here to download.



This is not intended to be an enormous, game-changing update like last week's. The main point of this release is to plug two memory leaks, one that was our fault (well, mostly mine) and one that existed from JJ2's beginning but became a lot more problematic when AngelScript started invoking it a lot. We also fixed several other bugs, added some new settings, and added a handful of global multiplayer-oriented properties to AngelScript, but the big news probably is the memory leak plugging. Or maybe not? You can find the full list of changes here.

(Don't expect the next release so soon unless there's something obviously wrong with this one, which we really hope there isn't. LOLNOPE There are some big things we want to add, and that takes time.)
__________________

Last edited by Violet CLM; Feb 5, 2013 at 02:31 PM.
cooba

JCF Veteran

Joined: Jan 2004

Posts: 7,815

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 5, 2013, 03:52 AM
cooba is offline
Reply With Quote
Bump for the JCF frontpage...
Superjazz

JCF Member

Joined: Jan 2003

Posts: 976

Superjazz is OFF DA CHARTSuperjazz is OFF DA CHARTSuperjazz is OFF DA CHART

Feb 5, 2013, 05:01 AM
Superjazz is offline
Reply With Quote
The ready-start feature is broken somehow:

[14:18:06] -t3>CJ: /readystart on
[14:18:06] *** -t3>CJ is READY!
[14:18:08] -t3>CJ: /readystart off
[14:18:08] *** -t3>CJ is READY!

It worked fine in my own server, but once Zeal servers got updated, I couldn't toggle the feature on/off as a remote admin in any case, it only displayed the ready-text above(without getting me ready of course.)

DanZeal set the feature to default to true in plus.inis. However, the zeal servers themselves also have /idleserver on by default, whenever started/restarted. This mode seems to break the feature for the players because the game counts the non-spectated idleserver as a player participating, so until the server types /ready as well, the game won't start. However toggling idleserver off/on once in each zd seemed to fix the problem, because it made the server hide itself from the playerlist and it finally didn't count as a participant. Typing /ready as a server didn't work anymore.

Anyway, it's not a very urgent fix as logical.
__________________
Find It Out
SP: https://www.jazz2online.com/downloads/9371/find-it-out-single-player/
MP: http://www.jazz2online.com/J2Ov2/downloads/info.php?levelID=5021
MrAlextov

JCF Member

Joined: Apr 2010

Posts: 182

MrAlextov has disabled reputation

Feb 5, 2013, 07:47 AM
MrAlextov is offline
Reply With Quote
Please. Do you can fix that bug when running JJ2+ in wine that usually when cycling level it crashes?
__________________
Sega Satan somewhat
DennisKainz

JCF Member

Joined: Dec 2005

Posts: 422

DennisKainz is notorious for his worthless posts

Feb 5, 2013, 07:58 AM
DennisKainz is offline
Reply With Quote
From now on I will only download Angel Scripted levels!

You can make hail from a little ball sprite and the Ice Bullet object, make the whole room turn red when you get hurt, set the maximum weapons to 10, set the Tuf Turt's health to 32 ... the possibilities are unlimited!
Violet CLM

JCF Éminence Grise

Joined: Mar 2001

Posts: 11,047

Violet CLM has disabled reputation

Feb 5, 2013, 02:35 PM
Violet CLM is offline
Reply With Quote
Build 2013-02-05, the minorest of minor updates!
  • Fixed bug in the /readystart command where the server would not consider itself idle if it began hosting in Idle Server mode.
  • Fixed bug of the /cstop command's countdown being reinterpreted as a /cstart countdown if the game ends (e.g. by someone making a score) before the countdown runs out.
  • Fixed bug where remote admins would be falsely announced as ready instead of receiving an error if the /ready command wasn't typed correctly.
All changes are server-side, so if you literally never host, you don't strictly need this update (though you might as well). Now, for serious, no more bugs please.
__________________
minmay

JCF Member

Joined: Aug 2002

Posts: 1,186

minmay is immeasurably awesomeminmay is immeasurably awesomeminmay is immeasurably awesomeminmay is immeasurably awesomeminmay is immeasurably awesome

Feb 5, 2013, 06:52 PM
minmay is offline
Reply With Quote
Quote:
Originally Posted by RedComputer View Post
Please. Do you can fix that bug when running JJ2+ in wine that usually when cycling level it crashes?
Every Wine crash I've discovered goes away if you remove bass.dll (delete/rename/move it, whatever) and disable the chatlogger.
GLaDOS

JCF Member

Joined: Aug 2010

Posts: 40

GLaDOS is doing well so far

Feb 6, 2013, 01:16 AM
GLaDOS is offline
Reply With Quote
Quote:
Originally Posted by RedComputer View Post
Please. Do you can fix that bug when running JJ2+ in wine that usually when cycling level it crashes?
This is the solution I am using, works perfectly for me. It seems to be some combination of TSF/Plus/Bass code that Wine just doesn't like very much.
cooba

JCF Veteran

Joined: Jan 2004

Posts: 7,815

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 6, 2013, 05:09 AM
cooba is offline
Reply With Quote
Quote:
Originally Posted by PurpleJazz View Post
TNT is no longer able to destroy blocks at all
I've got this identified: this is true, but only in TSF.

Sorry for not looking into this two updates earlier, or something. vv

Last edited by cooba; Feb 6, 2013 at 05:36 AM.
DennisKainz

JCF Member

Joined: Dec 2005

Posts: 422

DennisKainz is notorious for his worthless posts

Feb 6, 2013, 05:29 AM
DennisKainz is offline
Reply With Quote
I'm eager to upload some levels made with JJ2+ and AngelScript, but I'm still blocked because of my spam uploads. I sent a message to 3 of the admins, but I got no response yet.

Which is the procedure to follow if I want to be able to upload levels again?
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

Feb 6, 2013, 05:31 AM
Stijn is offline
Reply With Quote
The procedure is to wait until one of the admins replies to your PM
Jerrythabest

JCF Member

Joined: Apr 2005

Posts: 2,602

Jerrythabest is a forum legendJerrythabest is a forum legendJerrythabest is a forum legend

Feb 6, 2013, 01:25 PM
Jerrythabest is offline
Reply With Quote
Quote:
Originally Posted by cooba View Post
I've got this identified: this is true, but only in TSF.

Sorry for not looking into this two updates earlier, or something. vv
Huh. How the heck did we break that? Funny how things that work precisely the same in 1.23 and 1.24 from the outside, turn out to work differently inside. Sigh.
__________________
Violet CLM

JCF Éminence Grise

Joined: Mar 2001

Posts: 11,047

Violet CLM has disabled reputation

Feb 6, 2013, 01:29 PM
Violet CLM is offline
Reply With Quote
Quote:
Originally Posted by Jerrythabest View Post
Huh. How the heck did we break that?
startup.cpp, line 6984 would be my guess.
__________________
Jerrythabest

JCF Member

Joined: Apr 2005

Posts: 2,602

Jerrythabest is a forum legendJerrythabest is a forum legendJerrythabest is a forum legend

Feb 6, 2013, 03:36 PM
Jerrythabest is offline
Reply With Quote
Yes, fixed. Change the 0x24 to 0x20.
__________________
plunK

JCF Member

Joined: Apr 2008

Posts: 514

plunK is an asset to this forum

Feb 6, 2013, 04:12 PM
plunK is offline
Reply With Quote
This is absolutely amazing. I'm definitely going to look into making some cool AngelScript codes.

Anyways, suggestions:

-the Ability for JCS to load and run through JJ2+
-the Abiltiy to create new coloured gems, with customizable gem values
-keep being awesome
minmay

JCF Member

Joined: Aug 2002

Posts: 1,186

minmay is immeasurably awesomeminmay is immeasurably awesomeminmay is immeasurably awesomeminmay is immeasurably awesomeminmay is immeasurably awesome

Feb 6, 2013, 08:24 PM
minmay is offline
Reply With Quote
Quote:
Originally Posted by plunK View Post
-the Ability for JCS to load and run through JJ2+
Assuming you're using Plusifier rather than manually injecting the DLL every time (eech!) you can just name the result Jazz2.exe. JCS will use it then, as will things like CaptainCook. Renaming the original Jazz2.exe to, say, Jazz2notplus.exe, won't break anything.

Random idea: onTrigger function. As in, call it when the trigger is turned on (but not for remaining on). Maybe split into onTriggerOn (call when turned on), onTriggerOff (call when turned off), onTriggerSwitch (any change). You can imitate this with existing capabilities of course but it's a bit cumbersome and I'm worried about checking too many conditionals every frame (what if we go up to 256 trigger IDs some day?), though I suppose that probably isn't a concern nowadays.
minmay

JCF Member

Joined: Aug 2002

Posts: 1,186

minmay is immeasurably awesomeminmay is immeasurably awesomeminmay is immeasurably awesomeminmay is immeasurably awesomeminmay is immeasurably awesome

Feb 6, 2013, 11:12 PM
minmay is offline
Reply With Quote
There is a major regression in the latest update. Applying a palette in a level with many animated tiles can cause a crash. This does not occur with the Jan 28 version. The behavior seems to be random, but it usually happened within 70 calls in the level I was using.

Demonstration
___test.j2l almost always crashes, ___test2.j2l never crashed (it has most animated tiles removed). Removing the destruct scenery events from the animated tiles did not change anything, but removing the tiles did. Editing jjPalette directly is not the culprit either (tried a new one, didn't help).

Maybe a bug tracker of some sort would be a good idea?
Jerrythabest

JCF Member

Joined: Apr 2005

Posts: 2,602

Jerrythabest is a forum legendJerrythabest is a forum legendJerrythabest is a forum legend

Feb 7, 2013, 02:06 AM
Jerrythabest is offline
Reply With Quote
Weirdest. Bug. Ever. It doesn't really crash, it just hangs at the palette.apply() call.
__________________
DennisKainz

JCF Member

Joined: Dec 2005

Posts: 422

DennisKainz is notorious for his worthless posts

Feb 7, 2013, 02:20 AM
DennisKainz is offline
Reply With Quote
if with "hangs" you mean that it breaks, the call is "jjPalette.apply()" as far as I remember.

Unless with "palette" you meant the generic use of this word...
Jerrythabest

JCF Member

Joined: Apr 2005

Posts: 2,602

Jerrythabest is a forum legendJerrythabest is a forum legendJerrythabest is a forum legend

Feb 7, 2013, 02:27 AM
Jerrythabest is offline
Reply With Quote
I did mean to say "jjPalette.apply()". But it doesn't matter much, either way it hangs on the apply() method in the jjPAL class.

I've found the line of code that causes this. Let's see what we can do about it.


EDIT: For now, a workaround to avoid the problem is to use 8-bit color mode in problematic levels. This way you can continue building your level while we prepare a patch
__________________
Seren

JCF Member

Joined: Feb 2010

Posts: 868

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

Feb 7, 2013, 02:50 AM
Seren is offline
Reply With Quote
Quote:
Originally Posted by minmay View Post
Random idea: onTrigger function. As in, call it when the trigger is turned on (but not for remaining on). Maybe split into onTriggerOn (call when turned on), onTriggerOff (call when turned off), onTriggerSwitch (any change). You can imitate this with existing capabilities of course but it's a bit cumbersome and I'm worried about checking too many conditionals every frame (what if we go up to 256 trigger IDs some day?), though I suppose that probably isn't a concern nowadays.
I'm pretty sure that JJ2 doesn't contain onTrigger() itself, so to add it, JJ2+ would just have to check for those "too many conditionals every frame" on its own and it wouldn't be any faster. However, it's worth noting that there's no reason this would be slow at all, as all you have to do is check current trigger state (JJ2 array) and previous trigger state (custom array you should update manually) for every trigger. So, check state of two booleans in a for() loop that repeats 32 (or, in your "some day" scenario, 256) times. By my estimation, this won't slow the game down by more than 1.0*10-20 fps. In other words: it's not cumbersome, it gives your script approximately up to 6 more lines, and you shouldn't worry about speed issues, there's no way this would slow the game down.
__________________

I am an official JJ2+ programmer and this has been an official JJ2+ statement.

Last edited by Sir Ementaler; Feb 7, 2013 at 03:01 AM.
Slaz

JCF Member

Joined: Aug 2004

Posts: 1,316

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

Feb 7, 2013, 03:05 AM
Slaz is offline
Reply With Quote
Wakeman curiously clicked a checkbox back in '98..
Only to see the results almost 15 years later!

JJ2+, play old levels the way they're meant to be played..

__________________
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
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 11:48 AM.