[TREEFARM - ADDON] Caffein v0.4.0

Looking for a mod? Have a review on a mod you'd like to share?
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

[TREEFARM - ADDON] Caffein v0.4.0

Post 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 32578 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.
judos
Filter Inserter
Filter Inserter
Posts: 267
Joined: Mon Dec 08, 2014 11:17 am
Contact:

Re: [TREEFARM - ADDON] Caffein v0.2.2

Post 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!
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: [TREEFARM - ADDON] Caffein v0.2.2

Post by drs9999 »

Just uploaded a fixed version.
Important!!! You also have to download the newest version of treefarm mod (1.2.5)
User avatar
XyLe
Fast Inserter
Fast Inserter
Posts: 124
Joined: Fri Oct 31, 2014 10:45 am
Contact:

Re: [TREEFARM - ADDON] Caffein v0.2.2

Post 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 ?
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: [TREEFARM - ADDON] Caffein v0.2.2

Post 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 ;)
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: [TREEFARM - ADDON] Caffein v0.3.2

Post 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!
User avatar
XyLe
Fast Inserter
Fast Inserter
Posts: 124
Joined: Fri Oct 31, 2014 10:45 am
Contact:

Re: [TREEFARM - ADDON] Caffein v0.3.2

Post 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!
ondrej008
Burner Inserter
Burner Inserter
Posts: 8
Joined: Mon Feb 09, 2015 4:16 pm
Contact:

Re: [TREEFARM - ADDON] Caffein v0.3.2

Post by ondrej008 »

drs9999 wrote:Caffein-Addon
Screenschot:
teaNcoffee.png
Dat screwdriver what mod? Whovians unite xD
User avatar
SuperSandro2000
Filter Inserter
Filter Inserter
Posts: 742
Joined: Sun Jan 12, 2014 3:54 am
Contact:

Re: [TREEFARM - ADDON] Caffein v0.3.2

Post by SuperSandro2000 »

ondrej008 wrote:
drs9999 wrote:Caffein-Addon
Screenschot:
teaNcoffee.png
Dat screwdriver what mod? Whovians unite xD
old repair pack texture
meischi
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Mar 05, 2016 9:47 am
Contact:

Re: [TREEFARM - ADDON] Caffein v0.4.0

Post 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
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: [TREEFARM - ADDON] Caffein v0.4.0

Post 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.
quick links: log file | graphical issues | wiki
meischi
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Mar 05, 2016 9:47 am
Contact:

Re: [TREEFARM - ADDON] Caffein v0.4.0

Post by meischi »

ah ok thx for help
User avatar
Blu3wolf
Fast Inserter
Fast Inserter
Posts: 203
Joined: Thu Apr 09, 2015 5:20 am
Contact:

Re: [TREEFARM - ADDON] Caffein v0.4.0

Post 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!
User avatar
MiniMe943
Long Handed Inserter
Long Handed Inserter
Posts: 59
Joined: Mon Mar 02, 2015 5:24 am
Contact:

Re: [TREEFARM - ADDON] Caffein v0.4.0

Post 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.
User avatar
Blu3wolf
Fast Inserter
Fast Inserter
Posts: 203
Joined: Thu Apr 09, 2015 5:20 am
Contact:

Re: [TREEFARM - ADDON] Caffein v0.4.0

Post by Blu3wolf »

When I get around to updating for 0.13, Ill have a look at making them craftable from something else.
User avatar
MiniMe943
Long Handed Inserter
Long Handed Inserter
Posts: 59
Joined: Mon Mar 02, 2015 5:24 am
Contact:

Re: [TREEFARM - ADDON] Caffein v0.4.0

Post 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.
Post Reply

Return to “Questions, reviews and ratings”