[MOD 0.14] Precious, precious caffeine

Topics and discussion about specific mods
Post Reply
raudorn
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Sep 23, 2016 4:45 pm
Contact:

[MOD 0.14] Precious, precious caffeine

Post 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
Last edited by raudorn on Tue Nov 08, 2016 8:34 pm, edited 5 times in total.

User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: [MOD 0.13] Precious, precious caffeine

Post by aubergine18 »

You, Sir, are a genius!
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

raudorn
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Sep 23, 2016 4:45 pm
Contact:

Re: [MOD 0.13] Precious, precious caffeine

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

Killian7575
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Sep 25, 2016 5:41 am
Contact:

Re: [MOD 0.13] Precious, precious caffeine

Post by Killian7575 »

This is an amazing mod, but may i ask if it will be available for Factorio 0.14? :D

raudorn
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Sep 23, 2016 4:45 pm
Contact:

Re: [MOD 0.13] Precious, precious caffeine

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

User avatar
brunzenstein
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Tue Mar 01, 2016 2:27 pm
Contact:

Re: [MOD 0.13] Precious, precious caffeine

Post 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:-)

raudorn
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Sep 23, 2016 4:45 pm
Contact:

Re: [MOD 0.13] Precious, precious caffeine

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

User avatar
brunzenstein
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Tue Mar 01, 2016 2:27 pm
Contact:

Re: [MOD 0.13] Precious, precious caffeine

Post 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 :-)

raudorn
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Sep 23, 2016 4:45 pm
Contact:

Re: [MOD 0.13] Precious, precious caffeine

Post by raudorn »

screen_bugchar.JPG
screen_bugchar.JPG (40.21 KiB) Viewed 4594 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.

User avatar
brunzenstein
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Tue Mar 01, 2016 2:27 pm
Contact:

Re: [MOD 0.13] Precious, precious caffeine

Post by brunzenstein »

Thank you - I fumbled with that character and it works now.

Aru
Fast Inserter
Fast Inserter
Posts: 212
Joined: Wed Apr 13, 2016 11:31 pm
Contact:

Re: [MOD 0.14] Precious, precious caffeine

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

Eliont
Burner Inserter
Burner Inserter
Posts: 19
Joined: Thu Feb 16, 2017 3:48 pm
Contact:

Re: [MOD 0.14] Precious, precious caffeine

Post 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 =)

Post Reply

Return to “Mods”