• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › General Discussion v
« Previous 1 ... 337 338 339 340 341 ... 368 Next »

Dolphin 2 or more Wiimotes
View New Posts | View Today's Posts

Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Dolphin 2 or more Wiimotes
11-15-2009, 06:01 AM
#1
bonkersdeluxe
Unregistered
 
Hi!

At first dolphin is a great emulator! Thanks!


I will use 2 or more wiimotes with the emulator.
I´ve downloaded the SVN 4560.

I changed the code below.
2 wiimotes were initiliazed. (LED 4 is shining on both wii motes)
I can save the setting for the 2 motes, but it don´t loads the settings again.
When i start a game only one wiimote will assign with a player.
The other wiimote will not assigned. (No LED is shining)

PS. I have only two wiimotes at this moment.
I can test it only with 2 wiimotes.


My code changes


Core\src\CoreParameters.h

...
#include "IniFile.h"
#include <string>

#define MAXPADS 4
#define MAXWIIMOTES 4 //old value 1
struct SCoreStartupParameter...


I changed the MAX_WIIMOTES value from 1 to 4


Plugin_Wiimotes\src\main.h

...#endif
// Definitions and declarations
void DoInitialize();
int GetUpdateRate();
void InterruptDebugging(bool Emu, const void* _pData);
void ReadDebugging(bool Emu, const void* _pData, int Size);
bool IsFocus();
#define MAX_WIIMOTES 4
....

I changed the MAX_WIIMOTES value from 1 to 4

Plugin_Wiimotes\src\config.cpp

