MPGames Plugin (1 Viewer)

metalla_nz

Portal Pro
June 19, 2007
228
67
41
Hamilton
Home Country
New Zealand New Zealand
It shouldnt be a problem to implement. Ill put enabling xpadder in the settings and the location of its exe. Then you just specify the name of the config you want to use.

Still its going to be interesting to find a way to notice when the game has stopped running and to return to the default profile....

Up/Down/Left/Right should be pretty much standard on all configs should they not? Which would mean you can probably still navigate on return to MP? So a button in the gui to load the default profile might work?
 

Bagal

MP Donator
  • Premium Supporter
  • December 15, 2006
    229
    16
    Home Country
    United Kingdom United Kingdom
    The following will find the process with the specified name and then wait until the process exits, however you should be aware that this will block the current thread until the process ends (and of course, there's no error checking in there).
    Process[] procs = Process.GetProcessesByName("GTAIV");
    procs[0].WaitForExit();
    Depending on how you're launching the external process in the first place you should be able to get hold of the process ID and then wait for that to exit rather than doing a search by name.
    I'm sure it's possible to also wait in a non-blocking way, if you look at the MSDN docs for the above code I'm sure you'll be able to find what you need.
     

    metalla_nz

    Portal Pro
    June 19, 2007
    228
    67
    41
    Hamilton
    Home Country
    New Zealand New Zealand
    Would this work if the game is exited without properly doing some kind of de-init, for example a crash or does windows report as soon as the process is no longer active?

    On second thoughts i could just go look at msdn and see what they say... ^^Lazy question.

    Ok, yup looks like it would work, Ill just create a thread to host that in, which waits then runs xpadder with the default config. Should handle it all quite nicely.

    Cheers bagal
     

    PussyWagon

    Portal Pro
    August 2, 2008
    235
    7
    Would this work if the game is exited without properly doing some kind of de-init, for example a crash or does windows report as soon as the process is no longer active?

    On second thoughts i could just go look at msdn and see what they say... ^^Lazy question.

    Ok, yup looks like it would work, Ill just create a thread to host that in, which waits then runs xpadder with the default config. Should handle it all quite nicely.

    Cheers bagal

    Damn... you guys are awesome!
    I'm really greatful that you integrate this function metalla_nz! :)

    Im very curious to test this plugin when it is done!

    Have you much left? :p
     

    AIstudio

    MP Donator
  • Premium Supporter
  • December 27, 2007
    216
    31
    53
    Blackpool
    Home Country
    United Kingdom United Kingdom
    This truly sounds fantastic.
    It will mean TOTAL integration of games/ gaming on the media centre for all platforms. I will never have to exit media portal to alter things again :D
    On top of that to have everything in one place will be amazing!

    Many thanks for looking at implementing this :D

    I know it may take a while to code things so no rush. Will be good to have a working solution that took longer than a rushed one that takes weeks of fixing imo.

    I hope to be doing some skinning work myself soon, as that is my main area (graphix & 3D) just no good at coding, may as well be zwahelee to me lol.

    Regards

    Kev
     

    metalla_nz

    Portal Pro
    June 19, 2007
    228
    67
    41
    Hamilton
    Home Country
    New Zealand New Zealand
    As a matter of interest would anyone want to have this before the plugin grabs the info of the net?

    Im working on the scraping stuff at the moment, but it should work ok if i move on to the gui instead. At least it should be functional, just without pretty pictures and descriptiopns etc.

    If so i'll move onto the gui so that there is something in a little shorter time
     

    Target32

    Portal Member
    February 1, 2008
    18
    0
    Ontario
    Home Country
    Canada Canada
    I'd love to get my hands on it. At least that way, while you're working on the scraping work, we could all test it out, find more work for you to do and make rediculous feature requests as well :)

    But seriously, I'd be interested in seeing how it works, I'm really excited about this one.
     

    AIstudio

    MP Donator
  • Premium Supporter
  • December 27, 2007
    216
    31
    53
    Blackpool
    Home Country
    United Kingdom United Kingdom
    As a matter of interest would anyone want to have this before the plugin grabs the info of the net?


    Now that sounds like a good plan :)

    I am willing to do some testing when your ready to upload something.

    Regards

    Kev
     

    Users who are viewing this thread

    Top Bottom