[Solved] Demigod crashes when adding AI

When I create a custom game and add comp AI, the game crashes. Sometimes when I add the first, sometimes when I add the second one with this kind of log :

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at address 0x00c962e1
    attempted to read memory at 0x4205977c

Program : D:\Stardock\Demigod\bin\Demigod.exe
Cmd line arguments :

Callstack:
    Unknown symbol (address 0x00c962e1)

Last 100 lines of log...

A full record of the log is stored in the Demigodlog.txt file

debug: Loading module '\000/lua/ui/menus/spsub/spsub.lua\000'
info: *DEBUG: OnHide: \000false
info: *DEBUG: OnHide: \000true
info: MUSIC : Activating cue [Main_Menu]
info: MUSIC : Activating cue [Main_Menu]
info: *DEBUG: OnHide: \000false
info: *DEBUG: OnHide: \000true
info: MUSIC : Activating cue [Main_Menu]
info: *DEBUG: OnHide: \000false
info: Connecting to Impulse LIVE Server.
info: Error from CVP. Reponse XML:
      <?xml version="1.0" encoding="utf-8"?><CVPGetApplicationInfoResponse><ResponseCode>0</ResponseCode><ResponseMessage>Success</ResponseMessage><ApplicationData><ID>444</ID><ApplicationID>dem</ApplicationID><RegistryKey>Demigod</RegistryKey><NetworkRegistryKey>Drengin.net</NetworkRegistryKey><Ver><Major>0</Major><Minor>90</Minor><Revision>021</Revision></Ver></ApplicationData></CVPGetApplicationInfoResponse>
info: Impulse achievements are empty. Creating anew.
info: *DEBUG: OnHide: \000true
info: MUSIC : Activating cue [Main_Menu]
info: *DEBUG: OnHide: \000false
info: CVP: entering idle state.
info: *DEBUG: OnHide: \000true
info: LOBBY: Refreshing Available Games List from Impulse.
debug: Loading module '\000/lua/ui/dialogs/dialog_hostgame.lua\000'
info: Error from CVP. Reponse XML:
      <?xml version="1.0" encoding="utf-8"?><CVPQuitGameResponse><ResponseCode>5001</ResponseCode><ResponseMessage>The parameters you have entered are invalid. Please check your data and try again. (GameID)</ResponseMessage></CVPQuitGameResponse>
