UndertaleModTool icon indicating copy to clipboard operation
UndertaleModTool copied to clipboard

[Script] BorderEnablerv1_11.csx don't work properly

Open FriskTheFallenHuman opened this issue 4 years ago • 1 comments

Has the tile suggest BorderEnablerv1_11.csx has some issues that are listed below:

  • Lack some checks for os_linux and os_macosx this means while the script works, the borders wouldn't be displayed on such platforms the lines that lack this checks are
ReplaceTextInGML(("gml_Object_obj_settingsmenu_Draw_0"), @"if (global.osflavor >= 4)", "if (global.osflavor >= 1)", true);

ReplaceTextInGML(("gml_Script_scr_draw_background_ps4"), @"if (os_type == os_ps4 || os_type == os_switch_beta)", "if (os_type == os_ps4 || os_type == os_switch_beta || os_type == os_windows)", true);

ReplaceTextInGML(("gml_Script_scr_draw_screen_border"), @"if (os_type == os_ps4 || os_type == os_switch_beta)", "if (os_type == os_ps4 || os_type == os_switch_beta || os_type == os_windows)", true);

ReplaceTextInGML(("gml_Script_scr_draw_screen_border"), @"if (os_type == os_switch_beta)", "if (os_type == os_switch_beta || os_type == os_windows)", true);
  • In the settings menu after applying the script is now impossible to change the border this is because of a missing change skipped from the old a change to gml_Object_obj_settingsmenu_Draw_0 from line 65 to line 70:
if (global.osflavor <= 2)
{
    menu_max = 2
    if (obj_time.j_ch == 0)
        menu_max = 1
}

And the lines 92 and 1003

if ((menu_engage == 1) || keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right))
if ((0 && menu_engage == 1) || keyboard_check_pressed(vk_right))

FriskTheFallenHuman avatar Sep 09 '21 01:09 FriskTheFallenHuman

Duplicate of #426 ?

Miepee avatar Jun 12 '22 17:06 Miepee