yifanlu / taiHEN

CFW framework for PS Vita
MIT License
302 stars 46 forks source link

How does *ALL section "exactly" works? #89

Open pmsobrado opened 11 months ago

pmsobrado commented 11 months ago

I feel like I'm missing something here. I have a plugin on the *ALL section that causes a crash on startup (Vita freezes on the warning text and the shuts down). But if I use it on a specific titleid, it works OK and there's no crash.

The plugin's wiki states that it can be used on the ALL section, so maybe I have some incompatibility, or maybe the plugin was updated and now is not suitable for the ALL section, and the author forgot to remove the *ALL usage from the readme. I really don't know and haven't found anything related or anyone with the same problem (I assume few people use the plugin and they may use it by a per titleid basis).

The plugin is DS34Motion, by the way: https://github.com/MERLev/DS34Motion.

In any case, I wanted to try and see if I could find the conflict and solve it myself. From what I understand, *ALL section enables a plugin for all titleids on the Vita (games, homebrew and system apps). So I grabbed my app.db, copied all titleids, and added this to config.txt:

!TITLEID01 !TITLEID02 !TITLEID03 !TITLEID04 ... (and so on)

*ALL ur0:/tai/myplugin.suprx

The Vita kept crashing after this so I wonder, if I've negated all titleids on my console, and the ALL section only enable plugins on all titleids on my console, why is the crash still there? What else is the ALL section doing behind the curtains?

I hope I have explained myself.

Thanks in advance!

isage commented 11 months ago

https://github.com/DaveeFTW/taihen-parser

*ALL also includes *main (aka shell)

pmsobrado commented 11 months ago

@isage And is there a way to prevent a plugin in the *ALL section loading into main (Shell)?

isage commented 11 months ago

*!main

pmsobrado commented 11 months ago

*!main

@isage You what you mean is something like this:

*!main

*main
plugin1
plugin2
plugin3

*ALL
plugin1
plugin2
plugin3
plugin4

Plugins 1, 2 and 3 will load to main and ALL, but plugin 4 would only to ALL, being available (only) to all titleids?

isage commented 11 months ago

*main
plugin1
plugin2
plugin3

*!main
*ALL
plugin1
plugin2
plugin3
plugin4
pmsobrado commented 11 months ago

I'll try, thanks!!

HEDGE1974 commented 11 months ago

Try adding # in front of 1 tweak at a time and then turn off then on to find which line of txt is causing the problem. I always use auto plugin 2 to install mine which will guarantee that the txt is added to their correct location so I don’t get any errors. Hope this helps as manual install will normally give you errors and auto installs are setup to always add plugin txt to correct lines of subheading

Sent from my iPhone

On 1/08/2023, at 9:12 PM, Pablo Sobrado @.***> wrote:

 I feel like I'm missing something here. I have a plugin on the *ALL section that causes a crash on startup (Vita freezes on the warning text and the shuts down). But if I use it on specific title, it works OK and there's no crash.

The plugin's wiki states that it can be used on the ALL section, so maybe I have some incompatibility, or maybe the plugin was updated and now is not suitable for the ALL section and the author forgot to remove the *ALL usage from the readme.

In any case, I wanted to try and see if I could find the conflict and solve it myself. From what I understand, *ALL section enables a plugin for all titles on the Vita (games, homebrew and system apps). So I grabbed my app.db, copied all titleids, and added this to config.txt:

!TITLEID01 !TITLEID02 !TITLEID03 !TITLEID04 ... (and so on)

*ALL ur0:/tai/myplugin.suprx

The Vita kept crashing after this so I wonder, if I've negated all titleids on my console, and the ALL section only enable plugin on all titleids on my console, why the crash still there? What else is the ALL section doing behind the curtains?

I hope I have explained myself.

Thanks in advance!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

HEDGE1974 commented 11 months ago

Add # in front of line of text you want system to skip

Sent from my iPhone

On 1/08/2023, at 9:50 PM, Pablo Sobrado @.***> wrote:

 @isage And is there a way to prevent a plugin in the *ALL section loading into main (Shell)?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

pmsobrado commented 11 months ago

@HEDGE1974 I tried only with that plugin in ALL section, but it crash. Seems like it's not a conflict with other plugin, but an incompatibility with something which ALL section loads.

@isage I tried this:

*main plugin_for_both_main_and_all

*!main

*ALL plugin_for_both_main_and_all plugin_only_for_all

This time, my Vita reaches to the shell, but it freezes after a few seconds. Commenting plugin_only_for_all solves it. So I guess the plugin is still being loaded somewhere and that causes the crash. Any other ideas?