Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

How can we listen music on foot ?


vivelapsp
 Share

Recommended Posts

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

Sorry but...i have try with keywords "foot" "mp3 player" "radios" etc...and i have no results sad.gif

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

 

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 ph34r.gif

Link to comment
Share on other sites

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

 

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

Link to comment
Share on other sites

  • 5 months later...

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

 

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. confused.gif

Link to comment
Share on other sites

vivelapsp

Yes, only the radio music cryani.gif

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

dozingoff.gif Maybe... the EXE? ph34r.gif

 

jump @Y_Less's_posting //continue reading there

Link to comment
Share on other sites

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

vivelapsp

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 wow.gif

I will try to contact or find the post of pdescobar...

 

Radio on foot music.gif ??? 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 by vivelapsp
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

vivelapsp

Thanks you very much for this good answer ! I will test that wink.gif

 

 

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 wink.gif

Edited by vivelapsp
Link to comment
Share on other sites

 

Thanks you very much for this good answer ! I will test that wink.gif

 

 

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

 

Link to comment
Share on other sites

vivelapsp

 

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 wink.gif

Link to comment
Share on other sites

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.)

Link to comment
Share on other sites

vivelapsp

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 by vivelapsp
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.