Page 1 of 2

Mod Difficulties

Posted: Mon Nov 12, 2012 4:44 pm
by Min Headroom
Hi! First post on this forum, not quite sure where to put this, so I'm putting it here.

I'm trying to use Grognak's mod installer to instal, well, mods. However, I'm encountering problems when it comes to the whole "intall mods" part of the mod installer. I am playing FTL on a Mac, OS 10.6.8. I have put all the files from "src" into what I presume to be the correct directory, as per the readme. However, once I run the main.py file, as per the instructions, I get something I presume to be an error message, and nothing happens. The mods do not take effect.

Here is what appears in the terminal window:

Code: Select all

cd '/Users/[NAME REDACTED]/Library/Application Support/Steam/SteamApps/common/FTL Faster Than Light/' && '/usr/bin/pythonw'  '/Users/[NAME REDACTED]/Library/Application Support/Steam/SteamApps/common/FTL Faster Than Light/main.py'  && echo Exit status: $? && exit 1
Enclave-Terminal:~ [NAME REDACTED]$ cd '/Users/[NAME REDACTED]/Library/Application Support/Steam/SteamApps/common/FTL Faster Than Light/' && '/usr/bin/pythonw'  '/Users/[NAME REDACTED]/Library/Application Support/Steam/SteamApps/common/FTL Faster Than Light/main.py'  && echo Exit status: $? && exit 1
Traceback (most recent call last):
  File "/Users/[NAME REDACTED]/Library/Application Support/Steam/SteamApps/common/FTL Faster Than Light/main.py", line 6, in <module>
    from ftldat import FTLDatUnpacker as du
  File "/Users/[NAME REDACTED]/Library/Application Support/Steam/SteamApps/common/FTL Faster Than Light/ftldat.py", line 4, in <module>
    import argparse
ImportError: No module named argparse
Have I done it wrong somehow?

If I could get a bit of help, that would be great.
Thanks,
Min Headroom

Re: Mod Difficulties

Posted: Mon Nov 12, 2012 8:20 pm
by boa13
Thread moved from Technical Support and Bugs (which is for official game support) to Mod Development (which is for all kinds of mod-related discussions).

Re: Mod Difficulties

Posted: Mon Nov 12, 2012 8:23 pm
by shark
Looks like your python distro is missing 'argparse' package. See this link for further assistance.

This is a tech question resolvable by simply googling "python argparse download" and has nothing to do with mods at all. Feel free to move it back once the issue is resolved :)

Re: Mod Difficulties

Posted: Tue Nov 13, 2012 1:00 am
by Min Headroom
Thanks for the help on the argparse! It fixed the mod installation problem right quick. However, like some horrid computerized Hydra, when I fixed one issue, another took its place. Now, upon starting up FTL, the loading box is a white rectangle, and the game crashes before it even reaches the menu. This is getting quite irritating. Any ideas?

Re: Mod Difficulties

Posted: Tue Nov 13, 2012 8:24 am
by shark
Are you talking about the GMM running FTL or plain running FTL?

I get the same behaviour every time GMM tries to run my FTL, yet when I run it via FTLGame.exe my mods work just fine. (that's because GMM repacks the resource files)

Re: Mod Difficulties

Posted: Tue Nov 13, 2012 12:24 pm
by Min Headroom
shark wrote:Are you talking about the GMM running FTL or plain running FTL?

I get the same behaviour every time GMM tries to run my FTL, yet when I run it via FTLGame.exe my mods work just fine. (that's because GMM repacks the resource files)
Just plain running FTL. I'm opening it from Steam.

Re: Mod Difficulties

Posted: Tue Nov 13, 2012 3:53 pm
by alextfish
I've sometimes seen that when a mod install is bad. Does it still happen if you run GMM, deselect all mods and patch, and then relaunch the game from Steam?

Re: Mod Difficulties

Posted: Tue Nov 13, 2012 5:32 pm
by Min Headroom
Yes. The problem remains.
Also, another thing. When I click the "Patch" button, the entire window disappears. The terminal window does not say that the process was completed, the window simply vanishes. Quitting Python yields what I presume to be an error message.

Code: Select all

Unpacking data.dat...
Unpacking resource.dat...
Traceback (most recent call last):
  File "/Users/[NAME REDACTED]/Library/Application Support/Steam/SteamApps/common/FTL Faster Than Light/main.py", line 526, in <module>
    unpackdat("resource.dat")
  File "/Users/[NAME REDACTED]/Library/Application Support/Steam/SteamApps/common/FTL Faster Than Light/main.py", line 396, in unpackdat
    unpacker = du(open(datafile, "rb"))
  File "/Users/[NAME REDACTED]/Library/Application Support/Steam/SteamApps/common/FTL Faster Than Light/ftldat.py", line 81, in __init__
    self._read_index()
  File "/Users/[NAME REDACTED]/Library/Application Support/Steam/SteamApps/common/FTL Faster Than Light/ftldat.py", line 92, in _read_index
    size, l_filename  = struct.unpack('<LL', self.f.read(8))
struct.error: unpack requires a string argument of length 8
Enclave-Terminal:FTL Faster Than Light [NAME REDACTED]$ 

Re: Mod Difficulties

Posted: Tue Nov 13, 2012 6:29 pm
by shark
Did you run GMM with Administrator priviledges/credentials?

Re: Mod Difficulties

Posted: Tue Nov 13, 2012 7:54 pm
by Min Headroom
Yes, as far as I know I am running it with administrative privileges. Would running it without these privileges cause some sort of problem?