Mod Difficulties

Discuss and distribute tools and methods for modding. Moderator - Grognak
Min Headroom
Posts: 6
Joined: Mon Nov 12, 2012 4:34 pm

Mod Difficulties

Post 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
boa13
Posts: 808
Joined: Mon Sep 17, 2012 11:42 pm

Re: Mod Difficulties

Post 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).
Forum janitor — If you spot spam, PM me the URL and/or the username of the spammer.
I have powers, moderator powers. I am not keen on using them, but will do so if needed.
shark
Posts: 169
Joined: Thu Nov 08, 2012 10:11 am

Re: Mod Difficulties

Post 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 :)
Roses are #FF0000
Violets are #0000FF
All of our mods
are belong to you.
Min Headroom
Posts: 6
Joined: Mon Nov 12, 2012 4:34 pm

Re: Mod Difficulties

Post 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?
shark
Posts: 169
Joined: Thu Nov 08, 2012 10:11 am

Re: Mod Difficulties

Post 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)
Roses are #FF0000
Violets are #0000FF
All of our mods
are belong to you.
Min Headroom
Posts: 6
Joined: Mon Nov 12, 2012 4:34 pm

Re: Mod Difficulties

Post 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.
alextfish
Posts: 184
Joined: Sun Sep 30, 2012 2:24 pm

Re: Mod Difficulties

Post 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?
Many years ago I created the FTL Starcraft mod: 18 new challenging ships to fly through the FTL universe!, and wrote a tutorial on creating your own FTL ships. They haven't been updated for AE though.
Min Headroom
Posts: 6
Joined: Mon Nov 12, 2012 4:34 pm

Re: Mod Difficulties

Post 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]$ 
shark
Posts: 169
Joined: Thu Nov 08, 2012 10:11 am

Re: Mod Difficulties

Post by shark »

Did you run GMM with Administrator priviledges/credentials?
Roses are #FF0000
Violets are #0000FF
All of our mods
are belong to you.
Min Headroom
Posts: 6
Joined: Mon Nov 12, 2012 4:34 pm

Re: Mod Difficulties

Post 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?
Post Reply