Moomasterq Posted October 7, 2013 Share Posted October 7, 2013 <removeWorldObject id="removeWorldObject (modshopdoor_SFSe) (1)" radius="5.9890670776367" interior="0" model="11313" lodModel="0" posX="-1936.26794" posY="239.48399" posZ="35.22146" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="removeWorldObject (sprayshpdr2_SFSe) (1)" radius="6.6437840461731" interior="0" model="11319" lodModel="0" posX="-1906.42065" posY="277.84949" posZ="41.34696" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="removeWorldObject (modshopdoor1_SFS) (1)" radius="5.9891090393066" interior="0" model="10575" lodModel="0" posX="-2716.29932" posY="215.94716" posZ="3.98087" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="removeWorldObject (spdr_sfw) (1)" radius="6.7266039848328" interior="0" model="9625" lodModel="0" posX="-2424.68701" posY="1028.07813" posZ="51.80761" rotX="0" rotY="0" rotZ="0"></removeWorldObject> Hello everyone, after a very successful post in the scripting subforum I tried my hand at mapping. I created various objects with the map editor fairly well, and got the map working but then I went to work on the pay and spray function. But in order to do so I needed to first remove the doors to the garages. So I booted up the editor and worked my magic deleting the doors and then went to upload the map, and that is where everything fell apart. Eventually I figured out that the mapmanager was breaking my game and required me to disable it completely (Everytime I tried to restart my gamemode it broke the map trying to load the editors map instead of the one defined in meta.xml). However, I now have a pretty heft problem, the doors are not being removed from the locations selected in the editors. If I enable the editor and map manager they dissappear, but then loading gamemodes/maps breaks disabling the map and gamemode giving me a black screen until login. I've tried updating my resources, but no luck. Any help would be helpful, and I'll try to respond in the morning. Thanks. Edit: I'd like to note that my objects, vehicles, and everything else loads fine, just not the removal of objects. Edit 2: Figured that the whole map script is worth putting here in case of something breaking it further up <map edf:definitions="editor_main"> <object id="object (venefountain02) (1)" interior="0" collisions="true" alpha="255" doublesided="false" model="6965" scale="1" dimension="0" breakable="true" posX="-1701.80005" posY="-471" posZ="17" rotX="0" rotY="0" rotZ="0"></object> <object id="object (libtwrhelipd_LAn2) (1)" interior="0" collisions="true" alpha="255" doublesided="false" model="4726" scale="1" dimension="0" breakable="true" posX="-1661.69995" posY="-389.5" posZ="11.9" rotX="0" rotY="0" rotZ="326"></object> <object id="object (Airport_11_SFSe) (1)" interior="0" collisions="true" alpha="255" doublesided="false" model="10767" scale="1" dimension="0" breakable="true" posX="-1758.89941" posY="-523.2998" posZ="-1.8" rotX="0" rotY="0" rotZ="43.995"></object> <object id="object (Airport_11_SFSe) (2)" interior="0" collisions="true" alpha="255" doublesided="false" model="10767" scale="1" dimension="0" breakable="true" posX="-1755.90002" posY="-353.39999" posZ="-1.8" rotX="0" rotY="0" rotZ="43.995"></object> <object id="object (Airport_10_SFSe) (1)" interior="0" collisions="true" alpha="255" doublesided="false" model="10766" scale="1" dimension="0" breakable="true" posX="-1754.19995" posY="-226.89999" posZ="8" rotX="356" rotY="0" rotZ="0"></object> <object id="object (CJ_BUSH_PROP3) (1)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1711.19995" posY="-474.5" posZ="13.9" rotX="0" rotY="2" rotZ="12"></object> <object id="object (CJ_BUSH_PROP3) (2)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1711.69995" posY="-472" posZ="13.9" rotX="0" rotY="0" rotZ="15.996"></object> <object id="object (CJ_BUSH_PROP3) (3)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1711.80005" posY="-470.10001" posZ="13.9" rotX="0" rotY="0" rotZ="347.996"></object> <object id="object (CJ_BUSH_PROP3) (4)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1711.40002" posY="-467.89999" posZ="13.9" rotX="0" rotY="0" rotZ="347.992"></object> <object id="object (CJ_BUSH_PROP3) (5)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1710.30005" posY="-465.89999" posZ="13.9" rotX="0" rotY="0" rotZ="321.992"></object> <object id="object (CJ_BUSH_PROP3) (6)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1708.80005" posY="-463.89999" posZ="13.9" rotX="0" rotY="0" rotZ="321.987"></object> <object id="object (CJ_BUSH_PROP3) (7)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1707.19995" posY="-462.29999" posZ="13.9" rotX="0" rotY="0" rotZ="305.987"></object> <object id="object (CJ_BUSH_PROP3) (8)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1705.40002" posY="-461.20001" posZ="13.9" rotX="0" rotY="0" rotZ="299.986"></object> <object id="object (CJ_BUSH_PROP3) (9)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1703" posY="-460.60001" posZ="13.9" rotX="0" rotY="0" rotZ="277.982"></object> <object id="object (CJ_BUSH_PROP3) (10)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1701.19995" posY="-460.39999" posZ="13.9" rotX="0" rotY="0" rotZ="277.982"></object> <object id="object (CJ_BUSH_PROP3) (11)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1699.09998" posY="-461" posZ="13.9" rotX="0" rotY="0" rotZ="251.982"></object> <object id="object (CJ_BUSH_PROP3) (12)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1696.90002" posY="-462.10001" posZ="13.9" rotX="0" rotY="0" rotZ="241.977"></object> <object id="object (CJ_BUSH_PROP3) (13)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1695.19995" posY="-463.29999" posZ="13.9" rotX="0" rotY="0" rotZ="227.974"></object> <object id="object (CJ_BUSH_PROP3) (14)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1693.09998" posY="-465.10001" posZ="13.9" rotX="0" rotY="0" rotZ="215.972"></object> <object id="object (CJ_BUSH_PROP3) (15)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1692.09998" posY="-467.29999" posZ="13.9" rotX="0" rotY="0" rotZ="191.969"></object> <object id="object (CJ_BUSH_PROP3) (16)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1691.80005" posY="-469.79999" posZ="13.9" rotX="0" rotY="0" rotZ="191.964"></object> <object id="object (CJ_BUSH_PROP3) (17)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1691.69995" posY="-472.10001" posZ="13.9" rotX="0" rotY="0" rotZ="171.964"></object> <object id="object (CJ_BUSH_PROP3) (18)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1692.09998" posY="-474.60001" posZ="13.9" rotX="0" rotY="0" rotZ="171.964"></object> <object id="object (CJ_BUSH_PROP3) (19)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1693.09998" posY="-476.89999" posZ="13.9" rotX="0" rotY="0" rotZ="143.964"></object> <object id="object (CJ_BUSH_PROP3) (20)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1694.90002" posY="-478.60001" posZ="13.9" rotX="0" rotY="0" rotZ="133.959"></object> <object id="object (CJ_BUSH_PROP3) (21)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1696.90002" posY="-479.79999" posZ="13.9" rotX="0" rotY="0" rotZ="121.956"></object> <object id="object (CJ_BUSH_PROP3) (22)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1698.5" posY="-481" posZ="13.9" rotX="0" rotY="0" rotZ="121.954"></object> <object id="object (CJ_BUSH_PROP3) (23)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1700.59998" posY="-481.29999" posZ="13.9" rotX="0" rotY="0" rotZ="93.954"></object> <object id="object (CJ_BUSH_PROP3) (24)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1702.69995" posY="-481.60001" posZ="13.9" rotX="0" rotY="0" rotZ="93.95"></object> <object id="object (CJ_BUSH_PROP3) (25)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1705" posY="-481" posZ="13.9" rotX="0" rotY="0" rotZ="61.95"></object> <object id="object (CJ_BUSH_PROP3) (26)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1706.69995" posY="-480.20001" posZ="13.9" rotX="0" rotY="0" rotZ="61.946"></object> <object id="object (CJ_BUSH_PROP3) (27)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1708.59998" posY="-478.5" posZ="13.9" rotX="0" rotY="0" rotZ="35.946"></object> <object id="object (CJ_BUSH_PROP3) (28)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1710" posY="-476.70001" posZ="13.9" rotX="0" rotY="0" rotZ="35.942"></object> <object id="object (CJ_BUSH_PROP3) (29)" interior="0" collisions="true" alpha="255" doublesided="false" model="1360" scale="1" dimension="0" breakable="true" posX="-1710" posY="-476.69922" posZ="13.9" rotX="0" rotY="0" rotZ="35.942"></object> <vehicle id="vehicle (Sentinel) (2)" paintjob="0" interior="0" alpha="255" model="405" plate="J5UYTIN" dimension="0" color="32,105,44,245,245,245,0,0,0,0,0,0" posX="-1702.59961" posY="-499.5" posZ="14.1" rotX="0" rotY="0" rotZ="43.995" upgrades=""></vehicle> <vehicle id="vehicle (Sentinel) (3)" paintjob="3" interior="0" alpha="255" model="405" plate="UWIQJ95" dimension="0" color="86,103,34,245,245,245,0,0,0,0,0,0" posX="-1705.80005" posY="-502.70001" posZ="14.1" rotX="0" rotY="0" rotZ="43.995"></vehicle> <vehicle id="vehicle (Sentinel) (5)" paintjob="3" interior="0" alpha="255" model="405" plate="2UYKTUR" dimension="0" color="25,78,112,245,245,245,0,0,0,0,0,0" posX="-1712.80005" posY="-508.60001" posZ="14.1" rotX="0" rotY="0" rotZ="43.995"></vehicle> <vehicle id="vehicle (Sentinel) (4)" paintjob="3" interior="0" alpha="255" model="405" plate="562N99Q" dimension="0" color="20,117,91,245,245,245,0,0,0,0,0,0" posX="-1709.19922" posY="-505.59961" posZ="14.1" rotX="0" rotY="0" rotZ="43.995"></vehicle> <vehicle id="vehicle (Sentinel) (6)" paintjob="3" interior="0" alpha="255" model="405" plate="L2O52LH" dimension="0" color="59,47,90,245,245,245,0,0,0,0,0,0" posX="-1716.59998" posY="-511.79999" posZ="14.1" rotX="0" rotY="0" rotZ="43.995"></vehicle> <vehicle id="vehicle (Sentinel) (7)" paintjob="3" interior="0" alpha="255" model="405" plate="DLJ9TWP" dimension="0" color="69,69,69,245,245,245,0,0,0,0,0,0" posX="-1720.40002" posY="-515" posZ="14.1" rotX="0" rotY="0" rotZ="43.995"></vehicle> <object id="object (CJ_PIZZA_1) (1)" interior="0" collisions="true" alpha="255" doublesided="false" model="2702" scale="1" dimension="0" breakable="true" posX="588.40002" posY="852.09998" posZ="-43.8" rotX="0" rotY="0" rotZ="0"></object> <marker id="marker (corona) (1)" type="corona" color="#3ED42AFF" size="5" interior="0" dimension="0" alpha="255" posX="-1709.80005" posY="-508.5" posZ="20.1" rotX="0" rotY="0" rotZ="0"></marker> <removeWorldObject id="removeWorldObject (modshopdoor_SFSe) (1)" radius="5.9890670776367" interior="0" model="11313" lodModel="0" posX="-1936.26794" posY="239.48399" posZ="35.22146" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="removeWorldObject (sprayshpdr2_SFSe) (1)" radius="6.6437840461731" interior="0" model="11319" lodModel="0" posX="-1906.42065" posY="277.84949" posZ="41.34696" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="removeWorldObject (modshopdoor1_SFS) (1)" radius="5.9891090393066" interior="0" model="10575" lodModel="0" posX="-2716.29932" posY="215.94716" posZ="3.98087" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="removeWorldObject (spdr_sfw) (1)" radius="6.7266039848328" interior="0" model="9625" lodModel="0" posX="-2424.68701" posY="1028.07813" posZ="51.80761" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <object id="object (cardboardbox) (1)" interior="0" alpha="255" doublesided="false" model="1230" scale="1" dimension="0" posX="-1916.19995" posY="238.39999" posZ="36.8" rotX="0" rotY="0" rotZ="0"></object> </map> Link to comment
Castillo Posted October 7, 2013 Share Posted October 7, 2013 Do you have the extension file which the editor adds to your map? is a lua script. Link to comment
Moomasterq Posted October 8, 2013 Author Share Posted October 8, 2013 I'm not sure what you are trying to ask, I have the editor loaded (not running), and my gamemode with the custom map file loaded in the xml file. If I have mapmanager enabled it doesn't let me restart my gamemode, which is bad since it's under heavy development. Link to comment
Moomasterq Posted October 8, 2013 Author Share Posted October 8, 2013 Ok, after fiddling around for a while looking at various functions I found the removeWorldModel function to remove the objects. To get the ids I just looked in the .map file and figured it out. Link to comment
Castillo Posted October 8, 2013 Share Posted October 8, 2013 The map editor adds an script to load the objects to remove from the map file. Link to comment
-Bane- Posted October 9, 2013 Share Posted October 9, 2013 check ...MTA san andreas 1.3/server/mods/deathmatch/resurces/yourmapfalder There are always 2 .lua scripts, if there are not your map editor cnnot remove world objects Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now