×

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
  • /
  • Éditeur de cartes
  • /
  • XML Documentation
« ‹ 2 / 3 › »
XML Documentation
Anthonyjones
« Censeur »
1537967220000
    • Anthonyjones#0000
    • Profil
    • Derniers messages
    • Tribu
#21
  0
Drescen a dit :
Anthonyjones a dit :
I tried doing on editor map, but not random for reason it still daylight. How does work for this?

This setting is a bit odd. I think it only works if you play your map in a room (tribehouse, etc).

Mmm... I see what I'm doing on it and still same of daylight during !map (code) repeat in #utility, however someone joined on my room then once again for !map (code) and it look got change a background. Now it must be work xD, Thank! o/

Dernière modification le 1537969440000
Syrius
« Consul »
1538656920000
    • Syrius#8114
    • Profil
    • Derniers messages
    • Tribu
#22
  0
Hey, how to use APS="" element?
Censere
« Consul »
1538698200000
    • Censere#0095
    • Profil
    • Derniers messages
    • Tribu
#23
  4
Syrius a dit :
Hey, how to use APS="" element?

After some fiddling around and reading this thread, I think I figured out what it does.

It looks like it is a LUA only XML element, used for placing an image on the map, which is only visible under certain conditions. It only works if the map is loaded in Lua.

Syntax

APS="image,???,x,y,ax,ay,ix,iy"

  • image - whichever image you want to place on the map
  • ??? - unknown, just use 0
  • x - the player x position on the map where the image will disappear
  • y - the player x position on the map where the image will disappear
  • ax - how far from the argument x that the player mouse the image will reappear
  • ay - how far from the argument y that the player mouse the image will reappear
  • ix - the x position to place the image
  • iy - the y position to place the image

This is quite confusing, so here's an example.

Code XML

1
APS="165e9e21f73.png,0,100,100,600,200,0,0"

Explanation
What happens here is
  • The image 165e9e21f73.png is placed on the map at position 0,0
  • The image will be disappear between the coordinate (100,100)
  • The image will reappear 600px away from x=100 and 200px away from y=100, which is the coordinate of (700,300).

