Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: FearlessBloodseeker on April 02, 2013, 02:58:14 AM

Title: How do I change Fighting Music?
Post by: FearlessBloodseeker on April 02, 2013, 02:58:14 AM
Hello guys, how do I change fighting music? Such as Fighting Greasers will plays Fighting Johnny Vincent (Boss) theme. Can anyone post FULL tutorial about this? Thank you :)
Title: Re: How do I change Fighting Music?
Post by: Evolution on April 02, 2013, 03:03:06 AM
LUA has something to do with it IIRC.

Perhaps Red or someone else can post a tut.
Title: Re: How do I change Fighting Music?
Post by: deadpoolXYZ on April 02, 2013, 10:36:06 AM
Using lua you can set the background, fighting and bike music but im not sure if you can replace music.

You can search the theme name (ending with .rsm) in scripts and rename it so another theme plays instead.
Title: Re: How do I change Fighting Music?
Post by: FearlessBloodseeker on April 03, 2013, 10:42:58 AM
Yeah, that's what I mean. I want to change the fighting music with an exist music in the game, not to replace a new music. Anyway, how do I do it? :)
Title: Re: How do I change Fighting Music?
Post by: xbetstyler on April 03, 2013, 11:00:30 AM
checkout this tutor

http://www.bully-board.com/index.php?topic=17594.45 (http://www.bully-board.com/index.php?topic=17594.45)
Title: Re: How do I change Fighting Music?
Post by: FearlessBloodseeker on April 06, 2013, 04:09:14 AM
checkout this tutor

http://www.bully-board.com/index.php?topic=17594.45 (http://www.bully-board.com/index.php?topic=17594.45)

