Vice City: Multiplayer

VC:MP Discussion => General Discussion => Topic started by: Nihongo^ on Sep 01, 2016, 05:33 PM

Title: TXD file load
Post by: Nihongo^ on Sep 01, 2016, 05:33 PM
can any body tell me  how to load only  a single texture file ? ( to modify the building colors ) 
Title: Re: TXD file load
Post by: Sebastian on Sep 01, 2016, 08:50 PM
Search for TXD Workshop software and tutorials.

What it can do?  Opens .txd and .img files, shows you textures, imports/exports textures.

So all you have to do is to get that building's .txd file, open it with the software, export the texture you wanna change then import it back when it's ready.

Good luck!
Title: Re: TXD file load
Post by: Nihongo^ on Sep 02, 2016, 06:36 AM
Quote from: sseebbyy on Sep 01, 2016, 08:50 PMSearch for TXD Workshop software and tutorials.

What it can do?  Opens .txd and .img files, shows you textures, imports/exports textures.

So all you have to do is to get that building's .txd file, open it with the software, export the texture you wanna change then import it back when it's ready.

Good luck!
Thanks for your reply sseebbyy
see this link its a modified taxi building

http://www.gtainside.com/en/vicecity/mods/14981-amizing-cabs/

i want to tell the server to load that txd file instead of the original ( not in vice city only for my server ) 

(https://s17.postimg.io/4tgmifz0v/Untitled.png)
Title: Re: TXD file load
Post by: Xmair on Sep 02, 2016, 07:22 AM
Use HideMapObject and create the custom object on the same pos.
Title: Re: TXD file load
Post by: MacTavish on Sep 03, 2016, 12:12 PM
This topic might help you i have edited the texture you can use same method to add your texture http://forum.vc-mp.org/?topic=1034.0
Title: Re: TXD file load
Post by: Nihongo^ on Sep 03, 2016, 03:45 PM
Quote from: MacTavish on Sep 03, 2016, 12:12 PMThis topic might help you i have edited the texture you can use same method to add your texture http://forum.vc-mp.org/?topic=1034.0
i'll check it Thanks

Quote from: Xmair on Sep 02, 2016, 07:22 AMUse HideMapObject and create the custom object on the same pos.
i acted upon your advice but dude object is not removing even i used Hideobject function
QuoteHideMapObject(1620,-992.949, 201.774 ,18.7424);
 CreateObject(6000,0,Vector(-992.949, 201.774 ,18.7424),255);
Title: Re: TXD file load
Post by: PunkNoodle on Sep 03, 2016, 03:59 PM
If I'm wrong correct me, but all I understood from several advices and topics (I even made one (http://forum.vc-mp.org/?topic=3277.0) myself) in VC:MP you just can't simply change a .txd without replacing the model as well.
Title: Re: TXD file load
Post by: Nihongo^ on Sep 03, 2016, 05:32 PM
here's the bug

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi65.tinypic.com%2Fwbrixi.png&hash=26214b2c5b99d1230f46db9280768eae0a5a9e0b)
Title: Re: TXD file load
Post by: Kewun on Sep 03, 2016, 05:45 PM
World, and after pos x
try it
Title: Re: TXD file load
Post by: Nihongo^ on Sep 03, 2016, 05:53 PM
Quote from: Kewun on Sep 03, 2016, 05:45 PMWorld, and after pos x
try it
Like this
RawHideMapObject(1620, 1,-992.949, 201.774 ,18.7424); not work
Title: Re: TXD file load
Post by: Shadow on Sep 03, 2016, 10:57 PM
What would world have to do with that?

void RawHideMapObject( int nModelId, int x, int y, int z )
{
functions->HideMapObject( nModelId, x, y, z );
}

That's from the squirrel plugin. As you can see, to use RawHideMapObject, you need to pass 3 integers, not floats. So get rid of the floats, like this:

RawHideMapObject(1620, -992, 201, 18);
Title: Re: TXD file load
Post by: Nihongo^ on Sep 04, 2016, 07:34 AM
Thanks for reply shadow but its work i tried your code but the object not removing from that place
 
Its weird i try to remove this car using iplhide32 its successfully removed from there

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi66.tinypic.com%2Fb8trba.png&hash=c72af863e7bb1bfcdb3366d80e042b3757f12220)

but why the taxi house not removing ?
Title: Re: TXD file load
Post by: Sebastian on Sep 04, 2016, 08:19 AM
Some objects can't be hidden. It has been reported since the function was implemented.

The only way is to hidevicecity.txt then re-add the default map but without that object.
There will be plenty map bugs though.
Title: Re: TXD file load
Post by: Nihongo^ on Sep 04, 2016, 09:15 AM
so its mean there's no way to remove that taxi house OR update the texture
Title: Re: TXD file load
Post by: ysc3839 on Sep 04, 2016, 09:26 AM
Quote from: Shadow on Sep 03, 2016, 10:57 PMWhat would world have to do with that?

void RawHideMapObject( int nModelId, int x, int y, int z )
{
functions->HideMapObject( nModelId, x, y, z );
}

That's from the squirrel plugin. As you can see, to use RawHideMapObject, you need to pass 3 integers, not floats. So get rid of the floats, like this:

RawHideMapObject(1620, -992, 201, 18);
Don't use RawHideMapObject.void HideMapObject( int nModelId, float x, float y, float z )
{
int x2 = (int)(floor( x * 10.0f ) + 0.5f);
int y2 = (int)(floor( y * 10.0f ) + 0.5f);
int z2 = (int)(floor( z * 10.0f ) + 0.5f);

functions->HideMapObject( nModelId, x2, y2, z2 );
}
Title: Re: TXD file load
Post by: Nihongo^ on Sep 04, 2016, 10:46 AM
void HideMapObject( int nModelId, float x, float y, float z )
{
 int x2 = (int)(floor( x * 10.0f ) + 0.5f);
 int y2 = (int)(floor( y * 10.0f ) + 0.5f);
 int z2 = (int)(floor( z * 10.0f ) + 0.5f);

 functions->HideMapObject( nModelId, x2, y2, z2 );
}

how do i use it ? 
Title: Re: TXD file load
Post by: Shadow on Sep 04, 2016, 11:57 AM
Pass 3 floats to it. It's the same way you would've originally called RawHideMapObject..


RawHideMapObject(1620, -992.949, 201.774, 18.7424);