Page 1 of 1

[Mod] Simplified Paintings [20120427] [sim_paint]

PostPosted: Fri Mar 16, 2012 18:27
by faraway
Adds a painting canvas which, when placed, will display a random image from a server-selected list. This (possibly) finalized version is NOT backwards-compatible with previous versions and the Paintings Mod by jordan4ibanez. If you would like a mod that updates those paintings, please tell me.

To make a painting, you can use the following recipe.
S = stick
P = paper
S S S
S P S
S S S

Code: The changes to jordan4ibanez's code are licensed under CC-0 or WTFPL.
Textures: CC-0, CC-BY, or WTFPL at your choice.

Latest version.There isn't any new functionality, just the way paintings are defined is hopefully less tedious. AMOUNT_OF_PAINTING_TYPES no longer needs to be changed to add paintings, and the painting filenames are taken from a table/array.

sim_paint.tar.gz alternate/updated, contains emotion edition
sim_paint.zip alternate/updated, contains emotion edition

Older versions.
"emotion edition". Includes 5 more paintings than "vanilla edition", all pony-related and 256x256. Enjoy, if you can.
sim_paint.tar.gz emotion edition
sim_paint.zip emotion edition

"vanilla edition". Contains... 4 paintings, I think?
sim_paint.tar.gz vanilla edition (plain)
sim_paint.zip vanilla edition (plain)

Mod dependencies: default

Image
Image
Image

Enjoy, if you can.

PostPosted: Fri Mar 16, 2012 18:30
by sfan5
Nice!
Is it based on jordan4ibanez Mod?

PostPosted: Fri Mar 16, 2012 18:32
by faraway
sfan5 wrote:Nice!
Is it based on jordan4ibanez Mod?

Yep! The license on that was not stated, as far as I know, so I should probably ask permission. My changes to that mod are under CC-0 or WTFPL, though. Thank you :)

PostPosted: Fri Mar 16, 2012 19:08
by sfan5
Oh, ok!

PostPosted: Mon Mar 19, 2012 15:43
by faraway
Updated to include the strange "groups={...}" thing. Paintings have the same material groups as ladders.

PostPosted: Mon Mar 19, 2012 15:50
by Death Dealer
faraway wrote:Updated to include the strange "groups={...}" thing. Paintings have the same material groups as ladders.

is this for the new client?

PostPosted: Mon Mar 19, 2012 16:16
by faraway
Death Dealer wrote:
faraway wrote:Updated to include the strange "groups={...}" thing. Paintings have the same material groups as ladders.

is this for the new client?

Yas.

PostPosted: Wed Mar 28, 2012 13:36
by jordan4ibanez
You have full permissions to use my code! i need to copy your code back into my original paintings mod xD

PostPosted: Wed Mar 28, 2012 13:38
by Death Dealer
faraway wrote:
Death Dealer wrote:
faraway wrote:Updated to include the strange "groups={...}" thing. Paintings have the same material groups as ladders.

is this for the new client?

Yas.

saweet i will add it to my collection.

PostPosted: Wed Mar 28, 2012 20:30
by faraway
I have updated the mod with 5 new paintings :).

The new images are all licensed under CC-0, CC-BY, or WTFPL at your choice. You can pick whichever license.

sim_paint.tar.gz (emotion edition)
sim_paint.zip (emotion edition)

Replace the original with this if you want to install it.

Enjoy if you can.

PostPosted: Wed Mar 28, 2012 23:00
by Scott
were do u get paper?

PostPosted: Wed Mar 28, 2012 23:04
by faraway
Scott wrote:were do u get paper?

You put three papyrus in a horizontal row:

P = papyrus

P P P

Papyrus is the green bamboo-looking plant.

PostPosted: Sun Apr 01, 2012 19:20
by marzin
I suggest adding a portrait of player avatar ancestor;)

Image

PostPosted: Wed Apr 04, 2012 01:30
by faraway
marzin wrote:I suggest adding a portrait of player avatar ancestor

Ancestor?

