×

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
  • /
  • [Application] addImage utility
[Application] addImage utility
Bushmeister
« Consul »
1444484640000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  3

addImage utility
Download for Windows


What is addImage utility?
AddImage utility is a special application, which help you place image to the right position in your modules.

Installing
At the moment, the utility is available on Windows only. Download this .rar package and unpack it.
Open the addImageUtility folder
http://imgur.com/BDZaDDv.png
Put your images which you will use in the utility into images folder
http://i.imgur.com/DYnFFle.png
Then open the addImage.exe.
Image
http://images.atelier801.com/1504bd10c32.png

Congratulations!

Getting started
At first choose the image target.
You can find more information about image targets here

tfm.exec.addImage(imageName, target, xPosition, yPosition,targetPlayer)

Effect: Displays an image. Returns the ID of the image.

http://i.imgur.com/AeLSILk.png

This function is only available to members on the Module Team. This is to stop people from loading inappropriate images, and because the function can be resource intensive to use.

Arguments:
  • imageName (string) - The file name of the image, including the extension. This only works with images uploaded to imgur.com. For example, "1Sg9gfU.png" would be valid as it corresponds with the image hosted at http://i.imgur.com/1Sg9gfU.png
  • target (string) - The part of the map, or dynamic object that the image will be attached to. Each target has a special character that's used as a prefix for the ID or name attached to.

    • #mobileID - A shaman object. The ID can be obtained through eventSummoningEnd(), tfm.get.room.objectList, or returned from tfm.exec.addShamanObject().
    • $playerName - A player in the room, their mouse graphic will stay and this image will be appended relative to it.
    • %playerName - A player in the room, their mouse graphic will be removed and this image will replace it completely.
    • ?backgroundLayerDepth -
    • _groundLayerDepth -
    • !foregroundLayerDepth -
    • &fixedLayerDepth -
  • xPosition (integer) - The X coordinate that the top-left of the image will be displayed at relative to the target.
  • yPosition (integer) - The Y coordinate that the top-left of the image will be displayed at relative to the target.
  • targetPlayer (string) - The player to display the image to. If this argument is nil, the image will be displayed to all players in the room.


After you chose the target you will see a short video. There you can see example image, which uses the same target as you chose.
Image
http://images.atelier801.com/1504bd05bd7.png


Editor
When you chose the target and pressed continue, you will be moved to the editor. There you can add images/remove images, move them and generate lua code.

Image
http://images.atelier801.com/1504bcff332.png[/quote]


To add image, click on Add Image button and choose an image. You also can choose a background image. It's very useful if your image depends on position of any objects on a map.

Image
http://images.atelier801.com/1504bcfabfc.png


Use arrows or left mouse button to move selected image.

Image
http://images.atelier801.com/1504bd0efcc.png


You can change selected image by clicking on the button with name and id of this image, on the right of Generate code button(look at screenshot above), or click on the image.

Generate code
Generated code depends on chosen image target. Generate code button generates lua code, which always contains coordinates and image target.
For example, generated code with !foregroundlayerdepth target will be look like this
http://images.atelier801.com/1504bd094ee.png
Number after ! means id of an image in the editor. It's useful, when you will put Imgur references to the code.
http://images.atelier801.com/1504bd0c09c.png
#mobileID
http://images.atelier801.com/1504bd1a6b4.png
#mobileID generated code is absolutely different. Here in the target you can see "#"..id. In this case id means id of shaman object, which was created by a shaman or from the code.
For example, this code will replace all objects created by a shaman to the mouse image.
a dit :

function eventSummoningEnd(playerName, objectType, xPosition, yPosition, angle, xSpeed, ySpeed, other)
tfm.exec.addImage("1Sg9gfU.png", "#"..other.id, -24, -32);
end

This is beautiful.
http://i.imgur.com/3w8Au7u.png

More screenshots

http://images.atelier801.com/1504bd127fb.png
http://images.atelier801.com/1504bcfd20e.png
http://images.atelier801.com/1504bd16377.png
http://images.atelier801.com/1504bd1891d.png


Plans:
  • Macintosh version
  • Translate to different languages

Note: at the moment I'm working on Macintosh version of utility. If you you want to help with translation, you can translate only the thread, because we don't have a translation form for the program now.

If you have any questions, suggestions or found bugs - feel free to post them here.
Cristinescu
« Consul »
1444485720000
    • Cristinescu#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  1
this is cool

but we can't use addImage in-game :(
Skokon
« Citoyen »
1444849020000
    • Skokon#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  1
Really cool
Esh
« Censeur »
1444858380000
    • Esh#0095
    • Profil
    • Derniers messages
    • Tribu
#5
  1
That helps a lot, thanks!
Ghjxpain
« Citoyen »
1444888380000
    • Ghjxpain#0000
    • Profil
    • Derniers messages
#6
  1
But I thought only lua members can add image in game?
Sea
« Censeur »
1444888680000
    • Sea#6504
    • Profil
    • Derniers messages
    • Tribu
#7
  1
Ghjxpain a dit :
But I thought only lua members can add image in game?

my thoughts exactly
Shamousey
« Consul »
1444934520000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#8
  2
I think this tool is for those who aren't on the module team to see how it works, and properly align their things if they're developing a module that they intend to be official.
Bushmeister
« Consul »
1444934880000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#9
  1
I'm happy that you like the tool ^-^
Shamousey a dit :
I think this tool is for those who aren't on the module team to see how it works, and properly align their things if they're developing a module that they intend to be official.

Yes, you're absolutely right.
Beyazfelaket
1445529000000
    • Beyazfelaket#0000
    • Profil
    • Derniers messages
#10
[Modéré par Ediz, raison : Ban evasion: Recklax]
Muutluerkek
« Citoyen »
1490712420000
    • Muutluerkek#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  1
can't use image game :/
Ekull
« Citoyen »
1490743440000
    • Ekull#0000
    • Profil
    • Derniers messages
#12
  1
Nice work!
Haxor_333
« Citoyen »
1555934700000
    • Haxor_333#0000
    • Profil
    • Derniers messages
#13
  1
This is really a useful application,nice work and well done for making it
Nikitaplay
« Citoyen »
1555951500000
    • Nikitaplay#6179
    • Profil
    • Derniers messages
#14
  1
thanks, bushmeister
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Application] addImage utility
© Atelier801 2018

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

Version 1.27