Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: [Elv]Woodland on Oct 30, 2015, 01:56 PM

Title: Need Help!
Post by: [Elv]Woodland on Oct 30, 2015, 01:56 PM
Hey Guys!
Iam new in map editing so therefore i need some help!

I am using Doom Killers mapeditor!
I got X Y Z Coords + Rot X Rot y Rot Z coords
i added them like this >>>>>>>>>>>>>>>>

Have a look above becz iam not sure that iam perfect or wrong!

<?xml version="1.0" encoding="ASCII" ?>
        <itemlist>
                <item model="310" name="phils_compnd_gate">
                        <position x="-1640.39" y="-211.929" z="13.7183" />
                        <rotation format="axisangle" x="3.09081" y="3.10826" z="-1.5412" angle="1" />
                </item>
      </itemlist>     


Now look at the pictures!

This pic , i got when i done editing! have a look at its position! ( in map editor )
http://i.imgur.com/LsbF0RL.jpg


And this result i got when i added this in Serv ( in server )

http://i.imgur.com/6z9Kpmd.jpg

Now look at these both pictures !plz tell me whats the mistake i did in making its XML file?
Title: Re: Need Help!
Post by: DizzasTeR on Oct 30, 2015, 03:01 PM
Seems like you missed the second custom object in the xml, if the black object { on the white roof } is another object you must specify that in xml as well. Seems like I must start working on XML outputs but the current INI plugin is really worse for such outputs.
Title: Re: Need Help!
Post by: [Elv]Woodland on Oct 31, 2015, 05:18 AM
@Doom_Killer I dint get you , what you mean to say , What i forgot and whats the solution?

What second object? i have created only one object using your editor but? :(
Title: Re: Need Help!
Post by: Xmair on Oct 31, 2015, 05:35 AM
@Doom_Killer , It can be his graphics problem.
@Woodland what do you mean that you want to cover the entrance with gates? If yes, Than create a new object there and keep this one too!
Title: Re: Need Help!
Post by: [Elv]Woodland on Nov 01, 2015, 04:23 PM
<item model="310" name="phils_compnd_gate">
                        <position x="-1640.39" y="-211.929" z="13.7183" />
                        <rotation format="axisangle" x="3.09081" y="3.10826" z="-1.5412" angle="1" />
                </item>
            <item model="310" name="phils_compnd_gate">
                        <position x="257.726" y="-237.253" z="11.0713" />
                        <rotation format="axisangle" x="0" y="0" z="0" angle="1.15" />
                </item>

Still the same problem !
1st one object is not in ts exact position and the second is not even present in the map XD
:(
Title: Re: Need Help!
Post by: MacTavish on Nov 02, 2015, 05:34 PM
Why you want to create an .xml when you can create the thing you want by
CreateObject(....);

You'll worked hard to create something and succeed to create an .xml started server and an nab joined and downloaded your .xml
Profit to that nab because he got an readymade custom unique object

And please use [code-] your stuff [/code-] remove - to make it work
Title: Re: Need Help!
Post by: [Elv]Woodland on Nov 03, 2015, 08:16 AM
Ohh Crap by the way thanks , leme try as you said
so you mean by using CreateObject , this prob will be fixed?!
Title: Re: Need Help!
Post by: KAKAN on Nov 03, 2015, 08:30 AM
No, I think, because the XML is same as the CreateObject.
Yet, I'm not sure, because I haven't tested it.
You should try it anyways.
Title: Re: Need Help!
Post by: DizzasTeR on Nov 03, 2015, 09:33 AM
XML's only advantage is to increase distance of object as far as I know. On the other hand CreateObject does the same job in creating objects as XML does only that CreateObject has draw distance of 100.
Title: Re: Need Help!
Post by: [Elv]Woodland on Nov 03, 2015, 11:47 AM
hmm Leme try Create Object , No worries if problem occurs again becz you guys will help na yaar :P
Title: Re: Need Help!
Post by: KAKAN on Nov 03, 2015, 11:49 AM
Before you made the XML file, the XYZ coords, give it to us, I think you did something wrong in that only.
Title: Re: Need Help!
Post by: [Elv]Woodland on Nov 03, 2015, 12:17 PM
ohh ohk then , there you go X < Y < Z
257.726 , -237.253 ,11.0713

Rotzz RotX < RotY < RotZ
0.0 , 0.0 , 1.15
Title: Re: Need Help!
Post by: KAKAN on Nov 03, 2015, 12:20 PM
That's the problem
Use this XML:-
<?xml version="1.0" encoding="ASCII" ?>
        <itemlist>
                <item model="310" name="phils_compnd_gate">
                        <position x="257.726" y="-237.253" z="11.0713" />
                        <rotation format="axisangle" x="0" y="0" z="1.15" angle="0" />
                </item>
      </itemlist>     
Just fix the angle
Title: Re: Need Help!
Post by: [Elv]Woodland on Nov 03, 2015, 12:24 PM
What you mean "just fix the angle" i mean i dint get you! ?

well i tried yours !but the object is not even present in map !
Title: Re: Need Help!
Post by: KAKAN on Nov 03, 2015, 12:37 PM
Hmm. I can't fix it now
Title: Re: Need Help!
Post by: Thijn on Nov 03, 2015, 05:43 PM
One other advantage of using XML files for maps is they don't count towards the object limit of 2000. While most people wont hit that limit, it might be reached by very big maps.
Title: Re: Need Help!
Post by: KAKAN on Nov 03, 2015, 05:46 PM
Yea.
And some big disadvantages are:-
1. Some one can copy your hard work, with a little brain.
2, No one like to download shits.
Title: Re: Need Help!
Post by: [Elv]Woodland on Nov 03, 2015, 06:00 PM
So what should i do , how can this be solved!
Title: Re: Need Help!
Post by: KAKAN on Nov 03, 2015, 06:43 PM
Last solution:-
Open your map editor, make that thing again.
ANd this time, copy the right xyz coords
Title: Re: Need Help!
Post by: [Elv]Woodland on Nov 04, 2015, 12:11 PM
Kakan , i did it many times but same problem! so how about CreateObject , can i try using createobject???
Will it fix !
Title: Re: Need Help!
Post by: KAKAN on Nov 04, 2015, 12:17 PM
Maybe, try it. That's the last thing you can do.