pumpitupdev / pumptools

A collection of tools to run Pump It Up games.
The Unlicense
22 stars 7 forks source link

NX2 not loading profiles #29

Open voidderef opened 3 years ago

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 21:39

Well, I'm using the last nx2hook.so you provided in the last issue, but now the game doesn't load the profile. If the USB is already connected and the game starts, it says "Non Functional USB", but if I insert when it's asked, it says "Please register at piugame.com".

Before the game would only read it Player1 USB port. P1: 01:10 P2: 01:11

At the time, I tried to switch ports, and as far as I remember, it didn't load in any port.! P1: 01:11 P2: 01:10

Screenshot_from_2021-04-01_16-38-06 Untitled piueb.log [REDACTED] pumptools.log [/uploads/89048452a5fed073b413f5e35b1f8700/pumptools.log]

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 21:41

For reference, forked issue from https://dev.s-ul.net/hackitup/pumptools/-/issues/27

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 21:42

How does this look like if you just start with a single player for each side, Player 1 and player 2?

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 21:43

Furthermore, can you also test this without pumpnet?

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 21:43

The same, it won't load. I'll try without pumpnet

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 21:47

Player 1 loaded, player 2 gives Non Fuctional USB

Screenshot_from_2021-04-01_16-45-36

Screenshot_from_2021-04-01_16-45-57

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 21:48

Can you unmap both ports in the operator menu, only map the player 2 port and retry if it works on player 2 then?

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 21:53

Port 2, usb already connected

Screenshot_from_2021-04-01_16-50-12

Screenshot_from_2021-04-01_16-49-50

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 21:54

Port 1, usb connected when asked

Screenshot_from_2021-04-01_16-50-52

Screenshot_from_2021-04-01_16-51-24

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 21:54

Can you send me the pumptools.log file of such a run including that you plug in the USB and get to the USB screen when until it says "Nonfunctional USB drive"?

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 21:55

Port 1, usb already connected

Screenshot_from_2021-04-01_16-50-52

Screenshot_from_2021-04-01_16-55-12

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 21:56

That might be normal. If you unplug it, go to the operator menu, then plug it back in, it should work if you don't reboot the game. Can you confirm?

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 21:57

So if you assign any player side to the port 01:11, it works on any player side? Just 01:10 doesn't work?

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 21:57

port 2, usb connected when asked

Screenshot_from_2021-04-01_16-56-41

Screenshot_from_2021-04-01_16-56-48

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 21:57

Let me try

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 21:58

Screenshot_from_2021-04-01_16-58-29

Screenshot_from_2021-04-01_16-58-36

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 21:59

Screenshot_from_2021-04-01_16-59-12

Screenshot_from_2021-04-01_16-59-39

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 22:00

You should not assign the same port in the operator menu to both sides. That is known to cause issues. Will add that to the readme.

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 22:01

Can you try different physical ports on your machine and maybe use a second USB thumb drive for player 2? So you have your first USB thumb drive on P1 and a second one on P2 on a different physical port than 01:10 or 01:11?

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 22:02

If I assign differents ports to each side, it will load always at player 1 and not player 2. I remember the game could load the same usb profile in each side

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 22:03

I want you to use 01:10 and a different physical port than 01:11. Try another USB port on your machine than what you have used so far.

Also, are these USB 2 or 3 ports?

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 22:04

Okay... I inserted when the game asked. These are USB 2.0 ports

Screenshot_from_2021-04-01_17-02-52

Screenshot_from_2021-04-01_17-02-22

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 22:05

Now the game recognizes even connected...

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 22:06

The whole usbprofile sub-system in NX2 is not very robust and pumptools applies a bunch of patches to make it work on modern kernels. What we might be seeing here is some extremely weird edge case.

To summarize:

Then everything's fine?

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 22:09

Yes, with nx2 original saves. With pumpnet save still gives me the other 2 messages.

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 22:13

Can you open http://185.41.243.94/pumpnet/usbprofile/v1/nx2/save in your browser and tell me if you get a white/blank page or something else?

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 22:15

I'm configuring again, it was missing a number in machine ID

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 22:16

done, but still won't load in P2

Screenshot_from_2021-04-01_17-16-15

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 22:16

changed the description

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 22:17

Can you upload the pumptools.log file again? Also, are you using the same profile from the same USB thumb drive on the P2 side?

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 22:20

Screenshot_from_2021-04-01_17-17-53

Screenshot_from_2021-04-01_17-18-57

piueb.log [REDACTED]

pumptools.log [REDACTED]

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 22:24

The log reports a successful profile download:

