vivelapsp Posted November 23, 2006 Share Posted November 23, 2006 Hi ! Sorry for my english but i'm french ! I hope you'll answered me... I want add a function of mp3 player in san andreas for we can listen music on foot in the game. What code add/change in my main.scm ?? I hope you will try to find an answer for me and oters...! Thanks ! Link to comment Share on other sites More sharing options...
Bigun Posted November 24, 2006 Share Posted November 24, 2006 God. Why not SEARCH first? This has been discussed and there are topics on the matter. Link to comment Share on other sites More sharing options...
vivelapsp Posted November 24, 2006 Author Share Posted November 24, 2006 Sorry but...i have try with keywords "foot" "mp3 player" "radios" etc...and i have no results Forgive me i don't have many vocabulary in english...I hope you will help me, thanks for your answer. Link to comment Share on other sites More sharing options...
vivelapsp Posted November 26, 2006 Author Share Posted November 26, 2006 Up ! Please help me ! Link to comment Share on other sites More sharing options...
Cowpat Posted November 27, 2006 Share Posted November 27, 2006 Hows about this for a simple, crappy solution. Start your music at the desktop. Fire up San Andreas (or whatever). Run around with your favourite tunes playing. You haven't lived until you've landed a Cessna 172 in a violent thunderstorm in Microsoft's flight simulator to the sounds of Led Zepplin's Kashmir - honest Link to comment Share on other sites More sharing options...
vivelapsp Posted November 27, 2006 Author Share Posted November 27, 2006 Thanks for your answer but for me, this is not a solution...I want modify that in the main.scm ! Link to comment Share on other sites More sharing options...
Y_Less Posted November 27, 2006 Share Posted November 27, 2006 a) Don't double post, ever! b) Cowpat's answer is pretty much the best you're going to get. The SCM is R*'s scripting engine, it allows them to hook functions in the game without having to recompile the EXE every time, this means there has to be functions to hook or they have to have a reason to hook them. I.e. if it's not in the game it's not going to have an OpCode as they didn't make one - what's the point (or it's VERY unlikely, a few basic ones may exist but nothing that specialist). The only way to go about doing this is finding the function in the EXE which controls when the music is played and editing it in ASM, which is not only not easy, it's bloody hard. You just had a good mem hacker (Cowpat) to do it his way, if it's the way he does it (and most other people do) it's the way to go. Link to comment Share on other sites More sharing options...
ZAZ Posted November 28, 2006 Share Posted November 28, 2006 There is a other solution to listen music on foot. Ok, you must start a new game because you must edit the main. But I think you should know it: PLPynton idenfied the codes to play soundtracks from file BEATS >>LOOK<< 0952: 1 0952: 2 0952: 3 0952: 4 0952: 9 0952: 10 0952: 13 load the Track_001 -Track_010 from file BEATS 0954: (unknown);start_playing_loaded_soundtrack starts the soundtrack 0955: (unknown);end_playing_loaded_soundtrack stops the soundtrack modyfie the San Andreas\audio\streams\BEATS with SAAT "%GTASA%"\saat_stream -i "%GTASA%"\audio\streams\BEATS "%GTASA%"\EigeneMusik\stream_import.ini "%GTASA%"\audio\CONFIG\TrakLkup.dat and make a script to play it. Its not helpful to use it with original-story-main because the BEATS-Tracks or used for certain tasks: 1. One Track is the Game Start Intro sound 2. One Track is the title melody 3. One track is a short cut of the title melody used for "mission complete" 4. same as 3. 3. and 4. are the same as play music 1 and play music 2 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
vivelapsp Posted April 30, 2007 Author Share Posted April 30, 2007 I have just seen your answer. Sorry but I had forgotten this post...! It's very very cool ! This opcode works perfectly and my {little} dream is almost perfect...almost because the music in file beats is sh...and i code in PS2, i can change only the radio music, not the beat file. Since you answer, opcode for radios have been find ?? I hope ! Thanks you to you and Plpython ! Link to comment Share on other sites More sharing options...
ZAZ Posted May 1, 2007 Share Posted May 1, 2007 I have just seen your answer. Sorry but I had forgotten this post...! It's very very cool ! This opcode works perfectly and my {little} dream is almost perfect...almost because the music in file beats is sh...and i code in PS2, i can change only the radio music, not the beat file. Since you answer, opcode for radios have been find ?? I hope ! Thanks you to you and Plpython ! No, the radio music is only for in-car. You can change only the radio music on PS ? Man, thats sh*t. CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
vivelapsp Posted May 2, 2007 Author Share Posted May 2, 2007 Yes, only the radio music I don't understand, it's not an opcode who launch the radio when you are in a car ?? So, what launch it ?? Link to comment Share on other sites More sharing options...
SteaVor Posted May 2, 2007 Share Posted May 2, 2007 Maybe... the EXE? jump @Y_Less's_posting //continue reading there Link to comment Share on other sites More sharing options...
vivelapsp Posted May 2, 2007 Author Share Posted May 2, 2007 Not the exe cuz ps2 don't have exe... Link to comment Share on other sites More sharing options...
PLPynton Posted May 2, 2007 Share Posted May 2, 2007 pdescobar described sometime ago and somewhere how to do that, i can just say that using these opcodes and placing player teporary in veh can lead to listening radiostations onfoot- it is highly hazardous but there is a way. try to ask him directly as he has more experiences on this subject than i do. Link to comment Share on other sites More sharing options...
vivelapsp Posted May 2, 2007 Author Share Posted May 2, 2007 (edited) Thanks thanks thanksssss !!! PLPynton, you are the best user who help me ! Thanks for help me for every probleme, you have solution to all my questions I will try to contact or find the post of pdescobar... Radio on foot ??? I hope !* EDIT : I have search and i have find ! It's here http://www.gtaforums.com/index.php?showtopic=202532&st=60 But can i load / unload ipl with an opcode as i want ? If it's yes, i creat 11 ipl (for 11 radios) and i put the opcode for launch the ipl on my scm menu ..? Edited May 3, 2007 by vivelapsp Link to comment Share on other sites More sharing options...
ZAZ Posted May 3, 2007 Share Posted May 3, 2007 Oh, i forgot. You can start audio-ipl s with 0917=2,audio_zone %1g% enable_sound %2h% Description for audio.ipl can be found here: http://www.gtaforums.com/index.php?showtopic=202532 I testet around some stuff with it. But i wasnt satisfied about the result. Mostly the sounds are really quiet. In addition it can cause crashes or animation bugs. CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
vivelapsp Posted May 3, 2007 Author Share Posted May 3, 2007 (edited) Thanks you very much for this good answer ! I will test that Mostly the sounds are really quiet You can touch to the volume in the IPL. Is not enought ? EDIT : What put for parameters ? For have all zone (first parameter) ? And for have on/off (second parameter) is 0 --> on and 1 --> off ? EDIT2 : realy i don't understand your opcode, i have put the ipl walkman who has been posted in topic of ipl definitions but your opcode don't load this ipl...isn't it ? So, i don't need to creat a new ipl in the game ? but audio.ipl as you said doesn''t exist. So it's AUDIOZON.IPL ? Thanks to help me to understand Edited May 3, 2007 by vivelapsp Link to comment Share on other sites More sharing options...
ZAZ Posted May 3, 2007 Share Posted May 3, 2007 Thanks you very much for this good answer ! I will test that Mostly the sounds are really quiet You can touch to the volume in the IPL. Is not enought ? EDIT : What put for parameters ? For have all zone (first parameter) ? And for have on/off (second parameter) is 0 --> on and 1 --> off ? 0917: audio_zone 'LOWRIDE' enable 1 the last param is 1/0, on/off LOWRIDE is the keyword to correspond between main and audio.ipl LOWRIDE, 13, 0, 1792.2, -1921.04, 12.3925, 75 You can use your own keywords but not more as 7 letters 13 is the sound slot. Look in spaceeeinsteins definition list Basicly you can delete all ipl settings and set only one own audio.ipl string. But make shure that there is no audio_zone-code running with not existing keywords. touch to the volume with last param of ipl ? make your own experience CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
vivelapsp Posted May 3, 2007 Author Share Posted May 3, 2007 LOWRIDE is the keyword to correspond between main and audio.ipl LOWRIDE, 13, 0, 1792.2, -1921.04, 12.3925, 75 OK, but this line for lowride music 'LOWRIDE, 13, 0, 1792.2, -1921.04, 12.3925, 75" is in audio.ipl, there are no line for radio. If i want listen radio, i add a line for this radio in audio.ipl ?(exemple for sfur : "SFUR, 56, 0, 1792.2, -1921.04, 12.3925, 10000") and then, i add a line in my main "0917: audio_zone 'SFUR' enable 1" I have all understand or i have all wrong ? Thanks you again for help me Link to comment Share on other sites More sharing options...
ZAZ Posted May 3, 2007 Share Posted May 3, 2007 You understand right. Note, there are different typs for ipl setteings define a cube Fddonut, 44, 1, 369.139, -197.672, 998.688, 384.387, -174.151, 1004.39 or define a point LOWRIDE, 13, 0, 1792.2, -1921.04, 12.3925, 75 (and something like this: seven11, 21, 1, -40.25, -145.865, 1000, -11.2008, -119.96, 1010 1000 and 1010 aren´t floating points. May be it should be 1000.0 and point is not nessesary.) CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
vivelapsp Posted May 3, 2007 Author Share Posted May 3, 2007 (edited) OK, thanks for your help, i will test that ! I'll edit when i will try. EDIT : Yees ! Thanks you very much ! It works perfectly ... sound is realy quiet as you said but i will try to modify this, and my game doesn't crash Edited May 4, 2007 by vivelapsp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now