Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 19, 2018, 4:11:27 PM (7 years ago)
Author:
andera
Message:

new botpointer.mesh added. Bug at the end of the game found not fixed yet

Location:
code/branches/RacingBots_FS18
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/RacingBots_FS18/data/levels/newnewnewspacerace.oxw

    r11857 r11893  
    496496   <Arrow>
    497497      <attached>
    498        <Model scale="5" mesh="tutorialpointer3.mesh"/>
     498       <Model scale="5" mesh="botpointer4.mesh"/>
    499499      </attached>
    500500      <controller>
    501501        <ArrowController accuracy = 2000>
    502502          <gpspoints>
    503             <Model mesh="cube.mesh" scale=1.5 position="1000,30,0"/>
    504             <Model mesh="cube.mesh" scale=1.5 position="3000,200,100"/>
    505             <Model mesh="cube.mesh" scale=1.5 position="5000,100,500"/>
    506             <Model mesh="cube.mesh" scale=1.5 position="8000,-150,150"/>
    507             <Model mesh="cube.mesh" scale=1.5 position="10000,-200,200"/>
    508             <Model mesh="cube.mesh" scale=1.5 position="13000,200,400"/>
    509             <Model mesh="cube.mesh" scale=1.5 position="15000,0,0"/>
    510             <Model mesh="cube.mesh" scale=1.5 position="18000,150,-150"/>
    511             <Model mesh="cube.mesh" scale=1.5 position="21000,200,-120"/>
    512             <Model mesh="cube.mesh" scale=1.5 position="24000,-150,-80"/>
    513             <Model mesh="cube.mesh" scale=1.5 position="27000,-200,0"/>
    514             <Model mesh="cube.mesh" scale=1.5 position="30000,-300,900"/>
    515             <Model mesh="cube.mesh" scale=1.5 position="33000,600,60"/>
    516             <Model mesh="cube.mesh" scale=1.5 position="35000,120,20"/>
    517             <Model mesh="cube.mesh" scale=1.5 position="38000,-200,0"/>
    518             <Model mesh="cube.mesh" scale=1.5 position="41000,30,-50"/>
    519             <Model mesh="cube.mesh" scale=1.5 position="44000,90,0"/>
    520             <Model mesh="cube.mesh" scale=1.5 position="47000,120,30"/>
    521             <Model mesh="cube.mesh" scale=1.5 position="50000,0,100"/>
    522             <Model mesh="cube.mesh" scale=1.5 position="53000,0,0"/>
     503            <Model mesh="cube.mesh" scale=2 position="1000,30,0"/>
     504            <Model mesh="cube.mesh" scale=2 position="3000,200,100"/>
     505            <Model mesh="cube.mesh" scale=2 position="5000,100,500"/>
     506            <Model mesh="cube.mesh" scale=2 position="8000,-150,150"/>
     507            <Model mesh="cube.mesh" scale=2 position="10000,-200,200"/>
     508            <Model mesh="cube.mesh" scale=2 position="13000,200,400"/>
     509            <Model mesh="cube.mesh" scale=2 position="15000,0,0"/>
     510            <Model mesh="cube.mesh" scale=2 position="18000,150,-150"/>
     511            <Model mesh="cube.mesh" scale=2 position="21000,200,-120"/>
     512            <Model mesh="cube.mesh" scale=2 position="24000,-150,-80"/>
     513            <Model mesh="cube.mesh" scale=2 position="27000,-200,0"/>
     514            <Model mesh="cube.mesh" scale=2 position="30000,-300,900"/>
     515            <Model mesh="cube.mesh" scale=2 position="33000,600,60"/>
     516            <Model mesh="cube.mesh" scale=2 position="35000,120,20"/>
     517            <Model mesh="cube.mesh" scale=2 position="38000,-200,0"/>
     518            <Model mesh="cube.mesh" scale=2 position="41000,30,-50"/>
     519            <Model mesh="cube.mesh" scale=2 position="44000,90,0"/>
     520            <Model mesh="cube.mesh" scale=2 position="47000,120,30"/>
     521            <Model mesh="cube.mesh" scale=2 position="50000,0,100"/>
     522            <Model mesh="cube.mesh" scale=2 position="53000,0,0"/>
    523523
    524524           
  • code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRaceController.cc

    r11720 r11893  
    2020 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    2121 *
    22  *  Created on: Oct 8, 2012
     22 *  Created on: Oct 8, 2012findCheck
    2323 *      Author: purgham
    2424 */
     
    127127                    continue;
    128128                }
    129                 if (findCheckpoint(checkpointIndex) == nullptr)
     129                if (findCheckpoint(checkpointIndex) == nullptr){
     130                    orxout()<<"nullpointer @ SpaceraceController line 130"<< endl;
    130131                    orxout(internal_warning) << "Problematic Point: " << checkpointIndex << endl;
     132                }
    131133                else
    132134                    numberOfWays += rekSimulationCheckpointsReached(findCheckpoint(checkpointIndex), zaehler);
     
    223225    RaceCheckPoint* SpaceRaceController::findCheckpoint(int index) const
    224226    {
    225         for (RaceCheckPoint* checkpoint : this->checkpoints_)
     227        for (RaceCheckPoint* checkpoint : this->checkpoints_){
    226228            if (checkpoint->getCheckpointIndex() == index)
    227229                return checkpoint;
     230        }
     231
    228232        return nullptr;
    229233    }
     
    328332       
    329333        this->boostControl();
     334        if (nextRaceCheckpoint_ == nullptr) orxout() << "nextRaceCheckpoint_ equals to nullpointer look @line 334 SpaceRaceController.cc" << endl;
    330335        this->moveToPosition(nextRaceCheckpoint_->getPosition());
    331336        this->boostControl();
Note: See TracChangeset for help on using the changeset viewer.