Custom Configs not working

Need help? Ask here and someone will help
Post Reply
Dread_Lord369
Posts: 5
Joined: Wed Sep 14, 2011 6:23 am

Custom Configs not working

Post by Dread_Lord369 »

I've managed to get this program to connect to my PS3 following the tutorial, and I tried using one of the configs that came with it (eg. COD Black Ops) and they work perfectly. The problem I'm having is that when i create one of my own, and save it in the same directory (the config one) as an xml file. When i start it, nothing happens.

The difference being that with the configs that came with the program, when i run them, it opens a very small window and the controls are recognized by my PS3, but with my custom configs, no window is opened, and no controls are recognized.

Any help would be appreciated with this.

I'm using Ubuntu 11.04 + bt.

Thank you,

Dread
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Custom Configs not working

Post by Matlo »

Please post the content of your config file within a code tag.
GIMX creator
Dread_Lord369
Posts: 5
Joined: Wed Sep 14, 2011 6:23 am

Re: Custom Configs not working

Post by Dread_Lord369 »

2nd EDIT: I managed to get it to work, somehow after turning my sixaxis controller on and connecting to the ps3, then turning on the emu, and running the emuclient, it sorta kicks the sixaxis controller off and turns it off and then the emu worked.. it doesn't seem like that's how it should work, but that's how I got it to work.


Thank you for the quick response.
Here's the config code:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<root>
  <controller id="1">
    <configuration id="1">
      <trigger type="" id="" name="" button_id="" switch_back="no"/>
      <intensity_list>
        <intensity control="left_stick" dead_zone="0" shape="Circle" steps="1">
          <up type="" name="" id="" button_id=""/>
          <down type="" name="" id="" button_id=""/>
        </intensity>
        <intensity control="right_stick" dead_zone="0" shape="Circle" steps="1">
          <up type="" name="" id="" button_id=""/>
          <down type="" name="" id="" button_id=""/>
        </intensity>
      </intensity_list>
      <button_map>
        <button id="left">
          <device type="mouse" id="0" name="Logitech USB RECEIVER"/>
          <event type="button" id="BUTTON_X6"/>
        </button>
        <button id="right">
          <device type="mouse" id="0" name="Logitech USB RECEIVER"/>
          <event type="button" id="BUTTON_X7"/>
        </button>
        <button id="circle">
          <device type="keyboard" id="0" name="AT Translated Set 2 keyboard"/>
          <event type="button" id="LSHIFT"/>
        </button>
        <button id="square">
          <device type="keyboard" id="0" name="AT Translated Set 2 keyboard"/>
          <event type="button" id="LCTRL"/>
        </button>
        <button id="cross">
          <device type="keyboard" id="0" name="AT Translated Set 2 keyboard"/>
          <event type="button" id="SPACE"/>
        </button>
        <button id="l2">
          <device type="mouse" id="0" name="Logitech USB RECEIVER"/>
          <event type="button" id="BUTTON_RIGHT"/>
        </button>
        <button id="r2">
          <device type="mouse" id="0" name="Logitech USB RECEIVER"/>
          <event type="button" id="BUTTON_LEFT"/>
        </button>
        <button id="l1">
          <device type="keyboard" id="0" name="AT Translated Set 2 keyboard"/>
          <event type="button" id="TAB"/>
        </button>
        <button id="r1">
          <device type="keyboard" id="0" name="AT Translated Set 2 keyboard"/>
          <event type="button" id="q"/>
        </button>
        <button id="triangle">
          <device type="keyboard" id="0" name="AT Translated Set 2 keyboard"/>
          <event type="button" id="e"/>
        </button>
        <button id="start">
          <device type="keyboard" id="0" name="AT Translated Set 2 keyboard"/>
          <event type="button" id="BACKSPACE"/>
        </button>
        <button id="PS">
          <device type="keyboard" id="0" name="AT Translated Set 2 keyboard"/>
          <event type="button" id="LALT"/>
        </button>
        <button id="r3">
          <device type="mouse" id="0" name="Logitech USB RECEIVER"/>
          <event type="button" id="BUTTON_MIDDLE"/>
        </button>
      </button_map>
      <axis_map>
        <axis id="rstick y">
          <device type="mouse" id="0" name="Logitech USB RECEIVER"/>
          <event type="axis" id="y" dead_zone="8" multiplier="4" exponent="1" shape="Circle"/>
        </axis>
        <axis id="rstick x">
          <device type="mouse" id="0" name="Logitech USB RECEIVER"/>
          <event type="axis" id="x" dead_zone="8" multiplier="4" exponent="1" shape="Circle"/>
        </axis>
        <axis id="lstick left">
          <device type="keyboard" id="0" name="AT Translated Set 2 keyboard"/>
          <event type="button" id="a"/>
        </axis>
        <axis id="lstick right">
          <device type="keyboard" id="0" name="AT Translated Set 2 keyboard"/>
          <event type="button" id="d"/>
        </axis>
        <axis id="lstick up">
          <device type="keyboard" id="0" name="AT Translated Set 2 keyboard"/>
          <event type="button" id="w"/>
        </axis>
        <axis id="lstick down">
          <device type="keyboard" id="0" name="AT Translated Set 2 keyboard"/>
          <event type="button" id="s"/>
        </axis>
      </axis_map>
    </configuration>
    <configuration id="2">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="3">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="4">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="5">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="6">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="7">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="8">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
  </controller>
  <controller id="2">
    <configuration id="1">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="2">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="3">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="4">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="5">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="6">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="7">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="8">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
  </controller>
  <controller id="3">
    <configuration id="1">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="2">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="3">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="4">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="5">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="6">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="7">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="8">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
  </controller>
  <controller id="4">
    <configuration id="1">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="2">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="3">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="4">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="5">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="6">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="7">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="8">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
  </controller>
  <controller id="5">
    <configuration id="1">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="2">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="3">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="4">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="5">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="6">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="7">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="8">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
  </controller>
  <controller id="6">
    <configuration id="1">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="2">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="3">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="4">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="5">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="6">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="7">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="8">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
  </controller>
  <controller id="7">
    <configuration id="1">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="2">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="3">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="4">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="5">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="6">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="7">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
    <configuration id="8">
      <trigger type="" id="" name="" button_id="" switch_back=""/>
      <intensity_list/>
      <button_map/>
      <axis_map/>
    </configuration>
  </controller>
