[SOLVED] [AIW Issue] Lap count works in DevMode, not when packaged.

Discussion in 'Track Modding' started by FRMracing, Mar 7, 2020.

  1. FRMracing

    FRMracing Registered

    Joined:
    Apr 30, 2017
    Messages:
    36
    Likes Received:
    3
    So the AI works fine in DevMode but when everything is put into a package the AIW appears broken.
    When AI gets to the third sector of the track (Hockenheim '66 btw) the lap counter resets from ~0.7 (or whatever it was) to 0.0 and resumes from 0.0 after crossing the start/finish line. The lap-times are also not being counted for the AI (in SP/MP).
    How do I fix this? I created a fresh AIW & did the process correctly but ran into this after packaging...
     
  2. senormen

    senormen Registered

    Joined:
    Apr 20, 2015
    Messages:
    217
    Likes Received:
    863
    look in the aiw for these entries . . . a few lines below end of garage and pit entries . . .

    lap_length=
    sector_1_length=
    sector_2_length=

    what are the values ?
     
  3. FRMracing

    FRMracing Registered

    Joined:
    Apr 30, 2017
    Messages:
    36
    Likes Received:
    3
    lap_length=6691.000488
    sector_1_length=2998.758545
    sector_2_length=5383.758301
    What happened?
     
  4. senormen

    senormen Registered

    Joined:
    Apr 20, 2015
    Messages:
    217
    Likes Received:
    863
    so that looks fine and it should work . . .

    the issue you describe would have made sense if there was no value for sector 2 length . . .

    you made no changes apart from aiw and it worked before ?
     
  5. FRMracing

    FRMracing Registered

    Joined:
    Apr 30, 2017
    Messages:
    36
    Likes Received:
    3
    Yep, double checked the original track release and it worked, double checked in DevMode & re-packaged twice.
     
  6. senormen

    senormen Registered

    Joined:
    Apr 20, 2015
    Messages:
    217
    Likes Received:
    863
    ok . . . what is the 'trackstate' value a few lines above the sector length values ?
     
  7. FRMracing

    FRMracing Registered

    Joined:
    Apr 30, 2017
    Messages:
    36
    Likes Received:
    3
    Shouldn't s1 + s2 < 6691?
    And trackstate=387
     
  8. senormen

    senormen Registered

    Joined:
    Apr 20, 2015
    Messages:
    217
    Likes Received:
    863
    no but now i see something is defo not right there . . . lap length - s1 + s2 = s3 . . .

    as you see in yours s1 + s2 = more than lap length value so something not right there . . .

    check the sector meshes are facing the right way . . . textured on the side you drive towards . . .
     
  9. Coutie

    Coutie Moderator

    Joined:
    Oct 5, 2010
    Messages:
    2,497
    Likes Received:
    1,304
    Are you missing the xsector2 gmt?
     
  10. FRMracing

    FRMracing Registered

    Joined:
    Apr 30, 2017
    Messages:
    36
    Likes Received:
    3
    Sector meshes? (No idea what or how to check...)
    Side you drive towards? (The inside of the track?)
    Sorry, I guess I'm still fairly new to AIW creation (not really but I keep finding new issues (every dang time))
     
  11. senormen

    senormen Registered

    Joined:
    Apr 20, 2015
    Messages:
    217
    Likes Received:
    863
    is the track on the workshop ?
     
  12. FRMracing

    FRMracing Registered

    Joined:
    Apr 30, 2017
    Messages:
    36
    Likes Received:
    3
    I have XSector2.gmt in the ModDev folder & package.
     
  13. FRMracing

    FRMracing Registered

    Joined:
    Apr 30, 2017
    Messages:
    36
    Likes Received:
    3

    Attached Files:

    • AIW.zip
      File size:
      166.6 KB
      Views:
      23
  14. anaussiejoe

    anaussiejoe Registered

    Joined:
    Dec 15, 2015
    Messages:
    24
    Likes Received:
    28
    I have had this problem before. Not sure if its the fix but worked for me.
    Lap timer didn't work without the WET file for some reason. Have no idea why it wouldn't work without it.
     
  15. FRMracing

    FRMracing Registered

    Joined:
    Apr 30, 2017
    Messages:
    36
    Likes Received:
    3
    I have a .wet file that I renamed but I'm not sure if it's referenced in any other files. It's currently got the same name as the .scn .aiw .gdb etc... If it's referenced somewhere lmk.
     
  16. senormen

    senormen Registered

    Joined:
    Apr 20, 2015
    Messages:
    217
    Likes Received:
    863
    is there a possibility you have mixed up xsector files from short layout ?
     
  17. FRMracing

    FRMracing Registered

    Joined:
    Apr 30, 2017
    Messages:
    36
    Likes Received:
    3
    I don't think I'm using the incorrect xsector files / layout. I'm using the files from Hocke_F3GP67.mas not Hocke_F3CT67.mas as I assume GP is Grand Prix as in F1 and CT being something else...
     
  18. senormen

    senormen Registered

    Joined:
    Apr 20, 2015
    Messages:
    217
    Likes Received:
    863
    that seems right . . .

    only thing i can think is to develop the aiw a little more . . .

    add aux positions . . . teleport pos . . . right and left paths . . . etc . . .
     
  19. FRMracing

    FRMracing Registered

    Joined:
    Apr 30, 2017
    Messages:
    36
    Likes Received:
    3
    Haven't had to add aux/teleport pos to the last 3 AIWs I did... I think I'm just gonna redo the entire AIW again from the mainline & on -_-
     
  20. FRMracing

    FRMracing Registered

    Joined:
    Apr 30, 2017
    Messages:
    36
    Likes Received:
    3

Share This Page