(Old) My Emulators (12 Viewers)

G.B. Wolf

MP Donator
  • Premium Supporter
  • March 22, 2007
    227
    3
    Braunschweig
    Home Country
    Germany Germany
    Yeah, after a couple of months without even looking at the code I've finally taken some time to sit down and program :) This dll should be the most recent one.

    I just gave it a try, but it didn't work. I found this in the log:

    Code:
    2007-05-08 17:18:17.281250 [Info.][MPMain]: window:MediaPortal.GUI.Home.GUIPlugIns init
    2007-05-08 17:18:17.281250 [Info.][MPMain]: Exception   :System.NullReferenceException: Object reference not set to an instance of an object.
       at myEmulators.Class1.OnAction(Action action)
       at MediaPortal.GUI.Library.GUIWindowManager.OnAction(Action action)
       at MediaPortalApp.OnAction(Action action)
    2007-05-08 17:18:17.281250 [Info.][MPMain]: Exception   :Object reference not set to an instance of an object.
    2007-05-08 17:18:17.296875 [Info.][MPMain]:   site      :Void OnAction(MediaPortal.GUI.Library.Action)
    2007-05-08 17:18:17.296875 [Info.][MPMain]:   source    :myEmulators
    2007-05-08 17:18:17.296875 [Info.][MPMain]:   stacktrace:   at myEmulators.Class1.OnAction(Action action)
       at MediaPortal.GUI.Library.GUIWindowManager.OnAction(Action action)
       at MediaPortalApp.OnAction(Action action)
    2007-05-08 17:18:17.296875 [Info.][MPMain]:   exception: Object reference not set to an instance of an object. myEmulators    at myEmulators.Class1.OnAction(Action action)
       at MediaPortal.GUI.Library.GUIWindowManager.OnAction(Action action)
       at MediaPortalApp.OnAction(Action action)
    2007-05-08 17:18:17.296875 [Info.][MPMain]: Exception   :System.Exception: exception occured ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at myEmulators.Class1.OnAction(Action action)
       at MediaPortal.GUI.Library.GUIWindowManager.OnAction(Action action)
       at MediaPortalApp.OnAction(Action action)
       --- End of inner exception stack trace ---
       at MediaPortalApp.OnAction(Action action)
       at MediaPortal.GUI.Library.OnActionHandler.Invoke(Action action)
       at MediaPortal.GUI.Library.GUIWindowManager.DispatchThreadMessages()
       at MediaPortalApp.FrameMove()
    2007-05-08 17:18:17.296875 [Info.][MPMain]: Exception   :exception occured
    2007-05-08 17:18:17.296875 [Info.][MPMain]:   site      :Void OnAction(MediaPortal.GUI.Library.Action)
    2007-05-08 17:18:17.296875 [Info.][MPMain]:   source    :MediaPortal
    2007-05-08 17:18:17.296875 [Info.][MPMain]:   stacktrace:   at MediaPortalApp.OnAction(Action action)
       at MediaPortal.GUI.Library.OnActionHandler.Invoke(Action action)
       at MediaPortal.GUI.Library.GUIWindowManager.DispatchThreadMessages()
       at MediaPortalApp.FrameMove()

    Do you need a new xml-file, too, or does it work with the last one? And have you thought about handling the translations with some fancy xml-stuff like other plugins do? I don't know if MP has some built-in features for it.

    Until you released the new code I did the simply the following:
    a) Edit myEmulators.xml and replaced the english strings with refernce-IDs.
    b) Edit (in my case) strings_de.xml and added the referenced and now translated strings.

    Another possibility is like Inker does in the MP TV-Series plugin with an extra xml-file for each language in a subdir in ./language. Perhaps you can ask him for some help/code. :)

    Nevertheless: you solution should also does the job... but somehow not for me. :(

    Best regards
    G.B.

    PS: Could you add the myEmulators.xml to the SVN?
     

    Chreekar

    Community Plugin Dev
    November 11, 2006
    234
    52
    Stockholm
    Home Country
    Sweden Sweden
    Strange, it works well on the two computers I have tested it on. Do you have MP 0.2.2.0? Have you created the file myEmulators.txt in a folder in language and selected that language in Comfiguration?

    I've uploaded the complete build package to SVN now, so try that version. I haven't learned XML yet, so plain text will have to do :) Also, the skin files are in SVN now.
     

    Chreekar

    Community Plugin Dev
    November 11, 2006
    234
    52
    Stockholm
    Home Country
    Sweden Sweden
    I *might* have solved the Alt+F4 issue. I changed the code on how to launch emulators, and it seems to work for me. Download the latest build in SVN (output.rar) and let me know!
     

    G.B. Wolf

    MP Donator
  • Premium Supporter
  • March 22, 2007
    227
    3
    Braunschweig
    Home Country
    Germany Germany
    Have you created the file myEmulators.txt in a folder in language and selected that language in Comfiguration?
    Hehe... now it works. :D

    Very little problems:
    * The german special characters (like äöüß) aren't printed.
    * On the mainpage is still says "my Emulators". Would be nice to use the title you can set in the config there. :)
    * The "set grade" stuff in the context menu isn't translated.

    :D

    I've uploaded the complete build package to SVN now, so try that version. I haven't learned XML yet, so plain text will have to do :) Also, the skin files are in SVN now.
    Yeah... nice. Now I can check the stuff better.

    :D (again :D)

    Now I've got another issue I don't know how to solve:
    My emulator for my Super Nintendo doen't start, but this was in the last release, too. I use ZNES and I can start the exe directly and running games with no problems. Using your plugin the emulator just doesn't start. The GBC-emulator works fine and gets started correctly.

    The log says:
    Code:
    2007-05-09 16:04:17.046875 [Info.][MPMain]: window:myEmulators.Class1 init
    2007-05-09 16:04:17.046875 [Info.][MPMain]: My Emulators - Loading emulator: Super Nintendo
    2007-05-09 16:04:17.062500 [Info.][MPMain]: My Emulators - Loading emulator: GameBoy Color
    2007-05-09 16:04:18.796875 [Info.][MPMain]: My Emulators - Listing files in dir: L:\Emulatoren\ZNes\Games
    2007-05-09 16:04:23.312500 [Info.][MPMain]: My Emulators - Loading emulator: Super Nintendo
    2007-05-09 16:04:23.312500 [Info.][MPMain]: My Emulators - Loading emulator: GameBoy Color
    2007-05-09 16:04:24.093750 [Info.][MPMain]: My Emulators - Listing files in dir: L:\Emulatoren\GameBoy Color
    2007-05-09 16:04:25.390625 [Info.][MPMain]: My Emulators - Executing: L:\Emulatoren\GameBoy Color\GBEmu.exe "L:\Emulatoren\GameBoy Color\pocketbomberman-gbc.gb"

    I clicked several times on a shown SNES-rom, but he didn't try to execute anything as you can see in the log. :(
     

    Chreekar

    Community Plugin Dev
    November 11, 2006
    234
    52
    Stockholm
    Home Country
    Sweden Sweden
    * On the mainpage is still says "my Emulators". Would be nice to use the title you can set in the config there. :)

    You can change that in the setup

    * The "set grade" stuff in the context menu isn't translated.

    Yeah, that's the next thing I'll fix. I'll try to figure out why the special chars aren't shown too.
     

    G.B. Wolf

    MP Donator
  • Premium Supporter
  • March 22, 2007
    227
    3
    Braunschweig
    Home Country
    Germany Germany
    You can change that in the setup
    Yeah, I know and I changed it there. But this is only used for the MP-menu (so home/plugins), not on the myEmulator-page itself. There it still says "my Emulators" above the change view part.

    Any idea why ZNES isn't started?

    Edit: I think the problem with the special chars is an encoding problem. The file holding the main translations is parsed with UTF-8. What charset are you using?
     

    iasse

    New Member
    April 23, 2007
    4
    0
    48
    Hi all.
    Where can i find the SVN ?
    thx

    EDIT: Ok I found them. ^^

    EDIT2: Myemulators (SVN) don't work with MP's SVN ?
     

    vinder

    Portal Member
    May 18, 2007
    5
    0
    44
    i love your plugin, keep up the good work

    i think there is a bug when viewing roms through large icons. when i am scrolling through my roms (with large icons), if i push the up arrow it takes me to the bottom of the list of rom icons (instead of going up one row). down, left, and right work correctly. kinda annoying. if viewing by list or with the smaller icons then scrolling up and down works fine.

    also, i tried 1.6 in svn and it seems to have cleared up the alt-f4 issues with all of my emulators

    thanks
     

    Chreekar

    Community Plugin Dev
    November 11, 2006
    234
    52
    Stockholm
    Home Country
    Sweden Sweden
    i think there is a bug when viewing roms through large icons. when i am scrolling through my roms (with large icons), if i push the up arrow it takes me to the bottom of the list of rom icons (instead of going up one row). down, left, and right work correctly. kinda annoying. if viewing by list or with the smaller icons then scrolling up and down works fine.

    This problem does not occur for me. I use MP:s facadeview code in the skin file, so I have not written that part.

    also, i tried 1.6 in svn and it seems to have cleared up the alt-f4 issues with all of my emulators

    Great!

    EDIT2: Myemulators (SVN) don't work with MP's SVN ?

    Nope, it is stand-alone so far.

    Yeah, I know and I changed it there. But this is only used for the MP-menu (so home/plugins), not on the myEmulator-page itself. There it still says "my Emulators" above the change view part.

    My bad, it's because I've specified that in the skin file. I'll fix that as soon as I find out how to change #header.label dynamically. EDIT: I found out how to do it, so now that string is the same as you've set up in Configuration. Also the set grade-strings are translated.

    I think the problem with the special chars is an encoding problem. The file holding the main translations is parsed with UTF-8. What charset are you using?

    You were right, I've changed the encoding property now. My Swedish special chars works now (didn't before), so yours should too.

    About why ZSNES isn't started: no idea. It is strange that nothing happens in the log. Try to just remove it, save settings, and then add it again.
     

    Users who are viewing this thread

    Top Bottom