PostPosted: Sun Apr 22, 2012 20:15
by Ragnarok
After installing Hydrophonics mod (http://minetest.net/forum/viewtopic.php?id=1733) I have issue with textures which looks like this:

Image
By vibender at 2012-04-22

On several textures is a vertical rectangle. I tried find what is wrong in init.lua but without result. Please help.

PostPosted: Mon Apr 23, 2012 22:16
by InfinityProject
I've edited pictures with my own to get Capitol and District seals from the hunger games but I ran out of pictures to edit is there a way to add more pictures?

PostPosted: Tue Apr 24, 2012 06:46
by Ragnarok
You can easily increase amount of pictures (n) by changing:

AMOUNT_OF_PAINTING_TYPES = n

and editing code according this scheme:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
add_painting(1, "1st_image.png")
add_painting(2, "2nd_image.png")
add_painting(3, "3rd_image.png")
add_painting(4, "4th_image.png")
.
.
.
add_painting(n, "n_image.png")

PostPosted: Fri Apr 27, 2012 10:00
by faraway
I updated the mod so adding paintings would be less tedious. Now the filenames are in an array/ table:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
-- Example:
local paintings = {
  "painting_fluttershy.png",
  "painting_pinkiepie.png"
}

To add a painting, you can just add a filename to the table. AMOUNT_OF_PAINTING_TYPES changes automatically.I hope someone likes this :).

Please notify me if there is a bug, or feel free to repair the code yourself if you find one ^_^.

PostPosted: Fri Apr 27, 2012 12:38
by sfan5
Nice!

PostPosted: Fri Apr 27, 2012 14:24
by Lelix
under which one has in hand because I did not draw a basic framework? For example, two diagonal black and white background.

PostPosted: Tue May 29, 2012 21:35
by LolManKuba
I do not know if you come on anymore, but could I add this to my modpack?

PostPosted: Wed May 30, 2012 18:53
by faraway
LolManKuba wrote:I do not know if you come on anymore, but could I add this to my modpack?

Yas, I have basically released it and the textures into the public domain. I don't mind at all.

PostPosted: Wed May 30, 2012 19:56
by LolManKuba
Thank you.

PostPosted: Fri Jun 29, 2012 09:01
by Stef
Hi could it be possible to make paintings off: 2 on 2
1 on 2
2 on 1

PostPosted: Wed Oct 02, 2013 17:06
by Lukeking
pls fix ur ompldr-links

PostPosted: Wed Oct 02, 2013 18:01
by Topywo
Lukeking wrote:pls fix ur ompldr-links


Latest version (27-04-2012 / 2012-04-27):

https://dl.dropboxusercontent.com/u/65428713/sim_paint.zip



Edit: Typo

PostPosted: Mon Feb 17, 2014 00:42
by Lukeking
Topywo wrote:
Lukeking wrote:pls fix ur ompldr-links


Latest version (27-04-2012 / 2012-04-27):

https://dl.dropboxusercontent.com/u/65428713/sim_paint.zip



Edit: Typo

thx :)

PostPosted: Fri Mar 28, 2014 15:07
by kriskovski
Whats up with all the pony stuff?

Re: [Mod] Simplified Paintings [20120427] [sim_paint]

PostPosted: Sun Jun 01, 2014 22:25
by balthazariv
Hello,

I have this error

0:22:35: ERROR[main]: ========== ERROR FROM LUA ===========
00:22:35: ERROR[main]: Failed to load and run script from
00:22:35: ERROR[main]: L:\minetest-0.4.9-x64-dev20140517\bin\..\mods\sim_paint\init.lua:
00:22:35: ERROR[main]: ...0.4.9-x64-dev20140517\bin\..\builtin\game\deprecated.lua:7: attempt to index global 'debug' (a boolean value)
00:22:35: ERROR[main]: ======= END OF ERROR FROM LUA ========
00:22:35: ERROR[main]: Server: Failed to load and run L:\minetest-0.4.9-x64-dev20140517\bin\..\mods\sim_paint\init.lua
00:22:35: ERROR[main]: ModError: ModError: Failed to load and run L:\minetest-0.4.9-x64-dev20140517\bin\..\mods\sim_paint\init.lua


Thanks

Re: [Mod] Simplified Paintings [20120427] [sim_paint]

PostPosted: Mon Jun 02, 2014 08:57
by Topywo
balthazariv wrote:Hello,

I have this error

00:22:35: ERROR[main]: ...0.4.9-x64-dev20140517\bin\..\builtin\game\deprecated.lua:7: attempt to index global 'debug' (a boolean value)



This mod (and the dicormod) work fine. I don't use Windows, so don't recognize your folder structure, but think the error has something to do with that. (example: my deprecated.lua falls directly under builtin. I've not a folder named 'game' between it).