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

Change music event, maybe?

JangoCF

JCF Member

Joined: Jun 2008

Posts: 65

JangoCF is doing well so far

Sep 6, 2008, 12:07 AM
JangoCF is offline
Reply With Quote
Change music event, maybe?

Would there be such a thing as a "change music event"? So, when you walk into a cave, the music changes from "happy outside" to "cavern". Or something like that?

Like the "lighting" events, but then to do with music?
__________________
Shrooblord
PurpleJazz

JCF Member

Joined: Aug 2006

Posts: 855

PurpleJazz is OFF DA CHARTPurpleJazz is OFF DA CHARTPurpleJazz is OFF DA CHARTPurpleJazz is OFF DA CHART

Sep 6, 2008, 12:40 AM
PurpleJazz is offline
Reply With Quote
While that sounds like a cool idea, I highly doubt something like that will be created for JCS anytime soon.
JangoCF

JCF Member

Joined: Jun 2008

Posts: 65

JangoCF is doing well so far

Sep 6, 2008, 01:20 AM
JangoCF is offline
Reply With Quote
Quote:
Originally Posted by PurpleJazz View Post
While that sounds like a cool idea, I highly doubt something like that will be created for JCS anytime soon.
I am sorroly having to agree with you...

I know there`s that boss tune-change of music event, by doing "activate boss" without having a boss. If someone were to implement that in a diffrent way, so you can select diffrent tunes depending on where they are on the list. For example, this Mario tune is first on the list, and then as an integer you would put in a "0", because 0 is the first number.

Of course, this will take a long, long time to make(I think).
But, who knows what the future holds?
__________________
Shrooblord
NovaStar

JCF Member

Joined: Sep 2005

Posts: 1,791

NovaStar is doing well so far

Sep 6, 2008, 01:47 AM
NovaStar is offline
Reply With Quote
Something tells me this lays in the basket of "impossible with the way JJ2 structures levels"

Unless something is done with the in-game sound effects you can get, but not sure
__________________
NOM
Grytolle

JCF Member

Joined: Sep 2004

Posts: 4,126

Grytolle is a forum legendGrytolle is a forum legendGrytolle is a forum legend

Sep 6, 2008, 02:07 AM
Grytolle is offline
Reply With Quote
it sounds like a very easy thing to add when jj2+ starts working on single player too
__________________
<center></center>
Puffie40

JCF Member

Joined: May 2002

Posts: 894

Puffie40 is doing well so far

Sep 10, 2008, 12:40 PM
Puffie40 is offline
Reply With Quote
It would be nice to have custom boss music, too.
JangoCF

JCF Member

Joined: Jun 2008

Posts: 65

JangoCF is doing well so far

Sep 11, 2008, 02:31 AM
JangoCF is offline
Reply With Quote
yep. It sure would...
__________________
Shrooblord
Speeza

JCF Member

Joined: Jan 2006

Posts: 1,628

Speeza is an asset to this forumSpeeza is an asset to this forum

Sep 11, 2008, 07:51 AM
Speeza is offline
Reply With Quote
Quote:
Originally Posted by Grytolle View Post
it sounds like a very easy thing to add when jj2+ starts working on single player too
Agreed
__________________
You like it when I talk bad about myself don't you cooba <3
The only true wisdom is in knowing you know nothing.

Your friendly JCF Hillybilly
DavidkazBest poster of 2010 ! [GpW]
Odin

Banned

Joined: Dec 2003

Posts: 3,776

Odin is doing well so far

Sep 11, 2008, 08:14 PM
Odin is offline
Reply With Quote
It probably wouldn't be that hard to implement, since code already exists to switch music. However, I'm not sure if JJ2 loads the boss music before opening the level, or does it on-the-fly.
Sonyk

JCF Member

Joined: Feb 2005

Posts: 2,409

Sonyk is doing well so far

Sep 12, 2008, 05:20 AM
Sonyk is offline
Reply With Quote
I think it's on-the-fly, as JJ2 would lag at the start of boss battles on the first computer I played it on with only 16mb of ram. But to be fair, everything lagged on it.

Either way, if/when JJ2+ adds single-player enhancements, that's something I really want to see done, since I've had ideas that could use it.
Cpp

JCF Member

Joined: Mar 2001

Posts: 1,557

Cpp is doing well so far

Sep 12, 2008, 09:13 AM
Cpp is offline
Reply With Quote
Adding a mechanism to change music is definitely possible and most easy to implement. The catch is adding a trigger since a music event would need to read a string representing the file name of the module to be played. The only place where you can save strings in a level (without hacking it) is the level text array and the properties (next lvl, bonus lvl, etc). Very few events are actually left unused in JCS and I'm guessing jj2 *could* also use a new event mechanism to expand a bit.
__________________
<a href="http://nmap.org/"><img border="0" alt="Nmap Security Scanner" src="http://images.insecure.org/nmap/images/prop/nmap_bnr_matrix_pfos.gif"/></a>
plunK

JCF Member

Joined: Apr 2008

Posts: 514

plunK is an asset to this forum

Sep 12, 2008, 03:06 PM
plunK is offline
Reply With Quote
The only trouble with this is you'd need to either add multiple music boxes similar to the text one in JCS,or make a new .ini JCS ran off.

BUT, if you made something similar to a large range ambient sound event where you can pick the sounds files(or just edit the existing one) that is a possibility

Either way, BlurredD can probably find an easier way than i can think of and do it in 5 minutes =)
Odin

Banned

Joined: Dec 2003

Posts: 3,776

Odin is doing well so far

Sep 12, 2008, 05:55 PM
Odin is offline
Reply With Quote
Quote:
Originally Posted by plunK View Post
The only trouble with this is you'd need to either add multiple music boxes similar to the text one in JCS,or make a new .ini JCS ran off.

BUT, if you made something similar to a large range ambient sound event where you can pick the sounds files(or just edit the existing one) that is a possibility

Either way, BlurredD can probably find an easier way than i can think of and do it in 5 minutes =)
Not only that, but JJ2 only has support for 255 events, most of those slots used. Recoding JJ2 so it uses 2 bytes to call for an event instead of just one (allowing for 65535 events) wouldn't be an easy task, or at least I wouldn't imagine so.
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 06:43 AM.