Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hey, sorry for the slow response. This was set using plugin parameters. I tweaked the function below to fix it:

Window_SynMenuSelcData.prototype.drawPicture = function(data){
    const window_data = this._window_data;
    const draw_pic = eval(window_data['Draw Picture']);
    if(!draw_pic)return;
    //const pic_names = JSON.parse(data['Pictures'] || []); edited by Icosa for Thread, 2025
    const pic_names = data['Pictures'] || [];
    const pic_index = eval(window_data['Picture Index']);
    const pic_name = pic_names[pic_index];
    if(!pic_name)return;
    const bitmap = ImageManager.loadPicture(pic_name);
    const bx = 0;
    const by = 0;
    const bw = bitmap.width;
    const bh = bitmap.height;
    const dx = eval(window_data['Picture X']);
    const dy = eval(window_data['Picture Y']);
    const dw = eval(window_data['Picture Width']);
    const dh = eval(window_data['Picture Height']);
    this.contents.blt(bitmap,bx,by,bw,bh,dx,dy,dw,dh);
}

This was done in the latest version of menu builder, you can just download the updated version

Thanks!

I bought the plugin yesterday, code is the same, The plugin generates a JSON parser error, Was the plugin updated on Steam?

Both versions are supposed to be synchronized by now. Can you screenshot the error for me?

Ediiting the code as mentioned fixes this. The  "A" is the first letter of the  picture name in options.

Can you post the console report?


This is from the default demo?

The demo works fine without tweaking. I copy-pasted the plug-in to my own project, there  I get the error, and the tweaking works. So I guess it's something at my side.

rmmz_managers.js:2080 SyntaxError: Unexpected token A in JSON at position 0

    at JSON.parse (<anonymous>)

    at Window_SynMenuSelc.drawPicture (Synrec_MenuBuilder.js:5198)

    at Window_SynMenuSelc.drawItem (Synrec_MenuBuilder.js:5182)

    at Window_SynMenuSelc.Window_Selectable.drawAllItems (rmmz_windows.js:1365)

    at Window_SynMenuSelc.Window_Selectable.paint (rmmz_windows.js:1416)

    at Window_SynMenuSelc.Window_Selectable.refresh (rmmz_windows.js:1409)

    at Window_SynMenuSelc.initialize (Synrec_MenuBuilder.js:5075)

    at new Window_SynMenuSelc (Synrec_MenuBuilder.js:5052)

    at Scene_SynrecMenu.createSelectionWindow (Synrec_MenuBuilder.js:6915)

    at Scene_SynrecMenu.createWindows (Synrec_MenuBuilder.js:6901)

Ok, well I have a recursive function implementation to do for menu builder, I'll do that as well as see what that issue is. Thanks for reporting