Menu

LEX File Exchange
EA Support Files
SC4 Wikipedia
Network Addon Mod
Dependencies
Chat

Author Topic: Metarvo's American T21 Mod  (Read 9183 times)

0 Members and 1 Guest are viewing this topic.

Offline metarvo

  • NAM Team
  • Forums Guru
  • *
  • Posts: 2233
  • Total likes: 200
  • Reputation: 9
  • Wired up!
  • CL: Power to the
    people!
Metarvo's American T21 Mod
« on: June 07, 2013, 09:36:10 PM »
I've always thought the Maxis T21's were a little lacking, particularly at intersections.  They get the job done, but that's about all.  So, I've decided to try my hand at picking up a little bit of T21 modding in between work on my other projects.  This will be an American HD T21 project that will eventually cover Maxis intersections as well as NAM intersections.  I haven't gotten that many done, but here is a proof of concept pic:


The four variants at this Street T-intersection are: yield, stop, all-way stop, and traffic signal.  Unfortunately, there is no way to pick which one appears, because of the nature of T21's to be selected at random.  Not shown is the Maxis default Street T-intersection T21's, which I have not been able to override.  Also, the traffic signal is currently red only, and is only eye-candy because street intersections are not signalized in game.
Find my power line BAT thread here.
Check out the Noro Cooperative.  What are you waiting for?  It even has electricity.
Want more? Try here.  For even more electrical goodies, look here.
Here are some rural power lines.

Offline Fresh Prince of SC4D

Re: Metarvo's American T21 Mod
« Reply #1 on: June 07, 2013, 09:53:35 PM »
Looking good so far!  :thumbsup:
Returning from Call of Duty . Must rebuilt what I destroyed....

Offline eggman121

  • NAM Team
  • Forums Parliamentarian
  • *
  • Posts: 1636
  • Total likes: 3043
  • Reputation: 29
  • CL:
    Mr. Smth
Re: Metarvo's American T21 Mod
« Reply #2 on: June 07, 2013, 11:47:46 PM »
Hello metarvo. Great work  :thumbsup:. I'm also working on a t21 sign mod and have many of the signs created. If you check the "show us your road signs" thread you can see some of my work. Maybe we can work together so our mods don't conflict. What do you think?

PM me if your interested

Offline metarvo

  • NAM Team
  • Forums Guru
  • *
  • Posts: 2233
  • Total likes: 200
  • Reputation: 9
  • Wired up!
  • CL: Power to the
    people!
Re: Metarvo's American T21 Mod
« Reply #3 on: June 13, 2013, 09:31:46 AM »
Fresh Prince of SC4D: Thanks for the compliment!  ;)

Eggman121: Thank you for the kind words.  ;)  I've checked out your mod, and it looks good.  :thumbsup:  It looks like your mod is mostly covering RHW and roads for now, so maybe I could concentrate on streets (including SAM) and AVE-4, or possibly some NWM networks.  Another area I may emphasize is diagonals, which are notoriously hard to T21 (but the effort can pay off).  It appears as though you're doing some of those as well.

Here's a little more progress:


These are the ortho 4-way street intersection T21s.  Note that the yield and 2-way stop T21s are repeated for north-south and east-west intersections.


Here are some of those diagonals I've been talking about.  This was hard ??? ; I had to learn about RTK1xm, and I had to arrange the props counter-intuitively to get them to work right on the mirrored intersections.  Note that there are no yield-only DxO T-intersections because of unusual geometrics.  This is also what led to "No Turn On Red" signs being included on the diagonal signalized approaches.

Speaking of signals, I've been meaning to learn how to animate them so that these intersections will have signal phases rather than lights that are continuously red.  While I suppose "real" signals in SC4 terms would be desirable, I've been leaning towards eye-candy signals instead, since SC4's traffic signal system is broken anyway.
« Last Edit: June 13, 2013, 09:42:17 AM by metarvo »
Find my power line BAT thread here.
Check out the Noro Cooperative.  What are you waiting for?  It even has electricity.
Want more? Try here.  For even more electrical goodies, look here.
Here are some rural power lines.

Offline Swordmaster

Re: Metarvo's American T21 Mod
« Reply #4 on: June 13, 2013, 09:46:41 AM »
Great work. As I would say, T21 modding is probably tougher than RULing. So keep it up!


Cheers
Willy

Offline Lewis2567

Re: Metarvo's American T21 Mod
« Reply #5 on: June 13, 2013, 03:21:56 PM »
Nice Work there.This mod is going to look very good when comes out.
Lewis2567

Offline eggman121

  • NAM Team
  • Forums Parliamentarian
  • *
  • Posts: 1636
  • Total likes: 3043
  • Reputation: 29
  • CL:
    Mr. Smth
