[Simcity4 Devotion] Timed props ...
As long as the "X Tool" isn't finished you need iLive's Reader for that. ::)
You need to convert the Resource Key Type property of the prop to a Resource Key Type 4 (RKT4),
containing 8 or 16 reps (depending on whether you have 1 or 2 states of the prop):
0x0000000S, 0x00000000, 0x00000000, 0x00000000, 0xRRRRRRRR, 0xTTTTTTTT, 0xGGGGGGGG, 0xIIIIIIII
S is 0 for the normal state, 1 for the special state (as given in other properties below).
If one of the states is missing, the prop will be invisible at that state.
0xRRRRRRRR is the Resource Key Type of the prop, either 0x27812820 for RKT0 or 0x27812821 for RKT1 (see what the original prop you're converting used).
0xTTTTTTT, 0xGGGGGGGG, 0xIIIIIIII is the TGI address of the prop (the 3 reps in the original RKT1).
You can also check your model filename (e.g. MyBatModel-0xTTTTTTTT-0xGGGGGGGG-0xIIIII.SC4Model) for these numbers.
If you want the prop to disappear in one of the states, you may also give it a TGI of 0x00000000, 0x00000000, 0x00000000.
In this case 0xRRRRRRRR should be 0x27812820.
In addition to changing the Resource Key Type, you need to add a number of properties, depending on the timing you want:
● Add property:
Nighttime State Change = True
if you want the prop to appear differently at daytime and nighttime (state 1 is during night)
● Add property:
Prop Time of Day = Clock1, Clock2
if you want the prop to appear between those two times given by Clock1 and Clock2 (state 0 is between those times).
Clock1 and Clock2 are decimal values between 0.0 and 24.0
● Add properties:
Simulator Start Date = Month, Day
Simulator Date Duration = Days
Simulator Date Interval = Interval
if you want the prop to appear a specific time of the year (state 0 is from the Start Date and Duration of days after that)
Month is anything between 1 and 12, Day is anything between 1 and 31.
Days can be anything between 1 and 365 and interval would normally be 365.
Do not mix any of the above types of timed props. $%Grinno$%
You can also add the property Prop Random Chance to set the probability of it appearing.
« Last Edit: August 13, 2008, 09:32:45 AM by RippleJet »
[Simcity4 Devotion] Timed props ...
Yes, you can! :thumbsup:
That's how Maxis made their streetlights, which contain 3 or 4 props in one RKT4.
E.g, Streetlight1x1x11_$$$StreetlightBanner1_2A5A (TGI 0x6534204A 0xC977C536 0x2A5A0000):
0x00000001,0x00000000,0x00000000,0x00000000,0x27812821,0x5AD0E817,0xBADB57F1,0x2A5A0000,
0x00000001,0xFFFE6667,0x00078000,0x00000000,0x27812820,0x5AD0E817,0xBADB57F1,0x29DA0000,
0x00000001,0x00019999,0x00078000,0x00000000,0x27812820,0x5AD0E817,0xBADB57F1,0x29DA0000,
0x00000000,0x00000000,0x00000000,0x00000000,0x27812821,0x5AD0E817,0xBADB57F1,0x2A5A0000
The 1st line points to the lightpole (TGI 0x5AD0E817,0xBADB57F1,0x2A5A0000) which is visible at night (0x01)
The 2nd line points to the lightbulb (TGI 0x5AD0E817,0xBADB57F1,0x29DA0000) which is visible at night (0x01)
The 3nd line points to the lightbulb (TGI 0x5AD0E817,0xBADB57F1,0x29DA0000) which is visible at night (0x01)
The 4th line points to the lightpole (TGI 0x5AD0E817,0xBADB57F1,0x2A5A0000) which is visible at day (0x00)
Note also that the lightbulbs are offset in X (± 2.0 m) and Y (7.5 m) directions.
I don't know what the limit would be on how many reps you can add to a RKT4.
However, they can all only be either on (0x01) or off (0x00).
Thus, you cannot add props that would appear at different time intervals this way.
[Simcity4 Devotion] Timed props ...
Yes, the first rep can only be either 1 or 0.
You might also want to take a quick look at this thread: Timed props ...
The complete structure of the RKT4 is:
Rep 1: 0x0000000S
Rep 2: 0xXXXXXXXX
Rep 3: 0xYYYYYYYY
Rep 4: 0xZZZZZZZZ
Rep 5: 0xRRRRRRRR
Rep 6: 0xTTTTTTTT
Rep 7: 0xGGGGGGGG
Rep 8: 0xIIIIIIII
These 8 reps can be repeated several times.
0x0000000S
is 0 for the normal state, 1 for the special state (if timed, see smoncrie's post below for simple animations).
If one of the states is missing, the prop will be invisible at that state.
The special state is given by one of the following properties:
- Nighttime State Change
- Prop Time of Day
- Simulator Start Date, Simulator Date Duration, Simulator Date Interval
0xXXXXXXXX
is the offset in the model's X direction. Divide this number by 0x10000 to get metres.
0xYYYYYYYY
is the offset in the model's Y direction (vertical). Divide this number by 0x10000 to get metres.
0xZZZZZZZZ
is the offset in the model's Z direction. Divide this number by 0x10000 to get metres.
0xRRRRRRRR
is the Resource Key Type of the prop, one of the following:
- 0x27812820 for RKT0 (one single model used for all rotations and zooms)
- 0x27812821 for RKT1 (separate models for each rotation and zoom)
(see what the original prop you're converting used).
0xTTTTTTTT
0xGGGGGGGG
0xIIIIIIII
is the TGI address of the prop model.
As long as the "X Tool" isn't finished you need iLive's Reader for that. ::)
You need to convert the Resource Key Type property of the prop to a Resource Key Type 4 (RKT4),
containing 8 or 16 reps (depending on whether you have 1 or 2 states of the prop):
0x0000000S, 0x00000000, 0x00000000, 0x00000000, 0xRRRRRRRR, 0xTTTTTTTT, 0xGGGGGGGG, 0xIIIIIIII
S is 0 for the normal state, 1 for the special state (as given in other properties below).
If one of the states is missing, the prop will be invisible at that state.
0xRRRRRRRR is the Resource Key Type of the prop, either 0x27812820 for RKT0 or 0x27812821 for RKT1 (see what the original prop you're converting used).
0xTTTTTTT, 0xGGGGGGGG, 0xIIIIIIII is the TGI address of the prop (the 3 reps in the original RKT1).
You can also check your model filename (e.g. MyBatModel-0xTTTTTTTT-0xGGGGGGGG-0xIIIII.SC4Model) for these numbers.
If you want the prop to disappear in one of the states, you may also give it a TGI of 0x00000000, 0x00000000, 0x00000000.
In this case 0xRRRRRRRR should be 0x27812820.
In addition to changing the Resource Key Type, you need to add a number of properties, depending on the timing you want:
● Add property:
Nighttime State Change = True
if you want the prop to appear differently at daytime and nighttime (state 1 is during night)
● Add property:
Prop Time of Day = Clock1, Clock2
if you want the prop to appear between those two times given by Clock1 and Clock2 (state 0 is between those times).
Clock1 and Clock2 are decimal values between 0.0 and 24.0
● Add properties:
Simulator Start Date = Month, Day
Simulator Date Duration = Days
Simulator Date Interval = Interval
if you want the prop to appear a specific time of the year (state 0 is from the Start Date and Duration of days after that)
Month is anything between 1 and 12, Day is anything between 1 and 31.
Days can be anything between 1 and 365 and interval would normally be 365.
Do not mix any of the above types of timed props. $%Grinno$%
You can also add the property Prop Random Chance to set the probability of it appearing.
« Last Edit: August 13, 2008, 09:32:45 AM by RippleJet »
[Simcity4 Devotion] Timed props ...
Yes, you can! :thumbsup:
That's how Maxis made their streetlights, which contain 3 or 4 props in one RKT4.
E.g, Streetlight1x1x11_$$$StreetlightBanner1_2A5A (TGI 0x6534204A 0xC977C536 0x2A5A0000):
0x00000001,0x00000000,0x00000000,0x00000000,0x27812821,0x5AD0E817,0xBADB57F1,0x2A5A0000,
0x00000001,0xFFFE6667,0x00078000,0x00000000,0x27812820,0x5AD0E817,0xBADB57F1,0x29DA0000,
0x00000001,0x00019999,0x00078000,0x00000000,0x27812820,0x5AD0E817,0xBADB57F1,0x29DA0000,
0x00000000,0x00000000,0x00000000,0x00000000,0x27812821,0x5AD0E817,0xBADB57F1,0x2A5A0000
The 1st line points to the lightpole (TGI 0x5AD0E817,0xBADB57F1,0x2A5A0000) which is visible at night (0x01)
The 2nd line points to the lightbulb (TGI 0x5AD0E817,0xBADB57F1,0x29DA0000) which is visible at night (0x01)
The 3nd line points to the lightbulb (TGI 0x5AD0E817,0xBADB57F1,0x29DA0000) which is visible at night (0x01)
The 4th line points to the lightpole (TGI 0x5AD0E817,0xBADB57F1,0x2A5A0000) which is visible at day (0x00)
Note also that the lightbulbs are offset in X (± 2.0 m) and Y (7.5 m) directions.
I don't know what the limit would be on how many reps you can add to a RKT4.
However, they can all only be either on (0x01) or off (0x00).
Thus, you cannot add props that would appear at different time intervals this way.
[Simcity4 Devotion] Timed props ...
Yes, the first rep can only be either 1 or 0.
You might also want to take a quick look at this thread: Timed props ...
The complete structure of the RKT4 is:
Rep 1: 0x0000000S
Rep 2: 0xXXXXXXXX
Rep 3: 0xYYYYYYYY
Rep 4: 0xZZZZZZZZ
Rep 5: 0xRRRRRRRR
Rep 6: 0xTTTTTTTT
Rep 7: 0xGGGGGGGG
Rep 8: 0xIIIIIIII
These 8 reps can be repeated several times.
0x0000000S
is 0 for the normal state, 1 for the special state (if timed, see smoncrie's post below for simple animations).
If one of the states is missing, the prop will be invisible at that state.
The special state is given by one of the following properties:
- Nighttime State Change
- Prop Time of Day
- Simulator Start Date, Simulator Date Duration, Simulator Date Interval
0xXXXXXXXX
is the offset in the model's X direction. Divide this number by 0x10000 to get metres.
0xYYYYYYYY
is the offset in the model's Y direction (vertical). Divide this number by 0x10000 to get metres.
0xZZZZZZZZ
is the offset in the model's Z direction. Divide this number by 0x10000 to get metres.
0xRRRRRRRR
is the Resource Key Type of the prop, one of the following:
- 0x27812820 for RKT0 (one single model used for all rotations and zooms)
- 0x27812821 for RKT1 (separate models for each rotation and zoom)
(see what the original prop you're converting used).
0xTTTTTTTT
0xGGGGGGGG
0xIIIIIIII
is the TGI address of the prop model.