Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - aadb

#1
Thanks all i know got it working that when i type vehicle id or model id no matter what you call it the actual car that i want does spawn.

topic can be closed i guess now, integrating it into my server script was easier then i thought just placing it on top and setting it all into logical order was just the case im getting there.
#2
 
Quote from: jayant on Jan 28, 2015, 03:40 PM@aadb -

else if ( cmd == "veh" )
    {
        if ( !text ) PrivMessage( player, "Syntax, /c " + cmd + " <ID>" );
        else
        {
if(!IsNum(text))PrivMessage(player, "ID should be a number");
else
{
local veh = FindVehicle( text.tointeger() );
if ( !veh ) PrivMessage( player, "Error: Wrong ID of the vehicle.");
else
{
PrivMessage( player, "Getting a vehicle " + veh + "." );
veh.Pos = Vector( ( player.Pos.x + 2 ), player.Pos.y, ( player.Pos.z ) );
}
}
}
}
Try it.. :)

thanks code i will try it, hopefully it works if i type for example /veh 130 it does spawn a landstalker and not a banshee or any random car.  http://wiki.vc-mp.org/wiki/Vehicles i would like that these ID correspond with the typed ID number
#3
offcourse i've already added a script load on the server.cfg and it seems to work but there is still a strange problem

typing for example /v 111 doesnt spawn the car with ID 111 it just spawns a random car.

Looking at the vehicle ids mentioned on the wiki the IDs start from 130 but somehow ID 90 , or 30  etc will also spawn a car,

Hope someone can help me to spawn the right car for the right ID.

thanks for now.

#4
thanks for the input, hopefully i can put it in my script file in between all the other crap.

Cant seem to get it to work without having the server saying no gameload loaded due unkown stuff.

My script can be downloaded here:
http://www.4shared.com/file/WzONhqjYba/aad.html

#5
I've seen to get a strange problem when spawning a car by just using the /spawncar or my modifiied /v command.

Underneath is the code which has been used in several default script.
else if ( cmd == "v" )
    {
         if ( text )
{
local veh = FindVehicle( text.tointeger() );
veh.Pos = Vector( ( player.Pos.x + 2 ), player.Pos.y, ( player.Pos.z ) );
     MessagePlayer( "[#ffffff][INFO][#00ff00]---> You have spawned car ID : [ " + veh.ID + " ).", player );
}
else MessagePlayer( "[#ffffff][INFO][#00ff00] Type /v <car id >.", player );
     return 1;
    }

For some reason spawning a car with ID 111 doesnt spawn the car that has ID 111 it just spawns randomly and not even all models sometimes 111 to 120 seem to be the same spawned car.

Anyone know's how to solve this?

Thanks in advance
#6
Quote from: sseebbyy on Jan 06, 2015, 06:21 PMwoah :D looks nice.
waiting for new screens, with new projects. :)

Good luck, and welcome to Vice City Multiplayer 0.4 !

Hope to get back into modding again maybe a topic of map releases is something people would like
#7
Thanks my racetrack is now fully working, forgot to put VC export mode on in 3dsmax so the IPL lines were in gta-sa format.

Will post some screenshots later on.

Because of its simple design i can now make endless racetracks and just export the IPL and convert them.

Screenshot
#8
Sorry for the double post but i guess its better so it will be noticed.
Got all the objects now working but just got one problem now which i had earlier when disabling all the objects.

I have been converting the IPL export from MAP-IO/ 3dsmax to XML format but somehow it is getting totally messed up
the converter i have been using is the one you also use http://thijn.minelord.com/vcmp/iplConvert/

underneath is my original output from 3dsmax, when i convert it using that site the rotations, Z values etc are left blank or converted the wrong way.

