Jump to content
Sign in to follow this  
aiwaplay

Making a hotfix for Smookies Anim Need Help! (AI Sniper Sit bug)

Recommended Posts

Hey guys so lately since Smookie's been busy animating for gaming companies the Anims for Arma came to a drastic halt and at a bad time. Most likely if youre reading this you already know why (Tittle says it all). So anyways i went to work with my little scripting knowledge and was going PBO craaaazaazazzy changing files moving around and what not and almost got it to work. Till i came to a wall which i need some advanced scripters help on. But i realised after fiddling with the files that, Nothing and i mean nothing in the Anim pack is making the AI call for any of the anims, time outs, when to stop, or simply to call for an anim itself.. nothing.. which doesnt make sense to me. But I need someone with advanced scripting knowledge to come forward and make a "call" script simply to tell the AI when to stop an anim or to simply block the Anim from AI use (if they want to of course :D). Blocking the Anim from AI is no easy task but it will be fairly easier to do than actually making a behaviour script on when to use it or time out on it. So if anyone can come forward with moderate to advanced scripting, please do i wanna get this knocked out quick this has to be one the best mods for arma but being killed by the scripter abandoning and the animator having to work on more important projects. You can find the Anim pack here http://dev-heaven.net/projects/cga/files You want release 0.25. Thanks for anyone who tries to help.

EDIT: Forgot to say on the website Smookie himself said we could change, add, delete. Whatever to his anims so we have full permission to edit whatever we wish.

Edited by aiwaplay

Share this post


Link to post
Share on other sites

For anyone who might actually be watching this thread or has intrest i think ive got a way to fix it i just need some confirmation from an experienced scripter. Also im trying to find the exact names for the anims in this sloppy Config that was thrown together with the SMK anim package. Im not great at scripting so this is really a struggle. Would really like some help.

This is what i have written. Its simillar to the other lines in the file didnt see nothing wrong with the line so seems to work but this will be a temp fix if i can get the anim names right. Because logic tells, all this should do is once the anim is played. it will then switch or delay switch to the anim being called for. But this wont stop the sit being called over and over so i hope it doesnt call it multiple times at once And mimic the bug already in play

Heres the line

//DISALLOW COMBAT SIT

case (animationState player in ["smk_CombatSit_st.rtm"]) : {

//{"smk_switchMove",{player,"smk_CombatKneel_st.rtm"]]

The only problem now is i dont have the right anim names and im trying to find the names so, So far im unsuccessful.

Edited by aiwaplay

Share this post


Link to post
Share on other sites

Maybe something like...

case (animationState player in ["smk_CombatCrouch_to_Sit.rtm"]) : {

The problem is that the ai is going into the the sit stance, the transition is from the "smk_CombatCrouch_to_Sit.rtm". And then the ai not leaving the sniper sit is, the "smk_CombatSit_to_Crouch.rtm". I will help you program this, add my facebook... look for Zplea@hotmail.com on it.

Btw!!! how are you able to edit the code, I used the PBO View tool... which was helpful. However I don't know how to compile or change some of the script because it is encrypted with weird characters and needs a script editor of some sort.

Edited by DeclaredEvol

Share this post


Link to post
Share on other sites
Maybe something like...

case (animationState player in ["smk_CombatCrouch_to_Sit.rtm"]) : {

The problem is that the ai is going into the the sit stance, the transition is from the "smk_CombatCrouch_to_Sit.rtm". And then the ai not leaving the sniper sit is, the "smk_CombatSit_to_Crouch.rtm". I will help you program this, add my facebook... look for Zplea@hotmail.com on it.

Btw!!! how are you able to edit the code, I used the PBO View tool... which was helpful. However I don't know how to compile or change some of the script because it is encrypted with weird characters and needs a script editor of some sort.

Dont think you can search by email on facebook just search my name and add me ill send it in a PM

Share this post


Link to post
Share on other sites

Could someone make a mission that duplicates this problem? I've worked with animation configs before, fixing transitions and stuff. If you show me whats wrong in game, I could at least look at it. It would be easier to fix the config than make a script to watch the AI.

Share this post


Link to post
Share on other sites

I would but i dont have a place to upload it. But the thing is, its the AI that is the problem. The animation pack adds new features such as scaling walls and adds a cover system so that should kinda show you the depth of this addon but either way one of the new crouches added is a "Sniper Sit" animation which actually you can guess causes your player to sit and be more accurate the only way to get out of this stuck animation is for the player to hit the V key. Recently the creators added the ability to also move forward to cancel it but it doesnt work for the AI. but either way for some Reason the AI can access this animation and they get stuck at random times (Mostly the beginning of combat) and cant get out so, virtually they are frozen there till they die which them getting stuck happens a lot especially when youre running mods such as Zeus_AI or SLX. the best way to be about it is trying to build a time out script that the AI uses the animation for a certain amount of time and then is returned to the previous animation, But as i said before im not great at scripting so i was trying a quick alternative to block the Anim being an instant return to a different anim trying to cancel it out. But thats really the best way to describe it and in theory the script should work the more advanced one will run cleaner and be better all around. with that said im working on an animation package myself and i need a script to test my animation in game i tried this

// some basic defines

#define TEast 0

#define TWest 1

#define TGuerrila 2

#define TCivilian 3

#define TSideUnknown 4

#define TEnemy 5

#define TFriendly 6

#define TLogic 7

#define true 1

#define false 0

// type scope

#define private 0

#define protected 1

#define public 2

class CfgPatches

{

class @test

{

units[] = {};

weapons[] = {};

requiredVersion = 1.85;

};

};

class CfgMovesMC

{

class Default {};

class States

{

class Kneel

{

actions="CombatActions";

file="\myanim\Test.rtm";

speed=-1;

looped=0;

soundEnabled=0;

connectFrom[]={CombatRelaxed,1};

connectTo[]={CombatRelaxed,1};

interpolationSpeed=2;

interpolateTo[]={CombatDying,0.1,CombatDyingVer2,0.1};

};

};

};

But doesnt seem to work. I cant really tell though if it could be the Animation itself or the script. because im animating with the Maya rtm addon for armed assault and importing the .rtm to arma 2 to speed up the process instead of using the O2 tool. So if you could please let me know which one is fouling up because i heard that if the .RTM cant run in O2's bulldozer it wont run in game but i also heard that the Addon for Maya doesnt run in bulldozer so im confused. By the way im making stances, not random animations so i need something that will replace the BIS crouch animation the one with your weapon lowered. Lol sorry if its a lot to ask for, just need a scripters help.

---------- Post added at 08:13 AM ---------- Previous post was at 08:12 AM ----------

Could someone make a mission that duplicates this problem?QUOTE]

Well enless you mean upload a video then yeah i could do that lol

Share this post


Link to post
Share on other sites

it looks like the animation just doesn't have any actions associated with it, so the AI doesn't have any movement options once it uses the sniper sit.

Share this post


Link to post
Share on other sites
it looks like the animation just doesn't have any actions associated with it, so the AI doesn't have any movement options once it uses the sniper sit.

that could be true, but the AI can actually be ordered to go out of the stances if the player tells them to go back to crouch. Or even Stand Up, because for the player... crouching is how he gets out of the stance as well. On second thought, maybe it is possible to just rem the state combat crouch to sniper sit out. So that way the AI will not perform the action.

I'll try my best to help out...

Share this post


Link to post
Share on other sites

Please contact me in person via these forums PM function or skype if you have my addy. I will brief you on the topic and help as much as I can.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×