Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

Mohd.Umar

GTA San Andreas Add Animation not replace

Recommended Posts

Mohd.Umar

Is there any way to add animation not replace in GTA San Andreas like GTA V holding phone in hand if receive a call then taking the phone to ear for talking.

Share this post


Link to post
Share on other sites
Sloth-

Yes.

Normally it should be enough if you add them in gta3.img, or if you add them on a separate IMG file that you register in the data/gta.dat (adding the line IMG PATH\TO\YOUR\FILE.IMG after the IMG MODELS\CUTSCENE.IMG line).

 

But, i personally prefer to add them through modloader, in: <gtasa folder>/modloader/custom-folder/<anywhere> (you don't need to register any IMG file this way).

 

After that, you can use the animation with any of the animation-related opcodes. Example:

0605: actor <YOUR-ACTOR> perform_animation "CUSTOM-ANIM" IFP "CUSTOM-ANIM-IFP" framedelta 4.0 loop 1 lockX 0 lockY 0 lockF 0 time -1

 

Have in mind that there is a limit to max number of ifp animations that you can add. If you pass that limit, the game will crash at the loading screen.

Edited by Sloth-

Share this post


Link to post
Share on other sites
Mohd.Umar

But you told that the game will crash so how to fix that. If ok it is fix but when in game anyone is calling i pick it up he will take it to ear or not and if i use interactive phone mod then if i pick up he will hold phone in hand and if i call police he will take it to ears

Share this post


Link to post
Share on other sites
Sloth-
40 minutes ago, Mohd.Umar said:

But you told that the game will crash so how to fix that.

Unfortunately, there isn't a fix (yet).

There is a very complete limit adjuster that constantly receives updates, but as i know, for now it doesn't break the ifp limits (it doesn't work, i tried once).

 

But i don't think you should worry about that. You'll have to add a lot of animations before you reach that limit. Not sure about how much animations exactly. But it doesn't sound like you want to add so much animations, do you?

I only mentioned it because is a must know.

 

About the rest of your problem. It sounds like a coding problem.

Edited by Sloth-

Share this post


Link to post
Share on other sites
Mohd.Umar

No only one animation holding phone in hand if you can add it please give me a link of upload mod

I have not to replace it i have to add it

Share this post


Link to post
Share on other sites
Sloth-

Sorry. I don't understand exactly what you want.

I thought you were asking because you wanted to create the mod by yourself and you already had the animations. :lol:

I have no idea if the mod you want does exist or not.

Share this post


Link to post
Share on other sites
Mohd.Umar

I don't mean that i am unable to understand some code that i will ask from you. Yes i am having the animation. But it replacing the animation so i don't want to replace any animation only i have to add one animation.

Share this post


Link to post
Share on other sites
Mohd.Umar

Sir i am not able to understand that the is asi or cleo in which this code i have to write. From my understanding this is cleo code

In custom anim what i have to fill and in custom anim ifp what i have to fill

Share this post


Link to post
Share on other sites
Sloth-

If you want to add them with modloader:

 

path modloader/your-mod-folder/<anywhere>

 

What i mean: you can add the ifp file in that folder (modloader/your-mod-folder/),
or you could add in this path: modloader/your-mod-folder/models/gta3

 

In modloader, you can deal with the mod-folder as if this was the gta sa folder root:

The scripts .cs go in modloader/mod-folder/cleo

If the script is .scm then it would go in modloader/mod-folder/data/script

The idea of organizing the modloader files this way is telling the modloader how to make the replacements eficiently.

By adding the ifp in this path modloader/your-mod-folder/models/gta3 is like telling the modloader to add the file in the gta3.img file

 

I don't know if you are getting the idea.

 

As i said before, the other way of including your .ifp file is adding it in the models/GTA3.IMG

Or if you prefer, adding it in a separate IMG file, but if you do this, you must register that IMG file in the data/gta.dat

 

Is this info useful to you?

Share this post


Link to post
Share on other sites
Mohd.Umar

Actor name what i have give cj or carl

Share this post


Link to post
Share on other sites
Sloth-
3 minutes ago, Mohd.Umar said:

Actor name what i have give cj or carl

In CLEO/SCM, you must specify the actor variable, for this opcode

0605: actor <YOUR-ACTOR> perform_animation "CUSTOM-ANIM" IFP "CUSTOM-ANIM-IFP" framedelta 4.0 loop 1 lockX 0 lockY 0 lockF 0 time -1

That could be [email protected] - [email protected] (a ped previously created in that variable) or $PLAYER_ACTOR (if you want that actor to be the player).

Edited by Sloth-

Share this post


Link to post
Share on other sites
Mohd.Umar

But how to extract an anim file from peds.ifp a single anim file 

