Bully-Board
Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started 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 :)
-
LUA has something to do with it IIRC.
Perhaps Red or someone else can post a tut.
-
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.
-
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? :)
-
checkout this tutor
http://www.bully-board.com/index.php?topic=17594.45 (http://www.bully-board.com/index.php?topic=17594.45)
-
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? :/
-
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.
-
I see. Well, I just download LUAC Compiler, but when I opened it, an error pop-up. Any advice?
-
You could switch cliques with characters so that maybe the bullies will get the dropout theme and dropouts will get the bullies theme.
-
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?
-
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.
-
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.
-
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.
-
Lol :D nice.
OT: Btw, how do I do this..?
-
you Read that carefully........
-
Once again, I don't know what are you saying. What should I read carefully? -,- Do you know how to do this stuff?
-
what do you mean?? :confused:
-
what do you mean?? :confused:
Do you know how to change fighting music? lols.
-
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.
-
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:
-
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, 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.
-
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.
-
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:
-
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).
-
^ Doesn't that just suck :sleep:
-
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.
-
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?
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
-
Because of the way SoundPlayInteractiveStream is written. The syntax is wrong.
-
This is the correct way
SoundPlayInteractiveStream("MS_FightingJohnnyVincentBossFight.rsm", DEFAULT_MUSIC_VOLUME)
-
Wrong syntax results in fail to switch on the computer? :O
-
???
-
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?
-
Well, the second you use the arcade machine, if the lua is written wrong, the game will crash.
-
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.