Menu

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

Author Topic: How to create T21 exemplars (Swamper77's way)  (Read 31351 times)

0 Members and 1 Guest are viewing this topic.

Offline MIncroabl

  • Forums Councilmember
  • *
  • Posts: 99
  • Total likes: 2
  • Reputation: 2
  • "Kukapa olisi uskonut?"
Re: How to create T21 exemplars (Swamper77's way)
« Reply #20 on: January 09, 2008, 03:15:16 AM »
That's right. Essentially, you cannot combine two T21s so that both of them appear in the same tile. If you want to have the props of two different T21s appear on the same tile, you have to create a new T21 with all the props of both. If they all appear on the same tile, one of them is picked randomly.

Offline Diggis

Re: How to create T21 exemplars (Swamper77's way)
« Reply #21 on: January 09, 2008, 03:31:55 AM »
OK cool, that makes sense now.  I was confused by the answers that Andreas and Memo gave.

Offline Rabbyt

Re: How to create T21 exemplars (Swamper77's way)
« Reply #22 on: January 11, 2008, 11:20:57 PM »
Interesting:

So it seems possible that a somewhat random occurrence of three props [say a fire hydrant, fire hydrant with dog, and a trash can] can be created by having three T21 exemplars for a tile. One for each prop but identical otherwise, say every fourth square occurrence. The probability in this example being 33% that a trash can shows up every 4th square. But if we wanted both the trash can and the hydrants to be seen together in the mix we would need two more T21s one for a prop of a hydrant with dog and trash can together and another T21 for a prop of hydrant and trash can together. This would now give the trash can only a 20% chance of occurring all by itself on every 4th square.

yes, no, maybe?

This might be useful, if it works the way I perceive it to, for mixing up a series of parking zones in a commercial area. Some with normal meters, signs for delivery zones, handicap reserved meters, taxi stands, etc.

Rabbyt

Offline Diggis

Re: How to create T21 exemplars (Swamper77's way)
« Reply #23 on: January 12, 2008, 04:53:20 AM »
Yup that is how I understand it, but obviously you would create a few different tiles and let the game do all the work.

Offline jeronij

Re: How to create T21 exemplars (Swamper77's way)
« Reply #24 on: January 12, 2008, 08:29:05 AM »
This is the way the Street Side Mod works, and it works  ;D ¡¡¡
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 memo

  • NAM Team
  • Forums Parliamentarian
  • *
  • Posts: 1765
  • Total likes: 24
  • Reputation: 34
  • I like onions.
  • CL: RULin' RULin' RULin'
Re: How to create T21 exemplars (Swamper77's way)
« Reply #25 on: January 19, 2008, 04:24:11 PM »
Andreas requested some more examples of NetworkPlacementPatterns with their appropriate Properties. Here you are, my friend! ;)

In these following cases, the PatternSize is always 0x04. This pattern is always repeated every 4 tiles.
White stands for tiles where the props shall not appear, black stands for tiles where they shall appear. Next to the particular picture are the appropriate values for the NetworkPlacementPattern-Property.

0x00,0x00,0x00,0x00 No props will appear, so this doesn't make sense, obviously. ;)

0x01,0x00,0x00,0x00

0x05,0x00,0x05,0x00 This one can be used for diagonals, where the props shall only appear on every 2nd (or 4th??) tile.

0x05,0x0a,0x05,0x0a This one is for orthogonals, where the props shall appear on every 2nd tile, but shifted in each row.

0x0a,0x05,0x0a,0x05 This one is for every other 2nd tile, e.g. if you want to have street lights on every 2nd tile and tree-props on the remaining pieces.

0x03,0x03,0x00,0x00

0x03,0x03,0x0c,0x0c

0x0f,0x0f,0x0f,0x0f Mostly, you need to use this one because it makes the props appear on every tile.


Now some examples on rotation-dependent layouts.

0x0F,0x00,0x0F,0x00 This one makes the props appear on every 2nd tile and parallel side by side. However, this should only be used for North-South directions in orthogonal. So the Property RotationsAllowed must be 0x05.

0x05,0x05,0x05,0x05 Then you'll also need this one for East-West directions. The Property RotationsAllowed must be 0x0A.

0x0A,0x0A,0x0A,0x0A Or perhaps this one for every other 2nd tile in the direction East-West. The Property RotationsAllowed is 0x0A.


Now some notes on mirroring.
In most cases, when mirrored pieces and their prop layout look the same, just mirrored, the Property FlipsAllowed is 0x00.
If the mirrored prop layout of the tile differentiates from the non-mirrored one, the flipped T21-Exemplar must have the Property FlipsAllowed 0x01; the non-flipped one has 0x00.
For instance this is the case, if the non-flipped tile must have traffic lights, but the flipped one not.

Something else that is important, in order that the props appear on flipped tiles, is that the Exemplar files of the props refer to non-flipped models as well as to flipped models. Usually, the latter is not the case though. So you have to modify the exemplar file that links to the models of the props. It could look like this one, for example:



You have to copy the Property "ResourceKeyType1" and paste it into the same Exemplar file. Then open the pasted property via double-click and change the "name" by clicking on the arrow next to it. Change it to "ResourceKeyType1xm". Hit Apply and Reindex LotConfig. The exemplar may look like this one then:



Possibly, additional changes to the prop layout are needed. I'm sorry, I don't know, since I didn't test this. However, a T21-Exemplar that can be flipped doesn't necessarily have to have the Property FlipsAllowed set to 0x01 and another T21 set to 0x02. Since 0x00 as FlipsAllowed-Property can refer to both, it may be sufficient.

Anyway, I hope all this was somehow helpful to anyone. ;)

Offline Andreas

  • Administrator
  • Forums Legend
  • *
  • Posts: 4775
  • Total likes: 987
  • Reputation: 33
    • SimCityPlaza
  • CL: ()bobby() Transit Controller
Re: How to create T21 exemplars (Swamper77's way)
« Reply #26 on: January 19, 2008, 06:08:46 PM »
Thanks memo, I think this will be very helpful indeed - I mainly got confused because of those Network Placement Patterns and how to translate them into the actual prop layout. I'll give it another go tomorrow or so. :)
Andreas

Offline buddybud

Re: How to create T21 exemplars (Swamper77's way)
« Reply #27 on: February 01, 2008, 05:16:28 AM »
wow...thanx this will help alot. i new how to manipulate but i had no idea what the results would be.

a big thanx :thumbsup:

Offline Nique

  • CityMania Development Team
  • Forums Governor
  • *
  • Posts: 288
  • Total likes: 0
  • Reputation: 6
  • The dutch will do it ;)
Re: How to create T21 exemplars (Swamper77's way)
« Reply #28 on: March 19, 2008, 08:18:49 AM »
I can only find a couple of RWH textures, not all of them. Just one with a road:



Im just looking for that straight piece ..
Proudly developer of

Offline jplumbley

  • NHP Team
  • Forums Parliamentarian
  • *
  • Posts: 1438
  • Total likes: 13
  • Reputation: 43
  • "RULer 10000002"
  • CL: Plum Fierce
Re: How to create T21 exemplars (Swamper77's way)
« Reply #29 on: March 20, 2008, 12:21:26 AM »
I can only find a couple of RWH textures, not all of them. Just one with a road:



Im just looking for that straight piece ..

There are quite literally a few hundred textures for RHW in the RHW Plugin.  You must look through the DAT that is installed when you download RHW.
"You learn something new everyday."

http://img517.imageshack.us/img517/169/nhpjplumbleykv3.gif
Bringing the new horizons closer to reality.

Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dmscopio jplumbley ♦ moganite ♦ M4346 ♦ Dedgren ♦ Ennedi Shadow Assassin ♦  Tarkus ♦ wouanagaine
  Street Addon Mod - SAM

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: How to create T21 exemplars (Swamper77's way)
« Reply #30 on: April 03, 2008, 08:54:38 AM »
One question about T21-exemplars: Where does every number stand for in the LotConfigPropertyLotObjectData?
I got it this far:

- No. 1: Prop or Flora
- No. 3: Rotation
- No. 13 or higher: The IID's of the objects that are placed on the network.

Thanks in advance,
MRTNRLN
Lurk mode: ACTIVE

Offline RippleJet

Re: How to create T21 exemplars (Swamper77's way)
« Reply #31 on: April 03, 2008, 09:16:06 AM »
Here's the full specification for the LotConfigPropertyLotObject:

http://www.modthesims2.com/wiki.php?title=LotConfigPropertyLotObject

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: How to create T21 exemplars (Swamper77's way)
« Reply #32 on: April 04, 2008, 08:50:19 AM »
Thanks :thumbsup:
It's very usefull for me
Lurk mode: ACTIVE

Offline Tarkus

  • Administrator
  • Forums Legend
  • *
  • Posts: 11468
  • Total likes: 5048
  • Reputation: 73
  • NAM Team Tankadillo
    • NAM HQ
  • CL: Dr. PuzzlePiece
Re: How to create T21 exemplars (Swamper77's way)
« Reply #33 on: April 06, 2008, 12:28:45 AM »
Tage, thanks for the link--I had been wondering about manually messing around with those values, so this will be very useful! :thumbsup:

-Alex (Tarkus)

Offline Jonathan

  • NAM Team
  • Forums Guru
  • *
  • Posts: 2609
  • Total likes: 5
  • Reputation: 25
  • CL: Einstein, Jr. &scl()
Re: How to create T21 exemplars (Swamper77's way)
« Reply #34 on: April 14, 2008, 05:00:32 PM »
Is there some way to rotate the whole T21, so if I have a box in the bottom left corner and rotate it 180 degrees (rotation 2?) it will be facing the other way in the top right corner?

Offline Starmanw402007

Re: How to create T21 exemplars (Swamper77's way)
« Reply #35 on: April 27, 2008, 11:33:39 PM »
What type of Roads are those in the photo? I know they are RHWs but what kind?
Your Friend;
Mayor Of Steven's Point & Maxiston
(Proud To Be Cities Of Sim Nation!)

Offline Nique

  • CityMania Development Team
  • Forums Governor
  • *
  • Posts: 288
  • Total likes: 0
  • Reputation: 6
  • The dutch will do it ;)
Re: How to create T21 exemplars (Swamper77's way)
« Reply #36 on: January 29, 2009, 12:07:43 AM »
( i have made it more readable for myself, but here it is, thanks anyway )

Quote
  • Save a copy of one of the simple park lots the game has (either the grass lot or the cement lot)
  • Now exit and load the lot in the Reader.
  • Locate the network lot that you wish to edit. This is easily done by loading the SimCity_1.dat file from the section labeled "SimCity DAT" in the left pane and opening the Exemplar Analyzer (magnifying glass with "EX" on it). Under "Filter", have only "21 Network Lots" selected. Close the Filter Dialog Window and click "Search". After a brief moment, you should have a list of items. Now, click the "Lot" button and then click one of the items in the list. The Lot Window will show you what the textures for that network tile are, so you can see what texture the props are being placed on.
  • Once you find the network lot you want, select all the "LotConfigPropertyObject" Lines. These are the props/flora that appear on that tile. Copy them to your lot you saved in earlier in the Lot Editor and then select "Re-Index LotConfig". This last command will make sure the lot displays properly when you go back to the Lot Editor to edit it. Save your lot and quit the Reader.
  • Load your lot in the Lot Editor and arrange the props as you prefer. NOTE: The images you saw in the Lot Viewer in the Reader are actually 180 degrees to the actual network tile. Keep this in mind as you place the props on the lot. I build a mock-up of the network tile with the default overlays to represent the roadway of the particular tile I'm working with.
  • After you have arranged your props to your liking, save and quit LE and open the lot in the Reader. Also relocate the network tile from the SimCity_1.dat file as before. Write down the number of the exemplar (the Instance ID or the FilePosition number). Now locate the number in the SimCity_1.dat file. If you wrote down the Instance ID, use the GoTo command (CRTL+G) and enter the Instance ID number into the dialog. Otherwise, you will have find the file manually as the GoTo command doesn't locate files by their number.
  • Once you have located the file, copy it to a blank DAT file. Save this new DAT file with a name that you will be able to recognize, incase you need to delete it later.
  • Now, delete the "LotConfigPropertyObject" lines from the network lot and copy the properties from your lot to this network lot. Lines starting with "0x00000001" or "0x00000004" are the only ones that can be on network lots. The others won't work. 0x00000001 lines are props and 0x00000004 lines are flora.
  • Re-Index the LotConfig and then save and exit the Reader.
  • Run the game and test out your customized network lot.

A few things to note:
  • Network Lots can be setup to appear in certain zones at certain wealth levels. (Charts below).
  • If you don't want to replace an existing network tile, assign a unique Instance ID to the following: the Exemplar's Instance ID and the property "Exemplar ID". The property "kPropertyID_LotConfigNetworkTileID" determines which network texture/model this exemplar will appear on.
  • The tiles seem to be chosen at random when multiple network tiles are assigned to the same texture/model. Keep clicking with the network tool and yours should show up eventually.

Zone Mappings:
0x00=None
0x01=Low Density R
0x02=Medium Density R
0x03=High Density R
0x04=Low Density C
0x05=Medium Density C
0x06=High Density C
0x07=Agriculture/Farming
0x08=Medium Density I
0x09=High Density I
0x0A=Military
0x0B=Airport
0x0C=Seaport
0x0D=Spaceport
0x0E=Landfill
0x0F=Civic/Plopped

Wealth Mappings:
0x00=None
0x01=Low
0x02=Medium
0x03=High
« Last Edit: January 29, 2009, 12:19:16 AM by Nique »
Proudly developer of

Offline buddybud

Re: How to create T21 exemplars (Swamper77's way)
« Reply #37 on: February 17, 2009, 06:38:44 PM »
I made this for xylo but thought it could help others also...Here's what each rep does from 00 to 0F for the kPropertyID_NetworkPlacementPattern.

« Last Edit: February 17, 2009, 06:43:59 PM by buddybud »

Offline sithlrd98

Re: How to create T21 exemplars (Swamper77's way)
« Reply #38 on: February 17, 2009, 06:55:48 PM »
Extremely helpful Buddy!

Jayson

Offline Xyloxadoria

  • NAM Team
  • Forums Councilmember
  • *
  • Posts: 124
  • Total likes: 1
  • Reputation: 4
  • Random Transit Modder
Re: How to create T21 exemplars (Swamper77's way)
« Reply #39 on: February 22, 2009, 02:51:25 PM »
I made this for xylo but thought it could help others also...Here's what each rep does from 00 to 0F for the kPropertyID_NetworkPlacementPattern.



And heres what i used it for
http://sc4devotion.com/forums/index.php?topic=7049.msg224353#msg224353

Its more extensive than the original tutorial posted here, and has everything i know about T21ing in it.