Jump to content

White Custom Cars.


DazzaJay

Recommended Posts

No idea whats wrong with this. Basically, server side custom cars arent working as they should on my server.... so lets jump straight to the info.

Here is screenshots from what its like in game:

NOTE: I HAVE TESTED ALL THESE CARS IN A SEPERATE INSTALL OF GTA AND THEY ALL WORK NORMALLY.

The first one is showing the DFT30 im using.. (All it is is a Fixed model that has the missing wheel)

But as you can see, the Driver sits on the back, and the Headlight effect is coming from the crotch..... kind of brings new meaning to the saying "Where the sun dont shine"... lol.

dft1tn.jpg

This second image shows the Passenger sits in the exact same spot.

dft2tn.jpg

This third image shows that when the passenger exits, the character and the door still exibit a normal behaviour, even tho the character is miles away from it.

dft3tn.jpg

This image shows the "Buffalo D1" as being completley textureless And the Driver sits in the Dead Center... now ive heard that some girls like Gearsticks....

buff1tn.jpg

Same again, different angle.

buff2tn.jpg

Infernus D1, also textureless, with driver in dead center.

inf1tn.jpg

Same again, Different angle

inf2tn.jpg

No textures, both fdriver and passenger in the middle.

inf3tn.jpg

Shell Tanker Trailer Textureless.

trailer1tn.jpg

Same again, diff angle.

trailer2tn.jpg

Altho the trailer exibits another odd affect that the other vehicles dont.

It seems to have No collision near the front, and also, cannot latch on to a Truck head, as if its connecter dosent exist.

And as i said before, all of these vehicles work fine in GTA SA SinglePlayer when they are put into the gta3.img file.

And here are the scripts...

Ignore the DFT30 not having a texture line, as its model is supposed to use the original game textures, as it was just a simple wheel fix.

i will also link to the cars i was using in this, In order of how they appear in the file.

(And dont worry about responding to the White cars issue in this thread, as i will be making another thread for that reason.

DFT30_bugfix.jpg

DFT30 Bugfix: http://gta-worldmods.planet-multiplayer ... themeid=53

infernusD1%5Bgta-worldmods.de%5D.jpg

Infernus D1: http://gta-worldmods.planet-multiplayer ... themeid=12

SHELL%20_PETROTRAILER%5Bgta-worlmods.de%5D.jpg

Shell Tanker Trailer: http://gta-worldmods.planet-multiplayer ... themeid=53

BuffaloD1%5Bgta-worldmods.de%5D.jpg

Buffalo D1: http://gta-worldmods.planet-multiplayer ... themeid=12

  
dff = engineLoadDFF("data/dft30.dff", 578 ) 
engineReplaceModel(dff, 578) 
  
dff = engineLoadDFF("data/infernus.dff", 411 ) 
engineReplaceModel(dff, 411) 
txd = engineLoadTXD("data/infernus.txd") 
engineImportTXD(txd, 411) 
  
dff = engineLoadDFF("data/petrotr.dff", 584 ) 
engineReplaceModel(dff, 584) 
txd = engineLoadTXD("data/petrotr.txd") 
engineImportTXD(txd, 584) 
  
dff = engineLoadDFF("data/buffalo.dff", 402 ) 
engineReplaceModel(dff, 402) 
txd = engineLoadTXD("data/buffalo.txd") 
engineImportTXD(txd, 402) 
  

and the meta.xml

<meta> 
    <info author="DazzaJay" name="carpack" version="1" type="script" /> 
    <script src="carpack.lua" type="client" /> 
    <file src="data/dft30.dff" /> 
    <file src="data/infernus.dff" /> 
    <file src="data/infernus.txd" /> 
    <file src="data/petrotr.dff" /> 
    <file src="data/petrotr.txd" /> 
    <file src="data/buffalo.dff" /> 
    <file src="data/buffalo.txd" /> 
</meta>  

As you can see, there is nothing wrong with the code. (or none that i can see, concidering i copy'd it from the Wiki.)

Link to comment

So you mean like this.....

dff = engineLoadDFF("data/dft30.dff", 578 ) 
engineReplaceModel(dff, 578) 
  
txd = engineLoadTXD("data/infernus.txd") 
engineImportTXD(txd, 411) 
dff = engineLoadDFF("data/infernus.dff", 411 ) 
engineReplaceModel(dff, 411) 
  
txd = engineLoadTXD("data/petrotr.txd") 
engineImportTXD(txd, 584) 
dff = engineLoadDFF("data/petrotr.dff", 584 ) 
engineReplaceModel(dff, 584) 
  
txd = engineLoadTXD("data/buffalo.txd") 
engineImportTXD(txd, 402) 
dff = engineLoadDFF("data/buffalo.dff", 402 ) 
engineReplaceModel(dff, 402) 
  

as i have tried this.... in an old test i did, with the same results, but that was DP1 when i tested it like that

Link to comment

Hello,

First of all use the search thing.

This is the code:

function replaceModel() 
  txd = engineLoadTXD ( "data/petrotr.txd" ) 
  engineImportTXD ( txd, 584 ) 
  dff = engineLoadDFF ( "data/petrotr.dff", 584 ) 
  engineReplaceModel ( dff, 584 ) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) 

CLIENT SIDE!!!

When you are in the server type /restart scriptname and it will load correctly

I never tried this but you could:

function replaceModel() 
  txd = engineLoadTXD ( "data/petrotr.txd",  584 ) 
  engineImportTXD ( txd, 584 ) 
  dff = engineLoadDFF ( "data/petrotr.dff", 584 ) 
  engineReplaceModel ( dff, 584 ) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) 

