Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Help with the music!
Xanthos Offline
Senior Member

Posts: 318
Threads: 9
Joined: Mar 2012
Reputation: 8
#11
RE: Help with the music!

^ never heard of it. But I will search around and see if it works.
I use
-Sony Vegas Pro 11
-Free Audio Converter v5.2

04-10-2012, 11:36 PM
Find
mrscoomich Offline
Member

Posts: 55
Threads: 6
Joined: Mar 2012
Reputation: 0
#12
RE: Help with the music!

Update: So I used Audacity. I exported a new mp3, and converted into an .ogg and it should work fine if it can work with Sony Vegas.. But still nothing...
04-11-2012, 12:14 AM
Find
Mackiiboy Offline
Member

Posts: 101
Threads: 7
Joined: Jan 2012
Reputation: 11
#13
RE: Help with the music!

(04-11-2012, 12:14 AM)mrscoomich Wrote: Update: So I used Audacity. I exported a new mp3, and converted into an .ogg and it should work fine if it can work with Sony Vegas.. But still nothing...
.
Audacity should work perfect - I have converted all my music into .ogg-files and have I never had any problem.
It sounds like you're doing it wrong when you say: "exported a new mp3 and converted into an .ogg", you should not export mp3-files, .ogg-files is the file you should export.
Try to import your mp3 file, then export it as an ogg-file. If it does not work for you, the fastest way would prolly be if you uploaded your mp3-file so we can convert it with audacity.

04-11-2012, 12:30 AM
Website Find
mrscoomich Offline
Member

Posts: 55
Threads: 6
Joined: Mar 2012
Reputation: 0
#14
RE: Help with the music!

(04-11-2012, 12:30 AM)Mackiiboy Wrote:
(04-11-2012, 12:14 AM)mrscoomich Wrote: Update: So I used Audacity. I exported a new mp3, and converted into an .ogg and it should work fine if it can work with Sony Vegas.. But still nothing...
.
Audacity should work perfect - I have converted all my music into .ogg-files and have I never had any problem.
It sounds like you're doing it wrong when you say: "exported a new mp3 and converted into an .ogg", you should not export mp3-files, .ogg-files is the file you should export.
Try to import your mp3 file, then export it as an ogg-file. If it does not work for you, the fastest way would prolly be if you uploaded your mp3-file so we can convert it with audacity.
Yeah, that is what I did.. My apologies. I imported an mp3, and then exported it as .ogg when I put it in my hps nothing plays.

PlayMusic("01_intro.ogg", false, 1, 1, 1, false);
04-11-2012, 12:32 AM
Find
Stepper321 Offline
Senior Member

Posts: 263
Threads: 26
Joined: Nov 2011
Reputation: 8
#15
RE: Help with the music!

Can you send me the .mp3 file, i will do it for you.

also, maybe use this

PlayMusic("01_intro.ogg", false, 1.0f, 1.0f, 0, true);

Signature to awesome to be displayed.
04-11-2012, 02:14 PM
Find
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#16
RE: Help with the music!

(04-06-2012, 06:40 PM)mrscoomich Wrote: Okay, so I have an mp3 that I thought would be a good background music while playing the custom story that I'm creating,

I took the .mp3 and converted it into .ogg and placed it in the folders with everything.

>
map(folder)
music(folder)
custom_story_settings.cfg
extra_english.lang

It was in the music folder , but when I put it in my scripts on my .hps, it doesn't play, unless the .ogg is from the original game.

Can anybody fix this?



You need the ogg. file and then make new txt with the "name.snt" and enter this text in


<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="the name here like scary1.ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="1" MaxDistance="50" Random="0" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="false" Blockable="False" BlockVolumeMul="0.7" Priority="5" />
</SOUNDENTITY>

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
04-11-2012, 02:34 PM
Website Find
Stepper321 Offline
Senior Member

Posts: 263
Threads: 26
Joined: Nov 2011
Reputation: 8
#17
RE: Help with the music!

