(Old) My Emulators (15 Viewers)

scales

Portal Member
September 23, 2006
40
0
i think the only problem i am seeing is that when i have all of my emulators setup, and the program is scanning and putting them all in the big game database, it takes a long time. i dont know if there is a better way to do that. also, i agree with d-fader, and it would be nice to have a filter or search so i could just pick a letter, and it will take me to that section, kinda like when i search for a tv show to record.
 

Wintermute

New Member
April 25, 2006
4
0
Sweden
Reflection

Keep up the good work Chreekar!
<snip>
When you can implement that, it would make my life a lot easier, since I have 17000 SNES roms and I don't want to scroll to Super Mario World if you catch my drift :p

At one game and two centimeters per cartridge you will have a tower of games that is 340 meters high. (Eiffel tower ~320).... you DO have the originals don't you!? ;)
 

d-fader

Portal Pro
September 24, 2006
70
25
45
I live in Purmerend, a small town just above Amst
Home Country
Netherlands Netherlands
At one game and two centimeters per cartridge you will have a tower of games that is 340 meters high. (Eiffel tower ~320).... you DO have the originals don't you!? ;)

I deleted them after 24 hours, that helped. I can now scroll through all my games, since they fit on a few pages now, problem solved :D

And to rephrase my previous post; what if one would actually have a couple of hundreds of ROMs (games, demo's or both), one would like to select a game fast. Hence the fast scroll request remains ;)
 

verhohner

Portal Member
February 9, 2007
46
0
37
This Plugin is really cool! First I had some problems with it, but it seems like I wasn't the only one. My problems were solved with reading this thread and now all is working fine with project64. If my HTPC is ready I will test if it is working there too. The only thing I worry about is the quitting of the games. I hope it is possible to bind this command to a button on the iMon IR.

But I have another question. Is the DosBox Emulator working with MyEmulators too? I could imagine that it would be really cool to play some old Dos games like Commander Keen or DeathRally on my HTPC too. But I think this will be more problematic than project64.
 

hakuna

Portal Pro
October 15, 2004
395
1
49
Gothenburg
Home Country
Sweden Sweden
Any news on the alt+F4 issue?
It's a real pain to have to bring out the keyboard to kill MP after the 4-yearold has gone tired of one game and want to play another...
 

Chreekar

Community Plugin Dev
November 11, 2006
234
52
Stockholm
Home Country
Sweden Sweden
Any news on the alt+F4 issue?

Not really unfortunately, I have been too busy lately :( I am hoping to get more free time soon.


By the way, I will now use a SVN repository for the sources. The latest version can always be found here:
Code:
https://mp-plugins.svn.sourceforge.net/svnroot/mp-plugins/trunk/plugins/MyEmulators
.
 

pacosal

New Member
March 15, 2006
3
0
Any news on the alt+F4 issue?

Not really unfortunately, I have been too busy lately :( I am hoping to get more free time soon.


By the way, I will now use a SVN repository for the sources. The latest version can always be found here:
Code:
https://mp-plugins.svn.sourceforge.net/svnroot/mp-plugins/trunk/plugins/MyEmulators
.

Hi, this is the first time, I've seen this plugin, and think that's great. Last weekend I've been working in a tiny program to launch emulator roms, but I dont have time to follow working on it.

I have a Wii console and as you know there is a program (glovepie) that permits load a script and send keys to another program (thas is focused). Therefore, I've done a script that permits me to use mediaportal from my wiimote, when I close mediaportal my program focus again, and I can choose other program like an emulator and do the same thing.

How do I do it?

I capture a hotkey (Ctrl+z) in my program. Launch a program, with a glovepie script. When in this program o game I press "Home key" (wiimote key), the script press Ctrl+z and my program is back, then close the glovepie script, the emulator and load my own glovepie script.

It's hard for me to explain this in english!

Please test wiimote and nunchuck on your pc and emulator, it's very cool...

Ok, I want to help you, with a small code.


FORM1.CS
-------------

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using System.Runtime.InteropServices;
using System.Drawing.Imaging;
using System.Collections;
using System.Runtime.InteropServices.ComTypes;
using System.Globalization;
using System.Reflection;
using System.Diagnostics;

namespace wii_n64
{
public partial class Form1 : Form
{

[DllImport("user32.dll", CharSet = CharSet.Auto)]
public static extern int SendMessage(IntPtr hwnd, int wMsg, IntPtr wParam, IntPtr lParam);

// HOT key dlls
[DllImport("user32.dll")]
public static extern bool RegisterHotKey(IntPtr hWnd, int id, int fsModifiers, int vlc);
[DllImport("user32.dll")]
public static extern bool UnregisterHotKey(IntPtr hWnd, int id);

System.Diagnostics.Process p;
System.Diagnostics.Process pJuego;
System.Diagnostics.Process pPropio;

public Form1()
{
InitializeComponent();

// Alt =1 , Ctrl =2, Shift =4, Win =0
//register hot Ctrl , Alt, and 'z'
bool success = Form1.RegisterHotKey(this.Handle, this.GetType().GetHashCode(), 2 ,(int)'Z');
if (success)
{
Console.WriteLine("Alt-z hot key successfully registered");
}
else
MessageBox.Show("Could not register Hotkey - there is probably a conflict. ", "", MessageBoxButtons.OK, MessageBoxIcon.Error);

}

private void activo()
{
String glovepie = "c:\\wii\\wii\\glovePIE029\\Glovepie.exe ";
String p1 = "-C:\\wii\\wii\\GlovePIE029\\NUEVOS\\wii_n64.pie";

// activar el foco
this.Focus();

System.Threading.Thread.Sleep(2000);

pPropio = System.Diagnostics.Process.Start(glovepie, p1);
timer1.Enabled = true;

}

protected override void WndProc(ref System.Windows.Forms.Message m)
{
// defined in winuser.h
const int WM_DRAWCLIPBOARD = 0x308;
const int WM_CHANGECBCHAIN = 0x030D;

switch (m.Msg)
{
case 0x0312:
activo();
break;

default:
base.WndProc(ref m);
break;
}
}



private void Form1_Load(object sender, EventArgs e)
{

this.activo();

}

private void button1_Click(object sender, EventArgs e)
{
String glovepie = "c:\\wii\\wii\\glovePIE029\\Glovepie.exe ";
String p1 = "-C:\\wii\\wii\\GlovePIE029\\NUEVOS\\MARIO_CAR_64.pie";
String emulador = "C:\\apl\\Project64 1.6\\Project64.exe ";
String pJ = "C:\\wii\\wii\\roms\\Mario_Kart_64\\Mario Kart 64 (E) (V1.0) [!].z64";

// matar glovepie principal
pPropio.CloseMainWindow();
System.Threading.Thread.Sleep(2000);
p = System.Diagnostics.Process.Start(glovepie,p1);

System.Threading.Thread.Sleep(5000);
pJuego = System.Diagnostics.Process.Start(emulador, pJ);


}

private void button2_Click(object sender, EventArgs e)
{
String glovepie = "c:\\wii\\wii\\glovePIE029\\Glovepie.exe ";
String p1 = "-C:\\wii\\wii\\GlovePIE029\\NUEVOS\\MediaPortal.pie";

// matar glovepie principal
pPropio.CloseMainWindow();
System.Threading.Thread.Sleep(2000);

p = System.Diagnostics.Process.Start(glovepie, p1);

}

private void Form1_Activated(object sender, EventArgs e)
{
if (p!= null && !p.HasExited)
p.CloseMainWindow();

if (pJuego != null && !pJuego.HasExited)
pJuego.CloseMainWindow();

}

private void timer1_Tick(object sender, EventArgs e)
{
this.Focus();
timer1.Enabled = false;
}
}
}


wii_n64.PIE
--------------


Key.Enter = Wiimote.A
Key.Escape = Wiimote.B
Key.Up = Wiimote.Up
Key.Down = Wiimote.Down
Key.Right = Wiimote.Right
Key.Left = Wiimote.Left
key.VolumeUp = Wiimote.Plus
key.VolumeDown = Wiimote.Minus

MinimizePie

WiiMote.leds = 1


MEDIAPORTAL.PIE
------------------------


Key.Enter = Wiimote.A
Key.Escape = Wiimote.B
Key.Up = Wiimote.Up
Key.Down = Wiimote.Down
Key.Right = Wiimote.Right
Key.Left = Wiimote.Left
key.VolumeUp = Wiimote.Plus
key.VolumeDown = Wiimote.Minus

var.zCutoff1 = 6/30
var.zCutoff2 = 10/30
var.zCutoff3 = 15/30

var.xRot =Wiimote.gx
var.yRot =Wiimote.gy
var.zRot =Wiimote.gz

if Wiimote.Home
Ctrl+key.Z = true;
wait 500ms
endif

//debug = 'X:' + var.xRot + ', ' + 'Y:' + var.yRot + ', ' + 'Z:' + var.zRot

if var.zRot > var.zCutoff3 then
key.Up = true
wait 50ms
key.Up = false
else if var.zRot < -var.zCutoff3 then
key.Down = true
wait 50ms
key.Down = false
else if var.zRot > var.zCutoff2 then
key.Up = true
wait 300ms
key.Up = false
else if var.zRot < -var.zCutoff2 then
key.Down = true
wait 300ms
key.Down = false
else if var.zRot > var.zCutoff1 then
key.Up = true
wait 400ms
key.Up = false
else if var.zRot < -var.zCutoff1 then
key.Down = true
wait 400ms
key.Down = false
endif


Wiimote.leds = 2

MARIO_CAR_64.PIE
------------------------

//Mario Kart N64 controls
//By petergriffin and TweaK

var.zCutoff1 = 6/30
var.zCutoff2 = 12/30
var.zCutoff3 = 23/30
// Hold the controller sideways like you do in Exite Truck 1 is A, 2 is B
// And Right (or Up if held sideways) is use item. Steering is as simple as
// Turning the Wiimote right or left. A+B is Start. Plus is up and minus is //down
// A is R and B is L
// Set the Emulator so that A=A B=B Z=Z Start=S R=R L=L And the Directions set to the arrow keys
var.xRot =Wiimote.gx
var.yRot =Wiimote.gy
var.zRot =Wiimote.gz

if Wiimote.Home
Ctrl+key.Z = true;
wait 500ms
endif


debug = 'X:' + var.xRot + ', ' + 'Y:' + var.yRot + ', ' + 'Z:' + var.zRot

if var.zRot > var.zCutoff3 then
key.right = true
key.left = true
key.left = false
wait 20ms
key.right = false
else if var.zRot < -var.zCutoff3 then
key.left = true
key.right = true
key.right = false
wait 20ms
key.left = false
else if var.zRot > var.zCutoff2 then
key.right = true
key.left = true
key.left = false
wait 12ms
key.right = false
else if var.zRot < -var.zCutoff2 then
key.left = true
key.right = true
key.right = false
wait 12ms
key.left = false
else if var.zRot > var.zCutoff1 then
key.right = true
key.left = true
key.left = false
wait 2ms
key.right = false
else if var.zRot < -var.zCutoff1 then
key.left = true
key.right = true
key.right = false
wait 2ms
key.left = false
else
key.left = True
key.right = True
key.left = false
key.right = false
endif


key.x = Wiimote.One
key.c = Wiimote.Two
key.z = Wiimote.Right
key.Enter = Wiimote.A+Wiimote.B
key.up = Wiimote.Plus
key.down = Wiimote.Minus
key.s = Wiimote.A
key.a = Wiimote.B
Wiimote.leds = 4


I hope, you can continue your work and make this for us.

Dont buy a Wii, buy a Wiimote + Nunchuk is cheaper!

Pacosal
 

Chreekar

Community Plugin Dev
November 11, 2006
234
52
Stockholm
Home Country
Sweden Sweden
Cool! As soon as I have some spare time, I'll try to use it in my code. Thanks!
 

lordsavant

Portal Member
February 24, 2007
19
2
Hi,
I've been really happy with this plugin, except that it's hard for me to get the emulator to close after it's started, which a lot of people seem to be complaining about. I have a Remote Wonder and I want the emulator to quit with the push of a button from my remote. I've been trying to map ALT-F4 to a button on the remote with this program (http://rwkeymaster.sourceforge.net/rwkf_readme.htm). However, this does not work that well. When I start up the emulator and I push the quit button, the emulator quits...but then starts up again. However, if I do this while MP isn't running, the emulators quits and does not start back up again - so I think it's an issue with the plugin. Has anyone had this problem or know how to deal with it? Thanks.
 

Users who are viewing this thread

Top Bottom