Grognak's Mod Manager v1.7 (Updated March 6, 2013!)

Discuss and distribute tools and methods for modding. Moderator - Grognak
Vhati
Posts: 792
Joined: Thu Oct 25, 2012 12:01 pm

Re: Grognak's Mod Manager v1.7 (Updated March 6, 2013!)

Postby Vhati » Tue Jun 25, 2013 11:11 pm

Clockwork757 wrote:Whenever I launch modman.exe it say's I don't have python installed, I do.
Ignore modman.exe for now (it's broken), and run main.py directly.
- Windows XP: Double-click main.py.
- Windows Vista/7/8: may have to do this.
Vhati
Posts: 792
Joined: Thu Oct 25, 2012 12:01 pm

Re: Grognak's Mod Manager v1.7 (Updated March 6, 2013!)

Postby Vhati » Tue Jun 25, 2013 11:33 pm

5thHorseman wrote:And are there any really bad bugs in 1.6 that 1.7 fixed?

I personally downgraded to 1.6 from 1.7 because I've had 0 problems with 1.6 and 1.7 [...] (as far as I can tell) no benefit.


Changelog for 1.7:
* Lowered the minimum required Python version to 2.6
* Added a Linux/Mac launcher (modman.command) to guarantee a terminal
- Added forum-scraped metadata for most mod files at the time (based on their md5)
- Added a right-click clipboard menu to the text area.
- Added ini setting: never_run_ftl
- The ini's ftl_dats_path is ignored if it's invalid
* Added graceful exit on ctrl-c or Windows terminal closing
* Fixed data.dat/FTL.app file chooser, which sometimes left files hidden
* Fixed fatal TclError for non-US locales with commas for decimal points
- Moved dat backups to GMM/backup/ (bak's in the old location will be deleted)
* Made the code tolerable by Python 3.x
- Made the Patch/Toggle/Forum buttons expand to accomodate their text
- Added "Validate" button to check mods for problems
- Added support for appending xml files with unicode UTF-8 BOMs
- Updated backend (un)packer to ftldat r7 (plus changes for Python 2.6/3.x)
The biggest benefits were for Linux and OSX users, some of whom would not have been able to run the mod manager at all until 1.7. The locale bug crashed 1.6 on certain Windows boxes. Some Windows users had another problem (see below).


5thHorseman wrote:Is there any reason why 1.7 needs to run as an Admin but 1.6 does not?
AFAIK, it's not a requirement of any specific version of GMM.

Windows, since Vista, is often protective of special directories, like Program Files, and prevents non-admin apps from writing there. That may only apply to apps that aren't themselves within Program Files. I'm not familiar with the policy.

GMM 1.6 shipped with a redundant main.py baked into an exe, along with a copy of Python. The process of generating that exe becoming untenable, and complaints about virus-scanners raising a false warning (summarily deleting GMM) as a sideeffect of the bundling, led to a new exe.
GMM 1.7's exe was handcoded to search for an existing Python installation and run that against main.py. Due to an oversight, it doesn't look in the right places, and mistakenly thinks Python isn't available.
Last edited by Vhati on Tue Jun 25, 2013 11:58 pm, edited 5 times in total.
Clockwork757
Posts: 2
Joined: Sun Sep 30, 2012 12:25 am

Re: Grognak's Mod Manager v1.7 (Updated March 6, 2013!)

Postby Clockwork757 » Tue Jun 25, 2013 11:46 pm

Vhati wrote:
Clockwork757 wrote:Whenever I launch modman.exe it say's I don't have python installed, I do.
Ignore modman.exe for now (it's broken), and run main.py directly.
- Windows XP: Double-click main.py.
- Windows Vista/7/8: may have to do this.


Thanks, that fixed it!
User avatar
5thHorseman
Posts: 1668
Joined: Sat Mar 02, 2013 2:29 am

Re: Grognak's Mod Manager v1.7 (Updated March 6, 2013!)

Postby 5thHorseman » Wed Jun 26, 2013 1:15 am

Vhati wrote:Windows, since Vista, is often protective of special directories, like Program Files, and prevents non-admin apps from writing there. That may only apply to apps that aren't themselves within Program Files. I'm not familiar with the policy.


Thank you for answering my question. It's nice to know that I'm not actually missing out on anything :)

I have no idea why my version of Windows 7 has no problem with 1.6 modifying the FTL files without running in Admin mode, but I'm going to take advantage of the fact due to not having any of the problems people reported with 1.6.
My Videos - MY MOD HUB
Simo-V - The Potential - Automated Scout - "Low O2" Icons
The Black Opal - The Asteroid - The Enforcer - The Pyro

"Every silver lining has a cloud..."
Vhati
Posts: 792
Joined: Thu Oct 25, 2012 12:01 pm

Re: Grognak's Mod Manager v1.7 (Updated March 6, 2013!)

Postby Vhati » Thu Jun 27, 2013 5:17 am

.
Modman.exe Beta 2013-06-27

Okay, I've rewritten modman.exe. Anyone wanna test it?

Just drop the attached exe into your existing GMM folder.
This time it checks PATH and the registry (both 32bit and 64bit keys if available) for Python.

It essentially runs "python.exe main.py" in a window for you, when double-clicked.
You should be able to right-click it to run as admin, too.

The source is available here.
.
User avatar
5thHorseman
Posts: 1668
Joined: Sat Mar 02, 2013 2:29 am

Re: Grognak's Mod Manager v1.7 (Updated March 6, 2013!)

Postby 5thHorseman » Thu Jun 27, 2013 7:50 am

Vhati wrote:.
Modman.exe Beta 2013-06-27
Okay, I've rewritten modman.exe. Anyone wanna test it?


I just tested it really quick (applied a patch to my exe) and it works great, just like 1.6 did.

In fact, it's so much like 1.6 it even says it's 1.6 :D

Grognak's Mod Manager
by Grognak (version 1.6)
Thanks for using GMM. Make sure to periodically check the forum for updates!
My Videos - MY MOD HUB
Simo-V - The Potential - Automated Scout - "Low O2" Icons
The Black Opal - The Asteroid - The Enforcer - The Pyro

"Every silver lining has a cloud..."
User avatar
kartoFlane
Posts: 1488
Joined: Mon Jan 14, 2013 10:20 pm

Re: Grognak's Mod Manager v1.7 (Updated March 6, 2013!)

Postby kartoFlane » Thu Jun 27, 2013 10:23 am

Can confirm, the .exe works fine for me too (win 7 64) :)
Superluminal2 - a ship editor for FTL
hayden9966
Posts: 1
Joined: Thu Jun 27, 2013 12:01 pm

Re: Grognak's Mod Manager v1.7 (Updated March 6, 2013!)

Postby hayden9966 » Thu Jun 27, 2013 12:07 pm

I installed python but it doesn't work :shock: I have installed at least four different versions but it still doesn't work please help

p.s. I'm running on windows 8 if that'll help
Captain lizzy
Posts: 1
Joined: Thu Jun 27, 2013 4:20 pm

Re: Grognak's Mod Manager v1.7 (Updated March 6, 2013!)

Postby Captain lizzy » Thu Jun 27, 2013 4:24 pm

I realy loved using this on my old pc because it worked, but now I got a new pc with the correct version of python and everything else it needs, help please :evil:
Vhati
Posts: 792
Joined: Thu Oct 25, 2012 12:01 pm

Re: Grognak's Mod Manager v1.7 (Updated March 6, 2013!)

Postby Vhati » Thu Jun 27, 2013 6:05 pm

hayden9966 wrote:I installed python but it doesn't work :shock:

Captain lizzy wrote:I got a new pc with the correct version of python
Ignore modman.exe for now (it's broken), and run main.py directly.
- Windows XP: Double-click main.py.
- Windows Vista/7/8: may have to do this.


Or you can use the replacement exe I just made.