News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: How do I change Fighting Music?  (Read 9905 times)

0 Members and 2 Guests are viewing this topic.

Offline FearlessBloodseeker

  • X-Strygwyr-X
  • Jr. Member
  • **
  • Posts: 24
  • Gender: Male
  • X-Bloodseeker-X
    • View Profile
Re: How do I change Fighting Music?
« Reply #15 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?

Offline DarbyHarringtonMind

  • XX
  • Jr. Member
  • **
  • Posts: 73
  • Gender: Male
  • Move forward, Don't look back........
    • View Profile
Re: How do I change Fighting Music?
« Reply #16 on: April 13, 2013, 02:25:28 AM »
what do you mean?? :confused:

Offline FearlessBloodseeker

  • X-Strygwyr-X
  • Jr. Member
  • **
  • Posts: 24
  • Gender: Male
  • X-Bloodseeker-X
    • View Profile
Re: How do I change Fighting Music?
« Reply #17 on: April 13, 2013, 02:30:04 AM »
what do you mean?? :confused:

Do you know how to change fighting music? lols.

Offline MadmaN

  • Bully-Board Admin Team
  • Newbie
  • *
  • Posts: 0
  • Gender: Male
  • Biblio-Techa Mods (retired)
    • View Profile
Re: How do I change Fighting Music?
« Reply #18 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.

Offline FearlessBloodseeker

  • X-Strygwyr-X
  • Jr. Member
  • **
  • Posts: 24
  • Gender: Male
  • X-Bloodseeker-X
    • View Profile
Re: How do I change Fighting Music?
« Reply #19 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:

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: How do I change Fighting Music?
« Reply #20 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?

Offline FearlessBloodseeker

  • X-Strygwyr-X
  • Jr. Member
  • **
  • Posts: 24
  • Gender: Male
  • X-Bloodseeker-X
    • View Profile
Re: How do I change Fighting Music?
« Reply #21 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.

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: How do I change Fighting Music?
« Reply #22 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.

Offline FearlessBloodseeker

  • X-Strygwyr-X
  • Jr. Member
  • **
  • Posts: 24
  • Gender: Male
  • X-Bloodseeker-X
    • View Profile
Re: How do I change Fighting Music?
« Reply #23 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:
« Last Edit: April 14, 2013, 01:36:08 AM by FearlessBloodseeker »

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: How do I change Fighting Music?
« Reply #24 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).

Offline Evolution

  • Elitist
  • *********
  • Posts: 13,574
  • Gender: Male
    • View Profile
Re: How do I change Fighting Music?
« Reply #25 on: April 15, 2013, 12:53:07 AM »
^ Doesn't that just suck  :sleep:

Offline FearlessBloodseeker

  • X-Strygwyr-X
  • Jr. Member
  • **
  • Posts: 24
  • Gender: Male
  • X-Bloodseeker-X
    • View Profile
Re: How do I change Fighting Music?
« Reply #26 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.

Offline FearlessBloodseeker

  • X-Strygwyr-X
  • Jr. Member
  • **
  • Posts: 24
  • Gender: Male
  • X-Bloodseeker-X
    • View Profile
Re: How do I change Fighting Music?
« Reply #27 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

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: How do I change Fighting Music?
« Reply #28 on: April 17, 2013, 04:17:22 AM »
Because of the way SoundPlayInteractiveStream is written. The syntax is wrong.

Offline Walter20210

  • Hero Member
  • ****
  • Posts: 1,102
  • Gender: Male
  • I keep loving the old things :P
    • View Profile
    • YouTube Account
Re: How do I change Fighting Music?
« Reply #29 on: April 17, 2013, 09:19:32 AM »
This is the correct way

SoundPlayInteractiveStream("MS_FightingJohnnyVincentBossFight.rsm", DEFAULT_MUSIC_VOLUME)