Giter Site home page Giter Site logo

Comments (42)

fonsleenaars avatar fonsleenaars commented on July 24, 2024 1

I can help you later, still at work atm, sorry! I'll look at it tonight my time.

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024 1

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.

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

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!

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

When I run pipenv clean
screenshot_5

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

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?

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

screenshot_6

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

A yeah, so exit out of that by typing exit() and then type pip install --user pipenv

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

Done
screenshot_7
Next actions?

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

pipenv clean
pipenv install

Then autoinstaller again

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

screenshot_8

The same errors :(

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

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.

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

The same problem: pipenv is not command

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

Ok, in that command prompt: pip install pipenv, then pipenv clean and pipenv install again. We'll get there!

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

screenshot_1
Maybe Do I need to add something to PATH?

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

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.

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

I fixed error, but now I have new issue :)
screenshot_2

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

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.

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

A lot of errors
screenshot_3

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

Try installing the packages in the Pipfile manually:

pipenv install numexpr Pillow pytest

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

The same errors

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

Hm, what about pip install numexp Pillow pytest ?

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

screenshot_4

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

Was that pip or pipenv install, that last screenshot? I don't see the pip but maybe I'm blind.

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

ohh, it was my mistake
screenshot_5

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

Ah cool, so that works. Try the auto setup again now , python prepare.py

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

about prepare.py i wrote in first message. Script can't find game directory but directory exist

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

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.

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

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

from tqdb.

chefranov avatar chefranov commented on July 24, 2024
C:\tqdb>python prepare.py
Could not find installation directory for Titan Quest
[WinError 2] Не удается найти указанный файл // can't find file

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

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!

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

In first case
screenshot_6
In second case
screenshot_7

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

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.

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

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?

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

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.

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

Yes, it will be cool

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

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:
screenshot_2

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

Could you help me?

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

Heeey?

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

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!

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

Ok, thank you. I will waiting for you. Don't forget

from tqdb.

fonsleenaars avatar fonsleenaars commented on July 24, 2024

Was traveling last 2 weeks, back home now.

Didn't get a solution that weekend I posted an update, trying again today & tomorrow!

from tqdb.

chefranov avatar chefranov commented on July 24, 2024

Okay

from tqdb.

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.