How to add custom objects to your server ?!

Started by Sebastian, May 19, 2021, 06:30 AM

Previous topic - Next topic


1st step: Make sure you have "7-zip" program installed on your computer, because you need it to archive the needed files.
Better to not remove it ever. :)
2nd step: Find (or create) the objects you want to import in your server.
(I will give you an object from SAiVC as example, so credits goes to it's developers)
3rd step: Make sure you have all needed files from this list:

The file that contain object's settings; you set there the .dff, .txd anc .col for that object.
Note: You need just one file like this one, because you will write there all custom objects you add.
Another note: Do not include "objects.xml" in the archive, because it need to be somewhere else in the store directory.
The model of the custom object you want to import.
The texture of the custom object.
objectname.col (if you don't add it, use <collision type="none" />)
The colision of the custom object.
It can be solid, but it's optional.

4th step: Open "7-zip" program, and create the ".7z" archive, but we need to think a bit about it's name.
The archive's name format is this:  objectname_unp.7z
Atention ! Only the ".dff" , ".txd" and ".col" files should be in the archive.
5th step: Since the archive is done, we can take care of "objects.xml".
There, like in any ".xml" file, we need a code that is recognized by VC:MP.
(watch the video to see it)
We need to set every filename and value in the right object group.

6th step: Now all are ready to be moved in your server's directory !
The "objectname_unp.7z" archive should  be moved to ".../server/store/"
and the "objects.xml" should be moved to ".../server/store/objects/"

7th step: Open your server, spawn the object with ID 6000, and have fun testing it ! :D

Note: IDs of Custom Objects starts with 6000.
(<object id="23"> in .xml means 6023)

That's all, I hope you will success ! Good luck ! ;)
Credits: Seby (me) & Thijn (for written tutorial in forum)

Also, here is how to deal with custom objects in Map Editor (MEd)