Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

gotyai

Error when trying to modify the BASEBUILDING_CONSTRUCT_MEDIUM constant

Recommended Posts

Hello dear community,

I want to accelerate base building (the wall building part) in my private server, for testing things.

I have already succeed to accelerate the barbed wire mounting for example by changing the value of :

	const float DEFAULT_DEPLOY = 0;

 

In the scripts.pbo file.

 

When I'm searching the reference about the base building time I find this constants :

	const float BASEBUILDING_CONSTRUCT_FAST = 5;
	const float BASEBUILDING_CONSTRUCT_MEDIUM = 7.5;
	const float BASEBUILDING_CONSTRUCT_SLOW = 10;

 

Which seems related to the code that is implied into the building process :

class ActionBuildPartCB : ActionContinuousBaseCB
{
	override void CreateActionComponent()
	{
		float time = SetCallbackDuration(m_ActionData.m_MainItem);
		m_ActionData.m_ActionComponent = new CAContinuousTime( time );
	}
	
	float SetCallbackDuration( ItemBase item )
	{
		/*switch( item.Type() )
		{
			case Pickaxe:
			case Shovel:
			case FieldShovel:
				return UATimeSpent.BASEBUILDING_CONSTRUCT_MEDIUM;
			default:
				return UATimeSpent.BASEBUILDING_CONSTRUCT_FAST;
		}*/
		return UATimeSpent.BASEBUILDING_CONSTRUCT_MEDIUM;
	}
};

 

 

Problem is, when I change the value of this constant (by any other value) I get this error every time :

SCRIPT    (E): @"scripts/3_Game/gameplay.c,956": Can't find variable 'SHOULDER'
SCRIPT    (E): @"scripts/3_Game/gameplay.c,956": Incompatible parameter 'SHOULDER'
SCRIPT    (E): Can't compile "Game" script module!

scripts/3_Game/systems\inventory\handanimated_guards.c(34): Can't find variable 'SHOULDER'
SCRIPT    (E): Failed to load game scripts!

 

 

If you have an idea for make it work or if you know a mod that is able to accelerate the building speed I would be grateful to have your answer I find nothing and I am on this problem since 3 days already...

 

Thanks for your attention and your very kind help.

Edited by gotyai

Share this post


Link to post
Share on other sites

×