Page MenuHomeFeedback Tracker

error message [DayZAnimalCommandScriptClass::Initialize] :: [ERROR] :: DayZAnimalCommandScript first constructor parameter must be inherited from DayZAnimal.
Closed, ResolvedPublic

Description

After bugfix of T165943 server not crashing anymore but I see in crashlog those errors:

[DayZAnimalCommandScriptClass::Initialize] :: [ERROR] :: DayZAnimalCommandScript first constructor parameter must be inherited from DayZAnimal.

I am really confused now.

It reporting error on this line:

DayzDogCommandStay cmd = new DayzDogCommandStay(DayZAnimal.Cast(this));

and my Scripted Command looks like:

class DayzDogCommandStay extends DayZAnimalCommandScript
{
	protected Dayz_Doggo m_Dog;
	protected DayzDogST m_ST;

	void DayzDogCommandStay( DayZAnimal pAnimal )
	{
		m_Dog = Dayz_Doggo.Cast(pAnimal);
		m_ST = m_Dog.GetAnimST();
	}

	void ~DayzDogCommandStay()
	{
	}

I tried DayZAnimal, AnimalBase which I have as first parameter in contructor is inherited from DayZAnimal, then explain me why it complains now?

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General

Event Timeline

Hunterz created this task.Jun 30 2022, 9:09 PM

OFC I tried DayZAnimal but exactly same error getting.

Hunterz updated the task description. (Show Details)Jun 30 2022, 9:23 PM
Hunterz updated the task description. (Show Details)
Hunterz updated the task description. (Show Details)Jun 30 2022, 9:27 PM

Animal scripted commands works now, just for me is unnacceptable filling server crashlog with error messages.

NATION added a subscriber: NATION.Jun 30 2022, 11:11 PM
Hunterz added a comment.EditedJul 1 2022, 6:53 AM

For me it looks like kinda partially reverted changes, when looking into dayzanimal command script that contructor line was again commented like it was in 1.17

class DayZAnimalCommandScript extends AnimCommandBase
{
	//! constructor must have 1st parameter to be DayZAnimal
	//void DayZAnimalCommandScript(DayZAnimal pAnimal)

but that error message probably need be suppressed now

Just guessing...

Geez changed the task status from New to Confirmed Internally.Jul 22 2022, 11:12 AM
Geez closed this task as Resolved.Aug 2 2022, 9:46 AM
Geez claimed this task.
Geez added a subscriber: Geez.

Hello Hunterz.
The issue has been resolved internally and the fix will appear in one of the upcoming updates.
Regards,
Geez