Share this post


Link to post
Share on other sites
Sloth-
Just now, Mohd.Umar said:

But how to extract an anim file from peds.ifp a single anim file 

Use Ryosuke's Anim Manager:

http://hotmist.ddo.jp/tool/animman/index.html

 

 

Duplicate the ped.ifp as new file, open with Anim Manager, and delete all animations except your desired anim.

Is important that you put in this space the same name that you'll use as your ifp file (the same you will use in your code).

 

Y8ilULF.png

Share this post


Link to post
Share on other sites
Mohd.Umar

Thanks sir how to say you thank you are the real modder i appreciate you sir thanks for everything if i will have any problem so how i will ask from you

Share this post


Link to post
Share on other sites
Mohd.Umar

Sir again i stuck at a point everything work but i can't use the animation i tried everything to use it but i am not able to see that as a demo.

Share this post


Link to post
Share on other sites
Sloth-

Describe what exactly are you doing.

 

Where or how did you include your animation file in your GTASA, what script are you using.

Share this post


Link to post
Share on other sites
Mohd.Umar

Cleo and using modloader but it crashes  at the end of loading.

I can give you the files as a upload link and you can install and tell me the errors

Edited by Mohd.Umar

Share this post


Link to post
Share on other sites
Mohd.Umar

As you told to select all files except the animation which i need and delete it.

After that i make a folder in  modloader folder as models/gta3.img and copied the file in it.

And by using Sunny builder i crated a cleo file as you given the codes.

And at last i run the game after compilation of cleo file. 

And it crashed at the end of loading.

I turn off the mod from the menu and the game works and when it work and drive car for a while and again turn it on and the game won't crashed but i am not able to use 

If you will say that don't turn the mod off then by this method only i fix the first person mod crashing.

Share this post


Link to post
Share on other sites
Sloth-
3 hours ago, Mohd.Umar said:

After that i make a folder in  modloader folder as models/gta3.img and copied the file in it.

Yes, i believe there could it be a misunderstanding there.

 

Do you mean, you create a gta3.img file and placed your ifp there, and then moved it in modloader/<mod-folder>/models?

Because if that's what you mean, then that's why it crashes. I really mean put your .ifp file inside a folder named gta3, and not inside a file gta3.img

 

If that's not what you really mean, then yes, you should upload your files, so i can see. 😄

Edited by Sloth-

Share this post


Link to post
Share on other sites
Mohd.Umar

Sir i will give you the file but can you make a code for using the mod because i am not a coder who can make the code properly without any error. I will upload the file soon. But as you told i make a gta3.img folder because I know if i will copy the gta3.img original file it will replace the root file 

Share this post


Link to post
Share on other sites
Sloth-
7 hours ago, Mohd.Umar said:

As i have uploaded the link can you make the code file for using this mod. I want to use this mod in interactive phone mod. Link http://www.mediafire.com/file/gqr6rg5peykyvl7/Hold_Phone.zip/file

Ok, i can help you, but first, you need to elaborate with full details what exactly you want your script to do, because i'm not sure 😅.

 

Also: i checked that animation (phone_hold.ifp) and i see is frozen in just one pose. Is this what you want? Or it was a mistake?

Remember you can preview your animations with Anim Manager, clicking on Menu: Preview > Load Model..., and chosing a .dff file (you must extract from .IMG a ped file in pairs of .dff and .txd - the .txd is not necessary, but it will display the textures in Anim Manager).

Edited by Sloth-

Share this post


Link to post
Share on other sites
Mohd.Umar

Yes sir this is the animation. And i want that script should be the interactive phone mod. In that want press the key to use interactive phone mod first the player should hold the phone in his hand after that when calling someone then he should take the phone to his ear for talking as it is already in game. But when any call comes like in mission Photo Opportunity cesar call cj so in that he should take the phone to his ear. 

Share this post


Link to post
Share on other sites
Mohd.Umar

Sir how much the script reached I am also trying to make it but the codes are very unstandable by me. Sir if you will complete it soon please inform me because i am very excited

Share this post


Link to post
Share on other sites
Sloth-

Oh I'm really really really sorry.

I thought you were asking for a smaller and simpler script. Thing is, i haven't much time.

 

But, have you already searched for a GTA V-like phone mod for San Andreas?

 

Take a look at this:

 

 

Maybe this doesn't work exactly as you would like (with the custom animation of the player holding and looking into the phone).

But it looks very close to the GTA IV/V phone functionality.

Edited by Sloth-

Share this post


Link to post
Share on other sites
Mohd.Umar

But i think to see this mod with the custom animation hold phone in hand he keeps the phone at his ear this i don't like. This is best mod but the animation makes it bad

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


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