Page 1 of 1

[TREEFARM - ADDON] Caffein v0.4.0

Posted: Sun May 18, 2014 3:47 pm
by drs9999
Caffein-Addon

Description:
Adds two new plants, namely coffee and tea to the game. Both can be used to produce caffeine which then can be used to produce "crafting-booster". Using them (like other capsules) increases your crafting speed. However it comes with a twist.

How it works:
If you take one pill your crafting speed is doubled for 60s. If you take another one in that "buff-phase" the timespan in which the effect is applied is increased by another 50%. Another pill increased the timespan by 33%, another by 25% and so on...
After the "buff-phase" there is the "debuff-phase" and here comes the twist. Because consuming that much caffeine can't be healthy, your craftingspeed is descreased (to 50% of the default) for at least 90s. However if you take yet another pill in this phase the timespan for the debuff is decreased by 10%.

Note:
- coffee and especially tea are growing very slowly, so be patient ;)
- seeds can be used similar to "vanilla-treefarm" seeds (auto-farming with fields, placing in the wilderness, etc.)
- you will receive your first seeds after finishing the related research


Screenschot:
left: coffee; right: tea
left: coffee; right: tea
teaNcoffee.png (1.2 MiB) Viewed 31758 times
Changelog::

Code: Select all

0.4.0:
- ported to Factorio 0.12.x
0.3.2:
- fixed a major bug that the modifier wasn't applied at all
- new mechanics how the modifier works
0.3.1:
- from now on only works with treefarm-lite and treefarm-ac
0.2.3:
- bugfix-release
0.2.2:
- fixed a bug in the GUI-code
0.2.1:
- bugfix (https://forums.factorio.com/forum/viewtopic.php?f=44&t=2813&start=80#p43411)
0.2.0:
- compability-update
0.1.0:
- initial release
Installation:
- like every other mod:
- download the *.zip and put it into the mods-folder


Downloads:

(Factorio 0.12.x) FOR TREEFARM-LITE & TREEFARM-AC:
http://www.mediafire.com/download/x1yga ... _0.4.0.zip

(Factorio 0.11.x) FOR TREEFARM-LITE & TREEFARM-AC:
http://www.mediafire.com/download/kc9kp ... _0.3.2.zip


FOR TREEFARM 1.2.7:
http://www.mediafire.com/download/fjilk ... _0.2.3.zip



Image
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Re: [TREEFARM - ADDON] Caffein v0.2.2

Posted: Mon Dec 08, 2014 11:24 am
by judos
Hi there,

this mod sounds awesome!! :)

But I have two problems so far:
- When I create a new world with the addon installed I get the following error:
"Unknown key:"Error while running the oninit: ....11.3\mods\Treefarm-Caffeine-Addon_0.2.2.zip|control.lua:181: Map doesn't contain 1 player, this function can't be used" "

That's probably the case because the player is not logged in yet when the world is created.

- When loading an existing world, the following error appears after half a second:
"Error while running the event handler: ...\Factorio 0.11.3\mods\Treefarm-Mod_1.2.4.zip|control.lua:590: Unknown item name: "coffee-seed" in luaGetItemCount."

This closes the world so I can't play with the mod :/

I'm currently using v0.2.2 of the mod

Thank you for your help!

Re: [TREEFARM - ADDON] Caffein v0.2.2

Posted: Wed Dec 10, 2014 11:09 am
by drs9999
Just uploaded a fixed version.
Important!!! You also have to download the newest version of treefarm mod (1.2.5)

Re: [TREEFARM - ADDON] Caffein v0.2.2

Posted: Sun Jan 11, 2015 3:46 am
by XyLe
The idea is pretty cool, but in my 11.10 the mod doesn't work. Can you fix it please?

Also i think that such idea has to be developed further, it kinda breaks the balance of the game quite a bit. In reality coffee and tea have negative effects too. You feel more energy at first but you pay a price for it later on. Especially coffee.

I suggest at least a little fix here, for instance - your crafting speed is say 200% for 120 sec but then it's 50% for 3 minutes. Or something like that. I mean "Buff->Debuff" kinda chain. In this case it would make sense to drink more coffee for a longer buff but then you'd have to pay for it with a much longer debuff.

How about that ?

Re: [TREEFARM - ADDON] Caffein v0.2.2

