gametechmods

Robot Arena => General Support => Topic started by: WhamettNuht on October 16, 2008, 10:11:05 AM

Title: Scripting for...
Post by: WhamettNuht on October 16, 2008, 10:11:05 AM
Hi All.
Can someone tell me the scripting that i need for this:
Making music play all through a fight in an arena and so that it plays something different everytime(Switches through music)
Thanks!
Whamett
(I know that you need the music to be .wav or something, and i can do that)
Title: Scripting for...
Post by: Naryar on October 16, 2008, 10:56:49 AM
Quote from: WhamettNuht;17447

Making music play all through a fight in an arena and so that it plays something different everytime(Switches through music)


I asked myself the same question. I think you can add one track, by adding several command lines to the arena's .py, but several, I doubt it.

I bet that Mad can help us for that.
Title: Scripting for...
Post by: Sage on October 16, 2008, 11:28:43 AM
Quote from: Naryar;17451
I asked myself the same question. I think you can add one track, by adding several command lines to the arena's .py, but several, I doubt it.

I bet that Mad can help us for that.

yep. even i think i know how. (mad went through it a bit with me when making the RAW arena sounds. if you notice the arena announcer says "welcome to the RAW zone!")
Title: Scripting for...
Post by: WhamettNuht on October 16, 2008, 12:05:14 PM
Does it?
I've looked at all of the videos, but it says "Welcome to the combat zone".
Say, pm me so that i can get an idea.
Title: Scripting for...
Post by: Sage on October 16, 2008, 12:08:52 PM
Quote from: WhamettNuht;17468
Does it?
I've looked at all of the videos, but it says "Welcome to the combat zone".
Say, pm me so that i can get an idea.

well the newest ones should say it... listen closely. the old ones didn't. (first round)
Title: Scripting for...
Post by: Somebody on October 16, 2008, 02:25:22 PM
I heard it once in the second round.
Title: Scripting for...
Post by: WhamettNuht on October 16, 2008, 02:39:51 PM
What fight?
Title: Scripting for...
Post by: goose on October 16, 2008, 02:59:23 PM
please keep all useful tutorials public, if you can.
thanks.
Title: Scripting for...
Post by: Somebody on October 16, 2008, 03:17:36 PM
i don't know, but you can hear it also in the Reier vs. K343gs fight.
Title: Scripting for...
Post by: WhamettNuht on October 16, 2008, 03:20:51 PM
Oh yeah!
Thanks for that!
Title: Scripting for...
Post by: Madiaba on October 16, 2008, 05:10:58 PM
Wham, here's the coding for Arena Background music:
(If you need help on the indenting, let me know)
 
def __init__(self):
self.StartMusicTimer = 0
 
def HazardsOn(self, on):
self.game_music = plus.createSound("Sounds/BalladOfJedClampet.wav", False, (0,0,0))
 
def __del__(self):
plus.stopSound(self.game_music)
plus.removeSound(self.game_music)
Arenas.SuperArena.__del__(self)
 
def Tick(self):
if self.StartMusicTimer <= 20:
self.StartMusicTimer += 1
if self.StartMusicTimer == 20:
plus.loopSound(self.game_music)
 
 
 
 
Here's a snipet vid of the Arena music: The Hoedown Dance! (http://www.madiaba.gametechmods.com/VIDS/ACAMS_JIG.wmv)
(I actually love the Banjo...:-D)
 
 
..
Title: Scripting for...
Post by: Naryar on October 16, 2008, 05:19:15 PM
I love you Mad.

So we can put these lines anywhere on the arena .py?

And we can't have more than one media file in the "playlist"?
Title: Scripting for...
Post by: Madiaba on October 16, 2008, 05:27:44 PM
No, Nar, not anywhere. The Black text is/are headings, under which the blue coding goes, with proper indenting...
If you've any probs, then just send me the py and I'll put it in for you...
 
More than one song would take a little more coding than written above.
 
(BTW: Did you have a look at the vid above using this coding?..:
-------------------------------------------- "The Hoedown Dance! (http://www.madiaba.gametechmods.com/VIDS/ACAMS_JIG.wmv)".)
 
...
Title: Scripting for...
Post by: Naryar on October 16, 2008, 05:32:51 PM
Saw it. What the heck is that one-hit-kill custom component? Minicannon?
Title: Scripting for...
Post by: ACAMS on October 16, 2008, 05:40:19 PM
LOL......Good one
Title: Scripting for...
Post by: Madiaba on October 16, 2008, 05:52:47 PM
Nar, It's an Electro-static Discharge Generator. It's powerful, but that was just a lucky 1HK.  It usually tears off components/parts first.  PM me if you'd like to know how it works.
 