info: LOBBY: Refreshing Available Games List from Impulse.
debug: Loading module '\000/lua/ui/lobby/lobby.lua\000'
debug: Loading module '\000/lua/ui/lobby/lobbybase.lua\000'
debug: Loading module '\000/lua/mods.lua\000'
debug: Loading module '\000/lua/ui/dialogs/modmanager.lua\000'
debug: Loading module '\000/lua/gamecolors.lua\000'
debug: Loading module '\000/lua/ui/lobby/lobbyoptions.lua\000'
debug: Loading module '\000/lua/ui/dialogs/dialog_connecting.lua\000'
info: Creating connector on port 6073
info: LOBBY: Game port 6073[UDP] opened.
info: LOBBY: starting with local uid of 10972 [Rekka]
info: CVP: entering lobby state.
debug: Loading module '\000/lua/ui/controls/mappreview.lua\000'
info: Setting audio parameter 'UI_Not_Frontend' to value '1.000000'
info: MUSIC : Activating cue [Lobby]
debug: Loading module '\000/lua/ui/waitanim.lua\000'
info: Starting background task "Map loader /maps/map11/map11.scmap"
info: Background task "Map loader /maps/map11/map11.scmap" running.
info: Active game mods for blueprint loading: \000{ }
info: Loading blueprints...
info: CVP::HandlePlayerDataUpdated
info: Registering blueprints...
info: HostUpdateGame(numPlayers[1], maxPlayers[10], gameType[5], mapId[58], mapName[The Brothers])
info: Calling CVPUpdateGame. gameDataXML [len]: [4742]
debug: Loading module '\000/lua/singleplayerlaunch.lua\000'
debug: Loading module '\000/lua/ui/lobby/ainames.lua\000'
debug: Loading module '\000/lua/factions.lua\000'
info: HostUpdateGame(numPlayers[2], maxPlayers[10], gameType[5], mapId[58], mapName[The Brothers])
info: Calling CVPUpdateGame. gameDataXML [len]: [4742]
debug: Loading module '\000/characters/angel/angel_character.lua\000'
debug: Loading module '\000/characters/archer/archer_character.lua\000'
debug: Loading module '\000/characters/archer/archer_movie_character.lua\000'
debug: Loading module '\000/characters/bird/bird_character.lua\000'
debug: Loading module '\000/characters/ent/ent_character.lua\000'
debug: Loading module '\000/characters/flag/flag_character.lua\000'
debug: Loading module '\000/characters/giant/giant_character.lua\000'
debug: Loading module '\000/characters/giant/giant_r_character.lua\000'
debug: Loading module '\000/characters/highpriest/highpriest02_character.lua\000'
debug: Loading module '\000/characters/highpriest/highpriest03_character.lua\000'
debug: Loading module '\000/characters/highpriest/highpriest04_character.lua\000'
debug: Loading module '\000/characters/highpriest/highpriest_character.lua\000'
debug: Loading module '\000/characters/leopard_rider/leopard_rider_character.lua\000'
debug: Loading module '\000/characters/mage/mage_character.lua\000'
debug: Loading module '\000/characters/mage/magefire_character.lua\000'
debug: Loading module '\000/characters/minotaur/minotaur_character.lua\000'
debug: Loading module '\000/characters/minotaur/minotaur_movie1_character.lua\000'
debug: Loading module '\000/characters/minotaur/minotaur_movie2_character.lua\000'
debug: Loading module '\000/characters/minotaurcaptain/minotaurcaptain02_character.lua\000'
debug: Loading module '\000/characters/minotaurcaptain/minotaurcaptain03_character.lua\000'
debug: Loading module '\000/characters/minotaurcaptain/minotaurcaptain04_character.lua\000'
debug: Loading module '\000/characters/minotaurcaptain/minotaurcaptain_character.lua\000'
debug: Loading module '\000/characters/oak/oak_character.lua\000'
debug: Loading module '\000/characters/priest/priest_character.lua\000'
debug: Loading module '\000/characters/priest/priest_movie_character.lua\000'
debug: Loading module '\000/characters/queen/queen_character.lua\000'
debug: Loading module '\000/characters/queen/queen_open_character.lua\000'
debug: Loading module '\000/characters/queen/queen_open_movie_character.lua\000'
debug: Loading module '\000/characters/rook/rook_character.lua\000'
debug: Loading module '\000/characters/serpent/serpent_character.lua\000'
debug: Loading module '\000/characters/siegearcher/siegearcher02_character.lua\000'
debug: Loading module '\000/characters/siegearcher/siegearcher03_character.lua\000'
debug: Loading module '\000/characters/siegearcher/siegearcher04_character.lua\000'
debug: Loading module '\000/characters/siegearcher/siegearcher_character.lua\000'
debug: Loading module '\000/characters/sniper/sniper_character.lua\000'
debug: Loading module '\000/characters/sniper/sniperfury_character.lua\000'
debug: Loading module '\000/characters/spirit/spirit_character.lua\000'
debug: Loading module '\000/characters/trebuchet/hrooktreb_character.lua\000'
debug: Loading module '\000/characters/trebuchet/trebuchet_character.lua\000'
debug: Loading module '\000/characters/unclean_beast/unclean_beast_character.lua\000'
debug: Loading module '\000/characters/unclean_beast/unclean_beast_movie_character.lua\000'
debug: Loading module '\000/characters/vampire/vampire_character.lua\000'
debug: Loading module '\000/characters/vampire_lord/vampire_lord_character.lua\000'
debug: Loading module '\000/characters/waridol/waridol_character.lua\000'
debug: Loading module '\000/characters/whiptail/whiptail_character.lua\000'
debug: Loading module '\000/characters/yeti/yeti_character.lua\000'
info: Preloading resources.
debug: Loading module '\000/lua/common/preload.lua\000'
info: CVP::HandlePlayerDataUpdated
warning: Granny: FileReading (C:\work\forge\beta\code\src\libs\granny\granny_file_format.cpp(205): Magic value (0x0, 0x0, 0x0, 0x0) doesn't match any known file format)
warning: Granny: FileReading (C:\work\forge\beta\code\src\libs\granny\granny_file.cpp(484): File is not a Granny file)
End of quote

3,689 views 11 replies
Reply #1 Top

Strange our logs look kinda the same (mine's in this thread: http://forums.demigodthegame.com/340502 2nd post) yet I can add AIs but can't stay at the hosting screen for more than 10 seconds (or else it'll crash). This makes it impossible to play against anyone.

Reply #2 Top

Mmmh I ran some other tests and it seems that my bug looks like yours. It's not only adding AIs. When I close some slots or try to change the map, even when I click the "Ready" button the game crashes if I wait too much before doing one of these actions... 8C

Reply #4 Top

Well, the only similarity with mine (here) is the Realtek HD Audio drivers as far as I can see with a quick comparison... And we don't have the same drivers version.

Reply #5 Top

Oh wow, I didn't expect that...totally different configurations. Maybe programs running in the background?
I'm running:

-Windows Live Messenger
-Daemontools
-Lightscribe Control Panel
-Checkmail
-Asus live update
-Direct Console

Even though I tried to disable all of them and Demigod still crashed, it might help a little.

I'll try to reinstall Demigod now, that might help.

Reply #6 Top

Sorry for the double post, I think I figured it out, it's not because configurations or background programs, but connection problems.

I'm using another connection now (linksys router, no ports opened or anything), no crash yet.
The other router was an SMC (I don't recall it's name, I'll check once I'm back there) without opened ports as well.

Be sure to check your opened ports (6073 is a must I think and some others as well, a dev could help in this).
I hope this can fix your problems as well. :)

Reply #7 Top

Well I'll try this when I go home but Impulse wasn't supposed to solve all connectivity problems? :grin:

Reply #8 Top

Well it didn't help. The first time I could stay a little longer in my game lobby, adding AIs, change map and so on. But it crashed when loading the game. The second the game crashed in the lobby as usual... :'(

Reply #9 Top

That's not too good :( but now that you mention it they did say no port forwarding is required with impulse...hopefully the devs can identify the problem with the log.

The other thing you could try (if you haven't tried it already) is to verify your install of demigod in impulse (right click the demigod icon in impulse, it'll be on the list), hope you'll be able to join multiplayer games soon!

Reply #10 Top

Try deleting all the caches files from this directory:

C:\Documents and Settings\USER\Local Settings\Application Data\Gas Powered Games\Demigod\cache\resources

(Replace USER with your appropriate user account)

Reply #11 Top

That's great! It works. Thanks for your support EpicBarrelRoll! :D