#Issues with GMLive; Trying to update a sprite turns off 9-slice

1 messages · Page 1 of 1 (latest)

jagged flume
#

So to preface this, I have seen comments about this possibly being an old bug that was fixed, but I just got GMLive ~ a week ago, so it's the latest version. I have a sprite that uses 9-slice and I'm trying to edit it live, but as soon as I run the game the server reloads the sprite a second or two after and disables 9-slice. Anyone know how to fix this? Here's the output:

[GMLive][7/30/2025 2:32:48 AM] Trying to connect to gmlive-server...
[GMLive][7/30/2025 2:32:51 AM] Ready!
[GMLive][7/30/2025 2:32:51 AM] Reloaded spr_frame_panel. <--- right here is where the 9-slice gets disabled
jagged flume
#

So at the moment I have a temporary fix of assigning a callback and manually assigning my 9-slice. Through some debugging I found that its resetting the guides to 0, but this is what I used:

global.live_sprite_updated = function(spr) {
    var _ns = sprite_get_nineslice(spr);
    if (_ns != undefined) {
        _ns.enabled = true; // Re-enable 9-slice
        // Optionally set specific borders if needed
        _ns.left = 1; // manual
        _ns.right = 1;
        _ns.top = 2;
        _ns.bottom = 4;
        sprite_set_nineslice(spr, _ns);
    }
    show_debug_message("9-slice reapplied for: " + sprite_get_name(spr));
};