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,256
Reaction score
1,586
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

The Open Hand scandal got even more spicy. The Completionist streamer Jirard made a video response and tossed a bunch of links and documents, but apparently none of it actually addressed why donations he collected sat for 10 years (way too long to justify). He also seemed to threaten defamation suits vs. people for what amounts to pointing out publicly available records. The IRS should definitely audit.
My next update is going to amazing! There's been major additions and things I've wanted to do in previous versions that weren't possible until now. It's not ready yet, but will be soon!
made an RTP edit to try to save on work, found out I was editing the wrong tilesheet of cliffs.
It's fine... I'm fine... I'm sure fixing this won't take too long
Proud of the work done.
Probably gonna toss out some cameos.
-Message sponsored by the β Gang.

Forum statistics

Threads
136,904
Messages
1,271,300
Members
180,691
Latest member
Xhavyedge
Top