Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

Okay...let me preface the remainder of this post by stating that I must be missing something really, really obvious. I just need someone to point out to me how thick I am.

I've created an representation of my control panel within CPWizard. The cpwizard xml of it is this... (and I'll add alternate views for trackball and spinner layouts later)

Wombat.xml

I also have created a custom ctrlr file and I plan on adding to it from time to time with necessary maps. I have an 8 button control (yes, 8!... I wanted the "standard" 7 button layout and thought I'd throw the extra button in there for later purposes since the Ultimarc Ultrastik 360s support it... and before anyone asks I prefer the bottom (Neo Geo) buttons (feels more comfortable for me) to be the main active buttons in most layouts so I just intend on remapping certain other games (mainly 6-button fighters) away from this common arrangement for me (not the remapping for NeoGeo that most people do)

Thus my default.cfg is empty and all other cfg members in the directory really only contain information about what artwork layout/cropping I prefer.

I'll attach my wombat.cfg (renamed to wombat.txt for attachment upload) it as it currently stands here.

wombat.txt

The top of the std.ini file that comes with CPWizard looks like this:

P1_JOYSTICK_UP				"KEYCODE_UP|JOYCODE_1_Y_UP_SWITCH"
P1_JOYSTICK_DOWN "KEYCODE_DOWN|JOYCODE_1_Y_DOWN_SWITCH"
P1_JOYSTICK_LEFT "KEYCODE_LEFT|JOYCODE_1_X_LEFT_SWITCH"
P1_JOYSTICK_RIGHT "KEYCODE_RIGHT|JOYCODE_1_X_RIGHT_SWITCH"
P1_JOYSTICKRIGHT_UP "KEYCODE_I|JOYCODE_1_BUTTON2"
P1_JOYSTICKRIGHT_DOWN "KEYCODE_K|JOYCODE_1_BUTTON3"
P1_JOYSTICKRIGHT_LEFT "KEYCODE_J|JOYCODE_1_BUTTON1"
P1_JOYSTICKRIGHT_RIGHT "KEYCODE_L|JOYCODE_1_BUTTON4"
P1_JOYSTICKLEFT_UP "KEYCODE_E|JOYCODE_1_Y_UP_SWITCH"
P1_JOYSTICKLEFT_DOWN "KEYCODE_D|JOYCODE_1_Y_DOWN_SWITCH"
P1_JOYSTICKLEFT_LEFT "KEYCODE_S|JOYCODE_1_X_LEFT_SWITCH"
P1_JOYSTICKLEFT_RIGHT "KEYCODE_F|JOYCODE_1_X_RIGHT_SWITCH"
...
...

I assume everyone gets the same when CPWizard is installed.

My INPUT section of CPWizard.ini looks like

BackKeyExitMenu=True
ShowKey=KEYCODE_P
SelectKey=|JOYCODE_1_BUTTON1
BackKey=KEYCODE_ESC||JOYCODE_1_BUTTON5
MenuUp=JOYCODE_1_YAXIS_UP_SWITCH
MenuDown=JOYCODE_1_YAXIS_DOWN_SWITCH
MenuLeft=JOYCODE_1_XAXIS_LEFT_SWITCH
MenuRight=JOYCODE_1_XAXIS_RIGHT_SWITCH
VolumeDown=KEYCODE_MINUS
VolumeUp=KEYCODE_EQUALS
ShowDesktop=KEYCODE_HOME
HideDesktop=KEYCODE_END
EnableExitKey=False
ExitKey=KEYCODE_P

which shows the correct joystick codes for my U360 and they navigate CPWizard quite happily.

So, my limited understanding of how CPWizard works is that it reads its std.ini then overlays this with any mame default.cfg settings (mine is "empty"), then any ctrlr settings (I set ctrlr to wombat to mame.ini and it resides in mame/ini and also, grasping at straws, in the GameEx mame command line with -ctrlr wombat) and then any game.cfg (again, mine are "empty" shells since I cut'n'paste any necessary information into the ctrlr file)

The games work fine within mame... any remaps that I have done are recognised within the game itself. My problem is getting CPWizard to recognise the joystick settings or my remaps for pre-display.

For the joystick you'll notice that in my CPWizard wombat.xml I have tried to use both the joystick-code from the drop-down box:-

	<Label Name="JOYCODE_1_RIGHT" Group="GROUP_1" X="184" Y="320" Width="165" Height="20" Sizeable="False">
<Font Name="Arial" Size="12" FontStyle="Bold" Color="255,255,255" />
<Text Align="Left" Style="Outline" />
<Codes>
<Code Type="Custom Text" Value="JOYCODE_1_RIGHT" />
</Codes>
</Label>

and the custom-text and typing in my Mame setting

	<Label Name="JOYCODE_1_XAXIS_LEFT_SWITCH" Group="GROUP_1" X="-160" Y="320" Width="288" Height="20" Sizeable="False">
<Font Name="Arial" Size="12" FontStyle="Bold" Color="255,255,255" />
<Text Align="Right" Style="Outline" />
<Codes>
<Code Type="Joystick Code" Value="JOYCODE_1_XAXIS_LEFT_SWITCH" />
</Codes>
</Label>

I think at one stage I even had joystick_code in the left drop-down box and my Ultimarc setting in the right hand box.

However I have never managed to get the joystick codes to display in my preview window. For example for Moon Patrol the relevant section of controls.xml of CPWizard shows:-

	<game romname="mpatrol" gamename="Moon Patrol" numPlayers="2" alternating="1" mirrored="1" usesService="0" tilt="0" cocktail="1">
<miscDetails>
</miscDetails>
<player number="1" numButtons="2">
<controls>
<control name="2-way Joystick (Horizontal)">
<constant name="joy2way"/>
</control>
</controls>
<labels>
<label name="P1_BUTTON1" value="Fire"/>
<label name="P1_BUTTON2" value="Jump"/>
<label name="P1_JOYSTICK_LEFT" value="Slower"/>
<label name="P1_JOYSTICK_RIGHT" value="Faster"/>
</labels>
</player>
</game>

Whilst I get the buttons displayed I cannot get Slower / Faster to appear

post-3293-1212624537_thumb.png

Additionally for something that I do a remap for X-Men Vs. Street Fighter (xmvsfu) I would assume the parent rom of xmvsf in controls.xml would be called into play:-

	<game romname="xmvsf" gamename="X-Men Vs. Street Fighter (Euro 961004)" numPlayers="2" alternating="0" mirrored="1" usesService="0" tilt="0" cocktail="0">
<miscDetails>
</miscDetails>
<player number="1" numButtons="6">
<controls>
<control name="8-way Joystick">
<constant name="joy8way"/>
</control>
</controls>
<labels>
<label name="P1_BUTTON1" value="Punch - Light"/>
<label name="P1_BUTTON2" value="Punch - Medium"/>
<label name="P1_BUTTON3" value="Punch - Heavy"/>
<label name="P1_BUTTON4" value="Kick - Light"/>
<label name="P1_BUTTON5" value="Kick - Medium"/>
<label name="P1_BUTTON6" value="Kick - Heavy"/>
<label name="P1_JOYSTICK_UP" value="Up"/>
<label name="P1_JOYSTICK_DOWN" value="Down"/>
<label name="P1_JOYSTICK_LEFT" value="Left"/>
<label name="P1_JOYSTICK_RIGHT" value="Right"/>
</labels>
</player>
</game>

In this case however, not only can I not get the joystick direction displayed but the buttons don't shift from the 1st six buttons in my layout to the 6 I prefer (buttons 2/3/4 and 6/7/8)

post-3293-1212624549_thumb.png

Also, even though I have a grouping link I can't seem to get the common "Punch" and "Kick" words displayed separately which is what I understood it to be for.

So where have I got the concept wrong and what do I need to do to fix it?

I'm running version 1.78 of CPWizard (which I think is current but I'll check again after I post this)

