EmuNewz Network
Calibrating foot pedals - Printable Version

+- EmuNewz Network (https://www.emunewz.net/forum)
+-- Forum: PSP Emulation (https://www.emunewz.net/forum/forumdisplay.php?fid=191)
+--- Forum: JPCSP Official Forum (https://www.emunewz.net/forum/forumdisplay.php?fid=51)
+---- Forum: General discussion (https://www.emunewz.net/forum/forumdisplay.php?fid=57)
+---- Thread: Calibrating foot pedals (/showthread.php?tid=66941)

Pages: 1 2


Calibrating foot pedals - Rave_Racer - 07-09-2012

I'm trying to get foot pedals working with Ridge Racer 2.

The X button is bound to the Gas pedal axis and Square is bound to the Brake axis, but they don't work.

But what does happen, is that menus will cycle by themselves, as if the Brake pedal was bound to Down.. But it's not.

Has anyone got their pedals working? Does the bit about the menus cycling give you a clue what could be wrong here?


RE: Calibrating foot pedals - serio - 07-09-2012

it could be unimplemented control type stuff, so post a log on info level.

Quote:This is done by starting the Logger under Debug > Tools > Logger > Show Logger option, and set to INFO level. Load and start the game you want to log until you receive the error. JPCSP will now generate a .html file in the JPCSP's MAIN FOLDER called log.html. Compress it, then attach the file to your post.


it could also have something to do with the incomplete "hat" button implementation which exists in many pads under dpad, and probably in other controllers like the steering wheels/pedals/etc.

it's incomplete/broken, so you often get bugs in that. (for me, the buttons will just get stuck at holding left and down if i do a simple 360 degree motion, even if i don't hold those directions)

check if it happens without the pedals set to anything at all. if not, you can use a workaround like joytokey to bind your pedals to specific keys, and then set those keys to jpcsp's controls until it's fixed.


RE: Calibrating foot pedals - Rave_Racer - 07-09-2012

Hi and thanks for replying.

Is the attachment ok, does it show what you asked for?

Also, about the menus, they will stop scrolling if I press halfway down on the brake..and will scroll upwards if I press fully down on it.

I'm looking into joytokey but can't get it working yet.


RE: Calibrating foot pedals - gid15 - 07-10-2012

The controller initialization was unfortunately not listed in the log file that way.
Could you try to edit the file LogSettings.xml (with Notepad), and replace the following line:
Code:
<level value ='off' />
with
Code:
<level value ='debug' />
Then start Jpcsp, load your game, run it and immediately start using your foot pedal (even during the startup black screen or intro). You can then stop after a few seconds so that the log file doesn't get too large.
Post the log.html (compressed) and also your Settings.properties file.

Thanks!


RE: Calibrating foot pedals - Rave_Racer - 07-10-2012

Hiya. Thanks for helping.

There were two lines of code to change, so I set them both to info?

Didn't let the game run too much, just pressed Gas then Brake over some intro screens. Hope there's clues in the log this time.

Still can't figure this out, I unmapped/unbounded (getit, hah) some mouse settings in the GUI. The analogue up/down is bound to the Y axis on the mouse and I thought might it be conflicting with the Y pedal? It didn't change anything, unbinding the mouse, though, it still kept it's old settings.. They're not even in the Settings.properties file to manually change.. I wiped out the ones on the controller part, just left them blank.


RE: Calibrating foot pedals - gid15 - 07-11-2012

(07-10-2012, 05:05 PM)Rave_Racer Wrote: There were two lines of code to change, so I set them both to info?
No, it was changing the one line
Code:
<level value ='off' />
into
Code:
<level value ='debug' />
i.e. replacing "off" by "debug"


RE: Calibrating foot pedals - Rave_Racer - 07-11-2012

Ah, wait a sec.

I said 'info' in the post but I did do 'debug'!

Here's what it looks like, there's a logger for
<!-- Output profiler info to 'profiler.txt' -->
and
<!-- Output Kprintf info to 'kprintf.txt' -->

Quote:<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE log4j:configuration SYSTEM 'log4j.dtd'>

<log4j:configuration>

<appender name='JpcspAppender' class='jpcsp.log.TextPaneAppender'>
<layout class='org.apache.log4j.PatternLayout'>
<param name='ConversionPattern' value='%r [%t] %-5p %c - %m%n' />
</layout>
</appender>
<appender name='HTMLAppender' class='org.apache.log4j.FileAppender'>
<param name='File' value='log.html' />
<param name='Append' value='false' />
<layout class='jpcsp.log.HTMLLayout'>
<param name='Title' value='Jpcsp log file' />
</layout>
</appender>
<appender name='ProfilerTxtAppender' class='org.apache.log4j.FileAppender'>
<param name='File' value='profiler.txt' />
<param name='Append' value='false' />
<layout class='org.apache.log4j.PatternLayout'>
<param name='ConversionPattern' value='%m%n' />
</layout>
</appender>
<appender name='KprintfTxtAppender' class='org.apache.log4j.FileAppender'>
<param name='File' value='kprintf.txt' />
<param name='Append' value='false' />
<layout class='org.apache.log4j.PatternLayout'>
<param name='ConversionPattern' value='%m' />
</layout>
</appender>
<appender name="TxtAppender" class="org.apache.log4j.FileAppender">
<param name="File" value="log.txt" />
<param name="Append" value="false" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{HH:mmConfuseds} %5p %8c - %t - %m%n" />
</layout>
</appender>

<logger name='cpu' />
<logger name='hle' />
<logger name='memory' />
<logger name='ge' />
<logger name='emu' />
<logger name='compiler' />
<logger name='runtime' />
<logger name='loader' />
<logger name='stdout' />
<logger name='stderr' />

<!-- Output profiler info to 'profiler.txt' -->
<logger name='profiler' additivity='false'>
<level value='debug' />
<appender-ref ref='ProfilerTxtAppender' />
</logger>

<!-- Output Kprintf info to 'kprintf.txt' -->
<logger name='kprintf' additivity='false'>
<level value='debug' />
<appender-ref ref='KprintfTxtAppender' />
</logger>

<root>
<level value ='off' />
<appender-ref ref='JpcspAppender' />
<appender-ref ref='HTMLAppender' />
</root>

</log4j:configuration>



RE: Calibrating foot pedals - hyakki - 07-11-2012

set the one under root to debug
<root>
<level value ='off' />

change to

<root>
<level value ='debug' />


RE: Calibrating foot pedals - Rave_Racer - 07-11-2012

Ah, gotcha. Missed that 3rd one. Sorry for the confusion.


RE: Calibrating foot pedals - gid15 - 07-12-2012

From what I can see in the log, 2 axis were triggered:
- "rz", ranging from -1.0 to 1.0
- "y", ranging from -1.0 to 1.0
In your controller settings, they are assigned to the PSP cross and square buttons. I thought it doesn't make sense to have an axis mapped to a button... I will check the code and see what can be done...