And then look if it works correctly when you DON'T restart the script.

Greetings,

CJGrove

Link to comment

Laying the script out like this worked.

function replaceModel() 
  dff = engineLoadDFF("data/dft30.dff", 578 ) 
  engineReplaceModel(dff, 578) 
  
  txd = engineLoadTXD("data/infernus.txd", 411 ) 
  engineImportTXD(txd, 411) 
  dff = engineLoadDFF("data/infernus.dff", 411 ) 
  engineReplaceModel(dff, 411) 
  
  txd = engineLoadTXD("data/petrotr.txd", 584 ) 
  engineImportTXD(txd, 584) 
  dff = engineLoadDFF("data/petrotr.dff", 584 ) 
  engineReplaceModel(dff, 584) 
  
  txd = engineLoadTXD("data/buffalo.txd", 402 ) 
  engineImportTXD(txd, 402) 
  dff = engineLoadDFF("data/buffalo.dff", 402 ) 
  engineReplaceModel(dff, 402) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) 

Altho, the seats are still all screwed up (Waits for DP3)

Link to comment
Laying the script out like this worked.
function replaceModel() 
  dff = engineLoadDFF("data/dft30.dff", 578 ) 
  engineReplaceModel(dff, 578) 
  
  txd = engineLoadTXD("data/infernus.txd", 411 ) 
  engineImportTXD(txd, 411) 
  dff = engineLoadDFF("data/infernus.dff", 411 ) 
  engineReplaceModel(dff, 411) 
  
  txd = engineLoadTXD("data/petrotr.txd", 584 ) 
  engineImportTXD(txd, 584) 
  dff = engineLoadDFF("data/petrotr.dff", 584 ) 
  engineReplaceModel(dff, 584) 
  
  txd = engineLoadTXD("data/buffalo.txd", 402 ) 
  engineImportTXD(txd, 402) 
  dff = engineLoadDFF("data/buffalo.dff", 402 ) 
  engineReplaceModel(dff, 402) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) 

Altho, the seats are still all screwed up (Waits for DP3)

Seats are allways fucked, even in next version i guess. It just replaces the stuff in client side, so it just "looks" like the new cars. But actually it isnt. You need a serverside script which replaces them in server side. Not 100% sure, but i think so :P

Link to comment

Here is the odd thing, if i put the cars into my gta3.img file, and play the game, Of course i can see the cars on My side, and the seats work correctly.

So if what i am thinking is correct. then car mods should only need to be Client Side.

My Guess is (From what i have witnessed with MTA and custom cars) is that it Seems like its not loading the collision, and ceatian markers correctly.

like the Shell Tanker Trailer, its entire front section seems to have no collision, and also, no marker that connects to the truck.

but i know from playing in singleplayer, that it has Full Collision, and a working tow marker.

So it seems that MTA isnt loading the entire .dff file correctly, only partially.

Link to comment

Also, textures on mods aren't smooth so you see every pixel and they aren't mixed together...not sure what thats caused from, but yea the dummies not loading makes the seats, lights, and exhaust mess up. Sometimes the cars show up white and they just have to be reloaded, and sometimes the dummies work just fine until you leave the area your in....not sure why that would be.