Re: Metarvo's American T21 Mod
« Reply #6 on: June 13, 2013, 09:25:57 PM »
Great work Metarvo  &apls

I'm just wondering what you did to make the stop and yield signs appear facing ether North South or East West? That could be very useful to me as I embark on making signs for the FAR x O and FAR x FAR intersections that are draggable.

Great work. As I would say, T21 modding is probably tougher than RULing. So keep it up!


Cheers
Willy

It is a bit tough coding T21 onto networks and sometimes finding the necessary IID files can be a nightmare. For the draggable FAR networks I am having to read the RUL code to find the necessary files which is a bit of an adventure. 

Anyway keep up the good work  :thumbsup:

-eggman121

Offline Swordmaster

Re: Metarvo's American T21 Mod
« Reply #7 on: June 13, 2013, 11:09:14 PM »
It is a bit tough coding T21 onto networks and sometimes finding the necessary IID files can be a nightmare. For the draggable FAR networks I am having to read the RUL code to find the necessary files which is a bit of an adventure. 

Anyway keep up the good work  :thumbsup:

-eggman121

While I applaud you digging into the RUL files, I also want to let you know I'd be happy to provide the necessary support in those areas should you need it. I have all the road and street network IIDs handy.


Cheers
Willy

Offline eggman121

  • NAM Team
  • Forums Parliamentarian
  • *
  • Posts: 1636
  • Total likes: 3043
  • Reputation: 29
  • CL:
    Mr. Smth
Re: Metarvo's American T21 Mod
« Reply #8 on: June 13, 2013, 11:57:21 PM »
While I applaud you digging into the RUL files, I also want to let you know I'd be happy to provide the necessary support in those areas should you need it. I have all the road and street network IIDs handy.


Cheers
Willy

Thanks Swordmaster. That support would be most helpful indeed.  ;D

Offline metarvo

  • NAM Team
  • Forums Guru
  • *
  • Posts: 2233
  • Total likes: 200
  • Reputation: 9
  • Wired up!
  • CL: Power to the
    people!
Re: Metarvo's American T21 Mod
« Reply #9 on: June 15, 2013, 11:29:12 AM »
Willy (Swordmaster): Thank you for the kind words.  ;)  Of course, you're an expert at RULing.  RULs still look like Klingon to me.  $%Grinno$%  Which reminds me, I've been meaning to talk to you about those OxC (ortho x curve) intersections.  I guess I'll have to do those, too.

Lewis (Lewis2567): Thanks.  ;)

Eggman121: Thank you for the compliment!  ;)  Unfortunately, the only way I know of to get the signs to randomly face N/S or E/W is to make separate T21s for the two directions.  This runs the risk of the T21's facing the wrong directions at an intersection, but a little patience with the mouse pays off.




Here are some OxD intersections.


Here are the DxDs.  There is a lot going on here; some intersections are composed of two tiles and therefore two separate T21's are in play.  It may take patience (which I don't always have  ::) ) to get matching T21's on the two tiles.  Otherwise, there's a chance of yield signs, stop signs, all-way stop signs, and traffic lights being mixed on one intersection which is a no-no.  Also, some T21's make use of offset props.  These are needed because signs or lights may need to be placed on what would otherwise be a straight diagonal street segment.

Eggman121 is also making an excellent T21 mod that will cover NAM networks (including SAM) and NAM additions to Maxis networks.  So, I may decide to concentrate on Maxis Street intersections (with each other and with other networks) for now.  The diagonal streets in particular needed this treatment since the intersections had nothing.  In fact, Maxis didn't even make a diagonal stop sign prop, but I'm fixing that.  I will also point out that I may not cover railroad crossings at this point, because Jondor has done an impeccably good job on those.
« Last Edit: June 15, 2013, 11:43:55 AM by metarvo »
Find my power line BAT thread here.
Check out the Noro Cooperative.  What are you waiting for?  It even has electricity.
Want more? Try here.  For even more electrical goodies, look here.
Here are some rural power lines.

Offline Gugu3

Re: Metarvo's American T21 Mod
« Reply #10 on: June 15, 2013, 12:18:11 PM »
Great work here Metarvo!

Offline vortext

  • Administrator
  • Forums Guru
  • *
  • Posts: 3364
  • Total likes: 576
  • Reputation: 23
  • CL:
    Street Smarts
Re: Metarvo's American T21 Mod
« Reply #11 on: June 15, 2013, 12:22:46 PM »
Unfortunately, the only way I know of to get the signs to randomly face N/S or E/W is to make separate T21s for the two directions.

Most likely you'll have to fool around kPropertyID_RotationsAllowed. Memo elaborated on N/S & E/W directions here. This thread might be of interest too when it comes to diagonals.
time flies like a bird
fruit flies like a banana