(04-11-2012, 02:34 PM)jessehmusic Wrote: Text
</properties>


You don't need that for music.

Signature to awesome to be displayed.
04-11-2012, 02:46 PM
Find
mrscoomich Offline
Member

Posts: 55
Threads: 6
Joined: Mar 2012
Reputation: 0
#18
RE: Help with the music!

PlayMusic("01_intro.ogg", false, 1.0f, 1.0f, 0, true);


^ still doesn't work .


and email missrawr@live.ca if you need the mp3 Smile I don't know why it won't work :/
04-18-2012, 11:14 PM
Find
Stepper321 Offline
Senior Member

Posts: 263
Threads: 26
Joined: Nov 2011
Reputation: 8
#19
RE: Help with the music!

http://www.mediafire.com/?h1ru59b3aew198h Download this, then put it in the folder of your custom story. (or music and then extramusic in your Custom Story) than try
PlayMusic("nameofsong.ogg", false, 1.0f, 1.0f, 0, true); <--- false or true, doesn't matter. True is for looping.

It should work. Else, give me the script file.

Signature to awesome to be displayed.
04-19-2012, 05:22 PM
Find
mrscoomich Offline
Member

Posts: 55
Threads: 6
Joined: Mar 2012
Reputation: 0
#20
RE: Help with the music!


void OnStart()
{
PlayMusic("01_intro_dark.ogg", false, 1.0f, 1.0f, 0, true);
ShowPlayerCrossHairIcons(false);
FadeOut(0);
SetPlayerActive(false);
PlayMusic("01_intro.ogg", false, 1, 1, 1, false);
SetMessage("Intro", "Girl", 3);
StartScreenShake(0.2, 1, 2, 2);
FadeIn(10);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
GiveSanityDamage(5.0f, true);
AddTimer("Fade", 5, "FadeBlack");

}

void FadeBlack(string &in asTimer)
{
FadeImageTrailTo(0, 0);
SetPlayerMoveSpeedMul(0.4);
SetPlayerRunSpeedMul(0.1);
SetPlayerLookSpeedMul(0.3);
FadeRadialBlurTo(1.5, 3);
ShowPlayerCrossHairIcons(true);
SetPlayerActive(true);
}

void OnEnter()
{
SetEntityPlayerLookAtCallback("candle", "First", true);
AddUseItemCallback("", "key_01", "door_01", "UsedKeyOnDoor", true);
SetSwingDoorLocked("door_01", true, true);
}

void First(string &in asEntity, int alState)
{
AddTimer("", 1, "Msg");
}

void Msg(string &in asTimer)
{
StartEffectEmotionFlash("Fade", "First", "");
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
AddTimer("", 2, "Warp");
}

void Warp(string &in asTimer)
{
TeleportPlayer("Warp");
AddTimer("", 15, "Murder");
}

void Murder(string &in asTimer)
{
StartEffectEmotionFlash("Fade", "Second", "");
AddTimer("", 2, "WarpPlayer");
}

void WarpPlayer(string &in asTimer)
{
TeleportPlayer("last");
AddTimer("", 10, "Third");
}

void Third(string &in asTimer)
{
StartEffectEmotionFlash("Fade", "Third", "");
}


void UsedKeyOnDoor(string &in asItem, string &in asEntity)

{
SetMessage("Fade", "Last", 3);
FadeOut(0);
PlaySoundAtEntity("", "24_iron_maiden.snt", "Player", 0, false);
PlaySoundAtEntity("", "unlock_door.snt", "door_01", 0, false);
RemoveItem("key_01");
AddTimer("",4, "Teleport");
}

void Teleport(string &in asTimer)
{
ChangeMap("02_Chapter_01", "PlayerStartArea_1", "", "");
}



------------

it doesn't work still.. Sad
04-19-2012, 06:59 PM
Find




Users browsing this thread: 2 Guest(s)