Emuforums.com

Go Back   Emuforums.com > PSX Emulation > PSX Plugin Questions & Troubleshooting
Home Register Downloads FAQ Members List Calendar Arcade Mark Forums Read

WON'T YOU JOIN US?
You are not a registered member and
are viewing this site as a guest.
Registration is simple and FREE.
Join this CrowdGather community today.
Registration offers the following perks:

» Less advertising throughout
» Post and participate in discussions
» Network with other forum members
» Free private messaging

join

Reply
 
Thread Tools Display Modes
Old July 2nd, 2011, 14:24   #21
shalma
Discontinued
 
Join Date: Feb 2009
Location: Inactive
Posts: 1,192
LCDGunGame exe
Download LCDGunGame.7z from Sendspace.com - send big files the easy way
(it looks to work only with EMS guns)


When I don't know what I'm doing, I've got to decide whether it's worth investing our time (me+H). Probably why I'm so dissatisfied with emulation.

Not being able to personally test / get #s on what an 'absolute' gun coordinate is getting bothersome. Enough to not wanting to complete (abandon) lightgun simulation beyond a mouse.


Aside from unraveling about my own typical grumpy unlikable nature, Hopkat suggests we install a debug logging driver into nuvee. Testers wave the gun around all over, we log the coordinates and then guess what to do next.

We may have to do individual calibration this way also if values differ between guns.


That code says EMS uses
//Gun X:0xA0~0x2A0
//Gun Y:0x20~0xE0

Don't like the idea of offscreen shooting at edges. But have no choice for Justifiers later.


Debug dll tester
Download nuvee_psx_controller.7z from Sendspace.com - send big files the easy way

- Generates debug.txt log in pcsx folder
- Start game, wave gun past all screen edges, send data
shalma is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old July 2nd, 2011, 15:55   #22
Killervin
Registered User
 
Join Date: May 2008
Posts: 51
Made 2 debug:

2debug.rar

One ems topgun, with 2 sensitivity setting.

The lcdgungame dont work me too. Asks for LCD Topgun which is a predecessor of my gun LOL.
Killervin is offline   Reply With Quote
Old July 2nd, 2011, 17:09   #23
paubi
Registered User
 
Join Date: Sep 2010
Location: spain
Posts: 38
There are games and emus like mame or all pc games that works throught the troubleshooter, that works with actlabs, topgun, and aimtrak, as i hve read. but this game you send, needs the driver of the topgun i suppose as it as made by the same company. so i think its better to see how do it mame or the troubleshooter.
i have been testing psx games with two mice and have problems with elementl gearbold, point blnk 1 2 3, elemental gerbolt, and mighty hits special, all others seems to work ok with mice.
tomorrow i will post a complete list of psx games ( there are pair jap that are very unknown)
is it possible the speed of emulation decreases wen you use rawimput?
in the last plugin crosshair dont move with lightguns, i tried modifing the sensibility but nothing.
I remind troubleshooter lets you play with epsxe 1.60, but only 1p, they said was an emulator limitation. but with this emu it was necessary to put the resolution of emu like the screen as you did in the last.
dont know if that will help

psd. i own 2 lcd topgun2 but wsnt ble to run tht game from ems. dont know why.
paubi is offline   Reply With Quote
Old July 2nd, 2011, 20:07   #24
shalma
Discontinued
 
Join Date: Feb 2009
Location: Inactive
Posts: 1,192
New test build
Download bin.7z from Sendspace.com - send big files the easy way


Going to try fixing the basic problem - 1P lightgun calibration
- new PCSX-r build (true latest SVN)
- new nuvee dll instructions


Absolute data means 16-bit unsigned values from 0-65535
- 0 / 65535 = offscreen (assumption)
- 1-65534 = raw values

- Clip value to top-left device corner
- Convert that to 512-256 guncon system
- Rely on 'special game config calibration' settings for Time Crisis, etc.


Please re-acquire devices
- New instructions to make sure PCSX-r window receives input correctly
- Replaced screen res values with edge calibration data (use acquire first!)
- Tweak edges if needed


If this works, 2P lightgun should behave the same.
If this continues to fail, it's time to leave emulation.


ref: John Goodman movie about Babe Ruth
(unaccurate quoths from memory)

