PSOBB Addon Plugin (Lua UI addons)

Hi, does anybody have any advice on how to get a reference to the player's currently equipped weapon, and if so, determine which special attack it has? I want to extend Solybum's Monster Reader addon to display the special activation rate dynamically based on your equipped weapon.
 
Do you have a way to determine the special rank (eg. Seize vs Arrest)? I realized after implementing it that it's kind of incomplete without a way to specify that.
Look at how that code calculates the activation chance. You can get the special power directly so there is no need to get the special rank.
 
@Clorf I made an addon that does something similar. It can identify what rank special weapon is equipped and provides damage or activation chance in real time based on your current target

Untitled.png
 
@Clorf I made an addon that does something similar. It can identify what rank special weapon is equipped and provides damage or activation chance in real time based on your current target
I'm coming at it from the opposite end. I wanted a "simple" / PSO2 style display that minimizes screen clutter (look at the bottom left):

SimpleWeakness.png
 
I downloaded most of the addons from the first post and now i am stressed trying to figure it out.

was hoping to get something to notify once mag is hungry. the item reader - mag did not seem to have those settings. wondering how people are determining this, and what addon's and how they are shown on the screen. This is what i got it down to after a while, but wondering like what's the point of some of these. like player reader, the mag item reader, etc.

1710078784230.png
 
I downloaded most of the addons from the first post and now i am stressed trying to figure it out.

was hoping to get something to notify once mag is hungry. the item reader - mag did not seem to have those settings. wondering how people are determining this, and what addon's and how they are shown on the screen. This is what i got it down to after a while, but wondering like what's the point of some of these. like player reader, the mag item reader, etc.
Item Reader - Mag window should show a timer that counts down from 3:30 to when your mag can be fed. It doesn't do anything when it hits 0 other than change the color of the timer. The timer is enabled by default I believe, but maybe there was an option added at some point to disable it? Most addons have a configuration window that can be toggled by pressing the button for the addon in the addon menu list.

Player Reader can show you the HP, Invulnerability time, and Shifta&Deband of other players. Can be helpful in knowing if you missed refreshing Shifta on someone before a split in a quest and it's about to run out.
 
I'm getting a perfermance drop after installing this. I've gone from the game running perfectly to getting something like 5fps.
I've installed this a bunch of times before on other pc's and nver had a problem.

Is there something I might have done wrong when installing?
 
Hello, all. I'm having an issue where the Timer addon has gigantic font. Does anyone know how to correct this? Here's a screenshot. Thanks
Nevermind. I found what I needed under Item reader. I was basically just looking for a Mag feed timer.
 

Attachments

  • Screenshot 2024-06-09 115316.png
    Screenshot 2024-06-09 115316.png
    6.4 MB · Views: 49
Last edited:
Hello, all. I'm having an issue where the Timer addon has gigantic font. Does anyone know how to correct this? Here's a screenshot. Thanks
Nevermind. I found what I needed under Item reader. I was basically just looking for a Mag feed timer.
I meant the timer addon to have a big font so it's easier to read... that input never got added so that's why it says all that with the big font.
If you start it, it should change to a timer tho.
 
Is it possible to get the shape primitives for imgui implemented and accessible via lua in the addon base (aka dinput8.xxx)? Using the currently available-to-lua imgui method imgui.BeginChild("NAME",boxSizeX,boxSizey,drawBorder==true)) I get fairly large frame drops after drawing more than ~20 rectangles. More than ~2-3 fps drop from 30 and the game feels like playing without an h/battle or v101.

without drawing:
1731095789668.png
vs.
1731095850203.png

Even running all the item filtering,sorting, x/y position calculations, ect, ect the biggest frame drop is on "render".

I would like to be able to more efficiently draw shapes such as a square around item drops or enemies for an addon I'm working on that can be found here:

Check out this github link for an example of the relevant methods in imgui, which I'm hoping may solve my fps issue:
 
Is it possible to get the shape primitives for imgui implemented and accessible via lua in the addon base (aka dinput8.xxx)? Using the currently available-to-lua imgui method imgui.BeginChild("NAME",boxSizeX,boxSizey,drawBorder==true)) I get fairly large frame drops after drawing more than ~20 rectangles. More than ~2-3 fps drop from 30 and the game feels like playing without an h/battle or v101.

without drawing:
View attachment 23303
vs.
View attachment 23304

Even running all the item filtering,sorting, x/y position calculations, ect, ect the biggest frame drop is on "render".

I would like to be able to more efficiently draw shapes such as a square around item drops or enemies for an addon I'm working on that can be found here:

Check out this github link for an example of the relevant methods in imgui, which I'm hoping may solve my fps issue:
Started adding this to my local copy of my fork. I'll do some light sanity testing and push them to github in a day or two when I have time to test some more. Plain AddRect() is in the top right window (realized it's hard to see because I was making things blue after I finished checking the window).

1731891475993.png
Basically they need a window to render to, so you could create one imgui window that covers the entire screen, make it transparent, NoInputs, etc like you're already doing, and then render all of the primitives directly to it.

Would you be willing to quickly test if they fix the performance issue once I push the changes? You'll need to build the plugin from source. If they work fine, I can ask Soly to do a new release with these changes (this would also include my 2022 fix for 'white addons' at main menu and disappearing ingame in dark rooms).

There is a "require_version" function in the plugin's pso table. You can check if pso.require_version is nil or if pso.require_version(<whatever the next version is>) returns false to know if someone needs to update their addon plugin, in case you want to support the old way or tell people to upgrade.
 
Last edited:
Back
Top