6000, road_p1_1, 0, -2237.04, -1172.82, 10.511, 0.0, 0.0, 0.0, 1.0, -1
6000, road_p1_1, 0, -2159.29, -1172.82, 10.511, 0.0, 0.0, 0.0, 1.0, -1
6000, road_p1_1, 0, -2159.28, -1123.6, 10.511, 0.0, 0.0, 0.0, 1.0, -1
6000, road_p1_1, 0, -1954.56, -1294.86, 10.511, 0.0, 0.0, -0.707107, 0.707107, -1
6000, road_p1_1, 0, -2089.4, -1115.73, 10.511, 0.0, 0.0, -0.707107, 0.707107, -1
6000, road_p1_1, 0, -2102.2, -1066.52, 10.511, 0.0, 0.0, -0.707107, 0.707107, -1
6000, road_p1_1, 0, -2052.99, -1066.52, 10.511, 0.0, 0.0, -0.707107, 0.707107, -1
6000, road_p1_1, 0, -2003.77, -1294.86, 10.511, 0.0, 0.0, -0.707107, 0.707107, -1
6000, road_p1_1, 0, -1897.47, -1188.56, 10.511, 0.0, 0.0, 0.0, 1.0, -1
6000, road_p1_1, 0, -1995.9, -1123.6, 10.511, 0.0, 0.0, 0.0, 1.0, -1
6000, road_p1_1, 0, -1995.9, -1172.82, 10.511, 0.0, 0.0, 0.0, 1.0, -1
6000, road_p1_1, 0, -1897.47, -1237.78, 10.511, 0.0, 0.0, 0.0, 1.0, -1
6005, road_p5_1, 0, -1897.47, -1156.08, 12.1842, 0.0, 0.0, 0.0, 1.0, -1
6003, road_p2_2, 0, -2045.6, -1115.73, 12.1842, 0.0, 0.0, -0.707107, 0.707107, -1
6004, road_p4, 0, -1940.78, -1115.73, 12.1842, 0.0, 0.0, -0.707107, 0.707107, -1
6003, road_p2_2, 0, -2058.4, -1115.73, 12.1842, 0.0, 0.0, -0.707107, 0.707107, -1
6003, road_p2_2, 0, -2198.16, -1229.9, 12.1842, 0.0, 0.0, -0.707107, 0.707107, -1
6006, road_p6_1, 0, -1824.88, -1192.69, 12.8814, 0.0, 0.0, -0.707107, 0.707107, -1
6006, road_p6_1, 0, -1864.79, -1192.21, 13.1444, 0.0, 0.0, -0.707107, 0.707107, -1
6002, road_p3_1, 0, -2016.57, -1115.73, 17.1055, 0.0, 0.0, -0.707107, 0.707107, -1
6002, road_p3_1, 0, -1971.29, -1115.73, 17.1055, 0.0, 0.0, 0.707107, 0.707107, -1
6002, road_p3_1, 0, -2136.65, -1115.73, 17.1055, 0.0, 0.0, 0.707107, 0.707107, -1
6002, road_p3_1, 0, -2181.92, -1115.73, 17.1055, 0.0, 0.0, -0.707107, 0.707107, -1
6001, road_p2_1, 0, -2008.2, -1078.82, 12.1842, 0.0, 0.0, 0.0, 1.0, -1
6001, road_p2_1, 0, -2224.74, -1128.03, 12.1842, 0.0, 0.0, -0.707107, 0.707107, -1
6001, road_p2_1, 0, -2048.56, -1242.21, 12.1842, 0.0, 0.0, -0.707107, 0.707107, -1
6001, road_p2_1, 0, -1909.78, -1128.03, 12.1842, 0.0, 0.0, 0.0, 1.0, -1
6001, road_p2_1, 0, -2048.56, -1282.56, 12.1842, 0.0, 0.0, 1.0, 0.0, -1
6001, road_p2_1, 0, -1909.78, -1282.56, 12.1842, 0.0, 0.0, 0.707107, 0.707107, -1
6001, road_p2_1, 0, -2146.98, -1078.82, 12.1842, 0.0, 0.0, -0.707107, 0.707107, -1
6001, road_p2_1, 0, -2008.2, -1217.6, 12.1842, 0.0, 0.0, 0.707107, 0.707107, -1
6001, road_p2_1, 0, -2171.59, -1217.6, 12.1842, 0.0, 0.0, 0.707107, 0.707107, -1
6001, road_p2_1, 0, -2224.74, -1217.6, 12.1842, 0.0, 0.0, 1.0, 0.0, -1

This is what it should look like


Thanks for now, i hope to get the track sorted cause it now seems to be the XML which is trowing all the stuff arround and not on the right positions or rotations

PS: here are my new files if you want to check it out:
https://www.sendspace.com/file/yp4ibx
#9
Thanks for the quick reply,

i will re- export the collision files and see if that solves the problem maybe a wrong collision version or something.

Hope that solves it if not i really need to check what's wrong with my models,

Will post my progress back here if i get it working.

EDIT: replaced all the colfiles with dummy's of existing vice city objects and now they all show except that all the coordinates are all messed up ( maybe my mistake with the pivots in 3dsmax by resetting some of them) 

