SC4 Devotion Forum Archives

SimCity 4 Devotion Custom Content Showcase => Network Addon Mod (NAM) => NAM How-Tos and Tutorials => Topic started by: SimFox on April 21, 2009, 04:55:02 PM

Title: Pathing Files for network
Post by: SimFox on April 21, 2009, 04:55:02 PM
Can anyone knowledgeable in the matter, please, explain how can one identify which pathing file out of huge number of them found in simcity_1.dat is related to what Network and to what piece of the given network?
Title: Re: Pathing Files for network
Post by: choco on April 21, 2009, 05:25:23 PM
the path file is identified by the IID of the respective piece.....

the path type is usually in the file header....

-- car_1_3_a
1
1
1
3
0
2
2.5,8,0
2.5,-8,0


here is nothing more than a car path.....could be road, street, RHW2, etc.  easiest way is to find the puzzle piece you are addressing, get the IID, then filter the IID to find all associated files of said piece.

Title: Re: Pathing Files for network
Post by: Blue Lightning on April 21, 2009, 05:31:57 PM
The paths can be found referenced in the Individual Network RULs (0x00000018-0x00000001)

The header tells you what network it regards. You don't need to know about the #Transmorgify# RULs. RUL 0x0000000C is a RUL that regards subway, pipe, or powerline. 0x00000009 is the main road RUL i belive. To read the RULs, here is a little guide:

#RoadRules#   <-- File declearation
1,00,00,00,00  <-- the direction flags; NSEW. 00 = no connection; 1 = diag? 2 = straight 3 = diag? 4 =  median
3,0,0x00000100,0,0 <-- 3 = rotation (0-3) 0 = mirror? HEX = IID of texture/model/path.
1,00,00,00,01  <-- next item, etc
3,0,0x05000200,0,0
1,00,00,00,02
3,0,0x05000300,0,0
Title: Re: Pathing Files for network
Post by: Jonathan on April 21, 2009, 11:24:01 PM
Can I just make a slight correct to Vince's post?
Quote#RoadRules#   <-- File declearation
1,00,00,00,00  <-- the direction flags; NSEW. 00 = no connection; 1 = diag? 2 = straight 3 = diag? 4 =  median
3,0,0x00000100,0,0 <-- 3 = Type(ignore this to find the path*) 0 = Labelled X(ignore this as well*) HEX = IID of texture/model/path. 0=Rotation 0=mirror
*If you want to know what these do look on the wiki here (http://www.wiki.sc4devotion.com/index.php?title=Network_Specs/Individual_Network_RULs)

Here is a list of all the indivual Network RULs(or Transmorgify RULs)
    * 0x0000001 - Elevated Highway Basic RUL
    * 0x0000002 - Elevated Highway Advanced RUL
    * 0x0000003 - Subway Basic RUL
    * 0x0000004 - Subway Advanced RUL
    * 0x0000005 - Rail Basic RUL
    * 0x0000006 - Rail Advanced RUL
    * 0x0000007 - Road Basic RUL
    * 0x0000008 - Road Advanced RUL
    * 0x0000009 - Street Basic RUL
    * 0x000000A - Street Advanced RUL
    * 0x000000B - Pipe Basic RUL
    * 0x000000C - Pipe Advanced RUL
    * 0x000000D - Avenue Basic RUL
    * 0x000000E - Avenue Advanced RUL
    * 0x000000F - Elevated Rail Basic RUL
    * 0x0000010 - Elevated Rail Advanced RUL
    * 0x0000011 - One-Way Road Basic RUL
    * 0x0000012 - One-Way Road Advanced RUL
    * 0x0000013 - RHW ("Dirt Road") Basic RUL
    * 0x0000014 - RHW ("Dirt Road") Advanced RUL
    * 0x0000015 - Monorail Basic RUL
    * 0x0000016 - Monorail Advanced RUL
    * 0x0000017 - Ground Highway Basic RUL
    * 0x0000018 - Ground Highway Advanced RUL

You should only have to look in the Basic RUL Files though.
Also you can tell by the first 2 digits of the IID what network the path belongs to:
0x00 = Road
0x02 = El-Highway
0x03 = Rail
0x04 = Avenue
0x05 = Street
0x06 = Subway
0x08 = El-Rail
0x09 = OWR
0x0D = Monorail
0x0A = Ground Highway(??)

But the Path will have the same IID as the texture or model, so you can tell what network and piece just by looking at them.

Jonathan
Title: Re: Pathing Files for network
Post by: SimFox on April 23, 2009, 03:09:42 AM
Guys! thank you very much for your help! You were most informative.

I'm trying to cook-up sort of "enabler" mod for pedestrian malls. They are great idia but are left sort of dysfunctional by the fact that there are no connections to other networks...