[M][2021/4/1-17:18:31:422][patch-net-profile][net-profile.c:475] open /mnt/1/nx2save.bin 1 0
[I][2021/4/1-17:18:31:422][patch-net-profile][net-profile.c:413] Found pumpnet profile file /mnt/1/pumpnet.bin
[M][2021/4/1-17:18:31:422][patch-net-profile][net-profile.c:351] Setup virtual file, player 1, file_type 0
[M][2021/4/1-17:18:31:422][patch-net-profile][net-profile.c:372] Setup virtual file done, size 30780
[I][2021/4/1-17:18:31:422][patch-net-profile][net-profile.c:445] Profile file player 1, file_type 0, refId REDACTED downloading from server...
[I][2021/4/1-17:18:31:422][pumpnet][pumpnet.c:184] [REDACTED][REDACTED] Get save
[M][2021/4/1-17:18:31:422][http][http.c:245] [REDACTED][https://pumpnet/pumpnet/usbprofile/v1/nx2/save] GET 24 30784
[M][2021/4/1-17:18:32:712][http][http.c:258] [REDACTED][https://pumpnet/pumpnet/usbprofile/v1/nx2/save] GET: 200 (41048 32)
[I][2021/4/1-17:18:32:719][patch-net-profile][net-profile.c:464] Downloading file player 1, file_type 0, refId REDACTED successful

-> GET: 200 -> 200 = ok

You just tried this on the player 2 side. Can you remap the USB port in the operator menu to the player 1 side only?

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 22:29

You mean one USB port to both players?

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 22:29

No, unmap the player 2 port you showed above, map the player 1 port only. Then retry with pumpnet. Maybe you had this already above, but we have been jumping back and forth. Just re-executing to ensure "what's the current state"

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 22:34

It loaded only if I connect when it asks

Screenshot_from_2021-04-01_17-31-05

Screenshot_from_2021-04-01_17-33-42

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 22:36

Ok, so before, with the player 2 side, you left he USB thumb drive connected when exiting the operator menu? Again, what I pointed out earlier, can you avoid doing that and disconnec the USB thumb drive after you assigned the ports or when you start the game?

I suspect that is the core issue for some reason that I cannot explain right now.

Can you please retry EXACTLY what you just did on the player 1 side on the player 2 side including not having the USB thumb drive connected to the game before entering the game/USB screen, and only THEN connect it?

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 22:39

Yes, and yes, I can avoid. I can try, hold on

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 22:46

I assigned usb port, disconnected usb, and then only connected when the game asked

USB port 1 Screenshot_from_2021-04-01_17-44-33

Screenshot_from_2021-04-01_17-45-15

USB port 2 Screenshot_from_2021-04-01_17-45-32

[SCREENSHOT REDACTED]

piueb.log [REDACTED]

pumptools.log [REDACTED]

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 22:53

For the first one with the nonfunctional USB drive:

[M][2021/4/1-17:44:54:436][patch-net-profile][net-profile.c:475] open /mnt/1/nx2save.bin 1 0
[I][2021/4/1-17:44:54:438][patch-net-profile][net-profile.c:413] Found pumpnet profile file /mnt/1/pumpnet.bin
[M][2021/4/1-17:44:54:439][patch-net-profile][net-profile.c:351] Setup virtual file, player 1, file_type 0
[M][2021/4/1-17:44:54:439][patch-net-profile][net-profile.c:372] Setup virtual file done, size 30780
[I][2021/4/1-17:44:54:439][patch-net-profile][net-profile.c:445] Profile file player 1, file_type 0, refId REDACTED downloading from server...
[I][2021/4/1-17:44:54:439][pumpnet][pumpnet.c:184] [REDACTED][REDACTED] Get save
[M][2021/4/1-17:44:54:440][http][http.c:245] [REDACTED][https://pumpnet/pumpnet/usbprofile/v1/nx2/save] GET 24 30784
[M][2021/4/1-17:45:11:317][http][http.c:258] [REDACTED][https://pumpnet/pumpnet/usbprofile/v1/nx2/save] GET: 200 (41048 32)
[I][2021/4/1-17:45:11:325][patch-net-profile][net-profile.c:464] Downloading file player 1, file_type 0, refId REDACTED successful

For the second one

[M][2021/4/1-17:45:49:610][patch-net-profile][net-profile.c:475] open /mnt/1/nx2save.bin 1 0
[I][2021/4/1-17:45:49:613][patch-net-profile][net-profile.c:413] Found pumpnet profile file /mnt/1/pumpnet.bin
[M][2021/4/1-17:45:49:613][patch-net-profile][net-profile.c:351] Setup virtual file, player 1, file_type 0
[D][2021/4/1-17:45:49:613][patch-net-profile][net-profile.c:357] net-profile.c

Then: Aborted (core dumped)

That is really odd and I haven't seen such an issue before. I have to see what I can do to re-produce that on my local setup. At least you can play the game using the player 1 side (with pumpnet) for now.

Thanks a lot for your quick replies and follow-ups to my requests. However, note that I cannot make any promises about getting this fixed.

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 22:53

Actually one more thing you can try for now: Can you try different physical USB ports that are not 01:10 and 01:11?

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 23:02

The game only recognizes usb 2.0 ports right? (discovered it today) ----edit---- it recognizes some usb periphericals, such as my external bluray player

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 23:05

Actually no, 3.0 should also work. I just checked the ports on my workstation which I have used for testing all the time and they are actually 3.0 ports.

Therefore, can you test with different physical ports other than 01:10 and 01:11 that are either USB 2 or 3? Make sure to test any port that is actually a USB 3 port.

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 23:11

piueb.log [REDACTED]

pumptools.log [REDACTED]

motherboard usb2.0 back ports

Screenshot_from_2021-04-01_18-06-38

Screenshot_from_2021-04-01_18-07-37

Screenshot_from_2021-04-01_18-08-01

[SCREENSHOT REDACTED]

voidderef commented 3 years ago

In GitLab by @icex2 on Apr 1, 2021, 23:16

Ok, seems like it's not an issue with specific physical USB ports then. The errors are identical to what I already outlined above.

I am out of ideas right now. As already mentioned, that might be a rather tricky edge case we are having here right now. I will see what I can do to re-produce that.

In the meantime, please let me know if you tested something else we haven't tested so far and what the results are. Maybe that additional data might help us narrowing down the root cause further.

voidderef commented 3 years ago

In GitLab by @renansimoes on Apr 1, 2021, 23:18

Ok, for now I'll use the other ports that works.

Thank you for your patience