[Mod] Tulips [0.2] [tulips]

Post Reply
User avatar
Bas080
Member
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080
Location: Netherlands

[Mod] Tulips [0.2] [tulips]

by Bas080 » Post

Tulips in the base colors of VanessaE's unified dyes mod that can be crafted to dyes and can be farmed using PilzAdams' farming mod.

Screenshots
Image
Image
Image
Image

Instructions
* Pick tulips that spawn very rarely to get tulip seeds
* Farm the seeds on soil to grow tulips and get new seeds
* Tulips drop dyes (makes it easier to obtain dyes)
* Use dyes to color everything that uses unified dyes mod (wool, flags, beds etc)

Changelog

Depends
default
- farming
- dye
plants_lib

Download
https://github.com/bas080/tulips/archive/master.zip
...or see code https://github.com/bas080/tulips

License
WTFPL
Last edited by Bas080 on Tue Jul 30, 2013 15:40, edited 1 time in total.

jmf
Member
Posts: 164
Joined: Mon Nov 05, 2012 18:13
Location: Germany

by jmf » Post

The tulips look very awesome. Good job.
No longer active in minetest.

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

This is great, but can you remove the screenshots from the repo and move them to another host like dropbox or imgur? They make the download much larger.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
Inocudom
Member
Posts: 3121
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

I approve of this idea, Bas080. This will give players an alternate way to create wools of various colors.

User avatar
Bas080
Member
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080
Location: Netherlands

by Bas080 » Post

jmf, glad you like it. I was inspired by dutch tulip fields. (image)

kaeza, I started using github as image host for a while now. It makes it really easy to update a screenshot. Maybe i can make the resolution smaller or less screenshots.

Inocudum, It makes it allot easier to get colored wool. Something I have never obtained in large numbers without /giveme. Once you got tulips and cotton farm going it is easier to get colored wool.

Glad people see use for this idea.

User avatar
JoeyXtreme
Member
Posts: 35
Joined: Sat Dec 15, 2012 09:49

by JoeyXtreme » Post

Tulip fields look very nice.
Although i'm dutch and never seen any :(
now i can make my own tulip fields in minetest.
Last edited by JoeyXtreme on Sat Mar 30, 2013 10:55, edited 1 time in total.
Hi i'm a signature :D

User avatar
mimilus
Member
Posts: 75
Joined: Thu Mar 06, 2014 09:08
GitHub: mimilus
IRC: Mimilus
Location: France

by mimilus » Post

09:49:40: ERROR[main]: ========== ERROR FROM LUA ===========
09:49:40: ERROR[main]: Failed to load and run script from
09:49:40: ERROR[main]: /home/mimilus/.minetest/mods/tulips/init.lua:
09:49:40: ERROR[main]: /home/mimilus/.minetest/mods/tulips/init.lua:26: attempt to index global 'dye' (a nil value)
09:49:40: ERROR[main]: stack traceback:
09:49:40: ERROR[main]: /home/mimilus/.minetest/mods/tulips/init.lua:26: in main chunk
09:49:40: ERROR[main]: ======= END OF ERROR FROM LUA ========
09:49:40: ERROR[main]: Server: Failed to load and run /home/mimilus/.minetest/mods/tulips/init.lua
09:49:40: ERROR[main]: ModError: ModError: Failed to load and run /home/mimilus/.minetest/mods/tulips/init.lua

Minetest 0.4.9
minetest 0.4.9
Ubuntu 12.04

UOAbigail
Member
Posts: 19
Joined: Mon Feb 24, 2014 13:07

by UOAbigail » Post

Greetings
mimilus wrote:09:49:40: ERROR[main]: ========== ERROR FROM LUA ===========
09:49:40: ERROR[main]: Failed to load and run script from
09:49:40: ERROR[main]: /home/mimilus/.minetest/mods/tulips/init.lua:
09:49:40: ERROR[main]: /home/mimilus/.minetest/mods/tulips/init.lua:26: attempt to index global 'dye' (a nil value)
09:49:40: ERROR[main]: stack traceback:
09:49:40: ERROR[main]: /home/mimilus/.minetest/mods/tulips/init.lua:26: in main chunk
09:49:40: ERROR[main]: ======= END OF ERROR FROM LUA ========
09:49:40: ERROR[main]: Server: Failed to load and run /home/mimilus/.minetest/mods/tulips/init.lua
09:49:40: ERROR[main]: ModError: ModError: Failed to load and run /home/mimilus/.minetest/mods/tulips/init.lua

Minetest 0.4.9

I, too, was having this error, having just recently joined the minetest community as of 0.4.9 release.

Yesterday, in the Flags thread, someone posted a list of dye colors and stated that the global 'hues' and 'hues2' had been changed to local values instead, which broke any mods that depended on them being global values. He listed a set of code to be pasted into the init file of the flags mod to make it work again.. I will re-paste that here.

Code: Select all

local HUES = {
    "red",
    "orange",
    "yellow",
    "lime",
    "green",
    "aqua",
    "cyan",
    "skyblue",
    "blue",
    "violet",
    "magenta",
    "redviolet"
}

local HUES2 = {
    "Red",
    "Orange",
    "Yellow",
    "Lime",
    "Green",
    "Aqua",
    "Cyan",
    "Sky-blue",
    "Blue",
    "Violet",
    "Magenta",
    "Red-violet"
}
Upon adding this, however, I ran into a different problem and a new error. Being new to lua, I fiddled around and made a few changes to the init file for tulips.. as such:

Code: Select all

for i = 1, 9 do
  --local hue = dye.basecolors[i]
  --local hue2 = dye.basecolors[i]
   local hue = HUES[i]
   local hue2 = HUES2[i]
  local img = mod.."_"..hue..".png"
  --farming
  farming:add_plant(mod..":"..hue, {"tulips:"..hue.."_seeds",mod..":"..hue.."_sprout"}, 60, 2)
this, then produced a new error.. about a global method returning a nil value or somesuch.. so I checked the depends file and it depends on 'farming' which I am using 'farming_plus'

I changed the depends file to reflect this, and the mod loaded properly (I assume) and it does work (harvested an orange and a yellow tulip and planted them/grew them successfully.)

I do not know if this will help you much.. but if it does great ;)

Peace
UOAbigail

User avatar
mimilus
Member
Posts: 75
Joined: Thu Mar 06, 2014 09:08
GitHub: mimilus
IRC: Mimilus
Location: France

by mimilus » Post

Could you post your init.lua ?

Please
minetest 0.4.9
Ubuntu 12.04

User avatar
domtron vox
Member
Posts: 111
Joined: Thu Feb 20, 2014 21:07
GitHub: DomtronVox
IRC: Domtron
In-game: Domtron

by domtron vox » Post

Bas080 wrote: kaeza, I started using github as image host for a while now. It makes it really easy to update a screenshot. Maybe i can make the resolution smaller or less screenshots.
You might try creating a branch and storing screenshots in it. That way you can have as many pictures as you want and not effect the mods download size(unless someone is cloning it).

User avatar
mimilus
Member
Posts: 75
Joined: Thu Mar 06, 2014 09:08
GitHub: mimilus
IRC: Mimilus
Location: France

by mimilus » Post

Ok UOAbigail

It works now

thx
minetest 0.4.9
Ubuntu 12.04

Post Reply

Who is online

Users browsing this forum: nathan15 and 32 guests