pvsneslib
pvsneslib copied to clipboard
Error in example "multiplay5"
I tried to build the "multiplay5" example project, but I get this error:
multiplay5.obj:multiplay5.asm:37: PARSE_STACK: Unresolved reference to "snes_mplay5". make: *** [C:/snesdev/snes-examples/pads/multiplay5/multiplay5.sfc] Error 1 rm multiplay5.asm multiplay5.ps (full log in here: full_log_multiplay5_error.txt)
I noticed that "extern u8 snes_mplay5;" is present pad.h, but adding this header doesn't help.
Am I doing something wrong? Is this example supposed to work, or is it a WIP?
I'm participating in a game jam (since yesterday) and wanted to include 4-player multiplayer to the rom!
Thank you!
That is strange as i'm using it for my last game, are you sure you're using the last obj files from the lib ? Also, try to recompile the lib on your own side, it will be ok ;) !
i just tried and it works from my side but i rebuilt the library
Just letting you know that yes, that was the problem :) I went to my pvsneslib path (C:\snesdev\pvsneslib) and built the "pvsneslib.pnproj" project (to those who might have a similar problem).
Thanks!
For some reason, I can only get joystick 0 input using the multiplay5 project... I see the message "USE PADS TO SEE VALUES" (so I know my setup is correct) and snes_mplay5 is true.
But printing the pad0 variable in the loop shows "-1" every time (except for joystick 0, which prints its key values).
A stream of prints for each player, all pressing KEY_A (jump): PLAYER -- 0 COMMAND -- 128 PLAYER -- 0 [JUMP!!] PLAYER -- 1 COMMAND -- -1 PLAYER -- 2 COMMAND -- -1 PLAYER -- 0 COMMAND -- 128 PLAYER -- 0 [JUMP!!] PLAYER -- 1 COMMAND -- -1 PLAYER -- 2 COMMAND -- -1
could you share your code about that ?
This is the folder with the .sfc rom included: multiplay5.zip
PS: A screenshot of no$sns controls screen:

I made this version to show that I can get joystick 0 and 1 using basically the same code (commenting multi5): regular_joystick_test.zip
In this version if I'm pressing both "space" and "Num 0" (space = key_a for joy 0, num0 = key_a for joy 1) I get them both to print:

But I when I do the same test in multi5 example (holding both "space" and keypad "num 0" ), I get this:

the wiki page on input/output says:
Currently, the only input managed with PVSneslib is the SNES joypad.
It is not updated. Pvsneslib manage now multitap (but this issue could be related to the emulator config) and super scope (which require to be tested!)
Regarding Superscope, it is not working. I need to add a pool function to populate all variables for multiscope. wiki updated
I tested the multi5 example with mesen and it works fine.