XMB variables? Has someone a memory dump?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
-DaRealXecon-
Posts: 31
Joined: Wed Jul 09, 2008 7:50 am

XMB variables? Has someone a memory dump?

Post by -DaRealXecon- »

Hi,

So i would like to write a plugin which the positions of the XMB icons changes.
Knows someone variables of the XMB or owns a memory dump?

Thank you! :)
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

Look at the piKey source code and look at OSKOut. That plugin is used to map the OSK icons and to see what possition it is in.

That may help!

Angelo
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

Do you want to CHANGE the current position in the XMB, or do you want to DETECT when the position changes?

You can hook sceCtrlReadBufferPositive for that. From there you can check if Left or Right DPad is pressed, or you can fake press Left or Right DPad to make the position change by setting the appropriate bits in the return value.

If you are talking about changing the physical order of the ICONS then forget about it. Not humanly possible. Waaaay too many factors involved and it will screw up somewhere.
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

Torch wrote:Do you want to CHANGE the current position in the XMB, or do you want to DETECT when the position changes?

You can hook sceCtrlReadBufferPositive for that. From there you can check if Left or Right DPad is pressed, or you can fake press Left or Right DPad to make the position change by setting the appropriate bits in the return value.

If you are talking about changing the physical order of the ICONS then forget about it. Not humanly possible. Waaaay too many factors involved and it will screw up somewhere.
Torch is right, you can detect where abouts it is on the XMB and design your plugin that way, but re-arranging the XMB icon order is extremly hard. You would have to redesign the XMB completly.

Best to stick with the original. =)

Angelo
-DaRealXecon-
Posts: 31
Joined: Wed Jul 09, 2008 7:50 am

Post by -DaRealXecon- »

Torch wrote:Do you want to CHANGE the current position in the XMB, or do you want to DETECT when the position changes?

You can hook sceCtrlReadBufferPositive for that. From there you can check if Left or Right DPad is pressed, or you can fake press Left or Right DPad to make the position change by setting the appropriate bits in the return value.

If you are talking about changing the physical order of the ICONS then forget about it. Not humanly possible. Waaaay too many factors involved and it will screw up somewhere.
No, i would like to program a plugin, with you can play "Ping Pong" with your XMB icons :p

Thanks for this tipp with the OSK ;)
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

-DaRealXecon- wrote: No, i would like to program a plugin, with you can play "Ping Pong" with your XMB icons :p
There will be hundreds of references to paf.prx functions that perform the animation and stuff. Simply changing a few variables containing the position will not work as you want.

Give up now.

The best that can be done is like what is done in custom themes, the base position of the icons can be changed, but all the animation is just relative to that and remains the same.
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

I think the best way isn't to make a PRX so it runs in the ACTUALL XMB, but to make an EBOOT that uses examples from DC6.

That way you can solidify the icons and it'll be easier to code. Once you have an EBOOT done... then you can consider doing it for real.

Look at the DC6 graphics example and other "Ping Pong" apps to see how it's coded.

Angelo
Post Reply