Menu

LEX File Exchange
EA Support Files
SC4 Wikipedia
Network Addon Mod
Dependencies
Chat
Welcome, Guest. Please login or register.
Did you miss your activation email?

September 28, 2021, 01:49:25 AM

Login with username, password and session length

Author Topic: Making Seasonal/Timed Props  (Read 10001 times)

0 Members and 1 Guest are viewing this topic.

Offline smoncrie

  • NAM Team
  • Forums Governor
  • *
  • Posts: 315
  • Total likes: 3
  • Reputation: 16
  • CL: Make a hole!
Making Seasonal/Timed Props
« on: May 29, 2008, 05:15:32 PM »
At BarbyW’s request I am re-posting an old tutorial about making seasonal/timed props. The tutorial is attached to this message.

The tutorial was made for a novice ilive reader user.  I created it after I discovered how to make these props – my first discovery as a modder!  :)
« Last Edit: May 29, 2008, 05:17:36 PM by smoncrie »

Offline RippleJet

Re: Making Seasonal/Timed Props
« Reply #1 on: May 29, 2008, 05:38:35 PM »
Thank you, Smoncrie for posting it! :thumbsup:
It remember it being a very interesting and good tutorial the first time I read it... ages ago! ::)
« Last Edit: May 29, 2008, 05:42:33 PM by RippleJet »

Offline ehbk2006

  • RAM Team
  • Forums Mayor
  • *
  • Posts: 181
  • Total likes: 0
  • Reputation: 1
  • Traffic BAT's
    • My sketchup models on the 3d warehouse.
Re: Making Seasonal/Timed Props
« Reply #2 on: June 25, 2008, 03:16:50 PM »
I would like to read this tutorial, but the link is broken.  &mmm
Can somebody repost the tutorial please.

Thanks in advance,

ehbk2006
My BAT Showcase: ehbk2006's traffic BAT's
My sketchup models on the 3d warehouse.
[RDY]: Veolia - Coal hopper + E189

Offline BarbyW

  • Administrator
  • Forums Legend
  • *
  • Posts: 5508
  • Total likes: 8
  • Reputation: 57
  • CL: SC4D  Goddess
Re: Making Seasonal/Timed Props
« Reply #3 on: June 25, 2008, 03:40:43 PM »
I have just downloaded the tutorial without any problems. It isn't a link to read but to download and read once you have it on your computer.
Inside every old person is a young person wondering what happened. TP



Barbypedia: More alive than the original

Offline jeronij

Re: Making Seasonal/Timed Props
« Reply #4 on: June 25, 2008, 03:53:22 PM »
I would like to read this tutorial, but the link is broken.  &mmm
Can somebody repost the tutorial please.

Thanks in advance,

ehbk2006

Pls try again. There was an issue with that attachment  ::)  ;)
I am currently not active - Please, contact Tarkus for any site related matter. Thanks for enjoying SC4D :D


Autism Awareness;  A Father Shares
Mallorca My Mayor Diary


Offline ehbk2006

  • RAM Team
  • Forums Mayor
  • *
  • Posts: 181
  • Total likes: 0
  • Reputation: 1
  • Traffic BAT's
    • My sketchup models on the 3d warehouse.
Re: Making Seasonal/Timed Props
« Reply #5 on: June 26, 2008, 06:24:43 AM »
Thanks for the fast reply, link is fixed.

The tutorial is great but, I have one question.

Is it possible to add more than one 'Time of Day Changes' a day. For example i'm creating an roadside Variable-Message Sign that will lit during rushhour (7:00,9:00 and 17:00,19:00). I have made several attempts to make it lit 2 times a day. But only the first period works (7:00,9:00) for the second period it remains black till 7:00 the next day.

 ()what()

« Last Edit: June 26, 2008, 06:26:46 AM by ehbk2006 »
My BAT Showcase: ehbk2006's traffic BAT's
My sketchup models on the 3d warehouse.
[RDY]: Veolia - Coal hopper + E189