Hopefully by rebuilding the whole model and re-exporting all the models again might get it working at least all the stuff is loaded and showing the main problem is indeed the colfiles.  I am using Colleditor 2 , and 3dsmax to export them but maybe back to the old method and tools to get the colfiles working again. Will keep you updated once i finished all of this.
#10
Thanks for the tutorials, i tried to get the custom map things working but without any succes
Underneath my maps and objects xml code allong with my files.

<?xml version="1.0" encoding="ASCII"?>
<objectlist>
    <object id="0">
        <flags value="0" />
        <collision path="roadp1.col" />
        <texture path="roadp1.txd" />
        <model path="road_p1_1.dff" distance="250" />
</object>
  <object id="1">
        <flags value="0" />
        <collision path="roadp1.col" />
        <texture path="roadp1.txd" />
        <model path="road_p2_1.dff" distance="250" />
</object>
<object id="2">
        <flags value="0" />
        <collision path="roadp1.col" />
        <texture path="roadp1.txd" />
        <model path="road_p3_1.dff" distance="250" />
</object>
<object id="3">
        <flags value="0" />
        <collision path="roadp1.col" />
        <texture path="roadp1.txd" />
        <model path="road_p2_2.dff" distance="250" />
</object>
<object id="4">
        <flags value="0" />
        <collision path="roadp1.col" />
        <texture path="roadp1.txd" />
        <model path="road_p4.dff" distance="250" />
</object>
<object id="5">
        <flags value="0" />
        <collision path="roadp1.col" />
        <texture path="roadp1.txd" />
        <model path="road_p5_1.dff" distance="250" />
</object>
<object id="6">
        <flags value="0" />
        <collision path="roadp1.col" />
        <texture path="roadp1.txd" />
        <model path="road_p6_1.dff" distance="250" />
</object>
</objectlist>