Offline memo

  • NAM Team
  • Forums Parliamentarian
  • *
  • Posts: 1765
  • Total likes: 24
  • Reputation: 34
  • I like onions.
  • CL: RULin' RULin' RULin'
Re: Metarvo's American T21 Mod
« Reply #12 on: June 15, 2013, 01:40:55 PM »
Unfortunately, the only way I know of to get the signs to randomly face N/S or E/W is to make separate T21s for the two directions.

Most likely you'll have to fool around kPropertyID_RotationsAllowed. Memo elaborated on N/S & E/W directions here. This thread might be of interest too when it comes to diagonals.

The OxO street intersection always has the same rotation in the game, so in this case, RotationsAllowed won't have any effect. Making two seperate T21s with different Lot-Layouts is the only way I know of to get the random layouts in the game.

Here are the DxDs.  There is a lot going on here; some intersections are composed of two tiles and therefore two separate T21's are in play.  It may take patience (which I don't always have  ::) ) to get matching T21's on the two tiles.  Otherwise, there's a chance of yield signs, stop signs, all-way stop signs, and traffic lights being mixed on one intersection which is a no-no.

I have just racked my brain on how to solve this issue, but came to the conclusion that there is no ideal solution. My idea was to use offset props to store the entire layout on a single tile, but unfortunately there is no way of knowing whether it is a diagonal T or + intersection.

Offline Simcoug

  • The NUTS
  • Forums Senator
  • *
  • Posts: 646
  • Total likes: 123
  • Reputation: 5
  • Fruit flies like a... What? Who already has that?
Re: Metarvo's American T21 Mod
« Reply #13 on: June 15, 2013, 02:40:40 PM »
So much cool stuff going on right now... It's hard to keep track!  Great work so far!

Offline Swordmaster

Re: Metarvo's American T21 Mod
« Reply #14 on: June 15, 2013, 03:43:01 PM »
Looks great so far!

I assume you would want an IID list for those curve intersections?
[tabular type=0]
[row][data]short curve[/data][data]long curve 1[/data][data]long curve 2[/data][data]s curve[/data][/row]
[row][data]0x5f593f00[/data][data]0x5f592e00[/data][data]0x5f592f00[/data][data]0x5f594300[/data][/row]
[row][data][/data][data][/data][data][/data][data][/data][/row][/tabular]

On a related note, I've been meaning to extend Superhands' retexture mod to include the diagonals and curves. One thing that's been holding it up is that I would ideally transform the diagonal T intersection to use two different tiles.

A little preview:



Would this clash with your approach? It only involves one or two new tiles IIRC.


Cheers
Willy

Offline metarvo

  • NAM Team
  • Forums Guru
  • *
  • Posts: 2233
  • Total likes: 200
  • Reputation: 9
  • Wired up!
  • CL: Power to the
    people!
Re: Metarvo's American T21 Mod
« Reply #15 on: June 15, 2013, 04:29:44 PM »
Thanks for the IID list.  Now I won't have to hunt for those. ( ;D )

It doesn't look like this will affect T21 placement too much as far as the intersections go.  However, I suppose I could always come up with additional T21s if new intersection tiles were included.

By the way, good work!  :thumbsup:  My eyes jumped out a little when I saw those diagonal cul-de-sacs.  I haven't thought about what I would include on cul-de-sacs (as they're not intersections), but I guess some type of dead end signage might work.


I've finally figured out BAB and I'm trying to get signal phases going.  These are still eye-candy to some degree because their phasing has nothing to do with SC4's stop points.  I suppose it wouldn't be that much more effort to just make real ones, but those tend to fail on diagonals and the Sims don't always obey them anyway.  Now, it's more like they'll never obey them.
« Last Edit: June 20, 2013, 09:12:35 AM by metarvo »
Find my power line BAT thread here.
Check out the Noro Cooperative.  What are you waiting for?  It even has electricity.
Want more? Try here.  For even more electrical goodies, look here.
Here are some rural power lines.

Offline Aaron Graham

  • NYBT Team
  • Forums Parliamentarian
  • *
  • Posts: 1027
  • Total likes: 4
  • Reputation: 3
  • Residential Bater
    • NYBT Team Room
  • CL:
    Big Apple Builder
Re: Metarvo's American T21 Mod
« Reply #16 on: June 30, 2013, 01:10:48 PM »
Wonderful work!!!! :D
-Simcity4fan12/Sgt Pepper -Kryptowhite -Jumpthefence -beutelschlurf -Hanson784 -Gwail -Don Miguel -Seraf -Kelistmac -Glenni -Aaron Graham -Vlasky -PBGV103 -Darknono35 -Evillions -lucky7- Parisian- Jackreid -GuerrilaWarfare -Sim Fox -un1 -Heblem -AlexandrosB13 -Anotn -SimHoTToDDy