Jump to content

Refaim

Fremen
  • Posts

    6
  • Joined

  • Last visited

Reputation

1 Neutral
  1. @D2k Sardaukar: Have you considered way of taking path to the missions folder from resource.cfg? Also you can easily determine if game is running from CD using os.access function.
  2. This code will print only error message but not the callstack. It may be difficult to locate the exception cause in this case. I suggest you to use something like this: import tracebacktry: ...except Exception, e: print(traceback.format_exc(e)) raw_input('Press enter to exit...')
  3. You really did. Thanks a lot! I suggest that your application requires higher privileges because you use some WinAPI functions. You could try to ship *.manifest file with patch. There is an -m <filename> option for that in PyInstaller. I do not know much about manifests, but I found some useful links: MSDN Reference, MSDN Manual, related forum topic.
  4. Well, if you interested, I can help you with that. First of all, You need to add import line from __future__ import print_functionto all source files of your patch. You also need to install LZMA support (I suppose you are using lzma module because there is a _lzma.pyd file that comes with your patch) and pywin32 packages for Python 2.7. Then if there are any problems, please share. When patch is gonna be working, you need to download PyInstaller and simply run pyinstaller --onefile patch.py. Please see screenshot in the attachment. I've opened the first console window, launched your .exe, it asked me for administrative privilegies and opened a new elevated command prompt window. If I opened the first window in the administrator mode, the new window would not be created. Done. uil.zip
  5. Thank you for quick bugfix. Unfortunately, new version is unable to patch .uil files. I am getting the same error as wxg2004. Also, I've uploaded all files that being affected in the patching process. I kept the directory tree structure, so you can use it for patch testing. Please refer to the folder "original" in the attachment to my previous post. Unfortunately, there is no simple way to pack Python 3.x script into the single PE executable. Especially with cx_Freeze. Of course, you always can downgrade to Python 2.x and use PyInstaller or py2exe. By the way, why is your patch requires elevation? The user will be forced to open a new elevated command prompt window to see the error message, if any.
  6. Thanks for the wonderful patches, N.Kindt & D2k Sardaukar! To D2k Sardaukar: However, I have a problem. The game is fully playable, but there are some issues with menu, campaign interface and so on. I've read the whole topic, but could not find the solution. I feel like I missed something. Could you please help me? I am using fresh 1.06 UK game and version 1.3.1 of your patch. See screenshot and patched/non-patched files in the attachments for the details. Also I might be able to help with compiling python script into the single executable. I see that you are using Python 3.3. Which tool you are using for packaging currently? 1280x720_report.zip
×
×
  • Create New...