Loading problems...

I think VNM is all about javascript, coffee scripts and json.
yes there is a command called script where you can write in it and you can put it in a CE (like I show you in the video)...whether the command works or not I don't know...I've never been able to write code correctly ^^"

for plugins I think you just need to transcribe in JSON .-.

on the other hand, I just noticed that there are some files that give some errors!
i hope it doesn't happen in every new project that opens .-.

EDIT: I have just opened another project and those 'errors' are there too, so I guess they are there at the creation of each project D:

script and CE:


some error:
I just tested the 30 days, blank new project, and errors everywhere...
God, you have more patience than I do, I wanna uninstall right away xD

I just tried a change scene to a test scene and it generates tons of errors.


When I change scene the music keeps playing normally for me though.


Now that I saw the software I'm even more confused. 👋

Though, since you can add custom scripts in the sript section, try adding a new folder "Custom Scripts" at the bottom of the list.
Add a new script (javascript), call it "ResumeBGM" for clarity

In there, paste this script :
JavaScript:
var currentBGM = AudioManager._currentBgm;
var currentPosition = AudioManager._bgmBuffer ? AudioManager._bgmBuffer.seek() : 0;

function resumeBgm() {
    AudioManager.playBgm(currentBGM, currentPosition);
}

SceneManager.switchTo(new Scene_Map(), false, resumeBgm);


This should overwrite the behavior of Scene transitions, and hopefully get rid of the $gameVariables issue.


