Recupdate

From NPC for VCMP 0.4 Servers
Revision as of 15:26, 14 August 2024 by 127.0.0.1 (talk) (→‎History)
Jump to navigation Jump to search

This is a tool to upgrade playback files created by older versions of npc04relxx plugin, so that they are playable in current version of npcclient. When this page is created,. rec files version must be 4 or upgraded to 4. (1004) in .rec file header.

Download Link Description Info
recupdate_windows_v4.0.zip Convert .rec files to v4 recupdate.exe
recupdate_linux_x64_v4.0.zip Convert .rec files to v4 ./recupdate
recupdate_linux_x86_v4.0.zip Convert .rec files to v4 ./recupdate

History

v4
ONFOOT sync data new fields -> uint8_t byteAction, uint8_t byteReserved
INCAR sync data -> no change
v3
ONFOOT -> no change
INCAR ->uin16_t wAmmo
v2
ONFOOT -> uint8_t bIsReloading, uint16_t wAmmo
INCAR -> no change
v1
ONFOOT and INCAR was as below:

typedef struct _ONFOOT_SYNC_DATA_V1
{
	uint32_t dwKeys;
	VECTOR vecPos;
	float fAngle;
	uint8_t byteHealth;
	uint8_t byteArmour;
	uint8_t byteCurrentWeapon;
	bool IsCrouching;
	VECTOR vecSpeed;
	bool IsAiming;
	VECTOR vecAimDir;
	VECTOR vecAimPos;
} ONFOOT_SYNC_DATA_V1;
typedef struct _INCAR_SYNC_DATA_BEFOREV3
{
	uint16_t VehicleID;
	uint32_t dwKeys;
	QUATERNION quatRotation;
	VECTOR vecPos;
	VECTOR vecMoveSpeed;
	float fCarHealth;
	uint8_t bytePlayerHealth;
	uint8_t bytePlayerArmour;
	uint8_t byteCurrentWeapon;
	uint32_t dDamage;
	float Turretx;
	float Turrety;
} INCAR_SYNC_DATA_BEFOREV3;