JG: "Honey! I love baseball!" (speaking of retirement)
Wife: "But baseball doesn't love you."




edit:
And please verify that:
pcsxr-controllers dialog
- (first controller) = nuvee plugin
- (second controller) = nuvee plugin


@Paubi:
Don't know why 2P Point Blank 1 (NTSC-U) works okay here - 2x guncon (mouse emulation).

Please run raw_mouse_test.exe app and verify both mouse / lightguns are connected properly.



Raw input does run slower. SVN build should give a nice speedup again.

Not sure I'm willing to go bug fixing pcsx-reloaded though.
- Last experience fixing Judge Dredd went poorly (3-4 month attempt)

And ePSXe 1.7.0 + pSX 1.0+ run them fine. :sigh:

Last edited by shalma; July 2nd, 2011 at 20:40..
shalma is offline   Reply With Quote
Old July 2nd, 2011, 21:52   #25
Killervin
Registered User
 
Join Date: May 2008
Posts: 51
Just done a quick test because there is night here:

Working in Time Crisis with one gun. The aiming/precision is very satisfying.
Was a quick test, just reacquired the gun, not touch calibration datas, and missed-mistaked the edge calibration but the gun works ok! Offscreen shot was ok to make the game "Easy" mode.

Working Point Blank with 2 gun. Tomorrow I will check edge calibration in the second acquiring step. (OFF: But we alredy get edge calibration with the Topgun driver, but not needed when the hardware gun calibrtaion O.K. OFF)

So, may be baseball love you.

Thanks!

Ps.: found very buggy games. Time Crisis Project Titan register every shot as missed, epsxe works. Resident Evil Survivor cant register any shot. Of course it's not your fault, but actually only Time Crisis and Point Blank what we should test it.

Last edited by Killervin; July 2nd, 2011 at 22:46..
Killervin is offline   Reply With Quote
Old July 3rd, 2011, 03:17   #26
shalma
Discontinued
 
Join Date: Feb 2009
Location: Inactive
Posts: 1,192
Thanks for mentioning. Hopkat re-added some of the Guncon commands - 45/46/47/4c
Download bin.7z from Sendspace.com - send big files the easy way


This will fix RE:S (PAL-only = guncon) + Time Crisis - PT
- Note that there is a separate dll folder for just PB3/Gunfighter/Ghostbusters


Why? nuvee takes advantage of a weak spot in these 3 games. Unfortunately, an official licensed Namco gun returns specific data. Basically a lightgun lockout protection method.

And we don't know what these values are.



edit:
I'm told RE:S (PAL) is still buggy. Maybe fix tomorrow.


edit2:
Fix for RE:S (PAL). Uses 4d cmd also. ^^
Download bin.7z from Sendspace.com - send big files the easy way

Just using dummy data to please these games.

Last edited by shalma; July 3rd, 2011 at 03:23..
shalma is offline   Reply With Quote
Old July 3rd, 2011, 08:57   #27
Killervin
Registered User
 
Join Date: May 2008
Posts: 51
Thanks Shalma!

Tested RE:S with your second upload and now is working with lightgun.

A very important thing on my system: Guns working after first acquiring and running.
Then in the second run the cursor stucking at the edges. Reacquiring doesn't help.

I have to delete the PCSXR registry key, all the nuvee .ini files, after that I make a new acquiring and the gun will working again.

Hope those informations will help you.

Best regards!
Killervin is offline   Reply With Quote
Old July 3rd, 2011, 14:59   #28
shalma
Discontinued
 
Join Date: Feb 2009
Location: Inactive
Posts: 1,192
Okay, so RE:S confirmed working.


New test dll
Download nuvee_psx_controller.7z from Sendspace.com - send big files the easy way


This will release the device and re-acquire the 'correct' way. If the lightgun name changes everytime you plug it in, you'll need to re-acquire anyways.


Also plan on investigating whether games will take a 'timeout' solution instead for an illegal command (43,45,47,4c,4d bunch).



edit:
New pcsx-r build
Download pcsxr.7z from Sendspace.com - send big files the easy way


Uses the 'timeout' idea - works with every Guncon game tested (small collection). No response to 43/45/46/47/4c/4d.

Only 1 dll needed now.

