Page 1 of 1

[0.12] Searching for DyTech files in core of Factorio

Posted: Tue Jul 21, 2015 4:08 pm
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

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

Posted: Wed Jul 22, 2015 1:22 am
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.

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

Posted: Wed Jul 22, 2015 1:42 am
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.

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

Posted: Wed Jul 22, 2015 6:50 am
by orzelek
Going into zip and changing GUI to gui fixes the issue.

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