</root>
EDIT: I pasted the wrong config above before, so now its my actual custom one that doesn't work.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Custom Configs not working

Post by Matlo »

Please open a terminal, and type:

Code: Select all

sixemugui
Try to start emuclient with your own config file, and see if there's some error message displayed in the terminal.
GIMX creator
Dread_Lord369
Posts: 5
Joined: Wed Sep 14, 2011 6:23 am

Re: Custom Configs not working

Post by Dread_Lord369 »

EDIT: Sorry for all the edits, but i think i found the problem that i was having, when i created my custom configs, i was giving them names with more than one word (eg. Black Ops.xml), not realising that it had to all be connected as one word (eg. BlackOps.xml).



After my 2nd edit on my post above, the emu seems to work every time now, its like i had to have the actual sixaxis controller on when i start my custom config so the emu kicks the controller off, or something. But now it seems to be working as it should.

In any case, this is what the terminal shows from starting sixemugui up to closing the emu:

Code: Select all

dave@DAVE-PC:~$ sixemugui
No controller found on USB busses.

hci0:	Type: BR/EDR  Bus: USB
	BD Address: 00:19:C1:49:5F:4E  ACL MTU: 1021:8  SCO MTU: 64:1
	UP RUNNING PSCAN 
	RX bytes:20820988 acl:358241 sco:0 events:7940 errors:0
	TX bytes:551074 acl:9812 sco:0 commands:731 errors:0
	Features: 0xff 0xfe 0x8f 0xfe 0x9b 0xff 0x79 0x83
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH HOLD SNIFF 
	Link mode: SLAVE ACCEPT 
	Name: 'DAVE-PC-0'
	Class: 0x000508
	Service Classes: Unspecified
	Device Class: Peripheral, Gamepad
	HCI Version: 2.1 (0x4)  Revision: 0x535d
	LMP Version: 2.1 (0x4)  Subversion: 0x4277
	Manufacturer: Broadcom Corporation (15)


hci0:	Type: BR/EDR  Bus: USB
	BD Address: 00:19:C1:49:5F:4E  ACL MTU: 1021:8  SCO MTU: 64:1
	Firmware 93.66 / 119

Can't get device info: No such device

connecting with hci0 = 00:19:C1:49:5F:4E to 00:26:5C:1D:9C:21 psm 17

connecting with hci0 = 00:19:C1:49:5F:4E to 00:26:5C:1D:9C:21 psm 19

connected

emu_thread: end
connected to emu 0
Exiting
I'm not sure what 'Can't get device info: No such device' means, but it all seems to be working now, so I'm assuming its nothing too bad..

Thank you for your help,

Dread
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Custom Configs not working

Post by Matlo »

Dread_Lord369 wrote:After my 2nd edit on my post above, the emu seems to work every time now, its like i had to have the actual sixaxis controller on when i start my custom config so the emu kicks the controller off, or something. But now it seems to be working as it should.
Having two bluetooth devices with the same address on at the same time is not recommended at all. It should work without any trick like that. Your BT dongle is probably at fault (some broadcom dongles have issues). To get rid of this compatibility issue, you should use a bluecore4 dongle.
Dread_Lord369 wrote: I'm not sure what 'Can't get device info: No such device' means, but it all seems to be working now, so I'm assuming its nothing too bad..
It's not a problem. The application looks for bt devices from index 0 and increments until it gets this error.
GIMX creator
Dread_Lord369
Posts: 5
Joined: Wed Sep 14, 2011 6:23 am

Re: Custom Configs not working

Post by Dread_Lord369 »

Thank you for your help, as i edited in my above post, i think the problem was with the naming of the xml files, because when i tried with a file named 'Black Ops.xml' it gave this error in the terminal:

Code: Select all

I/O warning : failed to load external entity "/home/dave/.emuclient/config/Black"
error: could not parse file /home/dave/.emuclient/config/Black
Bad config file: /home/dave/.emuclient/config/Black
But when i tried with the exact same file, but named 'BlackOps.xml' it worked perfectly.

So i think the problem was with the space in the name.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Custom Configs not working

Post by Matlo »

You are right, there's a bug with file names containing a space.

I opened issue 112 to track this problem.

The correction is easy, I think it will be fixed in the next release that I hope to build near the end of the week.
GIMX creator
Post Reply