Last edited by shalma; July 3rd, 2011 at 15:12..
shalma is offline   Reply With Quote
Old July 3rd, 2011, 15:24   #29
Killervin
Registered User
 
Join Date: May 2008
Posts: 51
Unfortunately now the gun looks defunctional during gaming.
Read the info for skipping calibration message, its ok,
maybe I made a mistake because written values are:

Lightgun_left = 65534
Lightgun_top = 65534
Lightgun_right = 1
Lightgun_bottom = 1

Corrected it in the configurator.

But I not able to use the gun in TC anymore. Registry and ini deletes doesn't help.
Cursor in the lower right corner, stucked.
Here is my actual config:

Sensitivity = 100.000000
Threshold = 512
Deadzone = 0
Left = 1
Right = 2
Middle = 3
Reload = 0
Calibration = 0
Cursor = 0
GUID = \\?\HID#VID_0B9A&PID_016A&Col01#7&5802428&0&0000#{ 378de44c-56ef-11d1-bc8c-00a0c91405dd}
Lightgun_left = 204
Lightgun_top = 204
Lightgun_right = 63350
Lightgun_bottom = 63350
Killervin is offline   Reply With Quote
Old July 3rd, 2011, 20:58   #30
shalma
Discontinued
 
Join Date: Feb 2009
Location: Inactive
Posts: 1,192
Alright. Going to start this over again.
Download ___release.7z from Sendspace.com - send big files the easy way


Normal pcsxr-lightgun app. Normal nuvee dll.
- Use special dll for Point Blank 3 - Gunfighter - Ghostbusters
- Redid calibration handling (only overwrite when gun pointed at screen)

- No fancy timeout tricks (relies on dummy manufacturer data)
- Updated source included



Games tested
- Gunfighter [U] (special dll)

- Point Blank 1 [U] (normal dll)
- Resident Evil - Survivor [E] (normal dll)
- Time Crisis [U] (normal dll)
- Time Crisis - Project Titan [U] (normal dll)
shalma is offline   Reply With Quote
Old July 4th, 2011, 16:12   #31
Killervin
Registered User
 
Join Date: May 2008
Posts: 51
Hi! Tried your latest upload, and unfortunately doesn't work (same: not good calibration values written - it happened once, next time was good, and gun doesn't work in TC). To check things on my PC, I switch back to your older build, and begin working again.
Killervin is offline   Reply With Quote
Old July 4th, 2011, 17:40   #32
shalma
Discontinued
 
Join Date: Feb 2009
Location: Inactive
Posts: 1,192
Okay. Won't get to this until tonight (my time).

- Going to make gun calibration completely optional - yes/no dialog box

- Which version of Time Crisis? USA / Europe / Japan
(Just played Time Crisis USA and it works with the normal nuvee dll - shooting through stage 1) (Guncon mouse)

- Going to consider installing a GUI hack option to turn on/off special mode (for Gunfighter et al)
shalma is offline   Reply With Quote
Old July 4th, 2011, 19:41   #33
paubi
Registered User
 
Join Date: Sep 2010
Location: spain
Posts: 38
hi, i hve been out yesterday, nd now i was watching all you have done shalma, i coincide with killervin. the only that worked was the one you uploaded July 2nd, 2011, 19:07, and possibly the next, dont remind, and only for the first time.

if you dont know them,
there are a lot of 2p gmes for psx might see:
-mighty hits special i think dont emulated by psxr
-the gun shooting- similar to elemental gearbolt
-the gun shooting2- similar to point blank
-Extreme ghostbusters
-Serofans?
-Ghoul Panic
- Moorhurhn series
-MAximum force
Die hard two uses guncon plugged in player 2
paubi is offline   Reply With Quote
Old July 4th, 2011, 20:05   #34
Killervin
Registered User
 
Join Date: May 2008
Posts: 51
EXE header: PS-X EXE 43€ €
đ˙€ Sony Computer Entertainment Inc. for North America area

So I think this is the USA version.
Killervin is offline   Reply With Quote
Old July 5th, 2011, 02:14   #35
shalma
Discontinued
 
Join Date: Feb 2009
Location: Inactive
Posts: 1,192
Alright. Before I start getting heartburn in my head, going to slow this down

