[Help] Trying to create/modify existing overlays gamepad but it won't work......

Hello,

I’m trying to make a gamepad overlay that it’s the same thing as the GBA one, but with a button of fast-forward. I am using a jailbroken iPhone 6 with retroarch.

I took the retroarch.cfg default gamepad and started modifying. Excluded a lot of lines (overlays/descs) and just let the basics of a GBA plus one button with fast forward. And it worked, except one thing… It’s all dark now!

The area that doesn’t have any button is like 90% dark (10% I can see due the transparency).

I tried to put again the “hide” overlay, hoping that excluding that was the fault, but it’s not. The “hide” overlay isn’t all dark, but the “landscape” and “portrait” is, and I don’t know why…

If it’s a simple thing, sorry for asking, but I already tried to google it and didn’t find anything.

Thanks in advance.

Look how it looks like :

http://imgur.com/nvg7r0Y

And this is the.cfg :

overlays = 3

overlay0_full_screen = true overlay0_normalized = true overlay0_name = “landscape” overlay0_range_mod = 1.5 overlay0_alpha_mod = 2.0

overlay1_full_screen = true overlay1_normalized = true overlay1_name = “portrait” overlay1_range_mod = 1.5 overlay1_alpha_mod = 2.0

overlay2_full_screen = true overlay2_normalized = true overlay2_name = “hide”

overlay0_descs = 19 overlay0_desc0 = “left,0.04375,0.80208333333,radial,0.0525,0.0875” overlay0_desc1 = “right,0.19375,0.80208333333,radial,0.0525,0.0875” overlay0_desc2 = “up,0.11845,0.67708333333,radial,0.0525,0.0875” overlay0_desc3 = “down,0.11845,0.92708333333,radial,0.0525,0.0875” overlay0_desc4 = “start,0.64375,0.94791666666667,rect,0.04375,0.052083333333” overlay0_desc4_overlay = start.png overlay0_desc5 = “select,0.35625,0.94791666666667,rect,0.04375,0.052083333333” overlay0_desc5_overlay = select.png overlay0_desc6 = “a,0.95625,0.802083333333,radial,0.04375,0.0729166666667” overlay0_desc6_overlay = a.png overlay0_desc7 = “b,0.88125,0.927083333333,radial,0.04375,0.0729166666667” overlay0_desc7_overlay = b.png overlay0_desc8 = “l,0.0625,0.052083333333,rect,0.0625,0.052083333333” overlay0_desc8_overlay = l1.png overlay0_desc9 = “r,0.9375,0.052083333333,rect,0.0625,0.052083333333” overlay0_desc9_overlay = r1.png overlay0_desc10 = “left|down,0.04375,0.9270833333333,radial,0.03125,0.0520833333333” overlay0_desc11 = “right|up,0.19375,0.67708333333,radial,0.03125,0.0520833333333” overlay0_desc12 = “up|left,0.04375,0.67708333333,radial,0.03125,0.0520833333333” overlay0_desc13 = “down|right,0.19375,0.9270833333333,radial,0.03125,0.0520833333333” overlay0_desc14 = “nul,0.11845,0.80208333333,rect,0.127575,0.212625” overlay0_desc14_overlay = dpad.png overlay0_desc15 = “menu_toggle,0.50125,0.11708333333334,radial,0.025,0.04166666666” overlay0_desc15_overlay = rgui.png overlay0_desc16 = “overlay_next,0.30125,0.11708333333334,radial,0.025,0.04166666666” overlay0_desc16_overlay = rotate.png overlay0_desc16_next_target = “portrait” overlay0_desc17 = “toggle_fast_forward,0.60125,0.11708333333334,radial,0.025,0.04166666666” overlay0_desc17_overlay = ff.png overlay0_desc18 = “overlay_next,0.80125,0.11708333333334,radial,0.025,0.04166666667” overlay0_desc18_overlay = hide.png overlay0_desc18_next_target = “hide”

overlay1_descs = 18 overlay1_desc0 = “left,0.09375,0.86875,radial,0.0875,0.0525” overlay1_desc1 = “right,0.34375,0.86875,radial,0.0875,0.0525” overlay1_desc2 = “up,0.21875,0.79375,radial,0.0875,0.0525” overlay1_desc3 = “down,0.21875,0.94375,radial,0.0875,0.0525” overlay1_desc4 = “start,0.8958333333333,0.635,rect,0.0625,0.0375” overlay1_desc4_overlay = start.png overlay1_desc5 = “select,0.1041666667,0.635,rect,0.0625,0.0375” overlay1_desc5_overlay = select.png overlay1_desc6 = “a,0.9270833333333,0.83125,radial,0.0729166666667,0.04375” overlay1_desc6_overlay = a.png overlay1_desc7 = “b,0.8020833333333,0.90625,radial,0.0729166666667,0.04375” overlay1_desc7_overlay = b.png overlay1_desc8 = “l,0.1041666667,0.52625,rect,0.1041666667,0.03125” overlay1_desc8_overlay = l1.png overlay1_desc9 = “r,0.8958333333333,0.52625,rect,0.1041666667,0.03125” overlay1_desc9_overlay = r1.png overlay1_desc10 = “left|down,0.09375,0.94375,radial,0.05208333333333,0.03125” overlay1_desc11 = “right|up,0.34375,0.79375,radial,0.05208333333333,0.03125” overlay1_desc12 = “up|left,0.09375,0.79375,radial,0.05208333333333,0.03125” overlay1_desc13 = “down|right,0.34375,0.94375,radial,0.05208333333333,0.03125” overlay1_desc14 = “nul,0.21875,0.87275,rect,0.21,0.13” overlay1_desc14_overlay = dpad.png overlay1_desc15 = “menu_toggle,0.5,0.53125,radial,0.04166666666,0.025” overlay1_desc15_overlay = rgui.png overlay1_desc16 = “overlay_next,0.30125,0.53125,radial,0.04166666666,0.025” overlay1_desc16_overlay = rotate.png overlay1_desc16_next_target = “landscape” overlay1_desc17 = “toggle_fast_forward,0.7016666667,0.61125,rect,0.041666667,0.025” overlay1_desc17_overlay = ff.png

overlay2_descs = 1 overlay2_desc0 = “overlay_next,0.5,0.90,radial,0.04375,0.0729166666667” overlay2_desc0_next_target = “landscape” overlay2_desc0_overlay = show.png

Hmm, that’s really weird. I don’t know what would cause something like that. You’re not modifying the actual pngs at all, right? Just the cfg?

noo I’m not. I just cloned the retroarch gamepad overlay and modified the .cfg . It’s even more strange that the “hide” overlay doesn’t contain this bad behavior, but the other two overlays has… =/

Maybe one especial thing to observe:

If you see the printscreen, the dpad/menu/ff/rotate buttons looks ok, but the rest are too dark. Maybe the problem is somewhere in the part below…

overlay1_desc10 = “left|down,0.09375,0.94375,radial,0.05208333333333 ,0.03125” overlay1_desc11 = “right|up,0.34375,0.79375,radial,0.05208333333333, 0.03125” overlay1_desc12 = “up|left,0.09375,0.79375,radial,0.05208333333333,0 .03125” overlay1_desc13 = “down|right,0.34375,0.94375,radial,0.0520833333333 3,0.03125” overlay1_desc14 = “nul,0.21875,0.87275,rect,0.21,0.13” overlay1_desc14_overlay = dpad.png

I don’t know what’s wrong in this part… maybe the ‘nul’ ?

Nah, the nul just means it’s not assigned to any button function.

Maybe try removing the alpha_mod lines, in case something broke with that recently or something.

Just to be clear, you don’t have any problems with it until you edit it?

[QUOTE=hunterk;50553]Nah, the nul just means it’s not assigned to any button function.

Maybe try removing the alpha_mod lines, in case something broke with that recently or something.

Just to be clear, you don’t have any problems with it until you edit it?[/QUOTE]

I removed the alpha_mod and the range_mod of both overlays but unfortunately it stills the same thing…

I am not sure, but I think this problem wasn’t happening when I excluded lines. It started when I added the ff button.

Does it go away if you point it at some other png? << “it” meaning the ff.png

Now I tried to use ff2.png in both of overlays but the problem is still happening…

The image changed, but it’s still dark

Well, I don’t know why but look what’s happening:

http://imgur.com/WP45H4U

I compared the original code with the one I created.

I am editing all in the text in the iFiles but look like it’s messing with the .txt …

Here’s what I see in the iFiles:

http://imgur.com/sYgpJ1B

Strange… I will get a way to edit in the computer and upload to the emulator folder, avoiding this bad text editor.

Update:

Tried to upload directly to iphone folder after editing in the notepad++ Result: still the same problem…

Hmm, something appears wonky with the overlay system. If I make any sort of change and save in notepad++, it won’t show up anymore at all for me. I was thinking it might have to do with Windows vs Unix EOL, but that doesn’t seem to make any sort of difference.

We may have some larger issue afoot here. Thanks for bringing it to our attention.

[QUOTE=hunterk;50567]Hmm, something appears wonky with the overlay system. If I make any sort of change and save in notepad++, it won’t show up anymore at all for me. I was thinking it might have to do with Windows vs Unix EOL, but that doesn’t seem to make any sort of difference.

We may have some larger issue afoot here. Thanks for bringing it to our attention.[/QUOTE]

I did not try yet to see if this is the difference, but as soon as possible I will test and post results. Just give :set ff? and if needed, :set ff=unix on gvim.