Posted: Sun Jan 11, 2015 11:32 am
by drs9999
Hmm I wonder why it isn't working...
But doesn't matter, I already made a new version that is compatible with 11.10, however it will require the not yet released new treefarm-mod.

However the caffein release is delayed, because I like your suggestion and want to implement it first ;)

Re: [TREEFARM - ADDON] Caffein v0.3.2

Posted: Fri Jan 30, 2015 10:42 pm
by drs9999
Just uploaded v0.3.2
This version fixes a major bug that the modifier wasn't applied at all :oops:
I also reworked the mechanics how the modifier is applied. I added a short howTo section in the OP which describes it.

As always: Enjoy!

Re: [TREEFARM - ADDON] Caffein v0.3.2

Posted: Sat Jan 31, 2015 5:10 am
by XyLe
This new version is a lot more fun to play with, the add-on is really cool! i recommend it to anybody who likes TreeFarm, definitely!

I find it reasonable to take 1-2 pills at a time, because they give +60 and +30 seconds of positive effect. Next pills just give +20, +15 etc. Kind of expensive unless you're super rich already :)

On the de-buff phase it looks a bit unreasonable to use boosters since 10% of that time per pill is maybe a bit too expensive again, you need to take a few pills to make a significant difference. But maybe that's a good way to make it a lot harder to abuse! great work, keep it up!

Re: [TREEFARM - ADDON] Caffein v0.3.2

Posted: Tue Mar 24, 2015 10:49 am
by ondrej008
drs9999 wrote:Caffein-Addon
Screenschot:
teaNcoffee.png
Dat screwdriver what mod? Whovians unite xD

Re: [TREEFARM - ADDON] Caffein v0.3.2

Posted: Tue Mar 24, 2015 2:36 pm
by SuperSandro2000
ondrej008 wrote:
drs9999 wrote:Caffein-Addon
Screenschot:
teaNcoffee.png
Dat screwdriver what mod? Whovians unite xD
old repair pack texture

Re: [TREEFARM - ADDON] Caffein v0.4.0

Posted: Sat Mar 05, 2016 10:15 am
by meischi
if i create a new game i get the error

__Treefarm-Caffeine-Addon__/control.lua:107: attempt to index global 'game' (a nil value)

how can i fix it or whats the reason for it

Re: [TREEFARM - ADDON] Caffein v0.4.0

Posted: Sat Mar 05, 2016 12:19 pm
by daniel34
meischi wrote:if i create a new game i get the error

__Treefarm-Caffeine-Addon__/control.lua:107: attempt to index global 'game' (a nil value)

how can i fix it or whats the reason for it
The mod hasn't been updated to work with 0.12.11+. and I don't know if it would be compatible with Treefarm if it was updated for the current Factorio version.

Re: [TREEFARM - ADDON] Caffein v0.4.0

Posted: Sat Mar 05, 2016 12:43 pm
by meischi
ah ok thx for help

Re: [TREEFARM - ADDON] Caffein v0.4.0

Posted: Wed Mar 09, 2016 2:49 pm
by Blu3wolf
Id be happy for folks to try this version here: https://github.com/Blu3wolf/Treefarm-Caffeine/releases

This version is released under the GPL v3 IAW drs' licensing options presented here: viewtopic.php?f=44&t=522&start=430#p122766

Any bugs, please report as issues here: https://github.com/Blu3wolf/Treefarm-Caffeine/issues

Thanks!

Re: [TREEFARM - ADDON] Caffein v0.4.0

Posted: Fri Jul 08, 2016 3:38 am
by MiniMe943
How do you get the tea and coffee seeds? I think you're supposed to get them when you research, but that doesn't really work. I think there needs to be a different way to get them naturally.

Re: [TREEFARM - ADDON] Caffein v0.4.0

Posted: Fri Jul 08, 2016 10:51 am
by Blu3wolf
When I get around to updating for 0.13, Ill have a look at making them craftable from something else.

Re: [TREEFARM - ADDON] Caffein v0.4.0

Posted: Sat Jul 09, 2016 1:54 am
by MiniMe943
Blu3wolf wrote:When I get around to updating for 0.13, Ill have a look at making them craftable from something else.
Cheers, I'll be on the lookout for that then.