1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice

3 Time trial questions

Discussion in 'General Discussion' started by OllieOliOlly, Sep 3, 2020.

  1. OllieOliOlly

    OllieOliOlly
    Expand Collapse

    Joined:
    Dec 23, 2013
    Messages:
    4
    I'm trying to create a time trial on the Italy map following this guide: www.youtube.com/watch?v=LJypC67w068.

    There's been a major update to the Editor since this video was created but I think I have figured out most of the differences.
    Loading up the Trial opens with the selected car under the map, but zooming out shows the checkpoints appear to be in the correct positions. (See below for JSON and Prefab files)

    So my 3 questions:

    Is there a more up to date guide?

    Should Time trial threads be posted to the Scenario Forum?

    Why does the vehicle spawn under the map (I think at 0,0,0) instead of my spawn location?

    Happy to move this thread to a more appropriate forum if there is one. Thanks in advance for any answers

    Code:
      {
        "name": "TargaTest_3",
        "description": "Test setting up targa cicuit",
        "authors": "Me",
        "difficulty": "58",
        "date": 1439167916,
        "prefabs": [],
        "lapCount": 1,
        "closed": false,
        "reversible" : false,
        "allowRollingStart" : false,
        "lapConfig" : [
          "TargaTest_2_1",
        ],
        "startLineCheckpoint": "TargaTest_2_Start0",
        "finishLineCheckpoint": "TargaTest_2_2",
      }

    Code:
    //--- OBJECT WRITE BEGIN ---
    $ThisPrefab = new SimGroup() {
       canSave = "1";
       canSaveDynamicFields = "1";
          groupPosition = "0 0 0";
    
       new BeamNGWaypoint(TargaTest_2_Start0) {
          drawDebug = "0";
          directionalWaypoint = "0";
          excludeFromMap = "0";
          position = "1095.98413 1321.65051 142.956055";
          scale = "5 5 5";
          rotationMatrix = "1 0 0 0 0.999999762 -0.000690533896 0 0.000690533896 0.999999762";
          canSave = "1";
          canSaveDynamicFields = "1";
          persistentId = "ce317e7c-6bce-4201-adbd-fd23a9a6729f";
       };
       new BeamNGWaypoint(TargaTest_2_2) {
          drawDebug = "0";
          directionalWaypoint = "0";
          excludeFromMap = "0";
          position = "805.254578 1320.02563 142.956055";
          scale = "5 5 5";
          rotationMatrix = "1 0 0 0 0.999999762 -0.000690533896 0 0.000690533896 0.999999762";
          canSave = "1";
          canSaveDynamicFields = "1";
          persistentId = "fe530522-9f1a-413f-b5fe-46efd788e3ef";
       };
       new BeamNGWaypoint(TargaTest_2_1) {
          drawDebug = "0";
          directionalWaypoint = "0";
          excludeFromMap = "0";
          position = "961.697632 1321.25354 142.956055";
          scale = "5 5 5";
          rotationMatrix = "1 0 0 0 0.999999762 -0.000690533896 0 0.000690533896 0.999999762";
          canSave = "1";
          canSaveDynamicFields = "1";
          persistentId = "887c81e7-2ce5-4cd3-9516-7d2927bf22c0";
       };
       new SpawnSphere(TargaTest_2_Start) {
          spawnClass = "player";
          spawnDatablock = "DefaultPlayerData";
          autoSpawn = "0";
          spawnTransform = "0";
          radius = "1";
          dataBlock = "SpawnSphereMarker";
          position = "1095.98413 1321.65051 142.956055";
          scale = "1 1 1";
          rotationMatrix = "-0.982468069 -0.186431155 0 0.186431155 -0.982468069 0 0 0 1";
          canSave = "1";
          canSaveDynamicFields = "1";
          persistentId = "7b472ccf-f6a7-45ca-82f2-7cf162d6bdf4";
       };
    };
    //--- OBJECT WRITE END ---
    
     
  2. RyvyLo

    RyvyLo
    Expand Collapse

    Joined:
    May 15, 2014
    Messages:
    438
    My guess would be that yes, it's the most appropriate section. You can also post it as a resource so it's more convenient for everyone to download and enjoy your time trial

    I think your spawnSphere name in the prefab is wrong. It needs to be timeTrialJsonFileName_standing_spawn. For reverse and rolling start, it can be timeTrialJsonFileName_standingReverse_spawn,timeTrialJsonFileName_rolling_spawn, timeTrialJsonFileName_rollingReverse_spawn.

    Some advice, most of the time you can look at the official game files and compare the differences to find where you messed up
     
  3. OllieOliOlly

    OllieOliOlly
    Expand Collapse

    Joined:
    Dec 23, 2013
    Messages:
    4
    Yep this was it. Changed the names and it works. Thanks!

    I also gave this a go but the prefab that came out didn't seem to have the checkpoints / spawns in it. More experimenting to be done I think
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice