[0.12] Searching for DyTech files in core of Factorio

Bugs that are actually features.
Post Reply
User avatar
Dysoch
Filter Inserter
Filter Inserter
Posts: 445
Joined: Fri Oct 18, 2013 2:27 pm
Contact:

[0.12] Searching for DyTech files in core of Factorio

Post by Dysoch »

I released new versions of DyTech, but some people (not all of them) are getting this error:
http://puu.sh/j7oMk/841e833b69.jpg

It searches for DyTech files in the lualib folder in core, odd!

placing the folder from dytech power (the gui folder0 in the lualib folder fixes the issue
this seems like a factorio issue, instead of DyTech issue
Creator of:
- DyTech
- DyWorld
- DyWorld-Dynamics
- DyWorld-Dynamics 2
Active since Factorio 0.6

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.12] Searching for DyTech files in core of Factorio

Post by Rseding91 »

You have "require "gui.gui"" in your control.lua file. On non-windows that is case sensitive and your "GUI" folder is not the same case as your require.

The error message is saying (in a sort of weirdly aligned way):

__MAIN-DyTech-Power__/control.lua:5: module gui.gui not found:

no such file __MAIN-DyTech-Power/gui/gui.lua
no such file __MAIN-DyTech-Power/gui/gui.lua
no such file E:\Spill/Factorio_x64_0.12.0/Factorio_0.12.0/data/core/lualib/gui/gui.lua

It's listing locations it has attempted and saying it can't find the file you're asking for (because you miss-typed the capitalization between the folder and the require directive).

In other words, this isn't a bug :) You just need to ether change your "require"s to match the folder names letter for letter case for case.
If you want to get ahold of me I'm almost always on Discord.

JLBShecky
Long Handed Inserter
Long Handed Inserter
Posts: 60
Joined: Mon Jul 21, 2014 5:27 pm
Contact:

Re: [0.12] Searching for DyTech files in core of Factorio

Post by JLBShecky »

Just a note in regards to this:

This isn't just a case of windows vs non-windows treating file paths differently, which is what I thought of it when I first saw it as well. As a windows user I get the error as well when the path is in the zip form, but not when it is extracted, so that makes it all the more confusing for someone testing a mod if you aren't looking for the differences in how file paths can be handled.

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: [0.12] Searching for DyTech files in core of Factorio

Post by orzelek »

Going into zip and changing GUI to gui fixes the issue.

Difference between zip handling and extracted directories on windows is confusing.

Post Reply

Return to “Not a bug”