Re: Changing cars and fuel consumption
Schnuck68 <[email protected]>
| Newsgroups | gmane.games.torcs.general |
|---|---|
| Message-ID | <[email protected]> |
kartikmohta wrote: > > I believe there are two ways to change this for the berniw robot. > > 1. The simpler option (at least for the berniw robot, may not apply to > others) is to add a section to the driver's default.xml file (eg > /usr/share/games/torcs/drivers/berniw/3/default.xml) specifying the > fuel per lap: > > <section name="berniw private"> > <attnum name="fuelperlap" val="3.0"/> > </section> > > Tune the val to whatever seems correct. > Tried it. It works, although I think now I have to set this up whenever I change the racetrack or I have to choose a value high enough for all racetracks. A funny thing: Those berniw driver still try to run into the pits at the same point during the race although they don't run out of fuel. They don't actually refuel, they just stop for a short moment, so have to go back into the pits the next lap. They do this even at the end of the last lap instead of just finishing. Very stupid behaviour. kartikmohta wrote: > > 2. The other option is to recompile the robot code. The robot > calculates the initial fuel based on a max fuel per meter variable in > the code. For the berniw robot, you can change the value of the > MyCar::MAX_FUEL_PER_METER variable in src/drivers/berniw/mycar.cpp > file and recompile. > Would this take into account the different racetracks? So I don't have to play with the fuel too often? -- View this message in context: http://old.nabble.com/Changing-cars-and-fuel-consumption-tp34377285p34378702.html Sent from the torcs-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/