Guide on how to make trucking / delivery mission

Discussion in 'Content Creation' started by Tomica, Aug 19, 2024.

  1. Tomica

    Tomica
    Expand Collapse

    Joined:
    Mar 6, 2022
    Messages:
    195
    I couldnt really find any tutorial or guides on how to make delivery missions, and after couple of hours of tinkering I have found out.
    There will be some light file editing so i recommend Notepad++

    Step 1: Open Wolrd Editor (F11) and make a new mission:

    Under Window > Missions > Missions Editor.
    Click file > New Mission. Name it whatever and select type delivery:
    upload_2024-8-19_12-56-36.png

    Step 2: Basic mission Setup:
    Place the start trigger by clicking on the pencil icon, then on the map, Hold Shift, click and drag and release click.
    upload_2024-8-19_12-58-1.png
    Scroll down and find TARGET, and do the same thing, TARGET is the end goal for the mission, the size matters as the trailer or the boxes on the trailer have to be in it.
    Make sure to constantly save on the top
    upload_2024-8-19_13-0-2.png

    Step 3: Setting up the cars for the prefab:
    Exit world editor, and start spawning all the vehicles and props you want in the mission, i will just use a truck and a trailer. I have also lined up the truck and trailer so they attach:
    upload_2024-8-19_13-2-42.png
    Make sure to place the truck and trailers where you want them to be in the map, as that will be the start point in the mission.
    Put the truck / trailer / props into a new group, and make it into a prefab:
    upload_2024-8-19_13-3-54.png
    upload_2024-8-19_13-4-14.png
    Save the prefab in the location of the mission, as vehicles.prefab.json.
    In my case that is Gameplay/missions/smallgrid/delivery/001-whatever/
    upload_2024-8-19_13-5-46.png

    If you are happy with the vehicles and the position, you can delete the prefab in the map.
    upload_2024-8-19_13-8-10.png
    Step 4: Editing the json file:
    Now that we have setup the prefab, we have to define them.
    Go to the mission folder, if you cannot find it, go to the mission and click ... next to preview:​
    upload_2024-8-19_13-10-21.png
    Now open the vehicles.prefab.json in Notepad++.
    There you should see 3 rows if you have a truck and trailer.
    Scrolling right, next to "jbeam" it says us_semi, that is our truck.
    Scroll all the way to the right, and the line that is our truck, we will add the following at the end of it:​

    ,"annotation":"CAR","internalName":"deplayer"

    Paste that right after the closing bracket ] , and right before the other closing bracket bracket }.
    It should look something like this:

    ],"annotation":"CAR","internalName":"deplayer"}

    Now do the same for the trailer but the "internalName" should be "trailerandcargo" and not "deplayer"
    If you also have some props, their interal name Should be "cargoA". If you have more cargo, name them cargoB, C , D, E...
    Potential Issues:
    1. Loading into the mission i have a black/ blue or any kind of screen:
    The vehicles.prefab.json is setup incorrectly.
    Make sure you added internalName in the correct location and in the correct line.
    2. The vehicle is in the sky / wrong location.
    The prefab wasnt in a group before it was made, you can go to the last line and set "groupPosition" to :"0 0 0"
    3. The trailer isnt coupling:
    The trailer might be too close to the truck and is stuck in the truck, try to give them more space.
    --- Post updated ---
    I couldnt post any more images, so here are some images showing the json:
    upload_2024-8-19_13-40-51.png
    upload_2024-8-19_13-41-48.png upload_2024-8-19_13-41-22.png
     

    Attached Files:

    • upload_2024-8-19_12-59-40.png
    #1 Tomica, Aug 19, 2024
    Last edited: Aug 19, 2024
    • Like Like x 3
  2. Murokmakto

    Murokmakto
    Expand Collapse

    Joined:
    Dec 24, 2023
    Messages:
    283
    Thank you for doing this. You are right, there are barely any tutorials on setting up these missions. Most are somewhat straight forward but it is still important to know the correct file setup etc and to just have a tutorial quickly available is always very useful. I don“t know if you have the time and motivation but it would surely be helpful to have a tutorial for the other mission types aswel. Anyways, greatly appreciated thx a lot!
     
    • Like Like x 2
  3. Tomica

    Tomica
    Expand Collapse

    Joined:
    Mar 6, 2022
    Messages:
    195
    I will see. I was inspired by HighDef, as he has made most mission guides and it helped tremendously. He has made 7 videos and covered most of the missions. Other than that there are few more: scatterPickup (which is like collection mission but trash themed), Cannon, Crawl, hypermilling, long jump / target jump, precision parking and knockaway. Most of them are pretty straightfoward from what i've seen. Either dont have almost any setup, or are similar to others to setup.

    For example, from what i see, in knockaway mission, rather than placing a truck into a prefab, you place barrels around, and give them internalName "barrel01".
    Or hypermilling mission, you only really setup the start location.
     
    • Like Like x 2
  4. ChrisTheDriver

    ChrisTheDriver
    Expand Collapse

    Joined:
    Jun 27, 2024
    Messages:
    36
    Great tutorial, official documentation is almost useless.
     
  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