Page 1 of 1

Help me plsssss...

Posted: 09 Feb 2025, 11:13
by FADZ
So, a few days ago I tried to make my own car plugin.
Previously it worked but when I changed the car id, the game can't find it.😢
Screenshot_2025-02-09-15-56-13-003_info.flowersoft.theotown.theotown.jpg
This is the code:

Code: Select all

[
  {
    "id":"$Rc1",
    "type":"car",
    "frames": [
      {
        "bmp": "carF00.png", "w": 18, "h": 12, "count": 4
      }
    ],
    "v2": true,
    "passenger": 1,
    "allocate flag": ["Medieval01_road"],
    "flag Medieval01_road": true,
    "flag normal": false
  }
]

Code: Select all

[
  {
    "id":"$Tcamp",
    "title":"Trader camp",
    "text": "Decoration set.",
    "author": "Fadzz",
    "type": "decoration",
    "frames": [
      {
        "bmp": "Tradercamp.png"
      }
    ],
    "width": 1,
    "height": 1,
    "price": 15,
    "draw ground": true,
    "need roads": false,
    "car spawner":[
      {
        "cars":["$Rc1"],
        "radius":10,
        "count":5
      }
    ]
  }
]

Re: Help me plsssss...

Posted: 10 Feb 2025, 18:39
by FVI
FADZ wrote: ↑
09 Feb 2025, 11:13
So, a few days ago I tried to make my own car plugin.
Previously it worked but when I changed the car id, the game can't find it.😢
Screenshot_2025-02-09-15-56-13-003_info.flowersoft.theotown.theotown.jpg

This is the code:

Code: Select all

[
  {
    "id":"$Rc1",
    "type":"car",
    "frames": [
      {
        "bmp": "carF00.png", "w": 18, "h": 12, "count": 4
      }
    ],
    "v2": true,
    "passenger": 1,
    "allocate flag": ["Medieval01_road"],
    "flag Medieval01_road": true,
    "flag normal": false
  }
]

Code: Select all

[
  {
    "id":"$Tcamp",
    "title":"Trader camp",
    "text": "Decoration set.",
    "author": "Fadzz",
    "type": "decoration",
    "frames": [
      {
        "bmp": "Tradercamp.png"
      }
    ],
    "width": 1,
    "height": 1,
    "price": 15,
    "draw ground": true,
    "need roads": false,
    "car spawner":[
      {
        "cars":["$Rc1"], <---------- This one
        "radius":10,
        "count":5
      }
    ]
  }
]
If a code mentions another id ("cars":["$Rc1"],), that id's code must be on the same document. Basically, you need to merge the two codes so they can be on the same file. Make sure however the code you are going to paste is beyond the last curly bracket but within the outermost square bracket of the code you are going to paste into, otherwise the code might not work.

Re: Help me plsssss...

Posted: 11 Feb 2025, 11:21
by FADZ
FVI wrote: ↑
10 Feb 2025, 18:39
FADZ wrote: ↑
09 Feb 2025, 11:13
So, a few days ago I tried to make my own car plugin.
Previously it worked but when I changed the car id, the game can't find it.😢
Screenshot_2025-02-09-15-56-13-003_info.flowersoft.theotown.theotown.jpg

This is the code:

Code: Select all

[
  {
    "id":"$Rc1",
    "type":"car",
    "frames": [
      {
        "bmp": "carF00.png", "w": 18, "h": 12, "count": 4
      }
    ],
    "v2": true,
    "passenger": 1,
    "allocate flag": ["Medieval01_road"],
    "flag Medieval01_road": true,
    "flag normal": false
  }
]

Code: Select all

[
  {
    "id":"$Tcamp",
    "title":"Trader camp",
    "text": "Decoration set.",
    "author": "Fadzz",
    "type": "decoration",
    "frames": [
      {
        "bmp": "Tradercamp.png"
      }
    ],
    "width": 1,
    "height": 1,
    "price": 15,
    "draw ground": true,
    "need roads": false,
    "car spawner":[
      {
        "cars":["$Rc1"], <---------- This one
        "radius":10,
        "count":5
      }
    ]
  }
]
If a code mentions another id ("cars":["$Rc1"],), that id's code must be on the same document. Basically, you need to merge the two codes so they can be on the same file. Make sure however the code you are going to paste is beyond the last curly bracket but within the outermost square bracket of the code you are going to paste into, otherwise the code might not work.
Ah I see, thank you :)

Re: Help me plsssss...

Posted: 11 Feb 2025, 17:42
by FVI
You're welcome!