NetworkOverdraws

From SimsWiki
Jump to: navigation, search
This article is imported from the old MTS2 wiki. You can help Sims2Wiki by cleaning it up. It's original page with comments can be found at http://old_wiki.modthesims2.com/NetworkOverdraws
0x10000001. This is the file which dictates what happens when one network is drawn over a different network. The network building engine calculates how the new network will be laid, as if no other networks were present. Then it looks to see if there are other network tiles of a different network in the way. If they are, it searches for a solution in this file. If none is found, it results in an impossible network draw (red line). The format is as follows:

Maxis' coments:

format
name=roadMajorTypesFlag,streetMajorTypesFlag,textureId,rotation,flip
name is really not used and is just for our reference.
the flag byte order is SENW (I think?)

Translation:

The file is separated into sections by titles in [brackets]. The title has the following format:

[Network1Network2IntersectionSolutions]

Network1 and Network2 are the two networks which are being overlapped. Valid network names are Road, Highway, Street, Rail, Avenue, OneWayRoad, LightRail (which is the el-train), and MonoRail. There must be no spaces or punctuation of any kind in the title.

Within each section, there are lines which describe the tile to place in the case where tiles of network1 and network2 are placed on top of each other, with the defined RUL edge values. The format of these lines is as follows:

name=Network1MajorTypesFlag,Network2MajorTypesFlag,textureId,rotation,flip

textureID = the InstanceID of the resulting transit tile put in this spot rotation = the rotation of the new transit tile flip = the flip of the new transit tile name = doesn't matter, anything is valid.

The format of the 'MajorTypesFlag' entries is the following:

Network1TypesFlag = 0xN1sN1eN1nN1w Network2TypesFlag = 0xN2sN2eN2nN2w

N1=Network1 N2=Network2 s,e,n,w = South, East, North, West

It holds the RUL edge values for each network, which are: 00 - no connection 01 - left at 45degree angle 02 - straight 03 - right at 45degree angle 04 - median

The blends (11, 13, and others for non-road networks) are simply not used in this file. This is because you cannot create intersections between networks at curves, it must be a straight diagonal or orthagonal section of both networks.

There is a small section at the end of the file which reads:

[AllowedOverrides] 1=Road,Street 2=Avenue,Road 3=Avenue,Street 4=Avenue,GroundHighway 5=Highway,GroundHighway 6=OneWayRoad,Road

This controls what networks may be drawn on top of other networks. If the RUL tile sides are the same for both networks, it allows you to replace a tile from the second network mentioned with a tile from the first network mentioned. The only exception to this is that 04 bytes are ignored for streets and roads when drawing avenues over them. I presume this is a hardcoded exception.

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox