dkfans / keeperfx

Open source remake and Fan Expansion of Dungeon Keeper.
https://keeperfx.net/
GNU General Public License v2.0
742 stars 76 forks source link

Network disconnect: Assertion failed error #724

Open TimoBos opened 8 years ago

TimoBos commented 8 years ago

Tried a multiplayer game with one friend without any computers, at one point it crashed and computer player took over. See attached image for the error my friend got on his screen. dungeon keeper error

This is my friend's log:

Sync: play_sample_using_heap: Can't start playing sample 172 Sync: Created menu ID 5 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Net: receive_resync_game: Initiating re-synchronization of network game Net: LbNetwork_Resync: Starting Net: Failure to read from socket: 1460 Net: Connection error with user 0 <host_name> Net: Quitting after connection loss Net: LbNetwork_Resync: Bad reception of resync message Sync: Created menu ID 1 at slot 0, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Sync: set_creature_assigned_job: Assigned job NULL for creature IMP index 360 owner 0 Net: Bad peer ID on index 1 Error: Failure code 80000003 received. in msvcrt.dll at 0023:766167c4, base 765b0000 in keeperfx.exe at 0023:004388a7, base 00400000 in keeperfx.exe at 0023:004498bb, base 00400000 in keeperfx.exe at 0023:00407211, base 00400000 in keeperfx.exe at 0023:0040870f, base 00400000 in keeperfx.exe at 0023:00409b5c, base 00400000 in keeperfx.exe at 0023:0040a610, base 00400000 in keeperfx.exe at 0023:0040a83d, base 00400000 in keeperfx.exe at 0023:00401413, base 00400000 in keeperfx.exe at 0023:004015a5, base 00400000 in ntdll.dll at 0023:76f09882, base 76ed0000 in ntdll.dll at 0023:76f09855, base 76ed0000

And this is my log (the host):

Sync: play_sample_using_heap: Can't start playing sample 172 Net: send_resync_game: Initiating re-synchronization of network game Net: LbNetwork_Resync: Starting Sync: Created menu ID 1 at slot 0, pos (0,0) size (219,625) Sync: Created menu ID 5 at slot 1, pos (0,0) size (219,625) Net: Failure to read from socket: 0 Net: Connection error with user 1 <client_name> Error: find_peer_socket: No user with ID 1 Error: find_peer_socket: No user with ID 1 Error: find_peer_socket: No user with ID 2 Error: find_peer_socket: No user with ID 2 Error: find_peer_socket: No user with ID 3 Error: find_peer_socket: No user with ID 3 Sync: set_creature_assigned_job: Assigned job NULL for creature SORCEROR index 59 owner 0 Sync: set_creature_assigned_job: Assigned job NULL for creature IMP index 594 owner 0 Sync: set_creature_assigned_job: Assigned job NULL for creature IMP index 487 owner 1 Sync: set_creature_assigned_job: Assigned job NULL for creature IMP index 94 owner 1 Sync: set_creature_assigned_job: Assigned job NULL for creature IMP index 669 owner 1 Sync: set_creature_assigned_job: Assigned job NULL for creature IMP index 607 owner 1 Warning: tool_dig_to_pos2_f: computer_setup_dig_to_gold: Player 0 ComputerDig calls count (356) exceeds limit Sync: Created menu ID 7 at slot 1, pos (0,0) size (219,625) Sync: set_creature_assigned_job: Assigned job NULL for creature IMP index 410 owner 1 Sync: set_creature_assigned_job: Assigned job NULL for creature IMP index 463 owner 1 Sync: set_creature_assigned_job: Assigned job NULL for creature IMP index 130 owner 1 Sync: set_creature_assigned_job: Assigned job NULL for creature IMP index 807 owner 1 Sync: set_creature_assigned_job: Assigned job NULL for creature SORCEROR index 59 owner 0 Sync: set_creature_assigned_job: Assigned job TRAIN for creature SORCEROR index 59 owner 0 Sync: set_creature_assigned_job: Assigned job NULL for creature SORCEROR index 755 owner 0 Sync: set_creature_assigned_job: Assigned job NULL for creature SORCEROR index 593 owner 0 Sync: set_creature_assigned_job: Assigned job TRAIN for creature SORCEROR index 593 owner 0 Sync: set_creature_assigned_job: Assigned job NULL for creature SPIDER index 877 owner 0 Sync: set_creature_assigned_job: Assigned job TRAIN for creature SPIDER index 877 owner 0 Error: LbScreenSwap: Blit failed: DirectDrawSurface3::Lock: Surface was lost Error: LbScreenSwap: Blit failed: DirectDrawSurface3::Lock: Surface was los

JulianSalomon commented 7 years ago

No solution?

Loobinex commented 7 years ago

No, the game is just fundamentally unstable in multiplayer.

Here somebody mentions that he mentions that he has been able to get the game to run without crashes over LAN by taking out all lightning/drain spells/traps and updating the SDL libraries. You could try that.

atarr1337 commented 1 year ago

Hello guys

first of all, appraciate your effort of making multiplayer option available at all.

I tried to stream 1x1 on twitch recently with my mate and we did manage to go for several minutes of a battle, but the game crashes after a while.

Please see the log :

Dungeon Keeper FX ver 0.4.9.2762 (standard release) git:436f22a6d LOG CREATED @ 18:56:47 10-09-2022

Net: Initializing sessions from command line: :5555 Sync: LbMouseChangeMoveRatio: New ratio 256x256 Sync: CPU GenuineIntel type 0 family 6 model 167 stepping 1 features bfebfbff Sync: 11th Gen Intel(R) Core(TM) i5-11400F @ 2.60GHz Sync: Operating System: Windows NT 10.0.19044 Sync: PhysicalMemory 32 Sync: Memory-demanding features enabled. Sync: LbScreenSetup: Mode 640x480x32 setup succeeded Sync: Moon phase -0.1243 LbDataFree: freeing "PALETTE"...done LbDataFree: freeing "SCRATCH"...done Sync: LbMouseChangeMoveRatio: New ratio 96x96 Sync: GraphicsHeap Size 8388608 Sync: SoundHeap Size 8388608 Sync: init_sound_heap_two_banks: Got sound buffer of 8351456 bytes, samples in banks: 1035,126 Loaded 144 object types Loaded 144 object types Sync: Pentium Pro polygon rendering on Sync: setup_game: Speech recognition disabled: KeeperSpeech module not found Warning: Couldn't load Map Pack "legacy.cfg", no .LIF files could be found. Warning: Couldn't load Map Pack "personal.cfg", no .LIF files could be found. LbDataFree: freeing "data/pointer64.dat"...done LbDataFree: freeing "data/pointer64.tab"...done Sync: LbScreenSetup: Mode 640x480x32 setup succeeded Sync: LbMouseChangeMoveRatio: New ratio 192x192 Sync: get_startup_menu_state: Standard startup state selected Sync: Frontend state change from 0 into 1 Sync: Created menu ID 18 at slot 0, pos (0,0) size (640,480) Sync: Frontend state change from 1 into 4 Sync: Created menu ID 20 at slot 0, pos (0,0) size (640,480) Net: Enumerate Services called Sync: Initializing 4-players type 3 network Net: Selecting TCP/IP SP Sync: Frontend state change from 4 into 5 Sync: Created menu ID 21 at slot 0, pos (0,0) size (640,480) Net: Logging in as hujof Sync: Frontend state change from 5 into 6 Sync: Created menu ID 22 at slot 0, pos (0,0) size (640,480) Sync: Frontend state change from 6 into 24 Net: New players are NOT allowed to join Sync: frontnetmap_input: Selected level 52 with description "Poziom 52" LbDataFree: freeing "ldata/netflag_ens.dat"...done LbDataFree: freeing "ldata/netflag_ens.tab"...done LbDataFree: freeing "ldata/netfont.dat"...done LbDataFree: freeing "ldata/netfont.tab"...done LbDataFree: freeing "ldata/maphand.dat"...done LbDataFree: freeing "ldata/maphand.tab"...done Sync: Frontend state change from 24 into 8 Sync: Frontend state change from 8 into 0 LbDataFree: freeing "data/gui1-32.dat"...done LbDataFree: freeing "data/gui1-32.tab"...done LbDataFree: freeing "ldata/frontft1.dat"...done LbDataFree: freeing "ldata/frontft1.tab"...done LbDataFree: freeing "ldata/frontft2.dat"...done LbDataFree: freeing "ldata/frontft2.tab"...done LbDataFree: freeing "ldata/frontft3.dat"...done LbDataFree: freeing "ldata/frontft3.tab"...done LbDataFree: freeing "ldata/frontft4.dat"...done LbDataFree: freeing "ldata/frontft4.tab"...done LbDataFree: freeing "*FE_BACKUP_PAL"...done Sync: LbScreenSetup: Mode 1920x1080x32 setup succeeded Sync: LbMouseChangeMoveRatio: New ratio 576x576 Sync: GraphicsHeap Size 8388608 Sync: reenter_video_mode: Switched video to 1920x1080x32 (mode 29) Found 10 sprite zip file(s), loaded 10 with animations and 0 with icons. Found 0 sprite zip file(s), loaded 0 with animations and 0 with icons. Loaded 144 object types Loaded 144 object types Sync: Optional file "map00052.flg" doesn't exist or is too small. Warning: Texture file "./data/tmapa013.dat" doesn't exist. Warning: Texture file "./data/tmapa014.dat" doesn't exist. Sync: Optional file "map00052.wlb" doesn't exist or is too small. Sync: Regenerated WLB flags, unsure for 0 bridge blocks. Sync: Created menu ID 1 at slot 0, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Net: perform_checksum_verification: Checksums are verified No model defined for Player 1, assigned computer model 13 load_script: Used script resources: 0/256 tunneller triggers, 0/256 party triggers, 0/256 script values, 2/255 IF conditions, 0/256 party definitions Error: checksums_different: Checksums 00000075(0) != 00000046(1) turn: 17 Net: receive_resync_game: Initiating re-synchronization of network game Net: LbNetwork_Resync: Starting Warning: Texture file "./data/tmapa013.dat" doesn't exist. Warning: Texture file "./data/tmapa014.dat" doesn't exist. Sync: Created menu ID 1 at slot 0, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 4 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Warning: process_dungeon_control_packet_sell_operation: Nothing to do for player 0 request Warning: process_dungeon_control_packet_sell_operation: Nothing to do for player 0 request Warning: process_dungeon_control_packet_sell_operation: Nothing to do for player 0 request Warning: player_build_room_at: Player 0 tried to build RESEARCH on a forbidden subtile (91,37) Sync: Created menu ID 5 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 5 at slot 1, pos (0,0) size (376,1075) Sync: play_sample_using_heap: Can't start playing sample 546 Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Warning: check_food_on_subtile_for_reposition_in_room: The GARDEN capacity 12 exceeded; space used is 12 Sync: Created menu ID 5 at slot 1, pos (0,0) size (376,1075) Sync: play_sample_using_heap: Can't start playing sample 546 Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Warning: check_food_on_subtile_for_reposition_in_room: The GARDEN capacity 11 exceeded; space used is 11 Warning: check_food_on_subtile_for_reposition_in_room: The GARDEN capacity 10 exceeded; space used is 10 Sync: Created menu ID 5 at slot 1, pos (0,0) size (376,1075) Sync: play_sample_using_heap: Can't start playing sample 513 Sync: play_sample_using_heap: Can't start playing sample 547 Sync: play_sample_using_heap: Can't start playing sample 546 Warning: magic_use_power_on_thing: Player 0 tried to cast POWER_SLAP on non-existing thing Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Warning: magic_use_power_on_subtile: Player 1 tried to cast POWER_IMP on a subtile which can't be targeted Sync: Created menu ID 5 at slot 1, pos (0,0) size (376,1075) Sync: play_sample_using_heap: Can't start playing sample 547 Warning: player_build_room_at: Player 0 tried to build LAIR on a forbidden subtile (58,49) Warning: player_build_room_at: Player 0 tried to build LAIR on a forbidden subtile (58,52) Warning: player_build_room_at: Player 0 tried to build LAIR on a forbidden subtile (55,52) Sync: play_sample_using_heap: Can't start playing sample 513 Sync: play_sample_using_heap: Can't start playing sample 539 Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Warning: player_build_room_at: Player 1 tried to build TREASURE on a forbidden subtile (43,196) Warning: setup_eye_lens: Can't setup lens - not initialized Warning: setup_eye_lens: Can't setup lens - not initialized Sync: play_sample_using_heap: Can't start playing sample 177 Sync: Created menu ID 5 at slot 1, pos (0,0) size (376,1075) Warning: magic_use_power_on_subtile: Player 0 tried to cast POWER_IMP on a subtile which can't be targeted Warning: magic_use_power_on_subtile: Player 0 tried to cast POWER_IMP on a subtile which can't be targeted Warning: magic_use_power_on_subtile: Player 0 tried to cast POWER_IMP on a subtile which can't be targeted Sync: play_sample_using_heap: Can't start playing sample 461 Sync: play_sample_using_heap: Can't start playing sample 539 Sync: play_sample_using_heap: Can't start playing sample 539 Sync: play_sample_using_heap: Can't start playing sample 547 Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 5 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 4 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Warning: setup_eye_lens: Can't setup lens - not initialized Warning: setup_eye_lens: Can't setup lens - not initialized Sync: play_sample_using_heap: Can't start playing sample 177 Warning: setup_eye_lens: Can't setup lens - not initialized Warning: setup_eye_lens: Can't setup lens - not initialized Sync: play_sample_using_heap: Can't start playing sample 177 Sync: play_sample_using_heap: Can't start playing sample 539 Sync: Created menu ID 7 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Error: process_creature_in_training_room: Cannot get to (221,164) in the training room Sync: Created menu ID 5 at slot 1, pos (0,0) size (376,1075) Sync: play_sample_using_heap: Can't start playing sample 512 Sync: play_sample_using_heap: Can't start playing sample 513 Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 5 at slot 1, pos (0,0) size (376,1075) Sync: play_sample_using_heap: Can't start playing sample 512 Sync: play_sample_using_heap: Can't start playing sample 547 Sync: Created menu ID 7 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: play_sample_using_heap: Can't start playing sample 539 Sync: play_sample_using_heap: Can't start playing sample 539 Sync: play_sample_using_heap: Can't start playing sample 539 Sync: Created menu ID 5 at slot 1, pos (0,0) size (376,1075) Sync: play_sample_using_heap: Can't start playing sample 505 Sync: play_sample_using_heap: Can't start playing sample 505 Sync: play_sample_using_heap: Can't start playing sample 546 Sync: play_sample_using_heap: Can't start playing sample 539 Sync: play_sample_using_heap: Can't start playing sample 547 Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Sync: play_sample_using_heap: Can't start playing sample 539 Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Sync: play_sample_using_heap: Can't start playing sample 539 Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: play_sample_using_heap: Can't start playing sample 539 Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Warning: get_creature_state_type_f: get_self_spell_casting: The creature IMP index 610 owner 0 continue state 0 is out of range; active state CrtrPicksUpSpellObject Warning: get_creature_state_type_f: update_creature_count: The creature IMP index 610 owner 0 continue state 0 is out of range; active state CrtrPicksUpSpellObject Warning: get_creature_state_type_f: get_creature_gui_job: The creature IMP index 610 owner 0 continue state 0 is out of range; active state CrtrPicksUpSpellObject Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Warning: setup_eye_lens: Can't setup lens - not initialized Warning: setup_eye_lens: Can't setup lens - not initialized Sync: play_sample_using_heap: Can't start playing sample 177 Sync: Created menu ID 5 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: play_sample_using_heap: Can't start playing sample 461 Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 5 at slot 1, pos (0,0) size (376,1075) Sync: play_sample_using_heap: Can't start playing sample 513 Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 4 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Warning: player_build_room_at: Player 0 tried to build TORTURE on a forbidden subtile (175,37) Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 17 at slot 2, pos (879,358) size (538,312) Warning: magic_use_power_on_subtile: Player 0 tried to cast POWER_IMP on a subtile which can't be targeted Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: play_sample_using_heap: Can't start playing sample 539 Sync: play_sample_using_heap: Can't start playing sample 539 Sync: play_sample_using_heap: Can't start playing sample 539 Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Warning: setup_eye_lens: Can't setup lens - not initialized Sync: Created menu ID 5 at slot 1, pos (0,0) size (376,1075) Warning: setup_eye_lens: Can't setup lens - not initialized Sync: play_sample_using_heap: Can't start playing sample 177 Error: checksums_different: Checksums 00000097(0) != 00000033(1) turn: 19878 Net: receive_resync_game: Initiating re-synchronization of network game Net: LbNetwork_Resync: Starting Warning: Texture file "./data/tmapa013.dat" doesn't exist. Warning: Texture file "./data/tmapa014.dat" doesn't exist. Sync: Created menu ID 1 at slot 0, pos (0,0) size (376,1075) Sync: Created menu ID 5 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Error: get_dungeon_f: move_object: Tried to get non-existing dungeon 5! Warning: magic_use_power_on_subtile: Player 0 tried to cast POWER_LIGHTNING on a subtile which can't be targeted Sync: Created menu ID 4 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 5 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 4 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 7 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Warning: get_creature_state_type_f: get_self_spell_casting: The creature IMP index 779 active state 0 is out of range Warning: get_creature_state_type_f: update_creature_count: The creature IMP index 779 active state 0 is out of range Warning: get_creature_state_type_f: get_creature_gui_job: The creature IMP index 779 active state 0 is out of range Error: process_creature_state: The creature IMP index 779 has illegal state[1], S=0, TCS=0, reset Sync: Created menu ID 5 at slot 1, pos (0,0) size (376,1075) Sync: Created menu ID 3 at slot 1, pos (0,0) size (376,1075) Warning: setup_eye_lens: Can't setup lens - not initialized LbDataFree: freeing "data/swipe06.dat"...done LbDataFree: freeing "data/swipe06.tab"...done Sync: Created menu ID 31 at slot 2, pos (0,0) size (376,1075) Warning: setup_eye_lens: Can't setup lens - not initialized Sync: play_sample_using_heap: Can't start playing sample 177 Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Error: checksums_different: Checksums 000000fa(0) != 00000026(1) turn: 22795 Net: receive_resync_game: Initiating re-synchronization of network game Net: LbNetwork_Resync: Starting Net: Failure to read from socket: 17520 Net: Connection error with user 0 Keeperek Net: Quitting after connection loss Net: LbNetwork_Resync: Bad reception of resync message Warning: Texture file "./data/tmapa013.dat" doesn't exist. Warning: Texture file "./data/tmapa014.dat" doesn't exist. Sync: Created menu ID 1 at slot 0, pos (0,0) size (376,1075) Sync: Created menu ID 2 at slot 1, pos (0,0) size (376,1075) Net: Bad peer ID on index 1 === Crash ===

We are hoping that this can be fixed somehow ! thanks and good luck !

Loobinex commented 1 year ago

@atarr1337 Seems to me, see the last 6 lines of your log, that network interrupted first and then the game only crashed after it failed to reconnect. Would that be possible? Do you have a link to the vods so we could see what was going on at the time?

atarr1337 commented 1 year ago

Hello @Loobinex Sorry for late reply. Well it happened lots of time during the play so we actually stopped. That time i remember i was using the eye spell, but it happened many times so i am not sure if that actually helps a lot.

Unfortunately i didnt published that on twitch and it expired, but i would love to publish it in future if a full game will be playable.

Your effort is much appraciated!

Edit: Both of players were connected to 300mb internet via ethernet.