Solved gas stations/ locations/ zones?

Discussion in 'World Editor' started by YNOTHC, Apr 22, 2025 at 1:42 AM.

  1. YNOTHC

    YNOTHC
    Expand Collapse

    Joined:
    Tuesday
    Messages:
    2
    I tried searching, but only found 2 other threads with no responses, so idk how this one will work out either......

    Anyway, I'm trying to add a gas station to a map I'm making and not finding good documentation on how to set it up. Does anyone know of a good link to a video or writeup somewhere that explains it well?

    I have the actual pump asset in map, and added a point of interest and gameplay area like i seen done in default map. Can't really figure the rest out tho?

    Do I need the facilities folder from default map and edit that? Is there a way to generate facilities folder from within world editor specific to my map?

    What are my missing pieces? I feel like dancing around the solution and its just not clicking.
     
  2. VectriciXY

    VectriciXY
    Expand Collapse

    Joined:
    Nov 6, 2022
    Messages:
    97
    Yes you need to create a facilities folder in your map file and place the facilities.facilities.json within it to get the gas stations to work. If you want a preview for the gas station, the preview picture should be put into the facilities folder too. Just refer to any map which has a working gas station, and imitate how the files are organized and JSON coded.

    If you know Chinese, I created a video on Bilibili to demonstrate how to do this just a few days ago, and you can refer to this video: https://www.bilibili.com/video/BV1F15CzkEJ8

    And here is the code from the JSON in the video, along with some explanations. (Of course you need to manually create the Point of Interest and Gameplay Area in the World Editor)

    Also, you need to Reload Lua ( by default pressing Ctrl+L) to get the function to work.

    Code:
    {
      "gasStations":
      [
        {
          "name":"Beam Fuel",                             // Name of the gas staion
          "description":"Refuel your vehicle here!",      // Description for the gas station
          "preview":"fuel_town.png",                      // Preview for the gas station (should be placed in "facilities" folder)
          "energyTypes":["gasoline","diesel","unknown"],  // Types of energy that the gas station can provide
          "pumps":
          [                                               // Pumps of the gas station
            ["fuel_town_area_1", "fuel_town_icon_1"],     // The Gameplay Area should be named as "fuel_town_area_1", and the Point of Interest as "fuel_town_icon_1"
            ["fuel_town_area_2", "fuel_town_icon_2"]      // "_1" "_2" is the number of the pump.
          ]
        }
      ]
    }
     
    #2 VectriciXY, Apr 22, 2025 at 3:53 PM
    Last edited: Apr 22, 2025 at 4:01 PM
    • Like Like x 1
  3. YNOTHC

    YNOTHC
    Expand Collapse

    Joined:
    Tuesday
    Messages:
    2
    Ok, I'm officially a doofus. I now have a working Gas station. How do I mark this as solved?

    Also, the above video is so well done you can just follow along just fine even if you don't know Chinese.
     
  4. VectriciXY

    VectriciXY
    Expand Collapse

    Joined:
    Nov 6, 2022
    Messages:
    97
    You can use the Thread Tools to change the thread status
    upload_2025-4-24_12-45-5.png

    Anyway, I'm glad it helps!
     
  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