Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

U4pak.py error #43

Open
Venusasaboi opened this issue Apr 15, 2021 · 4 comments
Open

U4pak.py error #43

Venusasaboi opened this issue Apr 15, 2021 · 4 comments

Comments

@Venusasaboi
Copy link

I am using the pack_tool to try to create a .pak file for models (so that I can play as a different character in Little Nightmares) however I keep getting an error whenever I click START_pack.bat
I have python 2.7 downloaded (as that's what I was told to use as pack_tool wouldn't work without it, yet it's not working? Any help would be greatly appreciated!!
Error:

C:\Users\User\Downloads>u4pak.py` pack Helios-WindowsNoEditor_MyMod.pak Helios
'u4pak.py' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\User\Downloads>pause
Press any key to continue . . .
@panzi
Copy link
Owner

panzi commented Apr 15, 2021

(I don't know what pack_tool is.)
This looks like you're calling u4pak.py as if it where an executable installed in %PATH%, but it is a Python script and probably not installed in %PATH%. You need to call C:\path\to\your\python.exe C:\path\to\u4pak.py pack Helios-WindowsNoEditor_MyMod.pak Helios (assuming you call this from the directory where Helios is in and where Helios-WindowsNoEditor_MyMod.pak shall be created).

@Venusasaboi
Copy link
Author

Venusasaboi commented Apr 15, 2021

(I don't know what pack_tool is.)
This looks like you're calling u4pak.py as if it where an executable installed in %PATH%, but it is a Python script and probably not installed in %PATH%. You need to call C:\path\to\your\python.exe C:\path\to\u4pak.py pack Helios-WindowsNoEditor_MyMod.pak Helios (assuming you call this from the directory where Helios is in and where Helios-WindowsNoEditor_MyMod.pak shall be created).

Thank you I think I'm getting somewhere with this, however I got an new error :/
Error:
C:\Python27\python.exe: can't find '__main__' module in 'C:\\Users\\User\\Downloads\\pack_tool-4-1-0-1615449424.zip\\pack_tool\\u4pak.py'

@panzi
Copy link
Owner

panzi commented Apr 15, 2021

That is odd. Again, what is this pack_tool? Someone's fork of my code? If they've changed something nothing I say here might apply to what you're using. I can only help you with what I've wrote, so you could try u4pak.py from this repo. Download newest version: https://raw.githubusercontent.com/panzi/u4pak/master/u4pak.py

Or otherwise you need to ask that pack_tool for help. :D

@panzi
Copy link
Owner

panzi commented May 14, 2021

I've written a new tool that doesn't require Python, but instead I provide a compiled Windows binary. It is faster, but has slightly different command line arguments and a feature for Windows users that don't want to use a terminal. Does that work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants