Mohd.Umar 0 Posted October 23 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. Quote Share this post Link to post Share on other sites
Sloth- 49 Posted October 23 (edited) 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 October 24 by Sloth- Quote Share this post Link to post Share on other sites
Mohd.Umar 0 Posted October 24 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 Quote Share this post Link to post Share on other sites
Sloth- 49 Posted October 24 (edited) 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 October 24 by Sloth- Quote Share this post Link to post Share on other sites
Mohd.Umar 0 Posted October 24 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 Quote Share this post Link to post Share on other sites
Sloth- 49 Posted October 24 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. I have no idea if the mod you want does exist or not. Quote Share this post Link to post Share on other sites
Mohd.Umar 0 Posted October 24 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. Quote Share this post Link to post Share on other sites
Mohd.Umar 0 Posted October 24 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 Quote Share this post Link to post Share on other sites
Sloth- 49 Posted October 24 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? Quote Share this post Link to post Share on other sites
Mohd.Umar 0 Posted October 24 Actor name what i have give cj or carl Quote Share this post Link to post Share on other sites
Sloth- 49 Posted October 24 (edited) 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 October 24 by Sloth- Quote Share this post Link to post Share on other sites
Mohd.Umar 0 Posted October 24 But how to extract an anim file from peds.ifp a single anim file Quote Share this post Link to post Share on other sites
Sloth- 49 Posted October 24 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). Quote Share this post Link to post Share on other sites
Mohd.Umar 0 Posted October 24 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 Quote Share this post Link to post Share on other sites
Mohd.Umar 0 Posted October 24 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. Quote Share this post Link to post Share on other sites
Sloth- 49 Posted October 24 Describe what exactly are you doing. Where or how did you include your animation file in your GTASA, what script are you using. Quote Share this post Link to post Share on other sites
Mohd.Umar 0 Posted October 24 (edited) 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 October 24 by Mohd.Umar Quote Share this post Link to post Share on other sites
Mohd.Umar 0 Posted October 24 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. Quote Share this post Link to post Share on other sites
Sloth- 49 Posted October 24 (edited) 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 October 24 by Sloth- Quote Share this post Link to post Share on other sites
Mohd.Umar 0 Posted October 25 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 Quote Share this post Link to post Share on other sites
Mohd.Umar 0 Posted October 26 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 Quote Share this post Link to post Share on other sites
Sloth- 49 Posted October 26 (edited) 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 October 27 by Sloth- Quote Share this post Link to post Share on other sites
Mohd.Umar 0 Posted October 27 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. Quote Share this post Link to post Share on other sites
Mohd.Umar 0 Posted October 28 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 Quote Share this post Link to post Share on other sites
Sloth- 49 Posted October 28 (edited) 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 October 28 by Sloth- Quote Share this post Link to post Share on other sites
Mohd.Umar 0 Posted October 29 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 Quote Share this post Link to post Share on other sites