Page 1 of 1

[MOD 0.14] Precious, precious caffeine

Posted: Fri Sep 23, 2016 5:35 pm
by raudorn
Type: Mod
Name: Precious, precious caffeine
Description: Adds a production for coffee, which increases manual crafting speed by 50%
License: MIT Licence
Version: 1.0.0
Release: 2016-09-23
Tested-With-Factorio-Version: 0.14.18
Category: SimpleExtension
Tags: Manual crafting, production
Download-Url: https://mods.factorio.com/api/downloads ... _1.0.1.zip
Website: https://mods.factorio.com/mods/raudorn/ ... usCaffeine
License
Long description
Version history

Re: [MOD 0.13] Precious, precious caffeine

Posted: Fri Sep 23, 2016 5:41 pm
by aubergine18
You, Sir, are a genius!

Re: [MOD 0.13] Precious, precious caffeine

Posted: Sat Sep 24, 2016 12:33 pm
by raudorn
aubergine18 wrote:You, Sir, are a genius!
Thanks! I figure if at least one person likes it, the effort wasn't in vain. :)

@all
I just released v1.0.1, which contains a bugfix for the blurry research icons.

Re: [MOD 0.13] Precious, precious caffeine

Posted: Sun Sep 25, 2016 5:44 am
by Killian7575
This is an amazing mod, but may i ask if it will be available for Factorio 0.14? :D

Re: [MOD 0.13] Precious, precious caffeine

Posted: Sun Sep 25, 2016 7:55 am
by raudorn
Killian7575 wrote:This is an amazing mod, but may i ask if it will be available for Factorio 0.14? :D
The mod in it's current version is perfectly workable with 0.14, but I have chosen 0.13 for the release because that is the currently stable version of Factorio. As soon as 0.14 becomes stable, I will "upgrade" the mod, which is really just changing the required version number. However if you want to use the mod right now with 0.14 all you have to do is the following: Locate the mod folder/zip in your Factorio mods folder (on Windows it's Users/yourname/AppData/Roaming/Factorio/mods I think) and open the info.json of the PreciousPreciousCaffeine mod in a text editor. Then change the line "factorio_version": "0.13", so it reads 0.14 instead. That's it.

Re: [MOD 0.13] Precious, precious caffeine

Posted: Sun Sep 25, 2016 8:15 am
by brunzenstein
Great idea!
Applause!
Thanks. Please refine this outstanding mod - overcome your laziness please
as the proposed change in the setup to 0.14 results in a error message:-)

Re: [MOD 0.13] Precious, precious caffeine

Posted: Sun Sep 25, 2016 5:08 pm
by raudorn
brunzenstein wrote:Great idea!
Applause!
Thanks. Please refine this outstanding mod - overcome your laziness please
as the proposed change in the setup to 0.14 results in a error message:-)
Huh, that's odd. The error message means the JSON file could not be parsed because it isn't formatted properly. Usually that happens when a comma was forgotten or there are mismatched braces/quotation marks or something similar. Can you paste the entire file content with the changes as-is?

I tried the same thing again just now (I'm using the mod myself in a modded 0.14 SP campaign) and it worked like a charm. It's also possible the text editor somehow saved the file with a wonky encoding, but that shouldn't be the case here, because that usually only happens when you use characters that aren't in the ASCII range.

Re: [MOD 0.13] Precious, precious caffeine

Posted: Sun Sep 25, 2016 5:13 pm
by brunzenstein
raudorn wrote:
brunzenstein wrote:Great idea!
Applause!
Thanks. Please refine this outstanding mod - overcome your laziness please
as the proposed change in the setup to 0.14 results in a error message:-)
Huh, that's odd. The error message means the JSON file could not be parsed because it isn't formatted properly. Usually that happens when a comma was forgotten or there are mismatched braces/quotation marks or something similar. Can you paste the entire file content with the changes as-is?

I tried the same thing again just now (I'm using the mod myself in a modded 0.14 SP campaign) and it worked like a charm. It's also possible the text editor somehow saved the file with a wonky encoding, but that shouldn't be the case here, because that usually only happens when you use characters that aren't in the ASCII range.
I had to expand the ZIP on the Mac, after editing it with TextEdit and compress it again - enclosed the culprit :-)

Re: [MOD 0.13] Precious, precious caffeine

Posted: Sun Sep 25, 2016 7:46 pm
by raudorn
screen_bugchar.JPG
screen_bugchar.JPG (40.21 KiB) Viewed 5551 times
Notepadd++ highlights the guilty character: Somehow the editor decided that the end quotation marks totally needs to be some fancy character, oblivious of how this breaks the file handling by others programs... At work we encountered similar problems with Macs before, so possibly it's an OS thing, not an editor thing.

Re: [MOD 0.13] Precious, precious caffeine

Posted: Sun Sep 25, 2016 8:08 pm
by brunzenstein
Thank you - I fumbled with that character and it works now.

Re: [MOD 0.14] Precious, precious caffeine

Posted: Mon Feb 20, 2017 1:24 am
by Aru
Programmer fonts are very good for avoiding issues like this, because it makes some key characters distinct. Such as, consolas (Microsoft ) or inconsolata. They're both very good for viewing code, and would avoid problems like this. I also use notepad++ by the way, I really like it for viewing code.

Re: [MOD 0.14] Precious, precious caffeine

Posted: Mon Feb 20, 2017 5:09 am
by Eliont
Just genious =)

Well, i thinking about taking this system to mod requiring water and food rather then Hardcorio-style.
And coffee, of course =)