Also, reset your main script to factory (We no longer need the debug consoles) :
Spoiler: Factory default
CoffeeScript:
# ===================================================================
#
#   Script: Main
#
# ===================================================================
#
#   Entry point of your game.
#
# ===================================================================
class Main
    ###*
    * Controls the boot-process of the game.
    *
    * @module gs
    * @class Main
    * @memberof gs
    * @constructor
    ###
    constructor: ->
        window.$ = jQuery.noConflict()
       
        @languagesLoaded = no
        @frameCallback = null
   
    ###*
    * Updates the current frame.
    *
    * @method updateFrame
    ###
    updateFrame: ->
        if $PARAMS.showDebugInfo
            window.startTime = if window.performance? then window.performance.now() else Date.now()
         
        SceneManager.update()
        Graphics.frameCount++
       
        if $PARAMS.showDebugInfo
            if not @debugSprite? then @debugSprite = new Sprite_Debug()
     
            window.endTime = if window.performance? then window.performance.now() else Date.now()
            if Graphics.frameCount % 30 == 0
                @debugSprite.frameTime = (endTime - startTime)
                @debugSprite.redraw()
               
    ###*
    * Loads game data.
    *
    * @method loadData
    ###
    loadData: ->
        RecordManager.load()
        DataManager.getDocumentsByType("global_variables")
        DataManager.getDocumentsByType("language_profile")
        DataManager.getDocumentsByType("vn.chapter")
   
    ###*
    * Loads system data.
    *
    * @method loadSystemData
    ###  
    loadSystemData: ->
        DataManager.getDocument("RESOURCES")
        DataManager.getDocument("SUMMARIES")
   
    ###*
    * Loads system resources such as graphics, sounds, fonts, etc.
    *
    * @method loadSystemResources
    ###    
    loadSystemResources: ->
        ResourceManager.loadFonts()
        ResourceLoader.loadSystemSounds(RecordManager.system)
        ResourceLoader.loadSystemGraphics(RecordManager.system)
       
        for language in LanguageManager.languages
            if language.icon?.name?.length > 0
                ResourceManager.getBitmap("Graphics/Icons/#{language.icon.name}")
               
        gs.Fonts.initialize()
   
    ###*
    * Gets game settings.
    *
    * @method getSettings
    ###      
    getSettings: ->
        settings = GameStorage.getObject("settings")
               
        if not settings? or settings.version != 342
            GameManager.resetSettings()
            settings = GameManager.settings
           
        return settings
   
    ###*
    * Sets up the game's global data. If it is outdated, this method will
    * reset the global game data.
    *
    * @method setupGlobalData
    ###    
    setupGlobalData: ->
        globalData = GameStorage.getObject("globalData")
        GameManager.globalData = globalData
       
        if !globalData || globalData.version != 342
            GameManager.resetGlobalData()
           
    ###*
    * Sets up game settings.
    *
    * @method setupGameSettings
    * @param {Object} settings - Current game settings.
    ###    
    setupGameSettings: (settings) ->
        GameManager.settings = settings
        GameManager.settings.fullScreen = Graphics.isFullscreen()
       
        for character, i in RecordManager.charactersArray
            if character and !GameManager.settings.voicesByCharacter[character.index]
                GameManager.settings.voicesByCharacter[character.index] = 100
        for cg, i in RecordManager.cgGalleryArray
            if cg? and !GameManager.globalData.cgGallery[cg.index]
                GameManager.globalData.cgGallery[cg.index] = { unlocked: no }
   
    ###*
    * Sets up audio settings.
    *
    * @method setupAudioSettings
    * @param {Object} settings - Current game settings.
    ###    
    setupAudioSettings: (settings) ->
        AudioManager.generalSoundVolume = settings.seVolume
        AudioManager.generalMusicVolume = settings.bgmVolume
        AudioManager.generalVoiceVolume = settings.voiceVolume
   
    ###*
    * Sets up video settings.
    *
    * @method setupVideoSettings
    * @param {Object} settings - Current game settings.
    ###  
    setupVideoSettings: (settings) ->
        settings.renderer = 1
        Graphics.keepRatio = !settings.adjustAspectRatio
        Graphics.onResize()
   
    ###*
    * Sets up settings.
    *
    * @method setupSettings
    ###      
    setupSettings: ->
        settings = @getSettings()
       
        @setupGlobalData()          
        @setupGameSettings(settings)
        @setupAudioSettings(settings)
        @setupVideoSettings(settings)
       

        GameStorage.setObject("settings", settings)
       
    ###*
    * Loads all system resources needed to start the actual game.
    *
    * @method load
    * @param {Function} callback - Called when all system resources are loaded.
    ###              
    load: (callback) ->
        @loadSystemData()
       
        DataManager.events.on "loaded", =>
            GameManager.tempFields = new gs.GameTemp()
            window.$tempFields = GameManager.tempFields
           
            if @languagesLoaded
                RecordManager.initialize()
                LanguageManager.initialize()
                SceneManager.initialize()
                @setupSettings()
            else
                @loadData()
               
            if @languagesLoaded
                @loadSystemResources()
                DataManager.events.off "loaded"
                ResourceManager.events.on "loaded", =>
                    GameManager.setupCursor()
                    ResourceManager.events.off "loaded"
                    ui.UIManager.setup()
                    callback()
                   
            @languagesLoaded = yes
   
   
    ###*
    * Sets up the application.
    *
    * @method setupApplication
    ###
    setupApplication: ->
        $PARAMS.showDebugInfo = no
        window.ResourceManager = new window.ResourceManager()
        window.DataManager = new window.DataManager()
       
        # Force OpenGL renderer
        window.Graphics = new Graphics_OpenGL()
        window.gs.Graphics = window.Graphics
        window.Renderer = window.Renderer_OpenGL
       
        # Force linear filtering
        Texture2D.filter = 1
   
    ###*
    * Initializes the input system to enable support for keyboard, mouse, touch, etc.
    *
    * @method setupInput
    ###
    setupInput: ->
        Input.initialize()
        Input.Mouse.initialize()
   
    ###*
    * Initializes the video system with the game's resolution. It is necessary to
    * call this method before using graphic object such as bitmaps, sprites, etc.
    *
    * @method setupVideo
    ###  
    setupVideo: ->
        @frameCallback = @createFrameCallback()
       
        Graphics.initialize($PARAMS.resolution.width, $PARAMS.resolution.height)
        #Graphics.onFocusReceive = => GameManager.tempSettings.skip = no
        Graphics.onDispose = => ResourceManager.dispose()
        Graphics.formats = [320, 384, 427]
        Graphics.scale = 0.5 / 240 * Graphics.height
        Font.defaultSize = Math.round(9 / 240 * Graphics.height)
       
        Graphics.onEachFrame(@frameCallback)
   
    ###*
    * Registers shader-based effects. It is important to register all effects
    * before the graphics system is initialized.
    *
    * @method setupEffects
    ###  
    setupEffects: ->
        # Register built-in LOD/Box Blur effect
        gs.Effect.registerEffect(gs.Effect.fragmentShaderInfos.lod_blur)
        # Register built-in pixelate effect
        gs.Effect.registerEffect(gs.Effect.fragmentShaderInfos.pixelate)
       
        # This is an example of how to register your own shader-effect.
        # See Effects > CircularDistortionEffect script for more info.
        # gs.CircularDistortionEffect.register()
    ###*
    * Initializes the Live2D. If Live2D is not available, it does nothing. Needs to be
    * called before using Live2D.
    *
    * @method setupLive2D
    ###
    setupLive2D: ->
        Live2D.init()
        Live2D.setGL($gl)
        Live2DFramework.setPlatformManager(new L2DPlatformManager())
   
    ###*
    * Creates the frame-callback function called once per frame to update and render
    * the game.
    *
    * @method setupLive2D
    * @return {Function} The frame-callback function.
    ###  
    createFrameCallback: ->
        callback = null

        if $PARAMS.preview? or ($PARAMS.testOffline && window.parent != window)
            callback = (time) =>
                try
                    if $PARAMS.preview && !$PARAMS.preview.error
                        @updateFrame()
                catch ex
                    if $PARAMS.preview or GameManager.inLivePreview
                        $PARAMS.preview = error: ex
                    console.log(ex)
        else
            callback = (time) => @updateFrame()
           
        return callback
   
    ###*
    * Creates the start scene object. If an intro-scene is set, this method returns the
    * intro-scene. If the game runs in Live-Preview, this method returns the selected
    * scene in editor.
    *
    * @method createStartScene
    * @return {gs.Object_Base} The start-scene.
    ###    
    createStartScene: ->
        scene = null
        introScene = null
       
        if RecordManager.system.useIntroScene
            introScene = DataManager.getDocumentSummary(RecordManager.system.introInfo?.scene?.uid)
       
        if $PARAMS.preview or introScene
            scene = new vn.Object_Scene()
            scene.sceneData.uid = $PARAMS.preview?.scene.uid || RecordManager.system.introInfo?.scene?.uid
            scene.events.on "dispose", (e) -> GameManager.sceneData.uid = null
        else if LanguageManager.languages.length > 1
            scene = new gs.Object_Layout("languageMenuLayout")
        else
            scene = new gs.Object_Layout("titleLayout")
         
        return scene
       
    ###*
    * Boots the game by setting up the application window as well as the video, audio and input system.
    *
    * @method start
    ###
    start: ->
        @setupApplication()
        @setupEffects()
        @setupVideo()
        @setupLive2D()
        @setupInput()
   
        @load => SceneManager.switchTo(@createStartScene())


# The entry point of the game.
gs.Main = new Main()
gs.Application.initialize()
gs.Application.onReady = ->
    # Add meta data to all class objects necessary for object serialization.
    Object.keys(gs).forEach (k) -> gs[k].$namespace = "gs"; gs[k].$name = k
    Object.keys(vn).forEach (k) -> vn[k].$namespace = "vn"; vn[k].$name = k
    Object.keys(ui).forEach (k) -> ui[k].$namespace = "ui"; ui[k].$name = k
   
    gs.Main.start()
I just tested the 30 days, blank new project, and errors everywhere...
God, you have more patience than I do, I wanna uninstall right away xD

I just tried a change scene to a test scene and it generates tons of errors.
ha ha ha XD yes, I can understand the traumatic impact XD but in reality it is a nice program that also allows you to make nice games and has a lot of potential to become a really nice program. (the problem is that sometimes it really has absurd bugs and as already said I think the developers have washed their hands of it unfortunately... I think it's been a couple of years since it was updated.)

did you use "save previous: yes" to keep the music from one scene to another, because if it's set to no, it's very weird XD


you mean in the CE right? I'll do it right away
Yes, Save Previous is set to yes
If it is set to No, then the music stops, but can be played again upon calling for it.

So, I took a look and ehm... $gameVariables simply does not exist in VNM
The script you were using is actually a script from RPG Maker. 😀

There is no such a thing as $gameVariables, heck there is no such a thing as AudioManager._currentBgm either 😊

So of course it will generate errors.


I'll take a look at how variables and audiomanager work in VNM and be back with a solution (hopefully)
Right now, you should delete the script that says :

JavaScript:
var currentBGM = AudioManager._currentBgm;
var currentPosition = AudioManager._bgmBuffer ? AudioManager._bgmBuffer.seek() : 0;
$gameVariables.setValue(1, currentBGM);
$gameVariables.setValue(2, currentPosition);

// Cambia scena
SceneManager.goto(Scene_Map);

// Riprendi la traccia musicale nella nuova scena
var savedBGM = $gameVariables.value(1);
var savedPosition = $gameVariables.value(2);
AudioManager.playBgm(savedBGM, savedPosition);

Everywhere you used it, it simply isn't meant for VNM's architecture.


If you want a BGM to loop into the next scene, select "yes" for save previous
If you don't want a bgm to loop, select no. (Which means you will have to set a new BGM in the new scene)

My last script can be deleted aswell, as this just isn't meant for VNM. 🙂
I should have downloaded the 30d trial earlier xD
Would have saved us alot of time.
So, I took a look and ehm... $gameVariables simply does not exist in VNM
The script you were using is actually a script from RPG Maker. 😀

There is no such a thing as $gameVariables, heck there is no such a thing as AudioManager._currentBgm either 😊

So of course it will generate errors.
you mean the base code has commands for RPG maker but they don't work in VNM?!? 😳 what the hell?!
is that why a lot of people I've talked to have problems with saves? (many have also disabled save and load)

yes I know, in fact I always use yes on change scene or the music doesn't continue (I tried to use resume scene in a scene set to no on save preovius but it doesn't work .__.)

ok I delete the various scripts and as for the main, I put the original back?
you mean the base code has commands for RPG maker but they don't work in VNM?!? 😳 what the hell?!
is that why a lot of people I've talked to have problems with saves? (many have also disabled save and load)

yes I know, in fact I always use yes on change scene or the music doesn't continue (I tried to use resume scene in a scene set to no on save preovius but it doesn't work .__.)

ok I delete the various scripts and as for the main, I put the original back?
Put the original main back, the logs are no longer needed.
The reason resume scene don't work is because of the way the scene is "disposed" if set to no, meaning it's erased I think.

What do you mean with "base code" ?
The scripts in VNM mention $gameVariables nowhere, or at least I can't find it.
AudioManager class also has nothing like playbgm or resumebgm, it's different.

