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

Happy Holidays from the GTANet team!

GTA San Andreas Add Animation not replace


Mohd.Umar
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Describe what exactly are you doing.

 

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

Link to comment
Share on other sites

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

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.

Link to comment
Share on other sites

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

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 

Link to comment
Share on other sites

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

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. 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

  • 4 months later...

According to the title of this topic, does somebody know if i can add an animation file related to a vehicle that has been added (not replaced) to the game? Like modifying a custom wayfarer.ifp to work with an added motorcycle so that i don't have to replace the original wayfarer?

Link to comment
Share on other sites

  • 2 years later...
JocundAnh
On 10/24/2019 at 11:27 AM, Sloth- said:

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

Hi, Sloth. I wonder can we change the walk style and running style when the character is holding a pistol gun like this https://youtu.be/C2jLiy0mCNM 

I have followed your tutorials. Deleted all animation in ped.ifp and keep walk, run animation, change it to other with the same name by GTA Animation Mannager tool, then add it to gta3.IMG! and now what i have to do now? Please guild me how to code it in opcodespacer.png

 

 

 

Edited by JocundAnh
Link to comment
Share on other sites

44 minutes ago, JocundAnh said:

Hi, Sloth. I wonder can we change the walk style and running style when the character is holding a pistol gun like this https://youtu.be/C2jLiy0mCNM 

I have followed your tutorials. Deleted all animation in ped.ifp and keep walk, run animation, change it to other with the same name by GTA Animation Mannager tool, then add it to gta3.IMG! and now what i have to do now? Please guild me how to code it in opcodespacer.png

 

 

 

Try this code:

{$CLEO.csa}
thread 'Gunstyle'

while true
wait 0
	if and
	0256:    player $PLAYER_CHAR defined
	02D8:    actor $PLAYER_ACTOR current_weapon == 24
	0A51:    is_widget_pressed 29
	then	
		04ED: load_animation  "GUNSTYLE"
		repeat
		wait 0
		until 04EE:   animation "GUNSTYLE" loaded
		0245: set_actor $PLAYER_ACTOR walk_style_to "Player_Gunstyle"
		04EF: release_animation "GUNSTYLE"
	end
end

Please, have in mind you should have the GUNSTYLE.IFP already, and you should have the animation "Player_Gunstyle" defined inside the animgrp.dat (as i said you via Private Messaging).

 

Test this and if it doesn't work, then open your own thread.

(Pretty sure this code is not enough for what you really want, but it is only a start).

Edited by Sloth-
Link to comment
Share on other sites

JocundAnh
5 minutes ago, Sloth- said:

Try this code:

{$CLEO.csa}
thread 'Gunstyle'

while true
wait 0
	if and
	0256:    player $PLAYER_CHAR defined
	02D8:    actor $PLAYER_ACTOR current_weapon == 24
	0A51:    is_widget_pressed 29
	then	
		04ED: load_animation  "GUNSTYLE"
		repeat
		wait 0
		until 04EE:   animation "GUNSTYLE" loaded
		0245: set_actor $PLAYER_ACTOR walk_style_to "Player_Gunstyle"
		04EF: release_animation "GUNSTYLE"
	end
end

Please, have in mind you should have the GUNSTYLE.IFP already, and you should have the animation "Player_Gunstyle" defined inside the animgrp.dat (as i said you via Private Messaging).

 

Test this and if it doesn't work, then open your own thread.

(Pretty sure this code is not enough for what you really want, but it is only a start).

Thank you so much, i will try it again. You the best 😆

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.