Closed chefranov closed 4 years ago
Oops! You still have to execute this step from the manual setup:
Python Python 3.6 or higher and Pipenv are required to run this project. To get started with a clean setup, open up a shell, navigate to your local repository, and run:
pipenv clean
pipenv install
I will update the documentation to include this mandatory setup step!
When I run pipenv clean
Powershell seems to not recognize Python as being installed.
Can you try just typing python
in your Powershell and see if it recognizes that command?
A yeah, so exit out of that by typing exit()
and then type pip install --user pipenv
Done
Next actions?
pipenv clean
pipenv install
Then autoinstaller again
The same errors :(
I can help you later, still at work atm, sorry! I'll look at it tonight my time.
You might have to try running a regular command prompt, instead of powershell, and see if pipenv clean
will run there. I think Powershell isn't loading pip
loaded packages or something, I'm not sure.
The same problem: pipenv is not command
Ok, in that command prompt: pip install pipenv
, then pipenv clean
and pipenv install
again. We'll get there!
Maybe Do I need to add something to PATH?
That should have happened when you setup Python, but I think they're not on the PATH at the moment. So yes, although you might want to google for "installing pipenv on Windows" and "PATH" in that query somewhere ;-)
I'm at work again (I live in the US now) so I'll be slower to respond.
I fixed error, but now I have new issue :)
Haha, wow I wasn't aware that 3.7 would check-fail 3.6, that's odd. I think you can just try running pipenv install
and then running the autosetup again.
A lot of errors
Try installing the packages in the Pipfile
manually:
pipenv install numexpr Pillow pytest
The same errors
Hm, what about pip install numexp Pillow pytest
?
Was that pip
or pipenv
install, that last screenshot? I don't see the pip
but maybe I'm blind.
ohh, it was my mistake
Ah cool, so that works. Try the auto setup again now , python prepare.py
about prepare.py
i wrote in first message. Script can't find game directory but directory exist
Open up prepare.py
in your editor and edit these lines:
def tqdb_prepare():
# Open the TQAE key and grab the install location:
try:
tqae_key = winreg.OpenKey(
winreg.HKEY_LOCAL_MACHINE, LOOKUP_KEY, 0, winreg.KEY_READ)
install = winreg.QueryValueEx(tqae_key, 'InstallLocation')[0]
except WindowsError:
print('Could not find installation directory for Titan Quest')
return
Add the exception the the except
clause and print by changing that line to:
except WindowsError as we:
print('Could not find installation directory for Titan Quest')
print(we)
return
Then run the file again.
Here is https://stackoverflow.com/questions/46041719/windows-reports-error-when-trying-to-install-package-using-pipenv how to fix issue with pipenv on Windows
C:\tqdb>python prepare.py
Could not find installation directory for Titan Quest
[WinError 2] Не удается найти указанный файл // can't find file
Ah! I think this might have something to do with 32 vs 64-bit systems.
Can you update this line in prepare.py
:
tqae_key = winreg.OpenKey(
winreg.HKEY_LOCAL_MACHINE, LOOKUP_KEY, 0, winreg.KEY_READ)
install = winreg.QueryValueEx(tqae_key, 'InstallLocation')[0]
To be:
tqae_key = winreg.OpenKey(
winreg.HKEY_LOCAL_MACHINE, LOOKUP_KEY, 0, access=winreg.KEY_READ | winreg.KEY_WOW64_64KEY)
install = winreg.QueryValueEx(tqae_key, 'InstallLocation')[0]
Then try again. If that doesn't work, change KEY_WOW64_64KEY
to KEY_WOW64_32KEY
in that update, then try one more time!
In first case
In second case
Ok, I'll have to debug this further, there's something going on with accessing the registry, I don't know if that has to do with a 32 vs 64-bit install of Python or something else, but I'll have to see what's causing this unable to lookup file.
You can still try to run through the Manual setup, that does the same as the Automated setup, just takes more effort.
Okay, thanks. In the evening I check Manual setup. And one more question. I read readme and there is mention that images of stuff is a sprite. How can I get separate images?
The parser creates a directory with all the images it then turns into a sprite, that it deletes at the end. I'll either add an option to not delete it, or show you where to turn off that delete from happening later.
Yes, it will be cool
And prepare.py
work! Previous time it was my mistake. Work with it: winreg.HKEY_LOCAL_MACHINE, LOOKUP_KEY, 0, access=winreg.KEY_READ | winreg.KEY_WOW64_64KEY)
What Do i need to do after prepare.py
?
After prepare.py I ran run.py but have these errors:
Could you help me?
Heeey?
Sorry! Work got really busy.
I remember running into some of those issues, but not these specific ones. I'll look into my logs later this week, sorry for the delay, busy busy! If we can't find a solution, maybe the quickest solution is to do some pair programming with Discord or something!
Ok, thank you. I will waiting for you. Don't forget
Alright I've figured out a few things, it's a strange bug so I'm diving into it more this weekend, should have an update for you maybe Sunday.
Was traveling last 2 weeks, back home now.
Didn't get a solution that weekend I posted an update, trying again today & tomorrow!
Okay
Hi. I installed python on windows. I tryed to run your script
But i have the entry in registry
![screenshot_3](https://user-images.githubusercontent.com/2775475/53524693-c9901f00-3ae8-11e9-99a0-d45de90b0990.png)
prepare.py
but your script can't find game directoryAfter that I tried run manually your script. I ran![screenshot_4](https://user-images.githubusercontent.com/2775475/53524853-2e4b7980-3ae9-11e9-8944-e44aa9980dfd.png)
run.py
but also errorsCan you help me?