Compatibility error between VE Sfonts and Modern Algebra Choice Options

Ina00

Regular
Regular
Joined
Oct 10, 2020
Messages
147
Reaction score
15
First Language
Italian
Primarily Uses
RMVXA
Today I installed Victor Engine's Sfonts script and it works fine. The only problem is that whenever a choice is shown, an error pops and the game crashes. Here's the error and the two scripts:
Screenshot (36).png

VE Sfonts: https://victorenginescripts.wordpress.com/rpg-maker-vx-ace/sFont/

Choice Options: https://rmrk.net/index.php?topic=47593.0

I think the function that causes the error is change_color, because it's in both scripts

The error does not show in an empty project.

EDIT: If i comment out this line:
contents.sfont.alpha = enabled ? 255 : translucent_alpha
from the function change_color in VE Sfonts, the game works but it's no longer able to display disabled choices (so it's not the proper solution, but that function causes the issue)
 
Last edited:

Ina00

Regular
Regular
Joined
Oct 10, 2020
Messages
147
Reaction score
15
First Language
Italian
Primarily Uses
RMVXA
Does that mean you have both scripts in a blank project and it works fine?
No, i meant VE Sfonts script alone shows choices without errors. If I add the other one the error pops, so i'm sure it's the cause of the problem
 

Roninator2

Gamer
Regular
Joined
May 22, 2016
Messages
5,258
Reaction score
1,587
First Language
English
Primarily Uses
RMVXA
Maybe overwrite the choicelist in MA ATS.
Add this below MA ATS script
Ruby:
class Window_ChoiceList
  def change_color(colour, enabled = true, *args)
    contents.font.color.set(colour)
    contents.font.color.alpha = translucent_alpha unless (@drawing_index ? command_enabled?(@drawing_index) : enabled)
  end
end
Not sure if there is a issue with it though. Not sure if changing colours will work.
 

Ina00

Regular
Regular
Joined
Oct 10, 2020
Messages
147
Reaction score
15
First Language
Italian
Primarily Uses
RMVXA
Maybe overwrite the choicelist in MA ATS.
Add this below MA ATS script
Ruby:
class Window_ChoiceList
  def change_color(colour, enabled = true, *args)
    contents.font.color.set(colour)
    contents.font.color.alpha = translucent_alpha unless (@drawing_index ? command_enabled?(@drawing_index) : enabled)
  end
end
Not sure if there is a issue with it though. Not sure if changing colours will work.
From what i can see it works just fine with this. I'll let you know if something happens, but it shouldn't. Thank you so much :)
 

Latest Threads

Latest Posts

Latest Profile Posts

Thanks to my last two calendar days, the goddess can now join your heroes' party and whack your enemies with the power of love!
1702314770604.png
How are you gonna use all those new resources from the calendars?
I hate driving in games. Imagine your character profile being an exceptional individual, yet when they drive, it makes them look dumb.
The flaming skeleton visited me in my dreams again. He demands the game be finished soon. I don't like the flaming skeleton. He took my cranberry juice. He doesnt even have a stomach it just spilled all over the floor.
My Game Jam entry is a bunch of mini games wrapped within an epic story that will rival the deepest plots of the earliest CRPGs! As a small spoiler, here is one example of a game you will be able to play. Anyone want to try Brat, Krampus, Santa?
so I had two plugin that essentially overwrite each other depending on where they are in the list. so I had to edit what was overwriting one into the other and now they both work. I REALLY need to sit down and just learn JavaScript. I hate that I know just enough to know I don't know NEARLY enough lol.

Forum statistics

Threads
136,918
Messages
1,271,466
Members
180,708
Latest member
xona
Top