#help. model does not appear when i load up server.

28 messages · Page 1 of 1 (latest)

plucky blaze
#
  • name: "cb750"
    vehicleType: CAR
    skinItem: DIAMOND_HOE
    itemDamage: 1300
    benzineEnabled: true
    kofferbakEnabled: true
    hornEnabled: true
    maxHealth: 200.0
    acceleratieSpeed: 0.015
    maxSpeed: 0.7
    brakingSpeed: 0.03
    aftrekkenSpeed: 0.005
    rotateSpeed: 8
    maxSpeedBackwards: 0.35
    seats:
    - x: -0.2
    y: -0.8
    z: 0.0
    cars:
    - name: "Grey"
    SkinItem: DIAMOND_HOE
    itemDamage: 1300
    uuid: DSF2HJ
    price: 1000.0
#

^^^ this is what I've put in vehicles.yml

brazen aurora
#

However, it should now actually appear in the cb750 category after a server restart. In any case, I don't see any mistakes. Is there an error in the console?

plucky blaze
#

just had a look. this seems relevant:

07.11 19:53:37 [Server] Server thread/ERROR Cannot load plugins/MTVehicles/vehicles.yml
07.11 19:53:37 [Server] INFO org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping
07.11 19:53:37 [Server] INFO in 'reader', line 9, column 1:
07.11 19:53:37 [Server] INFO voertuigen:
07.11 19:53:37 [Server] INFO ^
07.11 19:53:37 [Server] INFO expected <block end>, but found '<block sequence start>'
07.11 19:53:37 [Server] INFO in 'reader', line 100, column 2:
07.11 19:53:37 [Server] INFO - name: "cb750"
07.11 19:53:37 [Server] INFO ^

#

for additional clarification- the rest of the plugin works fine. this particular one does not appear

brazen aurora
#

Does the error continue or is this the whole Error?

brazen aurora
#

the formatting is:

#
  • name: "YourCategoryOrVehicleNamr"
plucky blaze
#

i will have a look for you now

brazen aurora
#

OK Discord simply turns the minus into a dot. The error occurs when a line is indented incorrectly.

plucky blaze
#

i believe this is the full error, reoccurring again after a restart

brazen aurora
#

Can you send me the section again in a txt or YML file, I think I found the error, but it could be that Discord just reformatted it.

#

I have your mistake, you have made your Cars: argument in the block of the seats, but it must be at the same height as the point seats:

plucky blaze
#

( resource pack working. although the game thinks it's a raft. i placed the cb750 block beneath the raft one, so i think i just need to reformat )

#
  • name: "Raft"
    vehicleType: BOAT
    skinItem: DIAMOND_HOE
    itemDamage: 1276
    benzineEnabled: false
    kofferbakEnabled: false
    hornEnabled: false
    maxHealth: 50.0
    acceleratieSpeed: 0.01
    maxSpeed: 0.35
    brakingSpeed: 0.02
    aftrekkenSpeed: 0.005
    rotateSpeed: 6
    maxSpeedBackwards: 0.06
    seats:
    - x: 0.6
    y: -0.65
    z: 0.4
    - x: 0.6
    y: -0.65
    z: -0.4
    - x: -0.8
    y: -0.65
    z: 0.4
    - x: -0.8
    y: -0.65
    z: -0.4
    cars:
    - name: "Raft"
    SkinItem: DIAMOND_HOE
    itemDamage: 1276
    uuid: PLV334
    price: 10000.0

    • name: "cb750"
      vehicleType: CAR
      skinItem: DIAMOND_HOE
      itemDamage: 1300
      benzineEnabled: true
      kofferbakEnabled: true
      hornEnabled: true
      maxHealth: 200.0
      acceleratieSpeed: 0.015
      maxSpeed: 0.7
      brakingSpeed: 0.03
      aftrekkenSpeed: 0.005
      rotateSpeed: 8
      maxSpeedBackwards: 0.35
      seats:
      • x: -0.2
        y: -0.8
        z: 0.0
        cars:
      • name: "Grey"
        SkinItem: DIAMOND_HOE
        itemDamage: 1300
        uuid: CB7500
        price: 1000.0
#

this is how it currently is in the bottom of my config. not sure what the issue is, could i have made an error in the .json file?

brazen aurora
#

x, y and z must be on the same height

#

in Seats

plucky blaze
#

this txt file did not work, it removed the cb750 once more.
sorry for the hassle, this must be a pain. should i send you my full vehicles.yml so you can have a full in depth look?

plucky blaze
plucky blaze
#

could i possibly have an update on this if any?

brazen aurora
#

You need to add two spaces to every Line from Line 1405

plucky blaze
#

that sort of worked. the cb750 appears in the menu, although it just looks like the raft, and has no functions. i'm not sure what i could be doing wrong now.

plucky blaze
#

update: changed out everything relating to the cb750 to a diamond_axe.json instead, it now appears in game and functions as its own vehicle. just need to get the model itself to work now as that just looks like a diamond axe lol