...
void Config::Load(bool ChangePad)
{
Loaded = true;

std:Confusedtring temp;
IniFile iniFile;
iniFile.Load(FULL_CONFIG_DIR "Wiimote.ini");

// General
iniFile.Get("Settings", "SidewaysDPad", &bSidewaysDPad, false);
iniFile.Get("Settings", "ExtensionConnected", &iExtensionConnected, EXT_NONE);
iniFile.Get("Settings", "MotionPlusConnected", &bMotionPlusConnected, false);

// Real Wiimote
iniFile.Get("Real", "Connect", &bConnectRealWiimote, true);
iniFile.Get("Real", "Use", &bUseRealWiimote, true);
iniFile.Get("Real", "UpdateStatus", &bUpdateRealWiimote, true);
iniFile.Get("Real", "AccNeutralX", &iAccNeutralX, 0);
iniFile.Get("Real", "AccNeutralY", &iAccNeutralY, 0);
iniFile.Get("Real", "AccNeutralZ", &iAccNeutralZ, 0);
iniFile.Get("Real", "AccNunNeutralX", &iAccNunNeutralX, 0);
iniFile.Get("Real", "AccNunNeutralY", &iAccNunNeutralY, 0);
iniFile.Get("Real", "AccNunNeutralZ", &iAccNunNeutralZ, 0);

for (int i = 0; i < 4; i++) //old value 1
{
// Slot specific settings
char SectionName[32];
sprintf(SectionName, "Wiimote%i", i + 1);
iniFile.Get(SectionName, "NoTriggerFilter", &bNoTriggerFilter, false);
...

I changed the for (int i = 0; i < 1; i++) line to (int i = 0; i < 4; i++)


Plugin_Wiimotes\src\config.cpp

...
void Config::Save(int Slot)
{
IniFile iniFile;
iniFile.Load(FULL_CONFIG_DIR "Wiimote.ini");
iniFile.Set("Settings", "SidewaysDPad", bSidewaysDPad);
iniFile.Set("Settings", "ExtensionConnected", iExtensionConnected);
iniFile.Set("Settings", "MotionPlusConnected", bMotionPlusConnected);

iniFile.Set("Real", "Connect", bConnectRealWiimote);
iniFile.Set("Real", "Use", bUseRealWiimote);
iniFile.Set("Real", "UpdateStatus", bUpdateRealWiimote);
iniFile.Set("Real", "AccNeutralX", iAccNeutralX);
iniFile.Set("Real", "AccNeutralY", iAccNeutralY);
iniFile.Set("Real", "AccNeutralZ", iAccNeutralZ);
iniFile.Set("Real", "AccNunNeutralX", iAccNunNeutralX);
iniFile.Set("Real", "AccNunNeutralY", iAccNunNeutralY);
iniFile.Set("Real", "AccNunNeutralZ", iAccNunNeutralZ);

for (int i = 0; i < 4; i++) //old value 1
{
// Slot specific settings
char SectionName[32];
sprintf(SectionName, "Wiimote%i", i + 1);

iniFile.Set(SectionName, "Enabled", WiiMoteEmu:TongueadMapping[i].enabled);
iniFile.Set(SectionName, "NoTriggerFilter", bNoTriggerFilter);
...
I changed the for (int i = 0; i < 1; i++) line to (int i = 0; i < 4; i++)


With this changes, i will get the tabs Wiimote 1 - 4.
The wii motes are initialized, but it don´t loads the setting for the others players. I can´t found these lines in the sourcecode. I can save the setting. The wiimotes.ini contains the values. Also its saved my settings, but won´t load.

Please can anybody help me?

Thanks!

Bye

Sincerely Bonkersdeluxe
Reply
11-15-2009, 07:20 AM
#2
Legend80 Offline
Senior Member
****
Posts: 357
Threads: 21
Joined: Jul 2009
I can't help but just wanted to say thanks for maybe starting the necessary work on getting at least 2 wiimotes working with Dolphin. Hopefully, you and others can work together to achieve this goal. Good luck!!!
Intel Core i5 2500k @ 4.3 ghz. (Sandy Bridge CPU) / Asus P8P67 / 4 Gig Ram / GeForce GTX 660/ Creative X-fi / Win 8.1 Pro 64 bit
Find
Reply
11-17-2009, 06:56 PM (This post was last modified: 11-17-2009, 07:00 PM by kofkin00.)
#3
kofkin00 Offline
Member
***
Posts: 51
Threads: 4
Joined: Oct 2009
i got info from China forum ..
when you change any code (except the set option in Dolphin )
you also need to recompile Dolphin.exe or DolphinIL.exe ..
to pass the verification

sometimes , i copy .dll or plugin from older Dolphin SVN build
,then ... you may boot up the Dolphin , but just do nothing to start any game.
If you intend to learn Chinese Language to communicate., Wellcome PM me Big Grin
Find
Reply
12-12-2009, 10:43 PM
#4
Barca
Unregistered
 
Perhaps this site will be able you being of help.
http://code.google.com/p/dolphin-emu/issues/detail?id=549
Reply
12-13-2009, 01:38 AM
#5
James333 Offline
Above and Beyond
*******
Posts: 1,520
Threads: 8
Joined: Jul 2009
ayuanx Wrote:OK, let me explain a little from the perspective of development.

First of all, multi-wiimote requires a new SYSCONF file which can only be dumped from
a real wii that has multi-wiimote activated on it. (Because this file stores the link
keys.)

So we need someone to dump this and do some reverse engineering if necessary.

We can't go on until this has been done by somebody.
MB : MSI Z68A-GD80
CPU : Intel Core i7 2600k @ 3.4 GHz (stock clock)
Gfx : ATI Raedon HD 6850
Ram : 4 GB DDR3-1333
OS : Windows XP x86

I speak Spanish Big Grin ( And a little English )
Find
Reply
12-13-2009, 04:11 AM
#6
Barca
Unregistered
 
For the SYSCONF file, at the end of the page (Comment 47) of the link http://code.google.com/p/dolphin-emu/issues/detail?id=549 there is the download of the file. I think that it's what you need........
Reply
12-13-2009, 05:25 AM (This post was last modified: 12-13-2009, 05:26 AM by James333.)
#7
James333 Offline
Above and Beyond
*******
Posts: 1,520
Threads: 8
Joined: Jul 2009
no , he ( or she ) posted that sysconf because ayuanx requested it to study it

That is a fresh sysconf obtained from a wii , It won't work in dolphin just like that
MB : MSI Z68A-GD80
CPU : Intel Core i7 2600k @ 3.4 GHz (stock clock)
Gfx : ATI Raedon HD 6850
Ram : 4 GB DDR3-1333
OS : Windows XP x86

I speak Spanish Big Grin ( And a little English )
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode