OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: CaptainBravo on 22 Mar 2010, 11:39:22

Title: hoz_timer serialization error
Post by: CaptainBravo on 22 Mar 2010, 11:39:22
Hey everyone,

I am using the countdown timer by hoz but for osme reason I keep getting following error at begining of mission:

"Variable 'hoz_timer' does not support serialization and should not be stored in the mission namespace."

It still works but just annoying. Anyone knows how to fix?

Thanks for your help.
Title: Re: hoz_timer serialization error
Post by: hoz on 22 Mar 2010, 14:34:34
Use the Arma2 verision found here (http://www.ofpec.com/ed_depot/index.php?action=details&id=349&game=Arma2)
Title: Re: hoz_timer serialization error
Post by: CaptainBravo on 22 Mar 2010, 16:48:51
Thanks Hoz, works great now. Last related question, what do I need to change to have timer stays on longer,so every time it comes up it stays for 60 seconds.

Thanks for your help.
Title: Re: hoz_timer serialization error
Post by: hoz on 22 Mar 2010, 17:46:32

[[warningFreq],maxTime,displayTime,timeFormat] execvm "hoz_timer\scripts\HozTimer.sqf";
[[120,60,30,10],120,10,"HH:MM:SS"] execvm "hoz_timer\scripts\HozTimer.sqf";

You  need to change the displayTime in the init.sqf

Hoz
Title: Re: hoz_timer serialization error
Post by: CaptainBravo on 22 Mar 2010, 17:53:45
Thanks hos. I must be a bit sssslow today but still shows up only for 2 seconds.

This is what I have in first line in init:

HOZ_timerOn =true;
[[1200,900,600,300,120,30],1200,30,"HH:MM:SS"] execvm "hoz_timer\scripts\HozTimer.sqf";

Wanting to stay up for 30 seconds but only shows for 2 seconds  ???
Title: Re: hoz_timer serialization error
Post by: hoz on 24 Mar 2010, 00:41:01
Even version you downloaded from OFPEC does this? I just tried it and for sure it was counting down from 30 seconds.
Title: Re: hoz_timer serialization error
Post by: CaptainBravo on 25 Mar 2010, 15:44:38
Hi hoz,

I have downloaded latest version from here and still.

Here is the link to mission where I am difficulty getting the timer to show display for the duration I want.

Mission: http://www.filefront.com/15928059/ACE2_Snipers_AND_Hunters.Chernarus.rar

I am sure it is something silly  have missed  :whistle:

Thank you for yoru help.