Vice City: Multiplayer

VC:MP Discussion => General Discussion => Topic started by: Zbyss. on Aug 11, 2015, 11:23 AM

Title: Using custom cars
Post by: Zbyss. on Aug 11, 2015, 11:23 AM
Hey, I have a question, how to use custom cars? I added custom car in 7z format, but I don't know, how to add this to gamemode. Gamemode loads custom cars without adding some lines of code? Because i tried to spawn my car, ID 6400, and it don't work. Here's the car that don't work. (Yes, car is installed to store/vehicle)

Here's car that don't work: http://hostuje.net/file.php?id=fe15f65762c0d45c79951111e2576d15 (Click Pobierz Plik)

Thanks.
Title: Re: Using custom cars
Post by: Mashreq on Aug 11, 2015, 11:25 AM
The custom vehicles starts with the ID 6400. Try spawning a vehicle with 6400 ID.
Title: Re: Using custom cars
Post by: Zbyss. on Aug 11, 2015, 11:29 AM
I was wrong, I tried to spawn 6400, not 6405.

EDIT: Is it possible, it don't work because it shows that error:

"Plugin error >> LoadLibrary() 'plugins/xmlconf04rel32.dll' failed: Code 126 Failed to load plugin: xmlconf04rel32"?

EDIT2: Fixed that error, and that still don't work.
Title: Re: Using custom cars
Post by: Thijn on Aug 11, 2015, 05:39 PM
You have an "-" in your XML before the audio element. Remove that thing and it should work.
Title: Re: Using custom cars
Post by: Zbyss. on Aug 11, 2015, 07:34 PM
Removed that, updated on server and this still don't work... I don't have any idea, why this still don't work.
Here's fixed XML: http://pastebin.com/bzCaXSht
Title: Re: Using custom cars
Post by: Thijn on Aug 11, 2015, 08:02 PM
What does your debug log say. You can find the txt in your %appdata%/VCMP/04beta (Or something like that) folder.

Your 7z worked for me after removing that -.
What are you using to spawn the vehicle? Does the code work for non-custom vehicles?
Title: Re: Using custom cars
Post by: Zbyss. on Aug 11, 2015, 08:10 PM
debuglog.txt is empty.

I tried to use script to car spawning, here's code: http://pastebin.com/R2rXuh9J i don't know it works for custom vehicles, for normal vehicles it works without any problem.

I also tried to add vehicles in server.conf file: http://pastebin.com/LGUCa3wc

EDIT: You tested that 7z on VPS or localhost? Because on localhost it don't work for me, I don't know how on VPS.