The TORCS Racing Board
Username: Password: Remember Me?
Lost Password Register
Author: wdbee | Created: 2017-10-03 08:21:26
Subject: E-Track-2 - USR does not compile
Hi All

The downloaded usr for E-Track-2 does not compile here. There are a lot of missing definitions like
1>.\raceline.cpp(98) : error C2065: 'm_pTrack' : undeclared identifier
and
1>.\linemode.cpp(58) : error C2039: 'GetTransitionIncrement' : is not a member of 'LLineMode'
or
1>.\driver.cpp(442) : error C2039: 'UpdateSituation' : is not a member of 'LLineMode'.

AFAICS axiom was changed to another robot and includes unused code files.

Wolf-Dieter


Last Edited: 2017-10-03 08:21:26 by wdbee
    Author: dummy | Created: 2017-10-03 08:28:40
    Subject: Re: E-Track-2 - USR does not compile
    Yes, many errors here as well. Maybe old files in it. Axiom works however.
    Last Edited: 2017-10-03 08:29:15 by dummy
      Author: firechief | Created: 2017-10-03 13:47:21
      Subject: Re: E-Track-2 - USR does not compile
      Ok that's very very odd. Looks like I've well and truly screwed up again :\

      Its meant to be identical to Axiom apart from vardef.h which has the name of the robot on line 26. The existing usr_2017.cpp should be fine, and obviously axiom_2017.cpp isn't required for the usr robot.

      Axiom should be a USR bot now, not a mouse derivative. Assuming that's the case, you could copy its .cpp and .h files across to usr_2017, change the line in vardef.h, and it should compile. Or ... you could just leave it out of the results, its up to you really.

      Axiom does have a few old files - opponent2.cpp, racelineX.cpp/h - but they're not included in the build & shouldn't be there for the next race.
      Last Edited: 2017-10-03 13:56:59 by firechief
        Author: dummy | Created: 2017-10-03 15:57:35
        Subject: Re: E-Track-2 - USR does not compile
        IMHO it would be best to put the normal version of USR on Google drive.
        Last Edited: 2017-10-03 15:57:35 by dummy
          Author: firechief | Created: 2017-10-03 17:07:33
          Subject: Re: E-Track-2 - USR does not compile
          Yes you're right - here it is...

          https://drive.google.com/open?id=0B1o-3uUT0rrcRGhpMVBqTHU1d2c
          Last Edited: 2017-10-03 17:07:33 by firechief
            Author: dummy | Created: 2017-10-03 18:53:35
            Subject: Re: E-Track-2 - USR does not compile
            Thanks, it's looking good now. At least the first lap I tested ;)
            Last Edited: 2017-10-03 18:53:35 by dummy