Vice City: Multiplayer

VC:MP Discussion => Support => Topic started by: KAKAN on Jul 11, 2015, 01:32 PM

Title: problem with custom vehicle
Post by: KAKAN on Jul 11, 2015, 01:32 PM
I have this files in my custom car
pcj-700.xml
pcj-700.txd
pcj-700.dff
pcj-700.col

And my file name is
v6400_t1_p2_pcj-700.7z

And thus when I try it, it gives me this type of error
Click! (http://imgur.com/lB1i6zN)
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FlB1i6zN.jpg&hash=d41d4cdae1614a778ee6bd67199b72d4c7787d60)
Title: Re: problem with custom vehicle
Post by: Thijn on Jul 11, 2015, 01:41 PM
Mind uploading the file somewhere so we can actually test this?
Title: Re: problem with custom vehicle
Post by: jayant on Jul 11, 2015, 01:50 PM
I have the same problem, I added a bike with all the requirements and it displayed a message like this - failed to load model 6401 for vehicle 117.. I successfully added one humvee in server.
Title: Re: problem with custom vehicle
Post by: MacTavish on Jul 11, 2015, 02:04 PM
Quote from: jayant on Jul 11, 2015, 01:50 PMI have the same problem, I added a bike with all the requirements and it displayed a message like this - failed to load model 6401 for vehicle 117.. I successfully added one humvee in server.
i tested same problem but added 4 cars

Dodge charger srt8
Mistubishi lancer
Shelby GT500
Mustang GT

but the fact is that these all are designed for gta sa, i tested some cars those made for gtavc but those threw that error, it means we are only able to add only gtasa cars
Title: Re: problem with custom vehicle
Post by: Sebastian on Jul 11, 2015, 02:15 PM
For vehicles made for Vice City, you need .dff .txd .col .xml at least.
For vehicles made for San Andreas, you need .dff .txd .xml at least. (the colision is part of .dff)

Some vehicles are not working for me too, but I guess there should be something with the model.
Title: Re: problem with custom vehicle
Post by: Thijn on Jul 11, 2015, 02:35 PM
It's all great you post that some models aren't working, but can you at least upload the fucking 7z archives so we can debug the problem...
Title: Re: problem with custom vehicle
Post by: MacTavish on Jul 11, 2015, 02:40 PM
Quote from: Thijn on Jul 11, 2015, 02:35 PMIt's all great you post that some models aren't working, but can you at least upload the fucking 7z archives so we can debug the problem...

