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

Discuss and distribute tools and methods for modding. Moderator - Grognak
TheSteampunkGuy
Posts: 1
Joined: Sat Apr 13, 2013 11:28 pm

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

Postby TheSteampunkGuy » Sat Apr 13, 2013 11:32 pm

Can someone help me I'm on a mac and I get this error when I run it in the console:
File "main.py", line 70
except (ImportError) as err:
^
SyntaxError: invalid syntax
after I run the command line.
Vhati
Posts: 792
Joined: Thu Oct 25, 2012 12:01 pm

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

Postby Vhati » Sun Apr 14, 2013 4:19 am

TheSteampunkGuy wrote:Can someone help me I'm on a mac and I get this error when I run it in the console:
File "main.py", line 70
except (ImportError) as err:
^
SyntaxError: invalid syntax
I think you're using an old Python (2.6 or higher is required).

Edit modman.command, and look for this:

Code: Select all

# Finally, the payload.
cd "${maindir}"
# - - -
python main.py
# - - -

Add a line to print your version, so it looks like this:

Code: Select all

# Finally, the payload.
cd "${maindir}"
# - - -
python --version
python main.py
# - - -

Then save, and double-click modman.command to see what's running.


Macs can have several versions of Python installed at once.
Open a terminal, and type: man python
That should explain how to set the "system-wide default" version of python.
WhemWeStandTogether
Posts: 1
Joined: Tue Apr 16, 2013 3:31 pm

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

Postby WhemWeStandTogether » Tue Apr 16, 2013 3:36 pm

I got error message:
ERROR: 'utf8' codec can't decode byte 0x92 in position 54868: invalid start byte
Traceback (most recent call last):-
File "D:\GMM\lib\killable_threading.py", line 99, in run
result = self._payload(*self._payload_args, **self._payload_kwargs)
File "D:\GMM\main.py", line 840, in patch_dats
append_xml_file(os.path.join(root, f), os.path.join(unpack_dir, root[len(tmp)+1:], f[:-len(".append")]))
File "D:\GMM\main.py", line 551, in append_xml_file
dst_text = get_text(dst_file)
File "D:\GMM\main.py", line 538, in get_text
f_text = f_bytes.decode("utf-8")
File "D:\Program Files\Python\lib\encodings\utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)-
UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 54868: invalid start byte
kuldager
Posts: 3
Joined: Tue Apr 16, 2013 5:58 pm

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

Postby kuldager » Tue Apr 16, 2013 6:07 pm

Please, somebody, help! I am not Englishman, so I want to apologise for my language. I have a problem with launching GMM. When I click modman.exe it gives me the message: "No supported version of Python found on this system. Download Python 2.7.3 at: www.python.org/getit/". Ok, i have already installed this version of Python, but it still doesn't work! I even installed other versions of Python, but this problem still exists. Please, help! :!:
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 Apr 16, 2013 6:48 pm

WhemWeStandTogether wrote:I got error message:
UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 54868: invalid start byte

There's a bad character in a mod's xml, which was about to be appended. (0x92 is windows-1252 ANSI's fancy right-tilted single quote (alt+8217 on numpad), which should be a plain apostrophe anyway.)

Unicode utf8 text is identical to windows-1252 ANSI text except for a few characters, like that one. I forgot about that and assumed reading all text as utf8 would work.

You can tell which mod it was from the log. Select it in GMM and click the 'validate' button to determine which xml file inside had the bad character. For later versions, I'll look into teaching GMM to handle that gracefully.
boa13
Posts: 829
Joined: Mon Sep 17, 2012 11:42 pm

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

Postby boa13 » Tue Apr 16, 2013 9:54 pm

kuldager wrote:When I click modman.exe it gives me the message: "No supported version of Python found on this system. Download Python 2.7.3 at: http://www.python.org/getit/". Ok, i have already installed this version of Python, but it still doesn't work! I even installed other versions of Python, but this problem still exists.:!:

Do not use modman.exe, it is broken in this version. Double-clicking on main.py should work.
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.
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 Apr 16, 2013 10:10 pm

kuldager wrote:When I click modman.exe it gives me the message: "No supported version of Python found..."
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...
viewtopic.php?f=12&t=2464&start=780#p41452
Kadu
Posts: 5
Joined: Wed Apr 17, 2013 12:40 pm

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

Postby Kadu » Wed Apr 17, 2013 12:45 pm

Hi :)
I just downloaded this mod and since then im trying to get it work.

