×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] GetXML
1 / 2 › »
[Script] GetXML
Itchyboy
« Citoyen »
1456972140000
    • Itchyboy#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  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
    • Antonio#9975
    • Profil
    • Derniers messages
    • Tribu
#2
  0
Wonderful!!
Barrydarsow
« Censeur »
1457095320000
    • Barrydarsow#0095
    • Profil
    • Derniers messages
    • Tribu
#3
  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
    • Error_404#0000
    • Profil
    • Derniers messages
#4
  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
    • Boloprivate#0000
    • Profil
    • Derniers messages
    • Tribu
#5
  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
    • Camila_cabello#0000
    • Profil
    • Derniers messages
    • Tribu
#6
  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
    • Woebegone#8377
    • Profil
    • Derniers messages
    • Tribu
#7
  0
nebulastarr a dit :
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?

Did you make sure that you removed any extra spaces that weren't supposed to be there?
Eulokanta
« Citoyen »
1468836660000
    • Eulokanta#0000
    • Profil
    • Derniers messages
#8
  0
can you write Turkish?
Camila_cabello
« Citoyen »
1476849540000
    • Camila_cabello#0000
    • Profil
    • Derniers messages
    • Tribu
#9
  0
         

Dernière modification le 1483330860000
Censere
« Consul »
1476850200000
    • Censere#0095
    • Profil
    • Derniers messages
    • Tribu
#10
  0
Whoa, cool!
Somehow this doesn't seem to work on Vanilla maps?

Dernière modification le 1476920160000
Camila_cabello
« Citoyen »
1477055820000
    • Camila_cabello#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  2
Vanilla maps don't have xml codes
Kimsterjay
« Consul »
1498941120000
    • Kimsterjay#0000
    • Profil
    • Derniers messages
    • Tribu
#12
  0
Niceeee
Perfecteca
« Sénateur »
1499209620000
    • Perfecteca#0000
    • Profil
    • Derniers messages
    • Tribu
#13
  1
Awesome and useful! http://img.atelier801.com/0ca4f122.png
Choristos
« Citoyen »
1502365620000
    • Choristos#0299
    • Profil
    • Derniers messages
#14
  0
Not working :c
Honorabilis
« Consul »
1502367480000
    • Honorabilis#0000
    • Profil
    • Derniers messages
    • Tribu
#15
  0
Choristos a dit :
Not working :c

It is working. What's problem?
Athesdrake
« Citoyen »
1502383560000
    • Athesdrake#0000
    • Profil
    • Derniers messages
    • Tribu
#16
  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
    • Hmiida#0000
    • Profil
    • Derniers messages
    • Tribu
#19
  0
Choristos a dit :
Not working :c

Same ^^"

Error message in the #lua : Runtime Error : org.luaj.vm2.LuaError: Hmiida.lua:3: attempt to index ? (a nil value)
Nihatsune
« Citoyen »
1503996060000
    • Nihatsune#1106
    • Profil
    • Derniers messages
    • Tribu
#20
  0
dude not work
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] GetXML
1 / 2 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27