How to make a robot drive a car

Use this forum to report bugs or ask for help

Moderator: kilo

Re: How to make a robot drive a car

Postby chad3006 » Fri Nov 08, 2019 5:25 pm

I've since solved this problem, but mostly I wanted to bump this thread for someone.
User avatar
chad3006
 
Posts: 237
Joined: Mon Aug 13, 2012 7:56 pm
Location: USA

Re: How to make a robot drive a car

Postby chad3006 » Fri Nov 08, 2019 5:30 pm

Essentially you modify the existing "Simplix.xml" to add other cars (found the the data/drivers) path in the game's directory. There is essentially two changes, setting up the first part allows for the different liveries (numbers) and the second part at the bottom includes the car's path or something like that. Pay attention to the incremental numbers that act something like headers for each car. Oh, and make a backup of your original simplix.xml, just in case you break it beyond repair.
User avatar
chad3006
 
Posts: 237
Joined: Mon Aug 13, 2012 7:56 pm
Location: USA

Re: How to make a robot drive a car

Postby leillo1975 » Fri Nov 08, 2019 5:30 pm

chad3006 wrote:I've since solved this problem, but mostly I wanted to bump this thread for someone.



Thanks a lot. I will take a look
User avatar
leillo1975
 
Posts: 64
Joined: Tue Jul 11, 2017 8:14 am

Re: How to make a robot drive a car

Postby chad3006 » Fri Nov 08, 2019 5:37 pm

Oh, and it's helpful to use a text editor that can color code the different elements in the XML file for you. I use Geany (https://www.geany.org/download/releases/) but there are others that work well too.
User avatar
chad3006
 
Posts: 237
Joined: Mon Aug 13, 2012 7:56 pm
Location: USA

Re: How to make a robot drive a car

Postby leillo1975 » Fri Nov 08, 2019 11:43 pm

I try it a couple of times, but it don't work. Can you post the code of a modified data/drivers/simplix/simplix.xml file?
As I see in another mesage that is needed to create two folders, one with the name of the car, and other with the number used in XML. Is this right?
User avatar
leillo1975
 
Posts: 64
Joined: Tue Jul 11, 2017 8:14 am

Re: How to make a robot drive a car

Postby leillo1975 » Sat Nov 09, 2019 5:19 pm

I try it again, but it don' t work. This is the content of my modified simplix.xml file:

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!--
    file          : simplix.xml
    created       : 07 Mar 2008
    last modified : 16 Dec 2008
    copyright     : (C) 2008 Wolf-Dieter Beelitz
-->

<!--    This program is free software; you can redistribute it and/or modify  -->
<!--    it under the terms of the GNU General Public License as published by  -->
<!--    the Free Software Foundation; either version 2 of the License, or     -->
<!--    (at your option) any later version.                                   -->

<!DOCTYPE params SYSTEM "../../libs/tgf/params.dtd">

<params name="simplix" type="robotdef">
  <section name="Robots">
    <section name="index">

      <section name="0">
        <attstr name="name" val="Simplix"></attstr>
        <attstr name="short name" val="Simplix"></attstr>
        <attstr name="code name" val="SIM"></attstr>
        <attstr name="desc" val="simplix: car1"></attstr>
        <attstr name="team" val="simplix"></attstr>
        <attstr name="author" val="Wolf-Dieter Beelitz"></attstr>
        <attstr name="car name" val="trb1-cavallo-360rb"></attstr>
        <attnum name="race number" val="1"></attnum>
        <attnum name="red" val="1.0"></attnum>
        <attnum name="green" val="0.3"></attnum>
        <attnum name="blue" val="0.3"></attnum>
      </section>

    </section>
    <section name="arbitrary cars">
      <attstr name="team" val="simplix"></attstr>
      <attstr name="author" val="Wolf-Dieter Beelitz"></attstr>
      <attstr name="car name" val="trb1-cavallo-360rb"></attstr>
      <attnum name="race number" val="1"></attnum>
      <attnum name="red" val="1.0"></attnum>
      <attnum name="green" val="0.3"></attnum>
      <attnum name="blue" val="0.3"></attnum>
      <attstr name="features" val=""></attstr>
      <section name="cars">
        <section name="1">
          <attstr name="car name" val="trb1-cavallo-360rb" />
        </section>
        <section name="2">
     <attstr name="car name" val="ls1-archer-r9" />
        </section>
        <section name="3">
     <attstr name="car name" val="ls1-cavallo-570s1" />
        </section>
        <section name="4">
     <attstr name="car name" val="ls1-newcastle-fury" />
        </section>
        <section name="5">
     <attstr name="car name" val="ls1-taipan-ltsr" />
        </section>
        <section name="6">
     <attstr name="car name" val="ls1-toro-rgt" />
        </section>
        <section name="7">
     <attstr name="car name" val="ls1-vulture-v6r" />
        </section>
        <section name="8">
     <attstr name="car name" val="ls1-zentek-z7r" />
        </section>
        <section name="9">
     <attstr name="car name" val="sc-boxer-96" />
        </section>
        <section name="10">
     <attstr name="car name" val="sc-cavallo-360" />
        </section>
        <section name="11">
     <attstr name="car name" val="sc-fmc-gt4" />
        </section>
        <section name="12">
     <attstr name="car name" val="sc-lynx-220" />
        </section>
        <section name="13">
     <attstr name="car name" val="sc-murasama-nsx" />
        </section>
        <section name="14">
     <attstr name="car name" val="sc-spirit-300" />
        </section>
         <section name="15">
      <attstr name="name" val="Leo Vergara"></attstr>
      <attstr name="short name" val="L. Vergara"></attstr>
      <attstr name="code name" val="LEO"></attstr>
      <attstr name="desc" val="simplix: car1"></attstr>
      <attstr name="team" val="Vergara's Team"></attstr>
      <attstr name="author" val="Leandro Vergara"></attstr>
      <attstr name="car name" val="stock-fmc-71tortilla"></attstr>
      <attnum name="race number" val="15"></attnum>
      <attnum name="red" val="1.0"></attnum>
      <attnum name="green" val="0.3"></attnum>
      <attnum name="blue" val="0.3"></attnum>
         </section>
      </section>
    </section>
  </section>
</params>
User avatar
leillo1975
 
Posts: 64
Joined: Tue Jul 11, 2017 8:14 am

Re: How to make a robot drive a car

Postby chad3006 » Sun Nov 10, 2019 3:31 pm

Ok, I'll post an example of my simplix xml, probably Tuesday, don't have access to it right now.
User avatar
chad3006
 
Posts: 237
Joined: Mon Aug 13, 2012 7:56 pm
Location: USA

Re: How to make a robot drive a car

Postby leillo1975 » Mon Nov 11, 2019 9:27 am

chad3006 wrote:Ok, I'll post an example of my simplix xml, probably Tuesday, don't have access to it right now.


Thanks, I will wait
User avatar
leillo1975
 
Posts: 64
Joined: Tue Jul 11, 2017 8:14 am

Previous

Return to Problems, Fixes & Help

Who is online

Users browsing this forum: No registered users and 4 guests

cron