ACAMS, I'm going to AI that bot, with that uber-powerful weapon. Then YOU can 'RULE the WORLD!' (...as long as I'm #2. *hehe*)
Title: Scripting for...
Post by: Gigafrost on October 16, 2008, 07:33:52 PM
Mad Mad Mad... You and your python based cranium. Anyways good job.
Title: Scripting for...
Post by: DuckRA2 on October 16, 2008, 08:02:37 PM
I have an idea of another way to make one, just make a weapon with the bounding collision box bigger than the component, and then make the component do a lot of damage.
Title: Scripting for...
Post by: ACAMS on October 16, 2008, 08:18:21 PM
Quote from: Madiaba;17541
Then YOU can 'RULE the WORLD!' (...as long as I'm #2. *hehe*)

As long as I can find a use for you.
Title: Scripting for...
Post by: Gigafrost on October 16, 2008, 09:56:52 PM
lawlzie walzies <3
Title: Scripting for...
Post by: Madiaba on October 17, 2008, 08:02:31 PM
Wham, did you get your background music working?
Title: Scripting for...
Post by: Madiaba on October 31, 2008, 08:28:09 PM
Wham-nuts PM-ed Madiaba requesting:   Hi Mad.   Im trying to get the Combat Zone to play the music that i want. Could you send me the .py file for what you did in the music? And couls you replace the song that you have with Spybreak.wav   Thanks.Im going to use the Combat Zone for Wild Robots Live.   And you wouldnt happen to have a step-by-step guide to the House-Robot ai'ing, would you?   Thanks alot!
Whamett


 
Here, Wham: ..........>MusicBoxArena (http://www.madiaba.gametechmods.com/MusicBoxArena.rar)<
 
It has a ReadMe, so you can change it to whatever song you would like.
Be careful, and use Notepad++ or Python itself.
 
 
As far as the HouseBot coding, there is none presently written. It would have to be scripted.
 
Title: Scripting for...
Post by: SpyGuy on October 31, 2008, 11:20:13 PM
Quote from: ACAMS;17564
As long as I can find a use for you.


Considering how well he's doing with all the coding, he might slip you a little poison virus, and become Numero Uno himself, Master Cylinder ........ Hey, if it worked for the Borggias ....
Title: Scripting for...
Post by: Madiaba on November 01, 2008, 05:23:55 AM
SShhhhhhh!!!!!
Title: Scripting for...
Post by: WhamettNuht on November 01, 2008, 09:22:05 AM
Thanks Mad!
Title: Scripting for...
Post by: WhamettNuht on November 01, 2008, 09:39:18 AM
I just done it and it works fine!
Is there any way i can up the volume on the music?
I can bearly hear it over the crowd and robots!
Plus, using Notepad++, can i change the name and description of the arena?
I want to get it perfect as this will be the arena that i use in Wild Robots Live!
I'll just need to do a few more tweaks to it (If thats ok!)
If i can send you the finished arena and House Robot, can you do the final step which is House Bot AI'ing?
Thanks so much Mad!
Title: Scripting for...
Post by: Sage on November 01, 2008, 09:46:07 AM
Quote from: WhamettNuht;19598
I just done it and it works fine!
Is there any way i can up the volume on the music?
I can bearly hear it over the crowd and robots!
Plus, using Notepad++, can i change the name and description of the arena?
I want to get it perfect as this will be the arena that i use in Wild Robots Live!
I'll just need to do a few more tweaks to it (If thats ok!)
If i can send you the finished arena and House Robot, can you do the final step which is House Bot AI'ing?
Thanks so much Mad!

yes its in the readme he gave you...
Title: Scripting for...
Post by: WhamettNuht on November 01, 2008, 10:34:46 AM
Nope, nothing in the read-me about the volume.
Title: Scripting for...
Post by: Madiaba on November 01, 2008, 12:52:42 PM
Quote from: WhamettNuht;19598
I just done it and it works fine!
Is there any way i can up the volume on the music?
I can bearly hear it over the crowd and robots!
Plus, using Notepad++, can i change the name and description of the arena?
I want to get it perfect as this will be the arena that i use in Wild Robots Live!
I'll just need to do a few more tweaks to it (If thats ok!)
If i can send you the finished arena and House Robot, can you do the final step which is House Bot AI'ing?
Thanks so much Mad!

Wham,
It appears that the sounds volume is hard-coded in the exe. Though the py coding is present, altering it has no effect. If Serge is able to get access into the exe, then we'll talk. So to adjust the music's volume, just get a good audio editor and adjust it there.
As far as the AI-ing a 'HouseBot', Let me think about the logistics of such an endeavour, and I'll get back with you...
 
...
Title: Scripting for...
Post by: WhamettNuht on November 01, 2008, 01:20:10 PM
Thanks! :-D