Jump to content
RagingGamer

Unitcapture & Unitplay Issues

Recommended Posts

Spoiler

 

I've used UC&UP plenty of times before, but now every time I attempt to play the recordings I get the error. Screenshot.


'...ormation set [8,_stepProgress];
_object |#|setvelocitytransformation _velocitytrans...'
Error Type String, expected Array
Error Zero divisor
File a3\functions_f\scenes\fn_UnitPlay.sqf [BIS_fnc_UnitPlay], line 116

To add to that, the movement is very jumpy at best (for vehicles) or non-existent at worst (for infantry).

I know about tedho's HLF UC, but I used it because I didn't know BIS UC captured weapon fire data back then.

 

- - - - - - - - - -


The path.sqf code I'm using is


path1 = [snipped]
fire1 = [snipped]
[guy, path1] spawn BIS_FNC_Unitplay;
[guy, fire1] spawn BIS_FNC_Unitplay;

(I snipped the actual movement and firing data because it's long AF)

The init.sqf code is


path1 = compile preprocessfile "path1.sqf";

And finally, in-game code is


rec = [] spawn path1;

(I also used nul but it doesn't change anything)

I also have video evidence of this working back in February (Also a player-view), with a mission file to go along if you want to see for yourself.

 

EDIT:

I figured updated the path.sqf code and it now says

path1 = [snipped]
fire1 = [snipped]
[guy, path1] spawn BIS_FNC_Unitplay;
[guy, fire1] spawn BIS_FNC_Unitplayfiring;

And now the error stops coming up. 

This also seems to have fixed the vehicle movement as well.

But infantry still doesn't fire. They glide along the ground tho.

Share this post


Link to post
Share on other sites

It's hard to help you at the moment as you "snipped" the code. Can you provide more (what you are passing to the function, etc) so I and others can probably help you better?

What is:

_velocitytrans

 

Share this post


Link to post
Share on other sites
26 minutes ago, HazJ said:

It's hard to help you at the moment as you "snipped" the code. Can you provide more (what you are passing to the function, etc) so I and others can probably help you better?

What is:


_velocitytrans

 

I dunno what that is. It's just what ARMA threw at me. You can see it in the screenshot.

The snipped code isn't too important. It's just the movement and firing data. But here's a pastebin. You'll see why I snipped it.
 

43 minutes ago, HazJ said:

(what you are passing to the function, etc)

 

Could you explain what you mean?

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

×