Help me plsssss...

Plugin specific problems will be solved here.

Moderators: Scenario Moderators, Plugin Moderators

User avatar
FADZ
Settler
Posts: 4
Joined: 24 Jun 2023, 09:46

Plugin Creator

Platform

Help me plsssss...

#1

Post 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
      }
    ]
  }
]

User avatar
FVI
Inhabitant of a Galaxy
Posts: 2375
Joined: 22 Feb 2022, 18:00
Location: The largest island in Europe
Plugins: Showcase Store
Version: Beta

Platform

Re: Help me plsssss...

#2

Post 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.

User avatar
FADZ
Settler
Posts: 4
Joined: 24 Jun 2023, 09:46

Plugin Creator

Platform

Re: Help me plsssss...

#3

Post 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 :)

User avatar
FVI
Inhabitant of a Galaxy
Posts: 2375
Joined: 22 Feb 2022, 18:00
Location: The largest island in Europe
Plugins: Showcase Store
Version: Beta

Platform

Re: Help me plsssss...

#4

Post by FVI »

You're welcome!

Post Reply Previous topicNext topic

Return to “Problems”