[Bug] Server tries to load custom vehicles before downloading them

EK.IceFlake

  • Hero Member
  • "We are the champions my fellahs" - Sufyan/VK.SuFy
  • Posts: 1,763
[Bug] Server tries to load custom vehicles before downloading them
«  »
Description
The server tries to load custom vehicles before they're downloaded.

Reproducible
Always

What were you doing when the bug happened
Trying to join a server. I had /showdebug enabled.

What do you think caused the bug
Vehicles were only streamed after spawning before the latest server update, so there wasn't any check to see if a particular vehicle was downloaded before creating it. The devs overlooked this when releasing the new update.

Athanatos

  • Hero Member
  • Working on maybe the best VC:MP server ever
  • Posts: 673
[Bug] Re: Server tries to load custom vehicles before downloading them
« Reply #2,  »Last edited


Yeah, I can confirm this results in some errors. When the player is downloading files, the objects (like vehicles, pickups ) are still streamed to him. And because of this there will be errors like this:
Code: [Select]
[VEHICLE] Failed to load model 12002 for vehicle 30. (BAD)

Anyway, the vehicle looks normal when I'm spawned.

EK.IceFlake

  • Hero Member
  • "We are the champions my fellahs" - Sufyan/VK.SuFy
  • Posts: 1,763

Abri

  • Newbie
  • Posts: 7

Athanatos

  • Hero Member
  • Working on maybe the best VC:MP server ever
  • Posts: 673

Abri

  • Newbie
  • Posts: 7

Xenon

  • Jr. Member
  • Posts: 85

Abri

  • Newbie
  • Posts: 7
[Bug] Re: Server tries to load custom vehicles before downloading them
« Reply #8,  »
Quote from Xenon on November 21st, 2018, 12:36 PM
Quote from Abri on November 21st, 2018, 08:22 AM
Any other solution?
Yes, just change player virtual world where is no vehicles near Kaufman Cabs building in your onPlayerJoin function ;).
This bug appears while player downloading files, so you can change player world only for this time.
Thank you very much for your help! Really working! :)

Athanatos

  • Hero Member
  • Working on maybe the best VC:MP server ever
  • Posts: 673
[Bug] Re: Server tries to load custom vehicles before downloading them
« Reply #9,  »
Quote from Abri on November 21st, 2018, 08:22 AM
Quote from Athanatos on November 1st, 2018, 03:40 PM
Yes, I get no error if there's no vehicle near Vector(0,0,0).
Any other solution?

I tried to edit the defective cars but unfortunately did not produce any results!
Has anyone encountered this problem yet?
The cars aren't defective. Their models aren't loaded into the client's memory.Also this bug isn't really important tbh.

rww

  • VC:MP Beta Tester
  • LU-DM Team
  • Posts: 350
[Bug] Re: Server tries to load custom vehicles before downloading them
« Reply #10,  »
Quote from Athanatos on November 22nd, 2018, 04:44 PM
Quote from Abri on November 21st, 2018, 08:22 AM
Quote from Athanatos on November 1st, 2018, 03:40 PM
Yes, I get no error if there's no vehicle near Vector(0,0,0).
Any other solution?

I tried to edit the defective cars but unfortunately did not produce any results!
Has anyone encountered this problem yet?
The cars aren't defective. Their models aren't loaded into the client's memory.Also this bug isn't really important tbh.
But it's very annoying, when every player ask you, why chat shows errors (with showdebug 0).

(click to show/hide)


Btw. Xenon way is good for this time ;)