#Access Violation error c0000005

1 messages · Page 1 of 1 (latest)

minor cargo
#

So I decided to dust off my old mod, and haven't been able to get it to launch. Although it launched perfectly fine in 2022, I get an immediate
crash, with the information from the minidump below. Is there any way to figure out what is going on?

Pastebin since Discord won't let me post the whole thing: https://pastebin.com/T4y2AzRc

#

Some additional information about what's happening: when I try to run the mod in Dota 2 (OP was me running it in the modding tool), I get a different error. I'm not sure if these are related... but either way this xml file is located in the right place, so idk why the error is being thrown.

1117(71.988983):  ReadSteamRemoteStorageFile( bufOut, "voice_ban.dt" ) -> 0.000812 seconds
1116(71.979489):  CL:  CGameRulesGameSystem::GameInit installed game rules
1115(71.979392):  CDOTA_Hud_Main::DeleteGameEndScreen deleted GameEndContainer
1114(71.979382):  CDOTA_Hud_Main::EventGameRulesStateChanged DOTA_GAMERULES_STATE_INIT
1113(71.978941):  C:Gamerules: entering state 'DOTA_GAMERULES_STATE_INIT'
1112(71.868897):  Found
1111(71.699057):  Failed to load. pName='DOTANeutralItems', bIncrementVersion=true, list: 
scripts/npc/npc_neutral_items_custom.txt
1110(71.598904):  ...done
1109(71.595321):  Initializing script VM...
1108(71.462192):  Found
1107(71.292969):  Failed to load. pName='DOTANeutralItems', bIncrementVersion=true, list: 
scripts/npc/npc_neutral_items_custom.txt
1106(71.139630):  CL:  CNetworkGameClient::ProcessServerInfo
1105(71.139030):  Server Number: 2```
supple halo
#
  1. delete neutral items file
  2. try recompile you custom_ui_manifest manually, without run addon and resolve errors
minor cargo
supple halo
minor cargo
#

Unfortunately, I can't even access the asset browser without crashing

#

Like, I can launch Dota 2 with -tools param but then I can't see the mod files loaded

supple halo
#

you launch tools and it instantly crush? then i think you need delete all compiled assets and recompile it again

minor cargo
#

okay wtf

#

so what worked

#

is I launched my custom game through the console in Dota 2

#

although it didn't load certain models and particle effects

supple halo
#

now you need precache all to make it work

supple halo
#

first you need launch tools with you addon

minor cargo
#

but I can't 😦

supple halo
#

ok when you click play and select you addon, tools crush, then problem with you assets that tools cant preloaded

minor cargo
#

Hmm ok
I followed chatGPT's instructions but still no luck

Locate your addon folders

    content/dota_addons/your_addon: Contains source assets (uncompiled models, textures, etc.).
    game/dota_addons/your_addon: Contains compiled assets (e.g., vmdl_c, vmat_c, vtex_c files).

Close the Dota 2 Tools

    Ensure the tools aren’t running so they don’t lock or auto-regenerate files while you’re deleting them.

Delete the relevant “compiled” files

    Inside game/dota_addons/your_addon, remove the files/folders you want to clean out. For instance:
        models folder for compiled model files (*.vmdl_c)
        particles folder for compiled particle files (*.vpcf_c)
        sound folder for compiled sound files (*.vsnd_c)
        Any other subfolders containing _c files.

Restart the tools

    When you open the Workshop Tools again and load your addon, it will recompile any assets that require it.```
#

Same crash error

#

There's also another thing that I didn't mention, but earlier I was getting a tools crash with this error... but I ended up deleted the file to stop the error.

512(15.783312):  [Ability Schema]: Next 10 available ids are: 85,86,87,88,89,90,91,92,93,94,
511(15.777930):  Ability/Item 'npc_dota_hero_base'=37633 has no locked ability id, and we're not in experimental or main. This should be stored in the Locked section of npc_ability_ids.txt!
510(15.777919):  Assigning an auto-generated AbilityID to new ability: npc_dota_hero_base=37633```
#

It didn;t seem like npc_dota_hero_base was referenced in my project, so i deleted it

supple halo
#

you need remove id from abilities and items and delete compiled panorama files too or custom_ui_manifest at least

minor cargo
#

I don't think I have any ability ID's

#

and also no items in my mod

supple halo
#

dota recompile all this files, you can save images it will not cause any problem

minor cargo
#

Welp, I deleted all the compiled files

#

and I also deleted custom_ui_manifest

#

same error though 😦

#

is there at least any way to see what is causing the access violation?

supple halo
#

then I don't know how to help you, according to the errors you call the tools should have started

minor cargo
#

yeah no worries

#

I appreciate the help 🙂

#

this is a tough problem lol

cloud reef
#

What happens if you create a new mod and then add your files to it?

minor cargo
#

this makes me think it is tied to panorama

supple halo
#

as i take it from what you're saying that the problem with you assets

#

engine take error when try load it and dota crush

cloud reef
#

I would try:

  1. Create a new empty mod
  2. Add the files bit by bit
  3. See when the new mod crashes
minor cargo
#

Alright will try

minor cargo
#

Well, well, well would you look at that

#

npc/items.txt was causing the crash

#

All it contained was this (to remove all items in the game) so I literally have no idea how this caused a crash

// Dota Heroes File
"DOTAAbilities"
{
}
#

Thanks for the help guys