Git Product home page Git Product logo

Comments (6)

panzi avatar panzi commented on June 26, 2024

Did you enter this in the Python shell? You need to run that script from the Windows command prompt.

Open cmd.exe, then enter python C:\Users\****\Desktop\u4pak.py unpack E:\games\STARDROP\STARDROP\Content\Paks\STARDROP-WindowsNoEditor.pak

from u4pak.

cookins avatar cookins commented on June 26, 2024

now i tried same thing from cmd.exe - paste from cmd:

Microsoft Windows [Version 10.0.17134.590]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>python
Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> E:\games\STARDROP\STARDROP\Content\Paks\u4pak.py unpack
  File "<stdin>", line 1
    E:\games\STARDROP\STARDROP\Content\Paks\u4pak.py unpack
                                                          ^
SyntaxError: unexpected character after line continuation character
>>>

from u4pak.

panzi avatar panzi commented on June 26, 2024

You're not doing what I said you should do. The E:\game\... part is NOT Python code. Entering it in a python shell of course gives you a syntax error. It is the filename of a script that shall be run. You need to pass it as an argument to the python binary. It should look somewhat like this:

Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-2019.

C:\WINDOWS\SYSTEM32> cd "C:\Users\cookins\Documents"
C:\Users\cookins\Documents> python.exe "C:\Users\cookins\Desktop\u4pak.py" unpack "E:\games\STARDROP\STARDROP\Content\Paks\STARDROP-WindowsNoEditor.pak"

Followed by the output of the u4pak.py script.

from u4pak.

cookins avatar cookins commented on June 26, 2024

my bad.
im newbie with python.
is that correct? -
E:\games\STARDROP\STARDROP\Content\Paks>python.exe "u4pak.py" unpack "STARDROP-WindowsNoEditor.pak"
but i getting that:
'utf-8' codec can't decode byte 0xbb in position 93: invalid start byte

from u4pak.

panzi avatar panzi commented on June 26, 2024

Ok, that is weird. You could try to replace the 'utf-8' in line 538 of u4pak.py with 'latin1'. Does it work then? But 0xbb in latin1 is the character ยป, which would be an odd character in a file name.

from u4pak.

cookins avatar cookins commented on June 26, 2024

Maybe some other time. Don't have it for now. Sorry for trouble.

from u4pak.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.