So this adds paintings that you can place on walls.
github: https://github.com/CasimirKaPazi/gemalde
download: https://github.com/CasimirKaPazi/gemald ... 9fc16b.zip
Features:
- pictures overlap (bigger than one node; like in... you know)
- maximal size: 3x3 nodes
- maximal size in pixel: none
- adding more paintings is very easy (no lua required)
- switch through paintings by rightclick on it
- switch backwards through paintings by crafting (reduce paintings number by one)
- place several paintings into the crafting grid to reset them to #1 (stack them easier)
- unlimited number of paintings
- animated paintings
- any number of frames (default 8)
Craft still paintings:
Code: Select all
paper paper
paper paper
paper paper
Craft animated paintings:
Code: Select all
book book
book book
book book
Backwards (same for Animations):
Input: Painting #9
Output: Painting #8
Reset (same for Animations):
Input: Painting #9, Painting #55, Painting #42, Painting #8, Painting #7829
Output: 5x Painting #1
This works for up to 9 paintings.
How to add new (still) paintings:
Take a .png-file. Make sure it is square in size. Rename it to "gemalde_x.png" where x is the number of the painting. The mod automatically detects it and you will have it in the game. Make sure you have no gaps. E.g.: 1234-678 would only recognize the first four.
How to add new animated paintings:
Just like above, but rename the .png-file (no .gif) to "gemalde_animated_x.png"
Important: Standard is 8 frames, to use a different number for a specific painting open animated.lua and add the number there.
Code: Select all
-- For other numbers of frames use the following. x is the paintings number. a is the frames count. b the time per frame.
local frames = {
-- {x, a, b},
{1, 16, 0.125}, -- 16 frames for the first animated painting
}
Screenshots:

http://screenshot.ru/images/2013/10/24/YgRe14C.png
This is 3872x3872 pixels and 8.8MB and it works without problems.
old download:
http://ompldr.org/vaGlwcw/gemalde20130219.zip
http://ompldr.org/vaGg3YQ/gemalde20130215.zip
http://ompldr.org/vaGZldg/gemalde20130211.zip
http://ompldr.org/vaGFjNg/gemalde20130130.zip
Changelog:
20130530
- fixed paintings overlapping with nodes behind
- new paintings (omsk bird)
- removed paintings
20130219
- added option to change animation-speed
- fixed bug in using frame_count
- fixed texturebug when pictures overlap each other
- workaround to fix wrong placed pictures
20130215:
- animated paintings
- craft to reset multiple paintings to #1 to make stacking easier
- new awesome picture
20130211:
- removed image limit
- new paintings
licence/license:
GPLv3 or later for code
for pictures see licence_still.txt and licence_animated.txt
everything else is cc-by-sa
depends: default
The core code is based on signs by xyz and PilzAdam.