Offline Diggis

Re: Making Seasonal/Timed Props
« Reply #6 on: June 26, 2008, 06:26:48 AM »
No, I think you can only add the one swap into a timed prop.  What you would need to do is do 4, 2 on and 2 off and have no prop as the second time, then add them all onto the lot in the same place. More work, but how seasonal trees are done.

Offline ehbk2006

  • RAM Team
  • Forums Mayor
  • *
  • Posts: 181
  • Total likes: 0
  • Reputation: 1
  • Traffic BAT's
    • My sketchup models on the 3d warehouse.
Re: Making Seasonal/Timed Props
« Reply #7 on: June 26, 2008, 07:01:43 AM »
Okay to bad  &mmm , well then they will be active between 5:00 and 23:00 for now.

But I will try this method in the near future.  :thumbsup:

Thanks for the help  :)
My BAT Showcase: ehbk2006's traffic BAT's
My sketchup models on the 3d warehouse.
[RDY]: Veolia - Coal hopper + E189

Offline jeronij

Re: Making Seasonal/Timed Props
« Reply #8 on: June 26, 2008, 02:13:54 PM »
you can make two version of the model, one which shows from 7-->9 and the other from 17-->19, and place them in the exactly same position in the lot. This way the same lot will show the lights at the desired moment. I hope this helps.

EDIT: After re-reading Diggis post, perhaps I am repeating the same ::)
I am currently not active - Please, contact Tarkus for any site related matter. Thanks for enjoying SC4D :D


Autism Awareness;  A Father Shares
Mallorca My Mayor Diary


Offline ehbk2006

  • RAM Team
  • Forums Mayor
  • *
  • Posts: 181
  • Total likes: 0
  • Reputation: 1
  • Traffic BAT's
    • My sketchup models on the 3d warehouse.
Re: Making Seasonal/Timed Props
« Reply #9 on: June 27, 2008, 04:59:17 AM »
Another questions rose up the last night in my mind.


Can you add more than 2 props in the Resource Key Type 4 (more than 16 reps), if so how do you number them?For example now you have this: 1,0,0,0,x,x,x,x,0,0,0,0,x,x,x,x . Can you extend that chain?


Thanks in advance,

ehbk2006
« Last Edit: June 27, 2008, 05:01:20 AM by ehbk2006 »
My BAT Showcase: ehbk2006's traffic BAT's
My sketchup models on the 3d warehouse.
[RDY]: Veolia - Coal hopper + E189

Offline RippleJet

Re: Making Seasonal/Timed Props
« Reply #10 on: June 27, 2008, 06:50:43 AM »
Can you add more than 2 props in the Resource Key Type 4 (more than 16 reps), if so how do you number them?For example now you have this: 1,0,0,0,x,x,x,x,0,0,0,0,x,x,x,x . Can you extend that chain?

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.

Offline ehbk2006

  • RAM Team
  • Forums Mayor
  • *
  • Posts: 181
  • Total likes: 0
  • Reputation: 1
  • Traffic BAT's
    • My sketchup models on the 3d warehouse.
Re: Making Seasonal/Timed Props
« Reply #11 on: June 27, 2008, 07:44:18 AM »
So a prop can only have 2 statuses? A defaulth state and a special state.
« Last Edit: June 27, 2008, 07:55:27 AM by ehbk2006 »
My BAT Showcase: ehbk2006's traffic BAT's
My sketchup models on the 3d warehouse.
[RDY]: Veolia - Coal hopper + E189

Offline RippleJet

Re: Making Seasonal/Timed Props
« Reply #12 on: June 27, 2008, 08:48:43 AM »
So a prop can only have 2 statuses? A defaulth state and a special state.

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.
« Last Edit: June 27, 2008, 05:45:32 PM by RippleJet »

