[4.0 Beta] Save game trade analyser

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

harkov
Posts: 81
Joined: Mon, 12. Mar 12, 11:16
x4

Re: [4.0 Beta] Save game trade analyser

Post by harkov » Fri, 4. Jun 21, 20:30

I'm not sure what the problem could be. The only thing that comes to mind is that the command prompt pauses when you right click it. Then it's in select mode. Does the title of the command prompt mention 'select'?

Perry-Rhodan49
Posts: 11
Joined: Tue, 4. Dec 18, 16:30
x4

Re: [4.0 Beta] Save game trade analyser

Post by Perry-Rhodan49 » Fri, 4. Jun 21, 21:15

no, its in the same mode. e.g. "pip install -e ." is working just fine. I don't want to take up too much of your time, especially since you don't play X4 anymore, don't worry.

harkov
Posts: 81
Joined: Mon, 12. Mar 12, 11:16
x4

Re: [4.0 Beta] Save game trade analyser

Post by harkov » Fri, 4. Jun 21, 21:51

No worries, I've been playing X games of and on for ten years now. I'll check whether I can get it to run on 4.0 tomorrow night.

Perry-Rhodan49
Posts: 11
Joined: Tue, 4. Dec 18, 16:30
x4

Re: [4.0 Beta] Save game trade analyser

Post by Perry-Rhodan49 » Sat, 5. Jun 21, 17:53

Very kind of you, I'm curious if it works for you

harkov
Posts: 81
Joined: Mon, 12. Mar 12, 11:16
x4

Re: [4.0 Beta] Save game trade analyser

Post by harkov » Sat, 5. Jun 21, 19:42

I just tested it and I think I know what's up.

You're trying to launch the file in the x4stat\stats dir. What you should be doing is simply typing "x4stats" in the top directory
So let's say D:\x4stats is your main directory, do this:

Code: Select all

D:\x4stats> .\venv\Scripts\activate.bat
D:\x4stats> x4stats
Then wait for it to start and point your browser to http://localhost:2992/stats

Perry-Rhodan49
Posts: 11
Joined: Tue, 4. Dec 18, 16:30
x4

Re: [4.0 Beta] Save game trade analyser

Post by Perry-Rhodan49 » Sat, 5. Jun 21, 21:13

hmmmm, but x4stats.py is in the stats folder.
When I try to run it in the main folder the following message is printed
:::::::::::::::::::::::
x4stats: The term "x4stats" was not used as the name of a cmdlet, a function, a
Script file or executable program detected. Check the spelling of the
Name, or whether the path is correct (if included), and try again.
In line: 1 character: 1
+ x4stats
+ ~~~~~~~
+ CategoryInfo: ObjectNotFound: (x4stats: String) [], CommandNotFoundException
+ FullyQualifiedErrorId: CommandNotFoundException
::::::::::::::::::::::::::

harkov
Posts: 81
Joined: Mon, 12. Mar 12, 11:16
x4

Re: [4.0 Beta] Save game trade analyser

Post by harkov » Sat, 5. Jun 21, 21:24

Are you using powershell? I get the same message using powershell but it works in command prompt (cmd.exe).

The file in the stats directory is not the executable. Running the command from the main dir is the way to go.

Perry-Rhodan49
Posts: 11
Joined: Tue, 4. Dec 18, 16:30
x4

Re: [4.0 Beta] Save game trade analyser

Post by Perry-Rhodan49 » Sun, 6. Jun 21, 07:39

Yesss, you are the best, using Powershell was my mistake. Thx so much man. I'm sure that I will enjoy your great tool @harkov

Post Reply

Return to “X4: Foundations - Scripts and Modding”