<?xml version="1.0" encoding="ASCII" ?>
<itemlist>
<item model="6000" name="road_p1_1">
<position x="-1897.47" y="-1188.56" z="12.1842" />
<rotation format="axisangle" x="1.0" y="-1" z="" angle="" />
</item>
<item model="6000" name="road_p1_1">
<position x="-2159.29" y="-1123.6" z="12.1842" />
<rotation format="axisangle" x="1.0" y="-1" z="" angle="" />
</item>
<item model="6000" name="road_p1_1">
<position x="-2159.29" y="-1172.82" z="12.1842" />
<rotation format="axisangle" x="1.0" y="-1" z="" angle="" />
</item>
<item model="6000" name="road_p1_1">
<position x="-1995.9" y="-1123.6" z="12.1842" />
<rotation format="axisangle" x="1.0" y="-1" z="" angle="" />
</item>
<item model="6000" name="road_p1_1">
<position x="-1995.9" y="-1172.82" z="12.1842" />
<rotation format="axisangle" x="1.0" y="-1" z="" angle="" />
</item>
<item model="6000" name="road_p1_1">
<position x="-1897.47" y="-1237.78" z="12.1842" />
<rotation format="axisangle" x="1.0" y="-1" z="" angle="" />
</item>
<item model="6000" name="road_p1_1">
<position x="-2237.04" y="-1172.82" z="12.1842" />
<rotation format="axisangle" x="1.0" y="-1" z="" angle="" />
</item>
<item model="6002" name="road_p3_1">
<position x="-2181.92" y="-1115.73" z="17.1055" />
<rotation format="axisangle" x="1.0" y="-1" z="" angle="" />
</item>
<item model="6002" name="road_p3_1">
<position x="-2016.57" y="-1115.73" z="17.1055" />
<rotation format="axisangle" x="1.0" y="-1" z="" angle="" />
</item>
<item model="6003" name="road_p2_2">
<position x="-2058.4" y="-1115.73" z="12.1842" />
<rotation format="axisangle" x="1.0" y="-1" z="" angle="" />
</item>
<item model="6003" name="road_p2_2">
<position x="-2198.16" y="-1229.9" z="12.1842" />
<rotation format="axisangle" x="1.0" y="-1" z="" angle="" />
</item>
<item model="6003" name="road_p2_2">
<position x="-2045.6" y="-1115.73" z="12.1842" />
<rotation format="axisangle" x="1.0" y="-1" z="" angle="" />
</item>
<item model="6004" name="road_p4">
<position x="-1939.3" y="-1115.73" z="12.1842" />
<rotation format="axisangle" x="1.0" y="-1" z="" angle="" />
</item>
<item model="6005" name="road_p5_1">
<position x="-1897.47" y="-1156.08" z="12.1842" />
<rotation format="axisangle" x="1.0" y="-1" z="" angle="" />
</item>
<item model="6001" name="road_p2_1">
<position x="-2171.59" y="-1217.6" z="12.1842" />
<rotation format="axisangle" x="0.707107" y="-1" z="" angle="" />
</item>
<item model="6000" name="road_p1_1">
<position x="-2089.4" y="-1115.73" z="12.1842" />
<rotation format="axisangle" x="0.707107" y="-1" z="" angle="" />
</item>
<item model="6001" name="road_p2_1">
<position x="-2008.2" y="-1078.82" z="12.1842" />
<rotation format="axisangle" x="0.0" y="-1" z="" angle="" />
</item>
<item model="6001" name="road_p2_1">
<position x="-2224.74" y="-1128.03" z="12.1842" />
<rotation format="axisangle" x="0.707107" y="-1" z="" angle="" />
</item>
<item model="6001" name="road_p2_1">
<position x="-2146.98" y="-1078.82" z="12.1842" />
<rotation format="axisangle" x="0.707107" y="-1" z="" angle="" />
</item>
<item model="6001" name="road_p2_1">
<position x="-1909.78" y="-1128.03" z="12.1842" />
<rotation format="axisangle" x="0.0" y="-1" z="" angle="" />
</item>
<item model="6001" name="road_p2_1">
<position x="-2008.2" y="-1217.6" z="12.1842" />
<rotation format="axisangle" x="-0.707107" y="-1" z="" angle="" />
</item>
<item model="6001" name="road_p2_1">
<position x="-2048.56" y="-1242.21" z="12.1842" />
<rotation format="axisangle" x="-0.707107" y="-1" z="" angle="" />
</item>
<item model="6001" name="road_p2_1">
<position x="-2048.56" y="-1282.56" z="12.1842" />
<rotation format="axisangle" x="-1.0" y="-1" z="" angle="" />
</item>
<item model="6001" name="road_p2_1">
<position x="-1909.78" y="-1282.56" z="12.1842" />
<rotation format="axisangle" x="-0.707107" y="-1" z="" angle="" />
</item>
<item model="6002" name="road_p3_1">
<position x="-2136.65" y="-1115.73" z="17.1055" />
<rotation format="axisangle" x="0.0" y="-1" z="" angle="" />
</item>
<item model="6002" name="road_p3_1">
<position x="-1971.29" y="-1115.73" z="17.1055" />
<rotation format="axisangle" x="0.0" y="-1" z="" angle="" />
</item>
<item model="6001" name="road_p2_1">
<position x="-2224.74" y="-1217.6" z="12.1842" />
<rotation format="axisangle" x="1.0" y="-1" z="" angle="" />
</item>
<item model="6000" name="road_p1_1">
<position x="-2003.77" y="-1294.86" z="12.1842" />
<rotation format="axisangle" x="0.707107" y="-1" z="" angle="" />
</item>
<item model="6000" name="road_p1_1">
<position x="-2102.2" y="-1066.52" z="12.1842" />
<rotation format="axisangle" x="0.707107" y="-1" z="" angle="" />
</item>
<item model="6000" name="road_p1_1">
<position x="-2052.99" y="-1066.52" z="12.1842" />
<rotation format="axisangle" x="0.707107" y="-1" z="" angle="" />
</item>
<item model="6000" name="road_p1_1">
<position x="-1954.56" y="-1294.86" z="12.1842" />
<rotation format="axisangle" x="0.707107" y="-1" z="" angle="" />
</item>
<item model="6000" name="road_p1_1">
<position x="-1864.79" y="-1192.21" z="14.8176" />
<rotation format="axisangle" x="0.707107" y="-1" z="" angle="" />
</item>
<item model="6006" name="road_p6_1">
<position x="-1817.5" y="-1192.69" z="18.0786" />
<rotation format="axisangle" x="1.0" y="-1" z="" angle="" />
</item>
</itemlist>

Files to download
https://www.sendspace.com/file/i3z3q4

If anyone could help me out to get these files working or tell me what i am doing wrong or maybe a wrong file format i dont know

Thanks in advance

EDIT: filling in the """ with 0.0 at the angle above doesnt help either same for the Z="" filling in with 0.0 so please help me out.