/addob <model id> - Creates an object./removeob <object id> - Removes an object./moveob <object id/exit> - Enters the editor./nearob <range> - Messages you all the objects within the range given./savemap <mapname> - Saves all the objects in the world into an XML file (so you can load later)
1 - X/Y object movement.2 - Z object movement.3 - X/Y object rotation.4 - Z object rotation.5 - Camera movement.
<!-- This is the loader file. You can manually load your maps here./--><!-- Just add a new line inside the <loader></loader> with the following code: /--><!--Map name="file name here" /--><loader> <Map name="example" /></loader>
<example> <Object model="1356" x="79.34" y="-960.147" z="25.66" rx="0" ry="0" rz="0" world="0" /></example>
<!-- This is the loader file. You can manually load your maps here./--><!-- Just add a new line inside the <loader></loader> with the following code: /--><!--Map name="file name here" /--><loader> <Map name="example" /> <Map name="mynewmap" /></loader>
Edit: Why not add a message with the object ID when is you creates the object?
Hmm, again problem.1) The map loader fails.2) When is called 'onPlayerSpawn' by any player gives an error. (The index Pos doesn't exist)
Quote from: Merkel on June 27, 2014, 01:15:11 amHmm, again problem.1) The map loader fails.2) When is called 'onPlayerSpawn' by any player gives an error. (The index Pos doesn't exist)1) How does it fail? Be more specific. Works fine here...2) What the hell? I don't even call onPlayerSpawn on my script!
Quote from: Knucis on June 27, 2014, 01:37:20 amQuote from: Merkel on June 27, 2014, 01:15:11 amHmm, again problem.1) The map loader fails.2) When is called 'onPlayerSpawn' by any player gives an error. (The index Pos doesn't exist)1) How does it fail? Be more specific. Works fine here...2) What the hell? I don't even call onPlayerSpawn on my script!1) The objets aren't loaded...2) Yeah, i know, but when I don't load the scripts works... in my PC and the VPS same.
Quote from: Merkel on June 27, 2014, 02:12:53 amQuote from: Knucis on June 27, 2014, 01:37:20 amQuote from: Merkel on June 27, 2014, 01:15:11 amHmm, again problem.1) The map loader fails.2) When is called 'onPlayerSpawn' by any player gives an error. (The index Pos doesn't exist)1) How does it fail? Be more specific. Works fine here...2) What the hell? I don't even call onPlayerSpawn on my script!1) The objets aren't loaded...2) Yeah, i know, but when I don't load the scripts works... in my PC and the VPS same.1) How does your Maps/ directory looks like (and what's inside the LOADER.xml file)2) That's incredibly weird, something must be interfering with your script... Are you loading the MapLoader or the MapEditor?
1) XML with the objects. In LOADER.xml the map (the name of the xml)2) MapLoader only.
Quote from: Merkel on June 27, 2014, 03:31:09 am1) XML with the objects. In LOADER.xml the map (the name of the xml)2) MapLoader only.Mind posting the contents of both please (map.xml and LOADER.xml)? So I can test it on my end...
<Crime City> <Object model="1696" x="-1622.62" y="-785.8" z="2.98" rx="3" ry="1" rz="32" world="0" /> <Object model="1696" x="-1626.64" y="-733.075" z="4.775" rx="0.75" ry="358.5" rz="34" world="0" /> <Object model="3146" x="-1634.86" y="-652.25" z="10.975" rx="1" ry="359.5" rz="302.5" world="0" /> <Object model="724" x="-1556.45" y="-1009.55" z="10.965" rx="0" ry="0" rz="0" world="0" /> <Object model="725" x="-1281.63" y="-976.95" z="8.59" rx="0" ry="0" rz="0" world="0" /> <Object model="822" x="-1359.8" y="-906.5" z="12.495" rx="359" ry="359.5" rz="196" world="0" /> <Object model="952" x="-1626.52" y="-1087.6" z="16.84" rx="0" ry="0" rz="356" world="0" /> <Object model="1033" x="-1575.38" y="-1038.1" z="10.84" rx="359.75" ry="0.25" rz="0" world="0" /> <Object model="1393" x="-1584.8" y="-957.2" z="10.84" rx="357.5" ry="0" rz="172.5" world="0" /> <Object model="1393" x="-1584.8" y="-988.55" z="10.84" rx="0" ry="0" rz="178.625" world="0" /> <Object model="1347" x="-1548.8" y="-948.8" z="10.53" rx="0" ry="0" rz="0" world="0" /> <Object model="1347" x="-1548.8" y="-944.8" z="10.61" rx="0" ry="0" rz="0" world="0" /> <Object model="1318" x="-1570.88" y="-930.663" z="10.11" rx="0" ry="0" rz="0" world="0" /></Crime City>
Quote from: Knucis on June 27, 2014, 03:35:57 amQuote from: Merkel on June 27, 2014, 03:31:09 am1) XML with the objects. In LOADER.xml the map (the name of the xml)2) MapLoader only.Mind posting the contents of both please (map.xml and LOADER.xml)? So I can test it on my end...
<crimecity> <Object model="1696" x="-1622.62" y="-785.8" z="2.98" rx="3" ry="1" rz="32" world="0" /> <Object model="1696" x="-1626.64" y="-733.075" z="4.775" rx="0.75" ry="358.5" rz="34" world="0" /> <Object model="3146" x="-1634.86" y="-652.25" z="10.975" rx="1" ry="359.5" rz="302.5" world="0" /> <Object model="724" x="-1556.45" y="-1009.55" z="10.965" rx="0" ry="0" rz="0" world="0" /> <Object model="725" x="-1281.63" y="-976.95" z="8.59" rx="0" ry="0" rz="0" world="0" /> <Object model="822" x="-1359.8" y="-906.5" z="12.495" rx="359" ry="359.5" rz="196" world="0" /> <Object model="952" x="-1626.52" y="-1087.6" z="16.84" rx="0" ry="0" rz="356" world="0" /> <Object model="1033" x="-1575.38" y="-1038.1" z="10.84" rx="359.75" ry="0.25" rz="0" world="0" /> <Object model="1393" x="-1584.8" y="-957.2" z="10.84" rx="357.5" ry="0" rz="172.5" world="0" /> <Object model="1393" x="-1584.8" y="-988.55" z="10.84" rx="0" ry="0" rz="178.625" world="0" /> <Object model="1347" x="-1548.8" y="-948.8" z="10.53" rx="0" ry="0" rz="0" world="0" /> <Object model="1347" x="-1548.8" y="-944.8" z="10.61" rx="0" ry="0" rz="0" world="0" /> <Object model="1318" x="-1570.88" y="-930.663" z="10.11" rx="0" ry="0" rz="0" world="0" /></crimecity>
<Map name="crimecity" />
If you want you can use an underscore (_) to simulate some kind of space.Something like Crime_City should in theory work.
Quote from: Merkel on June 27, 2014, 03:44:28 amQuote from: Knucis on June 27, 2014, 03:35:57 amQuote from: Merkel on June 27, 2014, 03:31:09 am1) XML with the objects. In LOADER.xml the map (the name of the xml)2) MapLoader only.Mind posting the contents of both please (map.xml and LOADER.xml)? So I can test it on my end...It's not working because the map name is "Crime City", aka, has two words. Rename it into one word only please.EDIT: Rename the Crime City.xml to crimecity.xml, then:Code: [Select]<crimecity> <Object model="1696" x="-1622.62" y="-785.8" z="2.98" rx="3" ry="1" rz="32" world="0" /> <Object model="1696" x="-1626.64" y="-733.075" z="4.775" rx="0.75" ry="358.5" rz="34" world="0" /> <Object model="3146" x="-1634.86" y="-652.25" z="10.975" rx="1" ry="359.5" rz="302.5" world="0" /> <Object model="724" x="-1556.45" y="-1009.55" z="10.965" rx="0" ry="0" rz="0" world="0" /> <Object model="725" x="-1281.63" y="-976.95" z="8.59" rx="0" ry="0" rz="0" world="0" /> <Object model="822" x="-1359.8" y="-906.5" z="12.495" rx="359" ry="359.5" rz="196" world="0" /> <Object model="952" x="-1626.52" y="-1087.6" z="16.84" rx="0" ry="0" rz="356" world="0" /> <Object model="1033" x="-1575.38" y="-1038.1" z="10.84" rx="359.75" ry="0.25" rz="0" world="0" /> <Object model="1393" x="-1584.8" y="-957.2" z="10.84" rx="357.5" ry="0" rz="172.5" world="0" /> <Object model="1393" x="-1584.8" y="-988.55" z="10.84" rx="0" ry="0" rz="178.625" world="0" /> <Object model="1347" x="-1548.8" y="-948.8" z="10.53" rx="0" ry="0" rz="0" world="0" /> <Object model="1347" x="-1548.8" y="-944.8" z="10.61" rx="0" ry="0" rz="0" world="0" /> <Object model="1318" x="-1570.88" y="-930.663" z="10.11" rx="0" ry="0" rz="0" world="0" /></crimecity>and then edit the LOADER.xml and addQuote<Map name="crimecity" />
And what about the event 'onPlayerSpawn' ?