Page 45 of 117
Re: Grognak's Mod Manager v1.4.1 (Updated Nov 9 2012!)
Posted: Sun Dec 02, 2012 10:31 pm
by boa13
Code: Select all
dir_mods = ~/Documents/FTL mods
^
SyntaxError: invalid syntax
You forgot the quotes around "~/Documents/FTL mods".

This is why Python is complaining; ~/Documents/FTL mods is not a valid Python instruction. The proper code would have been:
Code: Select all
dir_mods = "~/Documents/FTL mods"
I'm guessing that "dir_root" is the way of making the .py file you're running the root (so it can have a relative filepath), and then 'mods' is the folder (I think it's case-sensitive). Would 'mods/subfolder' then go to a folder/file inside mods?
dir_root is actually the name of variable, a place in memory that contains whatever the program author wants it to contain, with whatever name the program author wants. In the present case, obviously, this piece of memory contains the directory where the Mod Manager resides. Using the os.path.join instruction, you told Python to compute a new directory name, composed of whatever was in dir_root, and then "mods", and to store the result in the variable named dir_mods. You are right that you could add deeper subdirectories this way, though the proper way to write the instruction, so that it also works on Windows (with backslashes instead of slashes) would be
os.path.join(dir_root, 'mods', 'subfolder').
Re: Grognak's Mod Manager v1.4.1 (Updated Nov 9 2012!)
Posted: Sun Dec 02, 2012 10:44 pm
by sandrew26
Re boa: Ah, I see. You can tell I don't really know anything about python

. I assumed that the quotes weren't part of the construction (I'm used to seeing quotes used only for print/text things), so that's my fault - thank you for clarifying. I also didn't realize dir_root was a variable, although I guess I never really checked to see if it was declared somewhere. I'm so lazy XD this is why I've never liked programming. I'll keep all of this in mind in case I have to do it again, though. Thank you again for all of your help!
Re: Grognak's Mod Manager v1.4.1 (Updated Nov 9 2012!)
Posted: Mon Dec 03, 2012 2:33 am
by Grognak
Thank you boa, for the help.

And yeah sandrew, I assume the reason it didn't work in the first place was because the INI file wasn't in the "right place." Unfortunately, I'm not quite sure where that right place is on Mac (I'd assume it'd be the same folder that main.py was in.)
Re: Grognak's Mod Manager v1.4.1 (Updated Nov 9 2012!)
Posted: Wed Dec 05, 2012 7:32 am
by jocelyn
Grognak wrote:Thank you boa, for the help.

And yeah sandrew, I assume the reason it didn't work in the first place was because the INI file wasn't in the "right place." Unfortunately, I'm not quite sure where that right place is on Mac (I'd assume it'd be the same folder that main.py was in.)
Hi again,
To be more "mac like" on OSX you should write the settings to a .plist file and store it in: ~/Library/Preferences
I don't really know python (at least I've never tried to learn it, I might for this) but you can read, write, delete, plist files from the command line on osx using the native "defaults" command, so I'd assume it would be easy enough to use via python.
It looks to me like you accomplish this by using either os.system() and then using the defaults tool directly, or by using plistlib which has been available since python 2.6 (according to this page here at least:
http://www.doughellmann.com/PyMOTW/plistlib/)
Unless someone else beats me to this I might look into this, it would make it a lot easier to get new users up and running on OSX at least.
Cheers

Re: Grognak's Mod Manager v1.4.1 (Updated Nov 9 2012!)
Posted: Thu Dec 06, 2012 1:09 pm
by Flamingdodo
Okay so I am a little confused by all these comments, if anyone knows can they please just message me a list of what to do to get it working, thanks.
I am running windows 7 with the steam version of FTL.
Re: Grognak's Mod Manager v1.4.1 (Updated Nov 9 2012!)
Posted: Thu Dec 06, 2012 8:55 pm
by Grognak
If there is an issue for you, you will have to be more specific to get help.

Re: Grognak's Mod Manager v1.4.1 (Updated Nov 9 2012!)
Posted: Thu Dec 06, 2012 10:14 pm
by Sparfell
Hi
I have the linux version of FTL. I tried using the mod manager, at first to install the "disable fleet" mod, then trying to patch with nothing seleced. Each time I get the same error :
Code: Select all
OSError: [Errno 2] No such file or directory: '/home/thierry/opt/FTL/resources'
So, I take a look at my directory structure, and I'm not surprised by the error, the directory is in fact located in FTL/data/resources. I tried a quick google search ... in vain

am I the only one using the linux version

or ??? Any help ?
Re: Grognak's Mod Manager v1.4.1 (Updated Nov 9 2012!)
Posted: Sun Dec 09, 2012 2:16 am
by marchpumpkin
I am banging my head against a wall.
I am running Mac OS 10.8.2 and have the STEAM version of FTL.
I cannot get GMM to run...honestly, I cannot even figure out how to install it.
I have dug through these forums but cannot find a simple, step-by-step solution....
AAARRGGHHH!!!
Re: Grognak's Mod Manager v1.4.1 (Updated Nov 9 2012!)
Posted: Sun Dec 09, 2012 2:24 am
by UltraMantis
It's all in the readme file.
Code: Select all
To install the mod manager itself, unzip all of the files in the archive and move them into the folder:
Windows: in which FTLGame.exe resides.
Mac OS X: in which FTL_README.html resides.
Linux: in which FTL resides.
For Mac/Linux users: Move the contents of src into the same folder as modman.exe. In order to use GMM, run main.py via python. (It is safe to delete modman.exe.)
Mods come in .ftl files. To make one available to GMM, simply drag it into the /mods folder.
To install mods, open GMM, select the mods you want to be installed, and hit the button labled "Patch." Please note that you need to re-select mods that you already have installed, otherwise they will uninstall themselves.
In order to completely uninstall all mods, simply start the patching process with nothing selected.
Re: Grognak's Mod Manager v1.4.1 (Updated Nov 9 2012!)
Posted: Sun Dec 09, 2012 2:54 am
by marchpumpkin
UltraMantis wrote:It's all in the readme file.
Code: Select all
Mac OS X: in which FTL_README.html resides.
Except in the STEAM version, there is no FTL_README.html file
FTL Faster Than Light.app resides in ~/Applications/Games as do all Mac STEAM games.
Unzipping and putting all the src files in that same folder still doesn't work
Perhaps it's the "run main.py via python" that I cannot get to work. I open python via Terminal but trying to run main.py just pukes.
If anyone can handhold me through it, rather than just saying "RTFM" (which I did but still did not understand), I'd appreciate it.