And a working Lua script to show in the tribehouse the above example (just paste into Lua box and submit). The lighter blue rectangle is where the image will not be visible (this is between (100,100) and (700,300) as the example above says.

Code Lua

1
tfm.exec.newGame('<C><P APS="165e9e21f73.png,0,100,100,600,200,0,0" /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="600" o="7581a6" X="400" c="4" Y="200" T="12" H="200" /><S L="100" H="100" X="410" Y="370" T="0" P="0,0,0.3,0.2,-45,0,0,0" /><S L="400" X="600" H="100" Y="340" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="800" H="100" X="400" Y="420" T="0" P="0,0,0.3,0.2,0,0,0,0" /></S><D><DS Y="280" X="750" /></D><O><O C="7" Y="360" P="0" X="160" /></O></Z></C>')

Dernière modification le 1538698440000
Papero
« Citoyen »
1538808840000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#24
  0
Doesn't even mention multiple mice spawns??
Vintage
« Consul »
1538817060000
    • Vintage#0246
    • Profil
    • Derniers messages
    • Tribu
#25
  0
For the APS element, is there any possible way to set the image to background?
Kimsterjay
« Consul »
1538879520000
    • Kimsterjay#0000
    • Profil
    • Derniers messages
    • Tribu
#26
  0
Papero a dit :
Doesn't even mention multiple mice spawns??

It's listed as an example under the normal mouse spawn tag since they use the same tag.
Censere
« Consul »
1538950920000
    • Censere#0095
    • Profil
    • Derniers messages
    • Tribu
#27
  0
Vintage a dit :
For the APS element, is there any possible way to set the image to background?

I don't think so at this point. I think the intended use of the tag is to be used as "exterior" images, so the image will disappear once someone goes behind it.

Bolodefchoco#0000 has asked for information from the admins on the parameters of the APS tag, so as soon as he gets this info I will add the APS tag to the documentation. (Currently we do not know what the second parameter is)

Dernière modification le 1538951100000
Papero
« Citoyen »
1539197400000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#28
  0
Kimsterjay a dit :
Papero a dit :
Doesn't even mention multiple mice spawns??

It's listed as an example under the normal mouse spawn tag since they use the same tag.

It's not explained. Nevermind I overlooked it XD
Drescen a dit :
Vintage a dit :
For the APS element, is there any possible way to set the image to background?

I don't think so at this point. I think the intended use of the tag is to be used as "exterior" images, so the image will disappear once someone goes behind it.

Bolodefchoco#0000 has asked for information from the admins on the parameters of the APS tag, so as soon as he gets this info I will add the APS tag to the documentation. (Currently we do not know what the second parameter is)

which parameter exactly?

Jaackster a dit :
The full 801 map is
a dit :
<C><P D="x_transformice/x_salon801/x_place.jpg,1600,400,x_transformice/x_salon801/x_jardin1.jpg,800,400,x_transformice/x_salon801/x_bar.jpg,2400,400,x_transformice/x_salon801/x_jardin2.jpg,0,400,x_transformice/x_salon801/x_resto.jpg,2400,0,x_transformice/x_salon801/x_pont.jpg,1600,0,x_transformice/x_salon801/x_sona.jpg,800,0,x_transformice/x_salon801/x_ciel.jpg,0,0" H="800" L="3200" APS="x_transformice/x_salon801/x_av_jardin.png,1,0,0,0,0,0,608;x_transformice/x_salon801/x_ap_cabane.png,0,2182,0,581,271,2165,0;x_transformice/x_salon801/x_ap_cabane2.png,0,1515,46,275,181,1472,38;x_transformice/x_salon801/x_av_sona.png,1,0,0,0,0,859,0" /><Z><S /><D /><O /></Z></C>

It seems APS is in charge of the disappearing parts, but it doesn't seem like we have access to that.

though quoting from what someone managed to get in the past when the tag was first found out it seems the second parameter was placed as 1 there.
I'm throwing a guess that its a foreground background toggle w.r.t. mice (will check once I reach home)

Dernière modification le 1539206040000
Bhvana
« Censeur »
1549126560000
    • Bhvana#0543
    • Profil
    • Derniers messages
    • Tribu
#29
  0
How to make +1 and death tokens?
Kimsterjay
« Consul »
1549238340000
    • Kimsterjay#0000
    • Profil
    • Derniers messages
    • Tribu
#30
  0
Bhavyav a dit :
How to make +1 and death tokens?

Once you put the defilante tag in your XML;
Runes will become boosters
Balls will become +1 coins
Left rotating blue anchors will become trampolines
Right rotating blue anchors will become death tokens

More information on defilante is here
Bhvana
« Censeur »
1552780320000
    • Bhvana#0543
    • Profil
    • Derniers messages
    • Tribu
#31
  0
Vintage a dit :
For the APS element, is there any possible way to set the image to background?

No? I don't know but I believe no.
Grapess
« Citoyen »
1583439060000
    • Grapess#7316
    • Profil
    • Derniers messages
#32
  0
How to make cheese like @7606444's cheese?
Kimsterjay
« Consul »
1583458200000
    • Kimsterjay#0000
    • Profil
    • Derniers messages
    • Tribu
#33
  2
Grapess a dit :
How to make cheese like @7606444's cheese?

You have to add dodue="" in between </P > tag of the XML.
Example a dit :
<C><P dodue="" /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="800" H="30" X="400" Y="390" T="0" /></S><D><F Y="360" X="750" /><T Y="375" X="50" /><DS Y="360" X="400" /></D><O /></Z></C>
Wolnyjapro
« Citoyen »
1587295320000
    • Wolnyjapro#0000
    • Profil
    • Derniers messages
#34
  0
How to export map to the server without cheese? Or is there another way to save code that map?
Bhvana
« Censeur »
1587674880000
    • Bhvana#0543
    • Profil
    • Derniers messages
    • Tribu
#35
  0
Wolnyjapro a dit :
How to export map to the server without cheese? Or is there another way to save code that map?

Export it as tribe house to do it without cheese. To save the code, put it in a text document and save the document.
Refletz
« Citoyen »
1601930100000
    • Refletz#6472
    • Profil
    • Derniers messages
    • Tribu
#36
  0
Great Tutorial!
Bisammoeen14
« Citoyen »
1608990120000
    • Bisammoeen14#7506
    • Profil
    • Derniers messages
#37
  0
tutorial with

Dernière modification le 1612420740000
Bisammoeen14
« Citoyen »
1612420020000
    • Bisammoeen14#7506
    • Profil
    • Derniers messages
#38
  0
#Module really Shamousey Utility with you reload="true"
<C><P reload="true" /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="295" X="408" H="26" Y="390" T="0" /></S><D><DS Y="365" X="411" /></D><O /></Z></C>

https://prnt.sc/y8fv1m looks you now !
-----------------------------------------------------
Title really shamousey utility with you mapname title="here mapname"
<C><P title="Tutorial"/><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="254" X="403" H="45" Y="393" T="0" /></S><D><DS Y="356" X="404" /></D><O /></Z></C>

https://prnt.sc/y8gj27 looks you now !
Bisammoeen14
« Citoyen »
1612420680000
    • Bisammoeen14#7506
    • Profil
    • Derniers messages
#39
  0
How You xml need really get tribe house Bolodefchoco
--Creator: Bolodefchoco
--Made in: 17/07/2015
--Last update: 20/10/2019
--[[ Notes:
Does:
Captura o XML de um mapa (Exceto vanillas)
Keys:
P --> Recarrega o mapa atual.
Espaço --> Captura o XML e imprime-o em #lua
]]--

do
local _, err = pcall(nil)
local roomOwner = string.match(err, "(.-)%.")

system.bindKeyboard(roomOwner, 32, true)
system.bindKeyboard(roomOwner, 80, true)
end

tfm.exec.newGame("#1")

eventKeyboard = function(_, key)
if key == 80 then -- P, loads the same map
tfm.exec.newGame(tfm.get.room.currentMap)
else -- Space, print XML
local xml = tfm.get.room.xmlMapInfo
if xml then
xml = xml.xml

-- Minify
xml = string.gsub(xml, ",0+,", ",,")
xml = string.gsub(xml, "(%D)0+(%.)", "%1%2")
xml = string.gsub(xml, ",0+(%D)", "%1")

-- Fix
xml = string.gsub(xml, "<", "&lt;")

-- Display
print("<R>" .. tfm.get.room.currentMap .. "'s XML:")
for s = 1, #xml, 4500 do
print(string.sub(xml, s, s + 4499))
end
end
end
end
type /lua
Key : P respawn with map
Key : space xml you map here
-------------------------------------------
https://prnt.sc/y8h1h2 Click #Lua

https://prnt.sc/y8haj1 space Key here with

https://prnt.sc/y8hktk xml copy [No red] [Yes green] looks you with

https://prnt.sc/y8hrwv xml with map you give really here

Next
Gabriel_dual
« Citoyen »
1614703500000
    • Gabriel_dual#0000
    • Profil
    • Derniers messages
    • Tribu
#40
  0
well ppl how i can put the weird cheese that i can accumulate ( like the new vanilla maps)? if someone know how to do it or the xml to do it pls can answer <3 ty
  • Forums
  • /
  • Transformice
  • /
  • Éditeur de cartes
  • /
  • XML Documentation
« ‹ 2 / 3 › »
© Atelier801 2018

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

Version 1.27