[ Midtown Madness 2 Central ] [ Midtown Madness 2 Central ]

Midtown Madness 2 Central > City Editing > [RTI] Pathsets: Basic file format
Goto page Previous  1, 2, 3, 4, 5, 6
View previous topic | View next topic
Author
Message Post new topicReply to topic
BoosterMM
Making mm2 tracks

Joined: 12 Sep 2002
Posts: 713
Location: Spain (Espaņa)

Status: Offline


Post subject: Reply with quote

I'm not following deeply this about prop types but maybe that's the reason because I couldn't create paths for hookmen. Maybe they should be "lines strip" and if I'm not wrong City Edit can only create "directed points"
_________________
In the time you smoke a cigarette, 3 people die in the world working.

So, don't smoke, and don't work Very Happy
Post 02 Oct 2005 07:04 pm
View user's profile Send private message Visit poster's website MSN Messenger
Maxoff
MM2C Addict

Joined: 11 Nov 2004
Posts: 560
Location: Poland

Status: Offline


Post subject: Reply with quote

fre_ber wrote:
why don't you do it?

I'll do it, but not in this week.

fre_ber wrote:
hope that you don't mind me posting your PM in public like this

No problem Smile

BoosterMM wrote:
Maybe they should be "lines strip" and if I'm not wrong City Edit can only create "directed points"

Yes, you are right, City Edit creates only type 1.

I've changed implementation in MM2CT and it seems to work well. Both type 0 and 1 are displayed correcly. So we need new names for that types Smile
_________________
... You only have to know how to prepare query, google will do the rest ...
... My software ...
... Guide to Punctuation ...
Post 02 Oct 2005 08:06 pm
View user's profile Send private message Visit poster's website
Maxoff
MM2C Addict

Joined: 11 Nov 2004
Posts: 560
Location: Poland

Status: Offline


Post subject: Reply with quote

My version of specification Smile

Code:
struct Pathset
{
    char[4] id = "PTH1";
    ulong nPaths;    // Number of paths in this pathset
    ulong unknown0;
    struct Path paths[nPaths];
}

struct Path
{
    char[32] name;    // Name of object or texture, padded with 0x00
    ulong nPoints;    // Number of points in this path
    ulong unknown1;
    struct Point points[nPoints];
    uchar type;       // See definition below
    uchar spacing;    // Spacing of props placed between the points in
                      // units of 1/4 metres (spacing = (ulong)(metres * 4))
    ushort unknown3;
}

struct Point
{
    ulong unknown2;
    float x;
    float y;
    float z;
}


Props can be placed using three different methods. The type of path is defined by the type parameter. Values are as follows:

    0 - Single Points
    1 - Directed Points
    2 - Line strip
0 (Single Points) - it's a list of object positions, one point = one position, you cannot control object direction. Spacing seems to be ignored.
Example: treepalm in SF (index: 6 on the props list).

1 (Directed Points) - the point list is a sequence of point pairs. The first point is the position of the prop and the second defines the direction of one of the local coordinate axis. Object can ONLY be rotated around Y-axis and the angle is determined by vector between two points. Spacing seems to be ignored.
Example: sp_transbayexit_f in SF (index: 46 on the props list)

2 (Line Strip) - the sequence is no longer a list of pairs. Instead the points 0 and 1 defines the first line segment, just as in the previous type, but the next line segment is defined by point 1 and 2, the next by point 2 and 3 and so on. Each line segment is filled with props, spaced by the spacing parameter.
Example: sp_tree1_s in SF (index: 10 on the props list)
_________________
... You only have to know how to prepare query, google will do the rest ...
... My software ...
... Guide to Punctuation ...
Post 07 Oct 2005 11:21 am
View user's profile Send private message Visit poster's website
aaro4130
MM2C Maniac

Joined: 22 Feb 2009
Posts: 233
Location: At my laptop (hooked up to a monitor, keyboard, mouse, and speakers)

Status: Offline


Post subject: Reply with quote

Article Now In Wiki :

http://mm2carking.mmarchive.com/viewpage.php?page_id=1
Post 23 Sep 2010 02:29 pm
View user's profile Send private message Yahoo Messenger MSN Messenger
Busdude666
MM2C Maniac

Joined: 11 May 2010
Posts: 486
Location: Manchester, United Kingdom

Status: Offline


Post subject: Reply with quote

That was a very big bump but at least it was constructive/helpful and related to the topic. :/
Post 23 Sep 2010 02:43 pm
View user's profile Send private message
carking1996
MM2C Too Much

Joined: 12 Aug 2009
Posts: 608
Location: United States

Status: Offline


Post subject: Reply with quote

Aaro, make sure to post who the original author is. Wink
_________________
Post 23 Sep 2010 07:48 pm
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous: Post new topicReply to topic

Page 6 of 6 All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Home - MM2C.com - Contact - Staff & Seniors - FAQ - Community Rules - Syndication


Powered by phpBB © 2001, 2005 phpBB Group