Offline ehbk2006

  • RAM Team
  • Forums Mayor
  • *
  • Posts: 181
  • Total likes: 0
  • Reputation: 1
  • Traffic BAT's
    • My sketchup models on the 3d warehouse.
Re: Making Seasonal/Timed Props
« Reply #13 on: June 27, 2008, 09:24:56 AM »
Cool thanks  :thumbsup:.
My BAT Showcase: ehbk2006's traffic BAT's
My sketchup models on the 3d warehouse.
[RDY]: Veolia - Coal hopper + E189

Offline smoncrie

  • NAM Team
  • Forums Governor
  • *
  • Posts: 315
  • Total likes: 3
  • Reputation: 16
  • CL: Make a hole!
Re: Making Seasonal/Timed Props
« Reply #14 on: June 27, 2008, 12:15:38 PM »
Just to add a little more information:

I don’t know the maximum number of reps for RKT4, but it is more than 152.

As far as I know there can be only two states for any of the timed props, but there can be more than two states in other props that change.   An example is the animated rail crossing gate (0x2ad50000) where there are 4 states.

Another property that can be used to make props that change is:

Requires Power to Appear

Offline MandelSoft

  • The Dutch Freeway Engineer
  • NAM Team
  • Forums Guru
  • *
  • Posts: 3968
  • Total likes: 15
  • Reputation: 30
  • SimCity 4 turned me into a civil engineer
  • CL:
    Let there be Light!
Re: Making Seasonal/Timed Props
« Reply #15 on: June 27, 2008, 02:48:09 PM »
@smoncrie: I think the maximum number of reps is 256.

Good tutorial. See if I can use it.
Lurk mode: ACTIVE

Offline RippleJet

Re: Making Seasonal/Timed Props
« Reply #16 on: June 27, 2008, 05:43:43 PM »
As far as I know there can be only two states for any of the timed props, but there can be more than two states in other props that change.   An example is the animated rail crossing gate (0x2ad50000) where there are 4 states.

Thanks for that info, Smoncrie! :thumbsup:

Offline MandelSoft

  • The Dutch Freeway Engineer
  • NAM Team
  • Forums Guru
  • *
  • Posts: 3968
  • Total likes: 15
  • Reputation: 30
  • SimCity 4 turned me into a civil engineer
  • CL:
    Let there be Light!
Re: Making Seasonal/Timed Props
« Reply #17 on: June 28, 2008, 04:19:58 AM »
One question: Is it possible to have a special state twice? For example a speedcontrol matrix sign that only goes on between 8 to10 AM and 5 to 8 PM.

D'oh! I didn't read the thread good enough!
« Last Edit: June 28, 2008, 05:05:29 AM by mrtnrln »
Lurk mode: ACTIVE

Offline BarbyW

  • Administrator
  • Forums Legend
  • *
  • Posts: 5508
  • Total likes: 8
  • Reputation: 57
  • CL: SC4D  Goddess
Re: Making Seasonal/Timed Props
« Reply #18 on: June 28, 2008, 04:36:34 AM »
mrtnrln: if you read this thread thoroughly you will see that your question has already been answered. You need to make two props - one for each state and stack them on the lot.
Inside every old person is a young person wondering what happened. TP



Barbypedia: More alive than the original

Offline dedgren

Re: Making Seasonal/Timed Props
« Reply #19 on: August 16, 2008, 03:18:05 PM »
I'm wondering, before I would spend a bunch of time bashing away at this, if it's possible to have a "time of day" effects prop.  I'm specifically thinking about one of the game fountain props, and having it on a lot where it would appear and then "turn off" as the day progressed.  If anyone has has ever explored this, any info you might have would be greatly appreciated.

Thanks in advance.

If I wind up checking this out myself, I will post what I find out here.


David
D. Edgren

Please call me David...

Three Rivers Region- A collaborative development of the SC4 community
The 3RR Quick Finder [linkie]


I aten’t dead.  —  R.I.P. Granny Weatherwax

Skype: davidredgren