How should I know how do I do with only by that, lol. So anyone, any ideas? :/
Title: Re: How do I change Fighting Music?
Post by: Red Blaster on April 06, 2013, 10:05:52 AM
Well, if you want it for free roam, that's tricky since main.lua isn't fully decompiled yet (I THINK that's where the fight music is controlled anyways). Since just putting SoundSetHighIntensityStream (I forgot the exact wording, since it's been so long, and I can't be bothered looking it up now) will cause any fight to play the music you set.

But, if you just want it for a custom mission or so, then what you have to do is write in the lua script so that if PlayerGetWhoHitMeLast (or something like that) is part of this clique, then play this music, and if it's this clique, then play that music. Inconvenient, but that's the only method I can think of atm.
Title: Re: How do I change Fighting Music?
Post by: FearlessBloodseeker on April 11, 2013, 03:07:40 AM
I see. Well, I just download LUAC Compiler, but when I opened it, an error pop-up. Any advice?
Title: Re: How do I change Fighting Music?
Post by: SWEGTA on April 11, 2013, 04:22:41 AM
You could switch cliques with characters so that maybe the bullies will get the dropout theme and dropouts will get the bullies theme.
Title: Re: How do I change Fighting Music?
Post by: FearlessBloodseeker on April 11, 2013, 05:03:51 AM
You could switch cliques with characters so that maybe the bullies will get the dropout theme and dropouts will get the bullies theme.

Well, I actually want to change Johnny (Currently Greasers theme) to his boss theme (in freeroam). Is it possible to change a ped theme? If no I can just change the whole clique theme to Johnny's Boss theme. Anyway, the LuaC Compiler, when I opened it, it opened for 1-2 second and shut down. Is it always like that?
Title: Re: How do I change Fighting Music?
Post by: Red Blaster on April 11, 2013, 07:49:23 AM
You don't open the luaC compiler directly. You have to use CMD 2008 (through Visual Studio 2008 I think) in order to run it.

As for changing Johnny's theme, it is possible, though it depends on if you want to spawn a special instance of him, or if you want his random spawn instance to play his music.
Title: Re: How do I change Fighting Music?
Post by: FearlessBloodseeker on April 11, 2013, 08:49:56 AM
You don't open the luaC compiler directly. You have to use CMD 2008 (through Visual Studio 2008 I think) in order to run it.

As for changing Johnny's theme, it is possible, though it depends on if you want to spawn a special instance of him, or if you want his random spawn instance to play his music.

I see. Anyway, how do I run the CMD 2008? Lol I'm pretty noob in here. Well I'd like his boss theme to be played whenever I started fight with him (Anywhere). Finally, how do I do that? Do you mind on posting how do I do it? Well the Bully Magazine download doesn't work for me, It shows an error.
Title: Re: How do I change Fighting Music?
Post by: MadmaN on April 12, 2013, 03:41:30 PM
The magazine link works again for now since I put my server back up and it will stay up till I get the new replacement server online.....so for now the magazine link works again.

Sry for the link not working for a while but I took my server offline with the intention of having a replacement back up soon after...but that didnt work out as I planned.
Title: Re: How do I change Fighting Music?
Post by: FearlessBloodseeker on April 12, 2013, 08:31:35 PM
Lol  :D nice.

OT: Btw, how do I do this..?
Title: Re: How do I change Fighting Music?
Post by: DarbyHarringtonMind on April 13, 2013, 02:17:13 AM
you Read that carefully........
Title: Re: How do I change Fighting Music?
Post by: FearlessBloodseeker on April 13, 2013, 02:22:50 AM
Once again, I don't know what are you saying. What should I read carefully? -,- Do you know how to do this stuff?
Title: Re: How do I change Fighting Music?
Post by: DarbyHarringtonMind on April 13, 2013, 02:25:28 AM
what do you mean?? :confused:
Title: Re: How do I change Fighting Music?
Post by: FearlessBloodseeker on April 13, 2013, 02:30:04 AM
what do you mean?? :confused:

Do you know how to change fighting music? lols.
Title: Re: How do I change Fighting Music?
Post by: MadmaN on April 13, 2013, 03:52:31 PM
Both Red and I know how to change some of the fighting music to start when a fight starts for a certain ped....but as far as actually replacing the music files...noone currently knows how to do this...even I don't since I don't even know what file format the music even is in.

The way Red and I both know is kinda limited though and not something I would consider a perfect way to change what plays.....since the lua codes controlling sound are rather complicated (which red can attest to) and  I still am doing writeups in my notes dealing with how the lua codes for sound work.
Title: Re: How do I change Fighting Music?
Post by: FearlessBloodseeker on April 13, 2013, 06:39:12 PM
Both Red and I know how to change some of the fighting music to start when a fight starts for a certain ped....but as far as actually replacing the music files...noone currently knows how to do this...even I don't since I don't even know what file format the music even is in.

The way Red and I both know is kinda limited though and not something I would consider a perfect way to change what plays.....since the lua codes controlling sound are rather complicated (which red can attest to) and  I still am doing writeups in my notes dealing with how the lua codes for sound work.

Well, sir. I mean to change Johnny ( in Freeroam) music to his boss theme, not to replace with a NEW music. Yes, only Johnny can get that theme if I'm fighting with him on Freeram, not the whole Greasers lol  :rolleyes:
Title: Re: How do I change Fighting Music?
Post by: Red Blaster on April 13, 2013, 10:55:12 PM
Well, if you could answer my question, I could help you further.

Do you always want the music to play his boss theme whenever he spawns randomly and you fight him, or do you want to spawn a special instance of him and have his theme play there?
Title: Re: How do I change Fighting Music?
Post by: FearlessBloodseeker on April 14, 2013, 12:19:28 AM
Well, if you could answer my question, I could help you further.

Do you always want the music to play his boss theme whenever he spawns randomly and you fight him, or do you want to spawn a special instance of him and have his theme play there?

Well, I want the music to play whenever he spawns randomly and I fight him. Well, if this one is possible, can you make his theme plays whenever he spawns randomly WITHOUT ArcRace1.lur? I mean like normal game, without using the arcade.
Title: Re: How do I change Fighting Music?
Post by: Red Blaster on April 14, 2013, 12:59:03 AM
That, I don't know exactly how to do...I have a theory, but until I (or someone else) actually get it working, I can't really say.
Title: Re: How do I change Fighting Music?
Post by: FearlessBloodseeker on April 14, 2013, 01:03:47 AM
That, I don't know exactly how to do...I have a theory, but until I (or someone else) actually get it working, I can't really say.

Well then, how do I do it via ArcRace1.lur?

EDIT: Oh lord, now I can't turn my PC on  :wacko:
Title: Re: How do I change Fighting Music?
Post by: Red Blaster on April 15, 2013, 12:51:44 AM
That's the thing, even with ArcRace1, I'd have to test it before I can say (which won't be happening any time soon, since I need a new PC).
Title: Re: How do I change Fighting Music?
Post by: Evolution on April 15, 2013, 12:53:07 AM
^ Doesn't that just suck  :sleep:
Title: Re: How do I change Fighting Music?
Post by: FearlessBloodseeker on April 15, 2013, 08:47:44 AM
My PC works fine now :D so I'm back in the game. But I won't mess with luac anymore to prevent any of this, error from happening again, lol. Need to be careful, well I hope you can post the script here so I can learn how did you exactly did it all.
Title: Re: How do I change Fighting Music?
Post by: FearlessBloodseeker on April 16, 2013, 08:03:50 AM
Guys, I tried this code but it crashed ( the cause of my computer wont be able to switch on, now I can. ) What might cause the problem?

Code: [Select]
GlobalImportScript("SObjTest.lua")
ImportScript("Library/LibTable.lua")
ImportScript("SZone.lua")

  l_0_0 = 60

MissionSetup = function()
  local l_1_0 = 270
  local l_1_1 = -110
  local l_1_2 = 6.4000000953674
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
  TextPrintString("Bully: Scholarship Edition Multi-Bodyguard  Mod v1 BETA.", 4, 1)
  Wait(5000)
  TextPrintString("By: |XF|-MadmaN [AR] ", 4, 1)
  Wait(5000)
   
  l_0_3 = PedCreatePoint(91, POINTLIST._BEGGINING, 1) -- Edgar
  l_0_5 = PedCreatePoint(23, POINTLIST._BEGGINING, 1) -- Johnny (BOSS)
  l_1_0 = PedCreatePoint(19, POINTLIST._BEGGINING, 8) -- Ted
 
  PedSetActionTree(l_0_3, "/Global/DO_Striker_A", "Act/Anim/DO_Striker_A.act") -- Edgar
  PedSetActionTree(l_0_5, "/Global/G_Johnny", "Act/Anim/G_Johnny.act") -- Johnny (BOSS)
  PedSetActionTree(l_1_0, "/Global/J_Striker_A", "Act/Anim/J_Striker_A.act") -- Ted     
 
   -- Ally Blip Code Start
   --
    l_2_7 = AddBlipForChar(l_0_3, 6, 2, 2)
    l_2_8 = AddBlipForChar(l_0_5, 6, 2, 2)
    l_3_4 = AddBlipForChar(l_1_0, 6, 2, 2)
   
   
 -- Infinite Sprint Code Start for Allies
   --
    PedSetInfiniteSprint(l_0_3, true)
    PedSetInfiniteSprint(l_0_5, true)
    PedSetInfiniteSprint(l_1_0, true)

    PedSetHealth(l_0_3, 100000)
    PedSetHealth(l_0_5, 100000)
    PedSetHealth(l_1_0, 100000)
   
   -- Ped Recruit Code Start
   --
    PedRecruitAlly(gPlayer, l_0_3)
    PedRecruitAlly(l_0_3, l_0_5)
    PedRecruitAlly(l_1_0, l_1_1)

   PedSetAllyAutoEngage(l_0_3, true)
   PedSetAllyAutoEngage(l_0_5, true)
   PedSetAllyAutoEngage(l_1_0, true)

end


F_MissionSetup = function()
  PlayerSetControl(1)
  CameraFollowPed(gPlayer)
  ClockSet(9, 30)
  ClockSetTickRate(0.0060000000521541)
  LaunchScript("SObjTest.lua")

end


MissionCleanup = function()
  ClearTextQueue()
  EnablePOI()
  gMissionRunning = false
  shared.gMissionEventFunction = nil
  WeatherRelease()
  PlayerSetControl(1)
  PlayerSetPunishmentPoints(0) 
end

SoundPlayInteractiveStream
--  MS_FightingJohnnyVincentBossFight.rsm


--  main = function()
  F_MissionSetup()
  gMissionRunning = true
  while gMissionRunning do
    UpdateTextQueue()
    Wait(0)
   end
end
Title: Re: How do I change Fighting Music?
Post by: Red Blaster on April 17, 2013, 04:17:22 AM
Because of the way SoundPlayInteractiveStream is written. The syntax is wrong.
Title: Re: How do I change Fighting Music?
Post by: Walter20210 on April 17, 2013, 09:19:32 AM
This is the correct way

SoundPlayInteractiveStream("MS_FightingJohnnyVincentBossFight.rsm", DEFAULT_MUSIC_VOLUME)
Title: Re: How do I change Fighting Music?
Post by: FearlessBloodseeker on April 18, 2013, 08:39:08 AM
Wrong syntax results in fail to switch on the computer? :O
Title: Re: How do I change Fighting Music?
Post by: Red Blaster on April 18, 2013, 08:53:50 AM
???
Title: Re: How do I change Fighting Music?
Post by: FearlessBloodseeker on April 18, 2013, 09:40:48 AM
Sorry, maybe you don't understand what did I said. Excuse my poor English.

Well what I mean: If you put the WRONG syntax, It'll make your PC unable to switch on?
Title: Re: How do I change Fighting Music?
Post by: Red Blaster on April 18, 2013, 10:54:47 AM
Well, the second you use the arcade machine, if the lua is written wrong, the game will crash.
Title: Re: How do I change Fighting Music?
Post by: deadpoolXYZ on April 18, 2013, 03:52:59 PM
Sorry, maybe you don't understand what did I said. Excuse my poor English.

Well what I mean: If you put the WRONG syntax, It'll make your PC unable to switch on?

That doesn't make sence at all.
Your pc unable to switch on should be another problem. I mean, my game has crashed like 50 times because of wrong editing and my pc works fine.