Posted

mame.ini should be in the root Mame folder not in the ini folder. A few people have had this problem and I should probably do something about it. But if it's not reading in your mame.ini then it doesn't know your using a ctrlr file. That would be the first thing to check.

You shouldn't use the command line to set your ctrlr file as CPWizard can't read that, so just have it set in your mame.ini file. Also it should be called wombat.cfg not wombat.xml.

Posted
mame.ini should be in the root Mame folder not in the ini folder.

Dammit.... I was going to try that last night too just on a whim and a prayer since I (months ago) remember a mame.ini setting for some directory of something like ".;ini" which I assumed meant "check root folder first and then ini subdirectory". But it was just set to ini so I didn't follow that any further.

So... if I move the mame.ini file to the root directory of mame do I similarly adjust this internally to remove the ini folder directory setting?

You shouldn't use the command line to set your ctrlr file as CPWizard can't read that, so just have it set in your mame.ini file. Also it should be called wombat.cfg not wombat.xml.

I'll remove the -ctrlr command line setting (I was grasping at straws at that point) but I don't quite understand the last sentence. You mean in the mame.ini file I need to set the ctrlr line to wombat.cfg? I just have to set to wombat (no suffix)... the wombat.txt in my post is really my wombat.cfg file... it just the attachment setting of this board wouldn't allow me to upload a file with the suffix .cfg

Posted

I misunderstood you, and no you don't add the extension to the ctrlr line in mame.ini. It should be:

ctrlr	  wombat

And then the wombat.cfg should be in the ctrlr folder.

CPWizard doesn't use mame.ini to search out where mame.ini is. It doesn't use the ini folder at all because it assumes it will be in Mames root folder.

Guest
This topic is now closed to further replies.
×
×
  • Create New...