Page 2 of 3

Re: How to make a robot drive a car

PostPosted: Fri Nov 08, 2019 5:25 pm
by chad3006
I've since solved this problem, but mostly I wanted to bump this thread for someone.

Re: How to make a robot drive a car

PostPosted: Fri Nov 08, 2019 5:30 pm
by chad3006
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.

Re: How to make a robot drive a car

PostPosted: Fri Nov 08, 2019 5:30 pm
by leillo1975
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

Re: How to make a robot drive a car

PostPosted: Fri Nov 08, 2019 5:37 pm
by chad3006
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.

Re: How to make a robot drive a car

PostPosted: Fri Nov 08, 2019 11:43 pm
by leillo1975
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?

Re: How to make a robot drive a car

PostPosted: Sat Nov 09, 2019 5:19 pm
by leillo1975
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>

Re: How to make a robot drive a car

PostPosted: Sun Nov 10, 2019 3:31 pm
by chad3006
Ok, I'll post an example of my simplix xml, probably Tuesday, don't have access to it right now.

Re: How to make a robot drive a car

PostPosted: Mon Nov 11, 2019 9:27 am
by leillo1975
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

Re: How to make a robot drive a car

PostPosted: Fri Nov 15, 2019 7:34 pm
by chad3006
Sorry, I keep forgetting to get a copy of my Simplix XML file. I'll get to it one day.

Re: How to make a robot drive a car

PostPosted: Mon Nov 18, 2019 2:17 pm
by chad3006
Okay, my Simplix.xml file exceeded the allowable character limit for the forum, so I'll do something else. The following code should be an example of the simplix.xml file that comes with your default version of Speed Dreams. Depending on what version of SD your using, you should find this file in the "speed dreams 2.2 2/data/drivers/simplix" directory. Firstly, save a copy of yours and rename it something like "simplix.OLD." Then you'll begin to modify the other copy "simplix.xml." (if your OS won't allow you to modify the file inside this directory, just copy it and paste it on your desktop or something and modify it there, then paste it into the correct directory once you're done.)

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>
    </section>
  </section>
</params>