I change python from 2.7.4 to 3.3.0, reinstall game couple of times, download mod also couple of times and i still get those errors. :(

Code: Select all

2013-04-17 08:38:00 INFO: Installing mod: Beginning Scrap Advantage.ftl
2013-04-17 08:38:00 INFO: Merging folder: data
2013-04-17 08:38:02 ERROR: [Errno 2] No such file or directory: 'c:\\docume~1\\owner\\locals~1\\temp\\tmpo1txy2\\data\\events.xml'
Traceback (most recent call last):
  File "D:\Gry\Faster Than Light\Grognaks Mod Manager v1.7 Win32\lib\killable_threading.py", line 99, in run
    result = self._payload(*self._payload_args, **self._payload_kwargs)
  File "D:\Gry\Faster Than Light\Grognaks Mod Manager v1.7 Win32\main.py", line 840, in patch_dats
    append_xml_file(os.path.join(root, f), os.path.join(unpack_dir, root[len(tmp)+1:], f[:-len(".append")]))
  File "D:\Gry\Faster Than Light\Grognaks Mod Manager v1.7 Win32\main.py", line 554, in append_xml_file
    with open(dst_path, "wb") as dst_file:
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\docume~1\\owner\\locals~1\\temp\\tmpo1txy2\\data\\events.xml'
2013-04-17 08:38:02 INFO:
2013-04-17 08:38:02 INFO: Patching failed.
2013-04-17 08:38:05 INFO:
2013-04-17 08:38:05 INFO: Quitting... (ctrl-break to be rude)
2013-04-17 08:38:05 INFO:
2013-04-17 08:38:06 INFO: Bye


Im running on Windows XP. I dont know what else i could do :(
Kadu
Posts: 5
Joined: Wed Apr 17, 2013 12:40 pm

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

Postby Kadu » Wed Apr 17, 2013 4:52 pm

Hi :)
I've got some problems with this tool. I cannot add any mod to the game. I always get similar errors.
Ive tried all version of python, 2.7.3/4, 3.3.1 and always its the same. I reinstalled game couple of times.
Im running on Windows XP Sp3.

This is log:
2013-04-17 12:46:53 INFO: Grognak's Mod Manager v1.7.0
2013-04-17 12:46:53 INFO: Platform: Windows-XP-5.1.2600-SP3
2013-04-17 12:46:53 INFO: Interpreter: CPython 2.7.3 (32bit)
2013-04-17 12:46:53 INFO:
2013-04-17 12:46:53 INFO: Rooting at: D:\Gry\Faster Than Light\Grognaks Mod Manager v1.7 Win32
2013-04-17 12:46:53 INFO:
2013-04-17 12:46:53 INFO: Registering ctrl-c handler.
2013-04-17 12:46:53 INFO: Using FTL dats path from config: D:\Gry\Faster Than Light\resources
2013-04-17 12:46:53 INFO: Background hashing finished.
2013-04-17 12:46:56 INFO:
2013-04-17 12:46:56 INFO: Patching...
2013-04-17 12:46:56 INFO:
2013-04-17 12:47:08 INFO: Unpacking data.dat...
2013-04-17 12:47:14 INFO: Unpacking resource.dat...
2013-04-17 12:47:19 INFO:
2013-04-17 12:47:19 INFO: Installing mod: Infinite Space_0.4.3.ftl
2013-04-17 12:47:19 INFO: Merging folder: data
2013-04-17 12:47:21 ERROR: [Errno 2] No such file or directory: 'c:\\docume~1\\owner\\locals~1\\temp\\tmpdvu9tv\\data\\autoBlueprints.xml'
Traceback (most recent call last):
File "D:\Gry\Faster Than Light\Grognaks Mod Manager v1.7 Win32\lib\killable_threading.py", line 99, in run
result = self._payload(*self._payload_args, **self._payload_kwargs)
File "D:\Gry\Faster Than Light\Grognaks Mod Manager v1.7 Win32\main.py", line 850, in patch_dats
sh.copy2(os.path.join(root, f), os.path.join(unpack_dir, root[len(tmp)+1:], f))
File "C:\Python27\lib\shutil.py", line 128, in copy2
copyfile(src, dst)
File "C:\Python27\lib\shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 2] No such file or directory: 'c:\\docume~1\\owner\\locals~1\\temp\\tmpdvu9tv\\data\\autoBlueprints.xml'
2013-04-17 12:47:21 INFO:
2013-04-17 12:47:21 INFO: Patching failed.
2013-04-17 12:47:27 INFO:
2013-04-17 12:47:27 INFO: Quitting... (ctrl-break to be rude)
2013-04-17 12:47:27 INFO:
2013-04-17 12:47:28 INFO: Bye


There is some kind of problem with my Temp, but i ve no idea whats wrong with it. :(
Vhati
Posts: 792
Joined: Thu Oct 25, 2012 12:01 pm

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

Postby Vhati » Wed Apr 17, 2013 11:04 pm

Kadu wrote:There is some kind of problem with my Temp, but i ve no idea whats wrong with it. :(
There weren't problems unpacking, so "tmpdvu9tv" was successfully created and filled with stuff.
But later, when GMM tries to add mods, it can't find that location.

Are you running something else that monitors and clears temp (optimizer/anti-malware thingy)?