PDA

View Full Version : Whats The Difference Between Idle and Idle Hours


JonathenH
24th Apr 2006, 01:52 AM
Hi! Could some one please help me im working on a mod for sims 2 life insurance where your sim pays life insurance and when they die your other sims get paid but i cant seem to understand the difference between Idle (0x0118) and Idle (0x016E) please could some one help me i really needs to know how to use this for the benifit of my mod.

Hunter240x
24th Apr 2006, 03:11 AM
I've never used idle hours but idle goes by seconds. So if you put in Idle (0010) it would be equal to 10 seconds. So logically, I would assume if you used Idle hours (0010) it would equal 10 hours.

Inge Jones
24th Apr 2006, 07:50 AM
The parameter for idle is in ticks not seconds. There are 30 ticks in a Sim minute.

dolphin26
24th Apr 2006, 08:57 PM
The parameter for idle is in ticks not seconds. There are 30 ticks in a Sim minute.

What happens when you compress time with Merola's clock? Does this change the number of ticks in a minute?

In that case, you might want to choose to idle by ticks or by hours depending on whether you want it keyed to the time or to ticks...

JVM
25th Apr 2006, 12:55 AM
Hi! Could some one please help me im working on a mod for sims 2 life insurance where your sim pays life insurance and when they die your other sims get paid but i cant seem to understand the difference between Idle (0x0118) and Idle (0x016E) please could some one help me i really needs to know how to use this for the benifit of my mod.

Idle (0x0118) would cause the sim to idle for 280 ticks or approximately 9.33 sim minutes

Idle (0x016E) would cause the sim to idle for 366 ticks or 12.2 sim minutes

that is if Inge's formula is correct, and judging from her modding work I would assume it is.

You must realize the the (0x0000) is a hexadecimal value.

The values are 0x(16^3*X)+(16^2*X)+(16^1*X)+(16^0*X) or 0x(4096*X)+(256*X)+(16*X)+(1*X) where X is a value of 0-15 (0-9,A=10,B=11,C=12,D=13,E=14,F=15)

You can use the windows scientific calculater to get this or SIMPE's hex calculater or the formula above.

Inge Jones
25th Apr 2006, 07:54 AM
JVM, the figure JonethenH showed in brackets was supposed to be the opcode number :D

JVM
27th Apr 2006, 02:47 AM
Ahh that makes sense.

Sorry then.