This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calibrating foot pedals
#1
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?
Reply
#2
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.
Reply
#3
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.


Attached Files
.html   log.html (Size: 47.94 KB / Downloads: 182)
Reply
#4
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!
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Reply
#5
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.


Attached Files
.zip   log.zip (Size: 150 bytes / Downloads: 143)
.zip   Settings.zip (Size: 1.09 KB / Downloads: 145)
Reply
#6
(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"
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Reply
#7
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>
Reply
#8
set the one under root to debug
<root>
<level value ='off' />

change to

<root>
<level value ='debug' />
Reply
#9
Ah, gotcha. Missed that 3rd one. Sorry for the confusion.


Attached Files
.rar   log.rar (Size: 91.33 KB / Downloads: 147)
Reply
#10
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...
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)