gMaterial tool script

Discussion in 'Track Modding' started by Mario Morais, Mar 9, 2012.

  1. ethone

    ethone Registered

    Joined:
    Nov 30, 2011
    Messages:
    1,153
    Likes Received:
    37
    CenterLine = 1st main path?
     
  2. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    yes . the main.
     
  3. les

    les Registered

    Joined:
    Jan 19, 2012
    Messages:
    256
    Likes Received:
    1
    i downloaded the new version but mine still slows version 1.1
     
  4. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169

    hoo sorry... i forget to change the about text... but if you see "Import Center Line " is 1.2a
     
  5. les

    les Registered

    Joined:
    Jan 19, 2012
    Messages:
    256
    Likes Received:
    1
    yep figured that out thank you for this great tool now if there was a script for billboard trees we would have it made
     
  6. Bink

    Bink Registered

    Joined:
    Nov 20, 2011
    Messages:
    523
    Likes Received:
    2
    ..
     
    Last edited by a moderator: Oct 18, 2013
  7. les

    les Registered

    Joined:
    Jan 19, 2012
    Messages:
    256
    Likes Received:
    1
    hey mario i dont know if this is the right place to ask, since you can export the fast line and centerline with your tool is there a way with a script to import the lines into an aiw file it would make it so much easier to edit the aiw lines in max, then import them back into the aiw file ?? by the way your tool is great
     
  8. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    writing is not as easy as reading the lines .. but maybe it makes the attempt
     
  9. ethone

    ethone Registered

    Joined:
    Nov 30, 2011
    Messages:
    1,153
    Likes Received:
    37
  10. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    What AIW you try to import? can attach to see.
     
  11. ethone

    ethone Registered

    Joined:
    Nov 30, 2011
    Messages:
    1,153
    Likes Received:
    37
  12. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Ok i found the problem.
    Not found "wp_path="
    your AIW is from rfactor2 right? your AIW is "wp_pathinfo2="

    I must change same things..
     
  13. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169

    Done :)

    Go to line 263 find=skipToString file "wp_path="

    and change to

    And thanks for the bug report
     
  14. ethone

    ethone Registered

    Joined:
    Nov 30, 2011
    Messages:
    1,153
    Likes Received:
    37
    Thanks, that allowed me to import the AIW.
    After importing though I get two identical splines CenterLine and FastPath, which look like they're just the CenterLine.

    It is a rF2 AIW and it works fine in the sim. I laid down the pit path differently than the usual rF1 process to make it work properly but that shouldn't affect the Path IDs, should it?
     
  15. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Ethone try to drive new fast path quite different from the center to see the new AIW.


    today I saw more calmly, and noticed that there are three "wp_pathinfo2="

    I need more information about the new AIW format.

    Maybe someone from ISI can tell me where can find the new AIW description..
     
    Last edited by a moderator: Mar 25, 2012
  16. ethone

    ethone Registered

    Joined:
    Nov 30, 2011
    Messages:
    1,153
    Likes Received:
    37
    I'm not a AIW text editing guru, but I think the info you want is in the WP_BranchID variable. The different paths have different IDs (Main/CenterLine, Pit and I suppose FastLine as well).
     
  17. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Version 1.3
    +Better AIW import thanks to MonSum
    +Fix Smooth ( put all geometry in group 1 and separate Elements)
    based on the script alex
    + Copy map Channel to others
     
  18. les

    les Registered

    Joined:
    Jan 19, 2012
    Messages:
    256
    Likes Received:
    1
    i put the new file in the startup folder now it wont show when i try to run the script nothing shows up
     
  19. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Now is a macroscript read first post
     
  20. les

    les Registered

    Joined:
    Jan 19, 2012
    Messages:
    256
    Likes Received:
    1
    i got it working after reading thank you
     

Share This Page