So, I'm gonna try and make a script that work with the base Managers and hopefully, let you know 🙂
I mean, every time I open a new project I might have these loading problems, since $gameVariables and AudioManager are not present anywhere??
because as I said a few posts before, other users have had certain errors (that they couldn't solve in any way) and many have given up on creating games where you load and save .-.
if you manage to find a solution, in addition to having my eternal gratitude XD, I guess I'll have to apply it to any game that has a save system .-.
I'm giving up for now...
Whatever I do, it just won't work. It's as if it has been built to not work.

If you come accross some tutorials on scripting in VNM, let me know.
Other than that I'm lost.

The VariableStore class just won't let me use its functions
The AudioManager class lets me use it, but refuses to load the buffer

I'm done, sorry.
don't worry! on the contrary, thank you so much for taking the time and helping me a lot!
I'll try to do some more searching around and in case I'll update the conversation if I find something!
thank you from the bottom of my heart! \^.^/
It was nice trying to help, but even using Archeia's sheet, I can't find a workaround the AudioManager.

Variables is an easy fix, at least custom ones.

Stick to looping the music between scenes setting save previous as much as possible, otherwise, use the built in fade in and out using the Pause Music and Resume Music commands

Best of luck with your game 🙂


(It's sad... it was easier to built a javascript bridge to use LUA language support in rpg maker, than it it is to... save and resume a buffer here..., like damn)
By "Archeia's sheet" do you mean this?

cmq yes, if it was possible to save the music to a variable it might have been easier, I'll find a solution somehow ^^
thanks again 🙂
By "Archeia's sheet" do you mean this?

cmq yes, if it was possible to save the music to a variable it might have been easier, I'll find a solution somehow ^^
thanks again 🙂
No, this is the official help for the API and stuff

I meant :
Script Calls Sheet

Saving the music is the easy part
I've done that successfully
Resuming the music based on the buffer on the other hand... is a completely different task
To save the music, I created a script in the scripts section
Custom script folder, BGM.js and simply added a global list :
JavaScript:
if (typeof BGMStore === 'undefined') {
    var BGMStore = {};
}

Then, in a common event, to save the music, you simply have to do :
JavaScript:
BGMStore.name = AudioManager.music.name;
BGMStore.buffer = AudioManager.audioBuffersByLayer[0];

console.log("Music name :",BGMStore.name);
console.log("Music buffer :",BGMStore.buffer);

That easy.
Now, using the buffer's data to resume it on the other hand... just doesn't wanna work.
Just in case for anyone else, here is an example where Audio is controlled by variable. Copy paste it in a common event and adjust the global variables and try it out.
Code:
[
    {
        "id": "gs.Condition",
        "params": {
            "variable": {
                "name": "Audio Volume",
                "index": 242,
                "scope": 1,
                "changed": true,
                "domain": "com.degica.vnm.default"
            },
            "numberValue": 0,
            "textValue": "",
            "switchValue": 0,
            "valueType": 0,
            "operation": 0,
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 0,
        "uid": "95532EFF5A6F68447609D331144696FDA399"
    },
    {
        "id": "gs.JumpToLabel",
        "params": {
            "name": "end of audio fade",
            "target": "activeContext"
        },
        "indent": 1,
        "uid": "04C1CAAB9ED3124285892E51C70191300231"
    },
    {
        "id": "gs.Condition",
        "params": {
            "variable": {
                "name": "Audio Volume",
                "index": 242,
                "scope": 1,
                "changed": true,
                "domain": "com.degica.vnm.default"
            },
            "numberValue": {
                "name": "New Audio Volume",
                "index": 243,
                "scope": 1,
                "changed": true,
                "domain": "com.degica.vnm.default"
            },
            "textValue": "",
            "switchValue": 0,
            "valueType": 0,
            "operation": 2,
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 0,
        "uid": "B517214C7BB2104C618A9A92EBC6353E383F"
    },
    {
        "id": "gs.ChangeBooleanVariables",
        "params": {
            "target": 0,
            "targetReferenceDomain": "com.degica.vnm.default",
            "targetReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "targetVariable": {
                "name": "Audio must be lowered?",
                "index": 0,
                "scope": 0,
                "domain": "com.degica.vnm.default"
            },
            "targetRangeScope": 0,
            "rangeStart": 0,
            "rangeEnd": 0,
            "value": 1,
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 1,
        "uid": "97EC084134A5334B43181D11F45BB21DF980"
    },
    {
        "id": "gs.Comment",
        "params": {
            "text": "The logic behind it is: if it needs (for example) 1000ms to go from 1 to 100, it means that it loops 1000/20ms = 50 times\nSo in 50 loops it needs to cover a 99 volume difference\n\n99/50 = 2 gain every loop of 20ms"
        },
        "indent": 0,
        "uid": "4103EBD174682146B3684158BC07B1CB3088",
        "expanded": true
    },
    {
        "id": "gs.ChangeNumberVariables",
        "params": {
            "target": 0,
            "targetVariable": {
                "name": "Copy of audio volume",
                "index": 0,
                "scope": 0,
                "domain": "com.degica.vnm.default"
            },
            "targetScope": 0,
            "targetRange": {
                "start": 0,
                "end": 0
            },
            "targetReferenceDomain": "com.degica.vnm.default",
            "targetReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "operation": 0,
            "source": 0,
            "sourceValue": {
                "name": "Audio Volume",
                "index": 242,
                "scope": 1,
                "changed": true,
                "domain": "com.degica.vnm.default"
            },
            "sourceRandom": {
                "start": 0,
                "end": 0
            },
            "sourceScope": 0,
            "sourceVariable": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "sourceReferenceDomain": "com.degica.vnm.default",
            "sourceReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 0,
        "uid": "95F8645559C4544EE00809971B4B25AD743E"
    },
    {
        "id": "gs.ChangeNumberVariables",
        "params": {
            "target": 0,
            "targetVariable": {
                "name": "Volume Gain/Loss",
                "index": 1,
                "scope": 0,
                "domain": "com.degica.vnm.default"
            },
            "targetScope": 0,
            "targetRange": {
                "start": 0,
                "end": 0
            },
            "targetReferenceDomain": "com.degica.vnm.default",
            "targetReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "operation": 0,
            "source": 0,
            "sourceValue": {
                "name": "New Audio Volume",
                "index": 243,
                "scope": 1,
                "changed": true,
                "domain": "com.degica.vnm.default"
            },
            "sourceRandom": {
                "start": 0,
                "end": 0
            },
            "sourceScope": 0,
            "sourceVariable": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "sourceReferenceDomain": "com.degica.vnm.default",
            "sourceReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 0,
        "uid": "871CD2FC7D3D314E867B2F22381F6F6D19E0"
    },
    {
        "id": "gs.ChangeNumberVariables",
        "params": {
            "target": 0,
            "targetVariable": {
                "name": "Volume Gain/Loss",
                "index": 1,
                "scope": 0,
                "domain": "com.degica.vnm.default"
            },
            "targetScope": 0,
            "targetRange": {
                "start": 0,
                "end": 0
            },
            "targetReferenceDomain": "com.degica.vnm.default",
            "targetReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "operation": 2,
            "source": 0,
            "sourceValue": {
                "name": "Copy of audio volume",
                "index": 0,
                "scope": 0,
                "domain": "com.degica.vnm.default"
            },
            "sourceRandom": {
                "start": 0,
                "end": 0
            },
            "sourceScope": 0,
            "sourceVariable": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "sourceReferenceDomain": "com.degica.vnm.default",
            "sourceReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 0,
        "uid": "E1AB26C786FC2444FF7A3452AFAE46CC494B"
    },
    {
        "id": "gs.ChangeNumberVariables",
        "params": {
            "target": 0,
            "targetVariable": {
                "name": "Time(ms)",
                "index": 2,
                "scope": 0,
                "domain": "com.degica.vnm.default"
            },
            "targetScope": 0,
            "targetRange": {
                "start": 0,
                "end": 0
            },
            "targetReferenceDomain": "com.degica.vnm.default",
            "targetReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "operation": 4,
            "source": 0,
            "sourceValue": 20,
            "sourceRandom": {
                "start": 0,
                "end": 0
            },
            "sourceScope": 0,
            "sourceVariable": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "sourceReferenceDomain": "com.degica.vnm.default",
            "sourceReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 0,
        "uid": "6C9B8F5E51A6364AFC08C52468469FB7F8FE"
    },
    {
        "id": "gs.ChangeDecimalVariables",
        "params": {
            "roundMethod": 1,
            "target": 0,
            "targetVariable": {
                "name": "Volume Gain/Loss",
                "index": 1,
                "scope": 0,
                "domain": "com.degica.vnm.default"
            },
            "targetScope": 0,
            "targetRange": {
                "start": 0,
                "end": 0
            },
            "targetReferenceDomain": "com.degica.vnm.default",
            "targetReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "operation": 4,
            "source": 0,
            "sourceValue": {
                "name": "Time(ms)",
                "index": 2,
                "scope": 0,
                "domain": "com.degica.vnm.default"
            },
            "sourceRandom": {
                "start": 0,
                "end": 0
            },
            "sourceScope": 0,
            "sourceVariable": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "sourceReferenceDomain": "com.degica.vnm.default",
            "sourceReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 0,
        "uid": "CB2A59E88552B341DF5A390997DC192EACF1",
        "expanded": true
    },
    {
        "id": "gs.Condition",
        "params": {
            "variable": {
                "name": "Volume Gain/Loss",
                "index": 1,
                "scope": 0,
                "domain": "com.degica.vnm.default"
            },
            "numberValue": 0,
            "textValue": "",
            "switchValue": 0,
            "valueType": 0,
            "operation": 0,
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 0,
        "uid": "808D3DB6696CC24C144B0576C968ADD31F6A"
    },
    {
        "id": "gs.Condition",
        "params": {
            "variable": {
                "name": "Audio must be lowered?",
                "index": 0,
                "scope": 0,
                "domain": "com.degica.vnm.default"
            },
            "numberValue": 0,
            "textValue": "",
            "switchValue": 1,
            "valueType": 1,
            "operation": 0,
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 1,
        "uid": "D084329B069A26484A794BF34131B17BCA55"
    },
    {
        "id": "gs.ChangeNumberVariables",
        "params": {
            "target": 0,
            "targetVariable": {
                "name": "Volume Gain/Loss",
                "index": 1,
                "scope": 0,
                "domain": "com.degica.vnm.default"
            },
            "targetScope": 0,
            "targetRange": {
                "start": 0,
                "end": 0
            },
            "targetReferenceDomain": "com.degica.vnm.default",
            "targetReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "operation": 0,
            "source": 0,
            "sourceValue": -1,
            "sourceRandom": {
                "start": 0,
                "end": 0
            },
            "sourceScope": 0,
            "sourceVariable": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "sourceReferenceDomain": "com.degica.vnm.default",
            "sourceReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 2,
        "uid": "B0E715BF2A67714283898B343414DA001907"
    },
    {
        "id": "gs.ConditionElse",
        "params": {},
        "indent": 1,
        "uid": "A374F7A119557849AA6A2427415974FB7CF4"
    },
    {
        "id": "gs.ChangeNumberVariables",
        "params": {
            "target": 0,
            "targetVariable": {
                "name": "Aumento/Riduzione volume",
                "index": 1,
                "scope": 0,
                "domain": "com.degica.vnm.default"
            },
            "targetScope": 0,
            "targetRange": {
                "start": 0,
                "end": 0
            },
            "targetReferenceDomain": "com.degica.vnm.default",
            "targetReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "operation": 0,
            "source": 0,
            "sourceValue": 1,
            "sourceRandom": {
                "start": 0,
                "end": 0
            },
            "sourceScope": 0,
            "sourceVariable": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "sourceReferenceDomain": "com.degica.vnm.default",
            "sourceReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 2,
        "uid": "6638BFA0214EA347657AFE91A9619147A5B2"
    },
    {
        "id": "gs.ChangeDecimalVariables",
        "params": {
            "roundMethod": 0,
            "target": 0,
            "targetVariable": {
                "name": "Volume Gain/Loss",
                "index": 1,
                "scope": 0,
                "domain": "com.degica.vnm.default"
            },
            "targetScope": 0,
            "targetRange": {
                "start": 0,
                "end": 0
            },
            "targetReferenceDomain": "com.degica.vnm.default",
            "targetReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "operation": 4,
            "source": 0,
            "sourceValue": 100,
            "sourceRandom": {
                "start": 0,
                "end": 0
            },
            "sourceScope": 0,
            "sourceVariable": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "sourceReferenceDomain": "com.degica.vnm.default",
            "sourceReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 0,
        "uid": "6E5A39BE687A2342B23B5C66E81528887977",
        "expanded": true
    },
    {
        "id": "gs.ChangeDecimalVariables",
        "params": {
            "roundMethod": 0,
            "target": 0,
            "targetVariable": {
                "name": "Audio Volume",
                "index": 242,
                "scope": 1,
                "changed": true,
                "domain": "com.degica.vnm.default"
            },
            "targetScope": 0,
            "targetRange": {
                "start": 0,
                "end": 0
            },
            "targetReferenceDomain": "com.degica.vnm.default",
            "targetReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "operation": 4,
            "source": 0,
            "sourceValue": 100,
            "sourceRandom": {
                "start": 0,
                "end": 0
            },
            "sourceScope": 0,
            "sourceVariable": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "sourceReferenceDomain": "com.degica.vnm.default",
            "sourceReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 0,
        "uid": "318D96AF4F18F7401B1ADA9791A101BE6789",
        "expanded": true
    },
    {
        "id": "gs.ChangeDecimalVariables",
        "params": {
            "roundMethod": 0,
            "target": 0,
            "targetVariable": {
                "name": "New Audio Volume",
                "index": 243,
                "scope": 1,
                "changed": true,
                "domain": "com.degica.vnm.default"
            },
            "targetScope": 0,
            "targetRange": {
                "start": 0,
                "end": 0
            },
            "targetReferenceDomain": "com.degica.vnm.default",
            "targetReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "operation": 4,
            "source": 0,
            "sourceValue": 100,
            "sourceRandom": {
                "start": 0,
                "end": 0
            },
            "sourceScope": 0,
            "sourceVariable": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "sourceReferenceDomain": "com.degica.vnm.default",
            "sourceReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 0,
        "uid": "5FCC41F5642227442E6BC421027C29ED72BD",
        "expanded": true
    },
    {
        "id": "gs.LoopCommand",
        "params": {},
        "indent": 0,
        "uid": "4ED3F5EF85B586485C7B39232536E224FE43"
    },
    {
        "id": "gs.WaitCommand",
        "params": {
            "time": 1.2
        },
        "indent": 1,
        "uid": "9FDD33DD33B077452C0A111690DCCD46B986"
    },
    {
        "id": "gs.ChangeDecimalVariables",
        "params": {
            "roundMethod": 0,
            "target": 0,
            "targetVariable": {
                "name": "Audio Volume",
                "index": 242,
                "scope": 1,
                "changed": true,
                "domain": "com.degica.vnm.default"
            },
            "targetScope": 0,
            "targetRange": {
                "start": 0,
                "end": 0
            },
            "targetReferenceDomain": "com.degica.vnm.default",
            "targetReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "operation": 1,
            "source": 0,
            "sourceValue": {
                "name": "Volume Gain/Loss",
                "index": 1,
                "scope": 0,
                "domain": "com.degica.vnm.default"
            },
            "sourceRandom": {
                "start": 0,
                "end": 0
            },
            "sourceScope": 0,
            "sourceVariable": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "sourceReferenceDomain": "com.degica.vnm.default",
            "sourceReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 1,
        "uid": "0195C3AD29AAF14E8A99B3D94F08F80D7195",
        "expanded": true
    },
    {
        "id": "gs.Condition",
        "params": {
            "variable": {
                "name": "Audio Volume",
                "index": 242,
                "scope": 1,
                "changed": true,
                "domain": "com.degica.vnm.default"
            },
            "numberValue": 1,
            "textValue": "",
            "switchValue": 0,
            "valueType": 0,
            "operation": 2,
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 1,
        "uid": "244CD0C0233123453F6A6436C84C9450FF66"
    },
    {
        "id": "gs.ChangeNumberVariables",
        "params": {
            "target": 0,
            "targetVariable": {
                "name": "Audio Volume",
                "index": 242,
                "scope": 1,
                "changed": true,
                "domain": "com.degica.vnm.default"
            },
            "targetScope": 0,
            "targetRange": {
                "start": 0,
                "end": 0
            },
            "targetReferenceDomain": "com.degica.vnm.default",
            "targetReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "operation": 0,
            "source": 0,
            "sourceValue": 1,
            "sourceRandom": {
                "start": 0,
                "end": 0
            },
            "sourceScope": 0,
            "sourceVariable": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "sourceReferenceDomain": "com.degica.vnm.default",
            "sourceReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 2,
        "uid": "FE4A3F9048E8B34EAD7813467BB5393CA066"
    },
    {
        "id": "gs.Condition",
        "params": {
            "variable": {
                "name": "Audio Volume",
                "index": 242,
                "scope": 1,
                "changed": true,
                "domain": "com.degica.vnm.default"
            },
            "numberValue": 0,
            "textValue": "",
            "switchValue": 0,
            "valueType": 0,
            "operation": 4,
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 1,
        "uid": "6EF616AB106574427B3990D2FA071CD30C19"
    },
    {
        "id": "gs.ChangeNumberVariables",
        "params": {
            "target": 0,
            "targetVariable": {
                "name": "Audio Volume",
                "index": 242,
                "scope": 1,
                "changed": true,
                "domain": "com.degica.vnm.default"
            },
            "targetScope": 0,
            "targetRange": {
                "start": 0,
                "end": 0
            },
            "targetReferenceDomain": "com.degica.vnm.default",
            "targetReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "operation": 0,
            "source": 0,
            "sourceValue": 0,
            "sourceRandom": {
                "start": 0,
                "end": 0
            },
            "sourceScope": 0,
            "sourceVariable": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "sourceReferenceDomain": "com.degica.vnm.default",
            "sourceReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 2,
        "uid": "572E16A89A6D254F4E7897E718C6714470AA"
    },
    {
        "id": "gs.Script",
        "params": {
            "script": "var n = GameManager.variableStore.numbers; \n\nAudioManager.audioBuffersByLayer[n[241]].volume = n[242]"
        },
        "indent": 1,
        "expanded": true
    },
    {
        "id": "gs.Condition",
        "params": {
            "variable": {
                "name": "Audio must be lowered?",
                "index": 0,
                "scope": 0,
                "domain": "com.degica.vnm.default"
            },
            "numberValue": 0,
            "textValue": "",
            "switchValue": 1,
            "valueType": 1,
            "operation": 0,
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 1,
        "uid": "FA89A7FB6355D9410E68581376D0353C0264"
    },
    {
        "id": "gs.Condition",
        "params": {
            "variable": {
                "name": "Audio Volume",
                "index": 242,
                "scope": 1,
                "changed": true,
                "domain": "com.degica.vnm.default"
            },
            "numberValue": {
                "name": "New Audio Volume",
                "index": 243,
                "scope": 1,
                "changed": true,
                "domain": "com.degica.vnm.default"
            },
            "textValue": "",
            "switchValue": 0,
            "valueType": 0,
            "operation": 5,
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 2,
        "uid": "7B8F1B3657B751468D797F8265DDEF9F340A"
    },
    {
        "id": "gs.BreakLoopCommand",
        "params": {},
        "indent": 3,
        "uid": "41665C121B41D844FF89DDF6515C45E94B02"
    },
    {
        "id": "gs.ConditionElse",
        "params": {},
        "indent": 1,
        "uid": "556A7E766692D148265A503638C12E221EF4"
    },
    {
        "id": "gs.Condition",
        "params": {
            "variable": {
                "name": "Audio Volume",
                "index": 242,
                "scope": 1,
                "changed": true,
                "domain": "com.degica.vnm.default"
            },
            "numberValue": {
                "name": "New Audio Volume",
                "index": 243,
                "scope": 1,
                "changed": true,
                "domain": "com.degica.vnm.default"
            },
            "textValue": "",
            "switchValue": 0,
            "valueType": 0,
            "operation": 3,
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 2,
        "uid": "139D687B611B29430F8B6F97D1318C542555"
    },
    {
        "id": "gs.BreakLoopCommand",
        "params": {},
        "indent": 3,
        "uid": "E975D4325910D34ED53A79D74579FC400A26"
    },
    {
        "id": "gs.Label",
        "params": {
            "name": "end of audio fade"
        },
        "indent": 0,
        "uid": "B3337C272A6B784C4529E4E24DF28DBAD185"
    },
    {
        "id": "gs.ChangeDecimalVariables",
        "params": {
            "roundMethod": 1,
            "target": 0,
            "targetVariable": {
                "name": "Audio Volume",
                "index": 242,
                "scope": 1,
                "changed": true,
                "domain": "com.degica.vnm.default"
            },
            "targetScope": 0,
            "targetRange": {
                "start": 0,
                "end": 0
            },
            "targetReferenceDomain": "com.degica.vnm.default",
            "targetReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "operation": 3,
            "source": 0,
            "sourceValue": 100,
            "sourceRandom": {
                "start": 0,
                "end": 0
            },
            "sourceScope": 0,
            "sourceVariable": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "sourceReferenceDomain": "com.degica.vnm.default",
            "sourceReference": {
                "index": 0,
                "scope": 1,
                "domain": "com.degica.vnm.default"
            },
            "previewBackground": {
                "name": "$live_preview_snapshot"
            }
        },
        "indent": 0,
        "uid": "F3190873735451477F4A82847FBD2F035EAA",
        "expanded": true
    }
].novelsharp/vn-scene-command
Hi! I think I have a similar issue to this. After some point in my game, load times for saves get progressively longer until the game basically freezes for several minutes before it finally loads. There's no error anywhere, not even in the dev console.

The only conclusion I've been able to reach is that the freeze happens in the restoreScene function inside Component_GameSceneBehavior, specifically in the line "gs.ObjectCodec.onRestore(saveGame.data, context)", which seems to refer to a function inside ENGINE.js to decode the stored objects in the save. Meaning that one or several objects keep getting bigger as you play through the game, maybe the stored pictures or audio.

I've tried messing with the save files themselves to see if I can find the problem, but I don't know enough and they're too massive to handle. Here's one of them: https://mega.nz/file/4g1ByYAa#dryRZPlaLIccQ1OoJjsfEetI180c4dBCfuGdC7-rdew

I can send a copy of the game (it's already out on Steam, so this is pretty urgent) for testing, if anyone can help!
Hi! I think I have a similar issue to this. After some point in my game, load times for saves get progressively longer until the game basically freezes for several minutes before it finally loads. There's no error anywhere, not even in the dev console.

The only conclusion I've been able to reach is that the freeze happens in the restoreScene function inside Component_GameSceneBehavior, specifically in the line "gs.ObjectCodec.onRestore(saveGame.data, context)", which seems to refer to a function inside ENGINE.js to decode the stored objects in the save. Meaning that one or several objects keep getting bigger as you play through the game, maybe the stored pictures or audio.

I've tried messing with the save files themselves to see if I can find the problem, but I don't know enough and they're too massive to handle. Here's one of them: https://mega.nz/file/4g1ByYAa#dryRZPlaLIccQ1OoJjsfEetI180c4dBCfuGdC7-rdew

I can send a copy of the game (it's already out on Steam, so this is pretty urgent) for testing, if anyone can help!

Does this only happened on deployed version or does it also happen in the editor? Can you send it to me in DMs so I can investigate the issue?
Thanks for replying! I haven't had that problem in the editor, but I haven't played through the whole game on one save in it. So far it seems like it's only affected a few people, not every player, so there must be something triggering the bug.

I've looked everywhere but I can't find any way to send a DM. What am I missing?
Thanks for replying! I haven't had that problem in the editor, but I haven't played through the whole game on one save in it. So far it seems like it's only affected a few people, not every player, so there must be something triggering the bug.

I've looked everywhere but I can't find any way to send a DM. What am I missing?

Click on user and start conversation!
However, if we can't emulate it, it would be really hard to find and fix such a bug.
Tohriv has found the reason, I did notice the save file was massive and was confused but had a hard time replicating it properly.
It's related to data not being reset properly per scene change and causes it to accumulate.

Original thread: https://forums.rpgmakerweb.com/threads/loading-problems.170787/