And wow, talk about the ugliest Infernus/Buffalo I've ever seen. How can you screw a car up that badly??? Paint job/rims look good. Everything else sucks. Worst. Exhaust. System. Ever. Damn ricers...

Link to comment

yeah, im not a fan of "Riced" cars, but a lot of the other people who visit my server said they wanted them :-s

after seeing how pixelised the textures were, i am deffanatly going to wait for a ..... working... version of DM befor trying to add custom cars again....

i might try my "Australian police car" pack :-)

http://www.potholestudios.com/Downloads ... id=45.html

Screenshots

Also.. offroader23..... did you make the 6-wheel Dune? (just seeing if you are the person im thinking you are)

Link to comment

Cool. i just had 1 question about the 6-Wheel Dune....

i dare say if it was fixable it wouldnt be the way it is...

but basically, when performing hard turns in it, the front most and rear-most wheels tilt the correct direction, but the central set tilt in the oppisite direction.

what causes that?

Link to comment

this works perfect for me except when i spawn the modded car. i replaced a bullet with a ford gt and it was great. the only problem is that when i spawn the bullet, the textures mess up (i.e. wheels looking all chromey and stuff, you could say the texture halfway works) and i end up sitting in the middle of the car. what is the cause and/or solution for this?

Link to comment

i have a temporary fix for this situation now. I make a seperate command to refresh the model. Do this a few times and it should fix it.

Lets use the Bullet for an example.

  
function load ( ) 
    txd = engineLoadTXD("data/bullet.txd") 
    engineImportTXD(txd, 541) 
    dff = engineLoadDFF("data/bullet.dff", 541 ) 
    engineReplaceModel(dff, 541) 
    outputChatBox ( "The Bullet Has Been Converted Into A GT-40" ) 
end 
  
addCommandHandler ( "GT-Refresh", unload ) 
  

Link to comment
i have a temporary fix for this situation now. I make a seperate command to refresh the model. Do this a few times and it should fix it.

Lets use the Bullet for an example.

  
function load ( ) 
    txd = engineLoadTXD("data/bullet.txd") 
    engineImportTXD(txd, 541) 
    dff = engineLoadDFF("data/bullet.dff", 541 ) 
    engineReplaceModel(dff, 541) 
    outputChatBox ( "The Bullet Has Been Converted Into A GT-40" ) 
end 
  
addCommandHandler ( "GT-Refresh", unload ) 
  

I don't get the command handler. Please explain this to me.

addCommandHandler ( "GT-Refresh", unload )

Why unload while the function name is load?

Greetings,

CJGrove

Link to comment

ive been testing and i determined the mod was just weird. i did it with another model and all was well. one thing went awry though. if i reconnected i crashed and when i came back cars had no texture. i had to refresh the resource to make it work, but i cant do that if many people come on the server. i know why that is though. there is a replaceDff but there isnt a replaceTxd. theres only a loadTxd, which means that it is not possible for this to be user friendly at the moment. its too much of a hassle to have modded cars.

Link to comment
i have a temporary fix for this situation now. I make a seperate command to refresh the model. Do this a few times and it should fix it.

Lets use the Bullet for an example.

  
function load ( ) 
    txd = engineLoadTXD("data/bullet.txd") 
    engineImportTXD(txd, 541) 
    dff = engineLoadDFF("data/bullet.dff", 541 ) 
    engineReplaceModel(dff, 541) 
    outputChatBox ( "The Bullet Has Been Converted Into A GT-40" ) 
end 
  
addCommandHandler ( "GT-Refresh", unload ) 
  

I don't get the command handler. Please explain this to me.

addCommandHandler ( "GT-Refresh", unload )

Why unload while the function name is load?

Greetings,

CJGrove

oops sorry guys i meant this

  
function load ( ) 
    txd = engineLoadTXD("data/bullet.txd") 
    engineImportTXD(txd, 541) 
    dff = engineLoadDFF("data/bullet.dff", 541 ) 
    engineReplaceModel(dff, 541) 
    outputChatBox ( "The Bullet Has Been Converted Into A GT-40" ) 
end 
  
addCommandHandler ( "refresh", load ) 
  

so u type /refresh a few times and it should fix it. Works on my server!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...