Page 1 of 1

[Mod] Tulips [0.2] [tulips]

Posted: Fri Mar 29, 2013 17:46
by Bas080
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

Posted: Fri Mar 29, 2013 21:37
by jmf
The tulips look very awesome. Good job.

Posted: Sat Mar 30, 2013 00:27
by kaeza
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.

Posted: Sat Mar 30, 2013 00:38
by Inocudom
I approve of this idea, Bas080. This will give players an alternate way to create wools of various colors.

Posted: Sat Mar 30, 2013 08:16
by Bas080
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.

Posted: Sat Mar 30, 2013 10:45
by JoeyXtreme
Tulip fields look very nice.
Although i'm dutch and never seen any :(
now i can make my own tulip fields in minetest.

Posted: Mon Mar 31, 2014 07:52
by mimilus
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

Posted: Mon Mar 31, 2014 12:09
by UOAbigail
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

Posted: Mon Mar 31, 2014 12:44
by mimilus
Could you post your init.lua ?

Please

Posted: Mon Mar 31, 2014 13:23
by domtron vox
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).

Posted: Mon Mar 31, 2014 15:46
by mimilus
Ok UOAbigail

It works now

thx