justarandomgeek / vscode-factoriomod-debug

Factorio Mod Tool Kit
Other
100 stars 24 forks source link

Stuck on "Loading sounds" while debugging. #94

Closed gabfv closed 1 year ago

gabfv commented 1 year ago

Hi, I'm using this wonderful extension for vscode but when I try to debug any mods, the game hangs up at "Loading sounds..." at 95%. It doesn't seem to matter what type of debug launch I'm doing (I'm using the default launch.json as below). I've tried clearing out my .vscode folder and regenerate them when the extension asks me to but no success either. The versions are below: justarandomgeek.factoriomod-debug: 1.1.34 Factorio (Steam): 1.1.87

launch.json:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "factoriomod",
            "request": "launch",
            "name": "Factorio Mod Debug"
        },
        {
            "type": "factoriomod",
            "request": "launch",
            "name": "Factorio Mod Debug (Settings & Data)",
            "hookSettings": true,
            "hookData": true
        },
        {
            "type": "factoriomod",
            "request": "launch",
            "name": "Factorio Mod Debug (Profile)",
            "hookMode": "profile"
        }
    ]
}

Snippet of settings.json:

    "factorio.versions": [
        {
            "name": "steam-main",
            "factorioPath": "c:\\Apps\\Steam\\steamapps\\common\\Factorio\\bin\\x64\\factorio.exe",
            "active": true
        }
    ]

The last few lines in vscode's "debug console" I see:

  27.309 Custom mipmaps uploaded (3494)
  27.318 Custom inputs active: 168
debugadapter registered for level in Instrument Mode
gabfv commented 1 year ago

Deactivating every mods make me able to launch the debugger... I've got a fairly long list of mods but I'll try to investigate which mod is causing the issue.

justarandomgeek commented 1 year ago

This is probably related to a change in how bytecode is dumped in .33, since you're not on factorio .89 yet, you can just roll back to .32 for a little while. I'll have an update out soon that should address this...

gabfv commented 1 year ago

Ah, alright. I was hoping to create a mod base off Space Exploration but looks like even the bare minimal amount of mods (SE with its dependency, Blueprint Sandbox and my currently unlisted mod) doesn't load. I guess I'll wait for the .89 update!

justarandomgeek commented 1 year ago

yeah, the other report i had about this was for SE also - but you said you're on factorio 87, so you should still be able to use older debugger versions as well! (factorio >=89 has the new docs, and thus requires new debugger to read them)

gabfv commented 1 year ago

Oh I've forgotten you can use other versions in vscode extensions. Thanks! Edit: for anyone else trying to debug mods, I used the extension 1.1.32

justarandomgeek commented 1 year ago

1.1.35 should resolve this