Download ___release.7z from Sendspace.com - send big files the easy way
- When acquiring guncon1 + guncon2, click cancel to skip calibration
- New config option - gun model

Default is Custom (nuvee version). Seems to work okay.
- If this breaks, keep changing gun models.



Going to start with 1 game at a time. We all have Time Crisis. So here's my settings

PCSX-r = lightgun build (see above)
Port 1 = guncon (custom model) + mouse emulation
BIOS = real (not internal)
Sound = DSound 1.09a (r20)
Game = Time Crisis (USA)


note: My EXE has the same info as killervin's

And thanks Paubi for the list - never heard of nearly all those 2P games. I think I have Maximum Force somewhere around from last year.

Die Hard 2 sounds like an appealing test. Might as well buy both Die Hards for when/if Justifier works.
shalma is offline   Reply With Quote
Old July 5th, 2011, 07:17   #36
paubi
Registered User
 
Join Date: Sep 2010
Location: spain
Posts: 38
Hi shalma die hard 2 works with guncon plugged in p2,i tested it and worked with mouse.
lightguns dont work for me. coordnates coincide with rawinput tester but crosshair keep fixed in the botton right corner as soon as you aim at the screen.
elemental gearbold makes the emu crash. are you able to run this game?
paubi is offline   Reply With Quote
Old July 5th, 2011, 13:22   #37
shalma
Discontinued
 
Join Date: Feb 2009
Location: Inactive
Posts: 1,192
Found my Elemental Gearbolt (USA) cd. Started a quick 2P game (didn't realize that until now) - no crashes through mid-level 1. Played with two hands for 2x Guncon (mouse).

Real bios (no internal). pec_wrapper + pec 2.5 + opengl1 plugin.



Thanks for testing Die Hard 2. Confused as to why your physical lightguns fail. This is a special debug logger for 2P guncon only - when lightgun attached. Logs data when you start playing.
Download nuvee_psx_controller.7z from Sendspace.com - send big files the easy way

Look for guncon2-debug.txt
- data x/y raw
- data x/y guncon local
shalma is offline   Reply With Quote
Old July 5th, 2011, 14:20   #38
shalma
Discontinued
 
Join Date: Feb 2009
Location: Inactive
Posts: 1,192
Creating a new post since this is important
Download nuvee_psx_controller.7z from Sendspace.com - send big files the easy way


This should fix lightgun P1/P2 detection permanently (P2 logging still enabled for safety)
- Hopkat noticed this wasn't there when acquiring

device1_absolute = is_raw_mouse_absolute(lcv);
device2_absolute = is_raw_mouse_absolute(lcv);



edit:
This will check the lightgun status every poll
- Might fix gun not acquiring problem (2nd, 3rd play acquire problems = may not need to re-acquire every time anymore)

Download nuvee_psx_controller.7z from Sendspace.com - send big files the easy way

Last edited by shalma; July 5th, 2011 at 15:32..
shalma is offline   Reply With Quote
Old July 5th, 2011, 16:32   #39
Killervin
Registered User
 
Join Date: May 2008
Posts: 51
My debug file for second gun. I used your last uploaded version. Everything works fine, may this help you?

guncon2-debug.rar

Cool. My tests

- the PCSX was restarted three times, three times OK with one gun
- changing usb ports before starting PCSXR also no problem, gun stay acquired, at least for one gun one case
- Time Crisis guncon mode worked with EMS Topgun again
- Point Blank 1 ok in guncon mode with 2 Ems Topgun

Thanks!
Killervin is offline   Reply With Quote
Old July 5th, 2011, 19:13   #40
shalma
Discontinued
 
Join Date: Feb 2009
Location: Inactive
Posts: 1,192
Guncon 2 log looks good here - nothing odd. Your results sound great!
- Thanks for sticking around this long
- Hopefully Paubi's guns agree


Next archive build
Download ___release.7z from Sendspace.com - send big files the easy way

- Fixes a RawInput API bug (affects mouse relative detection)
- Turns off lightgun cursor for non-lightguns
- Turns off P2 guncon logging


Now just got to have my 'normal' tester hunt down all those rarer Guncon games and try them out. Hopefully Judge Dredd works (gotta find my copy).
shalma is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 22:04.

© 2006 - 2012 Emu Forums | About Emu Forums | Advertisers | Investors | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.