Vice City: Multiplayer

News & Announcements => Client Updates => Topic started by: maxorator on Mar 15, 2016, 09:43 PM

Title: Client Update Released (March 15)
Post by: maxorator on Mar 15, 2016, 09:43 PM
A client update has been released for 04rel003.




How to hide objects via XML

The structure of a map xml file is a bit different now (old format still works). Here's a sample that hides a building in downtown:
<?xml version="1.0" encoding="ASCII"?>
<map>
<itemlist>
</itemlist>
<hiddenlist>
<rule model="1738">
<position x="-593.064209" y="686.2479858" z="27.2444458" />
</rule>
</hiddenlist>
</map>

So if you want to also hide objects, the root element has to be map and both the itemlist and hiddelist go inside it.
Title: Re: Client Update Released (March 15)
Post by: Murdock on Mar 16, 2016, 12:45 AM
I just updated my client and changed my xml file to hide the building that has the 8ball garage at the docks. I took the coordinates from Vice City's docks.IPL and it seems to work fine with the HideObject function, but not when defining it in the xml.
This is the XML I'm using, am I missing something here?

<?xml version="1.0" encoding="ASCII" ?>
<map>
<itemlist>
<item model="6162" name="doc_shedbig30">
<position x="-1161.041626" y="-1381.602295" z="21.72377777" />
<rotation format="axisangle" x="0" y="0" z="0.1865240633" angle="0.982450366" />
</item>
</itemlist>
<hiddenlist>
<rule model="667">
<position x="-1161.041626" y="-1381.602295" z="21.72377777" />
</rule>
<rule model="748">
<position x="-1161.041626" y="-1381.602295" z="21.72400093" />
</rule>
</hiddenlist>
</map>
Title: Re: Client Update Released (March 15)
Post by: MacTavish on Mar 16, 2016, 01:36 AM
@maxorator can you explain it a bit more i understood that <hidden> is to hide objects but what is <itemlist>
Title: Re: Client Update Released (March 15)
Post by: Stormeus on Mar 16, 2016, 03:55 AM
Quote from: Kusanagi on Mar 16, 2016, 01:36 AM@maxorator can you explain it a bit more i understood that <hidden> is to hide objects but what is <itemlist>

<itemlist> is a regular map definition.
Title: Re: Client Update Released (March 15)
Post by: MacTavish on Mar 16, 2016, 04:49 AM
Quote from: Stormeus on Mar 16, 2016, 03:55 AM
Quote from: Kusanagi on Mar 16, 2016, 01:36 AM@maxorator can you explain it a bit more i understood that <hidden> is to hide objects but what is <itemlist>

<itemlist> is a regular map definition.
got it. it means we can hide and recreate objects in one xml right?
Title: Re: Client Update Released (March 15)
Post by: DizzasTeR on Mar 16, 2016, 04:58 AM
Storm, I'd be great if XMLs can also support World for the creation of objects. In future is there any plan for non-static objects?
Title: Re: Client Update Released (March 15)
Post by: Stormeus on Mar 16, 2016, 06:02 AM
Quote from: Doom_Kill3R on Mar 16, 2016, 04:58 AMStorm, I'd be great if XMLs can also support World for the creation of objects. In future is there any plan for non-static objects?

Not possible. XML maps are treated like the game's own IPLs and do not use VC:MP's streaming, but virtual worlds require entities to use that streaming. In theory, XMLs could specify interiors for objects, but in order for those objects to be visible, you'd have to change the player's interior, which would cause the rest of the world to disappear.
Title: Re: Client Update Released (March 15)
Post by: DizzasTeR on Mar 16, 2016, 06:31 AM
Well then I'm sure there is a way to set object's LOD view distance which were created using CreateObjects. So that we can set their draw distance through scripts. Currently we can only do that in XMLs but XMLs can't support Worlds.
Title: Re: Client Update Released (March 15)
Post by: rww on Mar 16, 2016, 06:54 AM
I waiting for tobj and 2dfx ;)
Title: Re: Client Update Released (March 15)
Post by: Sebastian on Mar 16, 2016, 08:59 PM
Quote from: rwwpl on Mar 16, 2016, 06:54 AMI waiting for tobj and 2dfx ;)

^ This so much ... would be just awesome.
Title: Re: Client Update Released (March 15)
Post by: KAKAN on Mar 19, 2016, 02:09 AM
Great work!
Quote from: Doom_Kill3R on Mar 16, 2016, 04:58 AMStorm, I'd be great if XMLs can also support World for the creation of objects.
Me too :)

Quote from: Doom_Kill3R on Mar 16, 2016, 04:58 AMIn future is there any plan for non-static objects?
I want static objects through XML( I have an object which is not static, i.e, the volleyball )
Title: Re: Client Update Released (March 15)
Post by: EK.IceFlake on Mar 19, 2016, 04:35 AM
@Doom_Kill3R
EDIT: Non Static objects are impossible through XML, they are rendered client side which means the client has full control over the object and they cannot be synced as the client can't tell the server (it recognizes the object as its own game object, like storm said)
Title: Re: Client Update Released (March 15)
Post by: DizzasTeR on Mar 19, 2016, 05:56 AM
Do you even have any idea what are you talking about? Seriously open your eyes and read it all up again. I'm not talking about static objects, I'm talking about non-static. Involving Physics and which can be disturbed from their position. Jeez.
Title: Re: Client Update Released (March 15)
Post by: EK.IceFlake on Mar 19, 2016, 06:44 AM
Sorry word mistake. Non static objects* the rest of the statement is true for non static. Fixed.
Title: Re: Client Update Released (March 15)
Post by: DizzasTeR on Mar 19, 2016, 04:40 PM
Still I never said to add it in XML. Please read my post again.
Title: Re: Client Update Released (March 15)
Post by: EK.IceFlake on Mar 19, 2016, 05:52 PM
"through XML"
happy?