• Welcome to SC4 Devotion Forum Archives.

Pathing Files for network

Started by SimFox, April 21, 2009, 04:55:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SimFox

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?

choco

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.


Blue Lightning

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
Also known as Wahrheit

Occasionally lurks.

RHW Project

Jonathan

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

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

SimFox

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...