Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

PlugIn - Game_Info.Mame_Info.Controls gives strage results


Recommended Posts

Posted

Hi Tom,

(should be "strange results" in the topic... can't edit it anymore...)

Great work, nice that we can add plugins now.

I just programmed my plugin a little bit. And Msgboxed Game_Info.Mame_Info.Controls for some games. It gives me only ";joy8way;" for 1942 (as example). For '88games i got ";layers=;" (????).

I expected "8-way Joystick+joy8way" for 1942

and Just Buttons+button for '88games

1. Could you please explain what I can expect in this struct?

2. Could you please Add some fields to the Game_Info struct according to Controls.ini

[1942]

gamename=1942 (set 1)

numPlayers=2

alternating=1

mirrored=1

tilt=0

cocktail=1

usesService=0

miscDetails=

P1NumButtons=2

P1Controls=8-way Joystick+joy8way

P1_BUTTON1=Fire

P1_BUTTON2=Loop

P1_JOYSTICK_UP=Up

P1_JOYSTICK_DOWN=Down

P1_JOYSTICK_LEFT=Left

P1_JOYSTICK_RIGHT=Right

[88games]

gamename='88 Games

numPlayers=2

alternating=0

mirrored=1

tilt=0

cocktail=1

usesService=0

miscDetails=This is a 4 player team type game where 2 players compete each time

P1NumButtons=3

P1Controls=Just Buttons+button

P1_BUTTON1=Run

P1_BUTTON2=Jump

P1_BUTTON3=Run

Posted
Hi Tom,

(should be "strage results" in the topic... can't edit it anymore...)

Great work, nice that we can add plugins now.

I just programmed my plugin a little bit. And Msgboxed Game_Info.Mame_Info.Controls for some games. It gives me only ";joy8way;" for 1942 (as example). For '88games i got ";layers=;" (????).

I expected "8-way Joystick+joy8way" for 1942

and Just Buttons+button for '88games

1. Could you please explain what I can expect in this struct?

2. Could you please Add some fields to the Game_Info struct according to Controls.ini

[1942]

gamename=1942 (set 1)

numPlayers=2

alternating=1

mirrored=1

tilt=0

cocktail=1

usesService=0

miscDetails=

P1NumButtons=2

P1Controls=8-way Joystick+joy8way

P1_BUTTON1=Fire

P1_BUTTON2=Loop

P1_JOYSTICK_UP=Up

P1_JOYSTICK_DOWN=Down

P1_JOYSTICK_LEFT=Left

P1_JOYSTICK_RIGHT=Right

[88games]

gamename='88 Games

numPlayers=2

alternating=0

mirrored=1

tilt=0

cocktail=1

usesService=0

miscDetails=This is a 4 player team type game where 2 players compete each time

P1NumButtons=3

P1Controls=Just Buttons+button

P1_BUTTON1=Run

P1_BUTTON2=Jump

P1_BUTTON3=Run

Hi Cupid, I thought you'd be interested in the plugins. I remember you requesting something like this a long time ago.

As for the above, this is something I need to do in GameEx as well as the plug in system. What HK and I decided to do for now though is read controls.ini or nplayers.ini yourself, just by implementing an ini reader that accesses the files in ..\data....

Posted

Yes indeed. I'm very interested as you see :-)...

I'd like to get my Ultrasticks to work...

Nplayers seems to me ok... (but i dont need the infos from it in the first version of my plugin)

OK, I will read controls.ini myself.

Thanks for your support.

Guest
This topic is now closed to further replies.
×
×
  • Create New...