PSOBB Addon Plugin (Lua UI addons)

Discussion in 'Tools' started by Eidolon, Dec 11, 2016.

  1. Soly

    Soly Member

    Location:
    CR
    At the beginning I borrowed some stuff from Jake's but the scroll stuff was one thing I removed, didn't find it too reliable (might be just a thing of the GUI framework).

    Edit:
    Reversed the floor item list, also added meseta, but I'm filtering it out by default.
    I need to add some sort of config for it to be easily toggled.

    Since I'm not gonna upload yet another release for that, feel free to download the following file and replace the one you already have.
    https://raw.githubusercontent.com/Solybum/PSOBBMod-Addons/master/Character Reader/init.lua
     
    Last edited: Dec 22, 2016
    Echelon likes this.
  2. Echelon

    Echelon PSOBB plastic surgeon

    Thank you very much @Esc for the chat log and @Soly , really wanted a mag feed timer, so cool!
    All i need now is to get weapon's hit in Dropchecker appear in red or any other color and i'm set!
     
    Jyuki likes this.
  3. Soly

    Soly Member

    Location:
    CR
    That should be fairly easy... but I don't know how. :p
     
    Echelon likes this.
  4. Esc

    Esc Ephinean

    Something like this:
    Code:
    imgui.Text("Dragon Slayer [0/0/0/0|")
    imgui.SameLine(0, 0)
    imgui.TextColored(1, 0, 0, 1, "50") -- rgba
    imgui.SameLine(0, 0)
    imgui.Text("]")
    
    [​IMG]
     
    Spuz and Jyuki like this.
  5. Spuz

    Spuz Without rain, nothing grows.

    Location:
    England
    Guildcard:
    42002473
    Guildcard 2:
    42002669
    To add colour to hit (like shown in above example) @Esc would we have to do it individually on each weapon and number %? Or is there something smaller i can add which would cover all weapons and hit %? (Actually looking to bold myself but anything will do)

    I would like to do this also but... what is the ''init.lua.'' I have no idea where to add this code?

    EDIT: Nvm I found it. But I do have a question, if i want to increase the size of all 3 addons, currently : Dropchecker, ChatViewer and Soly's Character Reader is in line 288 in all 3 int.lua. ?? or am I right assuming all of them are different.
     
    Last edited: Dec 22, 2016
  6. Zero641

    Zero641 Hunter Specialist

    Guildcard:
    42008130
    Guildcard 2:
    42013383
    I'm also having trouble with this :( I can only open the file with notepad i think. (only text edit i have on windows) Is that the right program to use? Also finding line 288 would be hard on notepad

    Also it seems there is 2 init.lua in the dropchecker folder if u go deeper. Which one do we alter? Any help would be great :) The text is so small..
     
  7. Spuz

    Spuz Without rain, nothing grows.

    Location:
    England
    Guildcard:
    42002473
    Guildcard 2:
    42002669
    I only have one init.lua in mine (with 3 text files, item/specials + techs). Maybe you downloaded the older and newer version and somehow have both the files?

    It is a Lua file which I don't know how to edit either. I am just gonna search the web for a program to edit.
     
    Last edited: Dec 22, 2016
  8. Zero641

    Zero641 Hunter Specialist

    Guildcard:
    42008130
    Guildcard 2:
    42013383
    Oh ok. Strange. Well it looks like this on mine. Theres a dropchecker folder within the main dropchecker folder it seems lol
    Complex stuff!

    upload_2016-12-22_17-10-12.png
    upload_2016-12-22_17-10-29.png
    upload_2016-12-22_17-10-40.png
    upload_2016-12-22_17-10-51.png
     
  9. Spuz

    Spuz Without rain, nothing grows.

    Location:
    England
    Guildcard:
    42002473
    Guildcard 2:
    42002669
  10. Zero641

    Zero641 Hunter Specialist

    Guildcard:
    42008130
    Guildcard 2:
    42013383
    Brilliant. Yeah i got it working now. Thanks for all your help Spuz :)
     
    Spuz likes this.
  11. Spuz

    Spuz Without rain, nothing grows.

    Location:
    England
    Guildcard:
    42002473
    Guildcard 2:
    42002669
    So I am placing ''imgui.SetWindowFontScale(2)'' into the Lua on line 288 of jakes dropchecker infront of the word ''end'' and I also tried moving the word end to line 289.

    But it just stops drop checker from showing up in game. And display all Red under 'addons'' which I assume means something is up. Not sure what I am doing wrong here.
     
  12. Zero641

    Zero641 Hunter Specialist

    Guildcard:
    42008130
    Guildcard 2:
    42013383
    Hi Soly, I've been trying out your character reader. It's fantastic!

    Just a small thing I've noticed, tech disks don't show up with their number or name. It just says disk x1.
    Apart from that, all good
    upload_2016-12-25_20-48-31.png
     
    Mad likes this.
  13. Soly

    Soly Member

    Location:
    CR
    Thank you, you see, the techs grab their name from somewhere else in the unitxt... if you put the tech in the bank it will show correctly.... I guess I forgot to add a special case for them in the floor/inventory.

    Edit:
    Technique names have been fixed.
     
    Last edited: Dec 25, 2016
    Wilhuf, Jyuki, Spuz and 3 others like this.
  14. ealonzo

    ealonzo the based god

    Location:
    based world
    Guildcard:
    42007258
    So what should I download if I want the hit in red and solys version, I've been gone awhile and don't know what is what

    Thank you!
     
  15. Soly

    Soly Member

    Location:
    CR
    Mine won't show the hit in red since I just pass the whole string around, unless someone modifies it to separate the hit from the rest but that would be quite some work.
     
    ealonzo likes this.
  16. Zero641

    Zero641 Hunter Specialist

    Guildcard:
    42008130
    Guildcard 2:
    42013383
    Hi Soly, is there any way to increase the text font size of the character reader? It would be greatly appreciated as i have to use a smaller screen for a while. Thanks
     
  17. Soly

    Soly Member

    Location:
    CR
    I don't know, I think someone posted back there how to increase it....
    I'll check.
     
    Nyte likes this.
  18. Zero641

    Zero641 Hunter Specialist

    Guildcard:
    42008130
    Guildcard 2:
    42013383
    Ok fantastic. Thanks for looking into it. I think that post was specifically for jakes drop checker. (Which i managed to get working after a great struggle!) Not sure if it would work for yours ;p
     
  19. Soly

    Soly Member

    Location:
    CR
    Its the same thing... but someone said a specific line somewhere...
    For mine:
    -open init.lua
    -search "imgui.End()"
    -paste this BEFORE that line: "imgui.SetWindowFontScale(2)"

    Obviously without quotes.
     
  20. Zero641

    Zero641 Hunter Specialist

    Guildcard:
    42008130
    Guildcard 2:
    42013383
    Ok brilliant. Thanks a lot Soly! I've found the line. Imgui.End(). I pasted imgui.SetWindowFontScale(2) directly before it.

    Should i put a space between imgui.SetWindowFontScale(2) and imgui.End? Also can it be on the same line? It doesn't have to be on the line above?

    EDIT: Managed to get it working with what i wrote above :)
     
    Last edited: Dec 30, 2016

Share This Page