[Script] GetXML |
Itchyboy « Citoyen » 1456972140000
| 6 | ||
Sentinel: Please keep in mind that stealing other people's maps may get your map deleted and may land you on the Map Crew blacklist. Use this tool responsibly. Here's a script I made that tells you any XML of any map. It bypasses the character limit of print() by printing the XML in parts, using a pretty simple algorithm that chops up the XML into parts into the correct order. It's based off of some code in here, which definitely isn't as good as this version. To get the XML of the map that you're playing on, type !printxml into the chat, and it'll print it out to whoever is running the script. Since you have to copy it in segments, I would suggest pasting each segment into notepad or some equivalent, and then copying it all over into the map editor. It's pretty simple, just a tiny bit of a hassle that I can't do anything about. Please don't use this to just export maps that people have already made. That's plagiarism and just isn't cool. I made this so people could learn how some good maps were made, maybe customize them and have the XML in your lua script to be called on later for personal use. Most people don't even know about joints, as they're not in the UI of the map editor, but seeing all the joints in the XML they have to copy over might get them curious, and start using them. Or maybe people could learn how mechanical maps are made. Just don't re-export maps. If you're not going to re-export maps, here's how you use the script: Go into your tribe house, type /lua, paste the script in the UI that shows up, and then click submit. Seriously, I realize how this script could be used for bad, and I don't want it associated with re-exporting maps, so, please, don't do that. Dernière modification le 1457368380000 |
Antonio « Sénateur » 1456973280000
| 0 | ||
Wonderful!! |
Barrydarsow « Censeur » 1457095320000
| 0 | ||
i look forward to the copy maps luckily most nobs that copy are too nob to read the forum, and anyone semi-competent could do this with lua anyway... so it shouldn't be too bad I suppose Dernière modification le 1457095920000 |
Error_404 « Consul » 1457097960000
| 1 | ||
This is LOVE I can now creat many Troll maps without having rough time copying them for 5 hours. and caring about the details |
Boloprivate « Citoyen » 1457116440000
| 2 | ||
I coded a faster script here. You have to replace Bolodefchoco in the 9th line to your nickname, pressing the letter P the current map restarts, pressing Space you get the xml in #lua. Your scripts shoot a bad color and hurts our eyes haha |
Camila_cabello « Citoyen » 1465676820000
| 0 | ||
Whenever I try to paste the xml code in the map editor it keeps saying "This map is invalid." And I did put each segment together yet the same message keeps appearing am I the only one with this problem? |
Woebegone « Citoyen » 1465783260000
| 0 | ||
nebulastarr a dit : Did you make sure that you removed any extra spaces that weren't supposed to be there? |
Eulokanta « Citoyen » 1468836660000
| 0 | ||
can you write Turkish? |
Camila_cabello « Citoyen » 1476849540000
| 0 | ||
Dernière modification le 1483330860000 |
Censere « Consul » 1476850200000
| 0 | ||
Whoa, cool! Somehow this doesn't seem to work on Vanilla maps? Dernière modification le 1476920160000 |
Camila_cabello « Citoyen » 1477055820000
| 2 | ||
Vanilla maps don't have xml codes |
Kimsterjay « Consul » 1498941120000
| 0 | ||
Niceeee |
Perfecteca « Sénateur » 1499209620000
| 1 | ||
Awesome and useful! |
Choristos « Citoyen » 1502365620000
| 0 | ||
Not working :c |
Honorabilis « Consul » 1502367480000
| 0 | ||
Choristos a dit : It is working. What's problem? |
Athesdrake « Citoyen » 1502383560000
| 2 | ||
The problem is that Lua is broken. When we call tfm.exec.newGame without arguments, normally it reload the current map. But in fact it load the 0 vanilla map. We can't get the xml of a vanilla map so the script crash. To avoid this problem, add the code of a non-vanilla map in tfm.exec.newGame() Dernière modification le 1502383620000 |
Hmiida « Consul » 1503968400000
| 0 | ||
Choristos a dit : Same ^^" Error message in the #lua : Runtime Error : org.luaj.vm2.LuaError: Hmiida.lua:3: attempt to index ? (a nil value) |
Nihatsune « Citoyen » 1503996060000
| 0 | ||
dude not work |