@Thijn you can use this (http://www.solidfiles.com/d/0dfb7c2d23/SuperGT_unp.7z) the .xml is not included you can write that your self :p
Title: Re: problem with custom vehicle
Post by: Thijn on Jul 11, 2015, 02:58 PM
Quote from: Beztone on Jul 11, 2015, 02:40 PM
Quote from: Thijn on Jul 11, 2015, 02:35 PMIt's all great you post that some models aren't working, but can you at least upload the fucking 7z archives so we can debug the problem...

@Thijn you can use this (http://www.solidfiles.com/d/0dfb7c2d23/SuperGT_unp.7z) the .xml is not included you can write that your self :p
Im not going to write a XML to debug a problem you guys are having, be happy I'm willing to use my time to help you. Give me everything or find a solution yourself.


Edit:
Downloaded a PCJ-700 mod from the interwebs and it spawns "okay". Although it has it's wheels missing, and I'm unable to enter it.
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FeqVuh9y.jpg&hash=416851fa5ec6f562bbbb44851b28e3e0bc0b94ad)
Title: Re: problem with custom vehicle
Post by: MacTavish on Jul 11, 2015, 03:46 PM
[spoiler]<?xml version="1.0" encoding="ASCII"?>
<vehicle>
<basic>
<type>car</type>
<name>Audi Quatro GT</name>
<anims>null</anims>
<comprules>12272</comprules>
<extraflags>0000</extraflags>
<wheelmodel>250</wheelmodel>
<wheelscale>0.700000</wheelscale>
<immunity>0</immunity>
</basic>

<aidata>
<class>executive</class>
<freq>10</freq>
<level>6</level>
</aidata>

<colors>
<carcol>62,62</carcol>
<carcol>90,90</carcol>
<carcol>42,42</carcol>
<carcol>32,32</carcol>
<carcol>38,30</carcol>
<carcol>36,36</carcol>
<carcol>22,34</carcol>
</colors>

<audio>
<enginefarsample>269</enginefarsample>
<enginenearsample>5</enginenearsample>
<hornsample>1</hornsample>
<hornfreq>9500</hornfreq>
<sirensample>0</sirensample>
<sirenfreq>9800</sirenfreq>
<doorsounds>1</doorsounds>
</audio>

<handling>
<mass>1400.000000</mass>
<percentsubmerged>75</percentsubmerged>
<steeringlock>30.000000</steeringlock>
<seatoffset>0.250000</seatoffset>
<damagemultiplier>0.600000</damagemultiplier>
<value>35000</value>
<flags>00002103</flags>

<dimensions>
<x>1.900000</x>
<y>4.700000</y>
<z>1.600000</z>
</dimensions>

<centreofmass>
<x>0.000000</x>
<y>0.100000</y>
<z>-0.300000</z>
</centreofmass>

<traction>
<multiplier>1.100000</multiplier>
<loss>0.900000</loss>
<bias>0.500000</bias>
</traction>

<transmission>
<numofgears>5</numofgears>
<maxspeed>200.000000</maxspeed>
<acceleration>28.000000</acceleration>
<drivetype>4</drivetype>
<enginetype>P</enginetype>
</transmission>

<brakes>
<deceleration>11.000000</deceleration>
<bias>0.450000</bias>
<abs>0</abs>
</brakes>

<suspension>
<forcelevel>2.000000</forcelevel>
<dampening>0.150000</dampening>
<upperlimit>0.280000</upperlimit>
<lowerlimit>-0.160000</lowerlimit>
<bias>0.500000</bias>
<antidive>0.300000</antidive>
</suspension>

<lights>
<front>1</front>
<rear>1</rear>
</lights>
</handling>

</vehicle>
[/spoiler]


here is the .xml
Title: Re: problem with custom vehicle
Post by: maxorator on Jul 11, 2015, 03:47 PM
Quote from: Thijn on Jul 11, 2015, 02:58 PMDownloaded a PCJ-700 mod from the interwebs and it spawns "okay". Although it has it's wheels missing, and I'm unable to enter it.
I'm aware of the issue and I'm working on it.
Title: Re: problem with custom vehicle
Post by: MacTavish on Jul 12, 2015, 06:51 PM
bump @Thijn have you tried? i posted the xml too look in spoiler

i tried 2 bikes but that makes me crash
Title: Re: problem with custom vehicle
Post by: Honey on Jul 12, 2015, 09:43 PM
I was getting the same error today, For me I forgot to load the .xml file in the 7z archive but if you want to know why it isn't loading goto : %AppData%/VCMP/04Beta/debuglog.txt

It will show you why the vehicle is not spawning.
Title: Re: problem with custom vehicle
Post by: Omar on Jul 15, 2015, 12:11 PM
Bikes are a pain to add. I added a Dodge Tomahawk and it took me a lot of time to figure it out. Try to use the original PCJ 600 XML as a guide and you should be good. Also, Thanks to Honey for that very helpful comment. It really helped me to debug the problem.
Title: Re: problem with custom vehicle
Post by: KAKAN on Jul 16, 2015, 01:57 PM
I saw the debuglog and I tried to add a car from SA, and this was the result
Error in CMvlVehicle::ParseArchive: Could not load 7zip archive 'unknown'.
Error in CMvlVehicle::LoadFromArchive: Parsing vehicle archive failed.
Error in CVehicleHandler::LoadVehicleArchiveToSlot: Could not load vehicle archive 'unknown'.
Title: Re: problem with custom vehicle
Post by: Honey on Jul 16, 2015, 03:51 PM
Clearly you can see that the server is having problems loading the archive, It could be due to wrong name format or wrong files inside or anything else wrong with the archive.
Title: Re: problem with custom vehicle
Post by: Omar on Jul 16, 2015, 09:52 PM
Also, bikes seem to be bugged. I tested the Dodge Tomahawk and it worked. But after I restarted the server, you can't hop on it and if you try it will freeze you next to it and I had to /kill (maybe same problem as Thijn's). The strange thing that it used to work, and I get no errors at all.
Title: Re: problem with custom vehicle
Post by: KAKAN on Jul 17, 2015, 10:26 AM
So let me upload those files, and then can u check it?

EDIT:
Files are now uploaded u can see it here:-
http://www.mediafire.com/download/p20v50v636dcw6z/v6400_t0_p4_manana.7z (http://www.mediafire.com/download/p20v50v636dcw6z/v6400_t0_p4_manana.7z)
Title: Re: problem with custom vehicle
Post by: Mashreq on Jul 17, 2015, 11:25 AM
You didn't define a .col file for your vehicle (since that vehicle is not from SA so you need to define .col file)
You can use this one (https://mega.co.nz/#!wREQxBjb!prkfRJ5a0iDFB7CnA7g7BZtBbcsk3l2HWMRm-14ifns).
Title: Re: problem with custom vehicle
Post by: KAKAN on Jul 17, 2015, 12:22 PM
Hmm, ur download link isn't working
Title: Re: problem with custom vehicle
Post by: Mashreq on Jul 17, 2015, 12:40 PM
Quote from: KAKAN on Jul 17, 2015, 12:22 PMHmm, ur download link isn't working
It works fine here, anyway try this link (https://www.mediafire.com/?kq6lctcxqc6jlam).
Title: Re: problem with custom vehicle
Post by: KAKAN on Jul 17, 2015, 12:47 PM
I really have some problems with Mega I guess!!!
EDIT:
The custom vehicles are working now, Thanks Mashreq!