.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Programming
General Programming Help others and get yourself helped here!

Reply
 
Thread Tools
pfnRunPlayerMove - why it may crash?
Old
  (#1)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default pfnRunPlayerMove - why it may crash? - 29-03-2006

I found few custom CS maps podbot mm and epodbot are crashing on them. The crash happens at respawn and only if few bots are spawned in the same (or some short time). I was trying with different spawn points (using CSDM) and I'm getting the same crash. My M$ VC++2005 Express debugger shows me the line in bot.cpp which contains the call for the function g_engfuncs.pfnRunPlayerMove. Because I don't have any cpp with the code of this function in HLSDK (I have only headers .h) I don't know what might causing the crash - and - what I need to check in bot.cpp before calling that function.
Anyone can help with this?
  
Reply With Quote
Re: pfnRunPlayerMove - why it may crash?
Old
  (#2)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 453
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: pfnRunPlayerMove - why it may crash? - 29-03-2006

First g_engfuncs.pfnRunPlayerMove is a engine function, not SDK... I don't think the crash is in this function, it's not crash even the passed edict pointer is NULL (tested myself).

Can you give one link to one of this maps ?
  
Reply With Quote
Re: pfnRunPlayerMove - why it may crash?
Old
  (#3)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: pfnRunPlayerMove - why it may crash? - 30-03-2006

http://www.scoutzknivezworld.com/mod...op=getit&lid=1

http://www.scoutzknivezworld.com/mod...op=getit&lid=5

My M$ Visual C++ 2005 Express showed that line with exactly that function as the cause of the crash. I've got the info from T(+)rget (AMX) - he told me he experienced a lot of crashes without any reason when he was working on his WeaponMod and he was spawning the weapon above the player (still no idea why it was crashing, but he changed the place of spawning weapons). These maps I gave the link have their-own weapons (You can't buy anything there). Maybe it's the same problem, but why these maps don't crash with human-players (>because they don't call pfnRunPlayerMove< ) ?
  
Reply With Quote
Re: pfnRunPlayerMove - why it may crash?
Old
  (#4)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 453
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: pfnRunPlayerMove - why it may crash? - 30-03-2006

Well, error is not in your code, and 100% not in RunPlayerMove (), problem is in mp.dll. Here the Call Stack Screenshot from the Steam minidump (screenshot from SafeMode since my OS crashes, when i'm openining dumps in normal mode). I've tested this maps with PODBot mm, Nicebot and my bot, and everytime game crashes...

P.S.
CS1.3/1.5 working Ok!, Probably error occurs, with partially disabled Official CSBot....
Attached Thumbnails
Click image for larger version

Name:	screen2.jpg
Views:	546
Size:	28.7 KB
ID:	853  
  
Reply With Quote
Re: pfnRunPlayerMove - why it may crash?
Old
  (#5)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: pfnRunPlayerMove - why it may crash? - 04-04-2006

Well - this map crashes with CS1.6 when the bot is loaded as mm plugin. If it's loaded as standalone dll - it doesn't crash with CS1.6. Tested with e[pod]bot once loaded as mm plugin, second time loaded as standalone dll (so - I mean - the same bot code).
Another thing is this - the game crashes perfectly everytime when the bots are spawned together (at round start) and on listenserver (when loaded as mm plugin) - tested with 8-16 bots and it crashes on LS everytime (100%). But the same map, the same bot dll still loaded as mm plugin - on dedicated server it crashes only ocasionally (doesn't happen 100% every round start). Who may say something which might be arbitrary to answer - where the problem really is? I got confused by it...

Last edited by KWo; 04-04-2006 at 20:26..
  
Reply With Quote
Re: pfnRunPlayerMove - why it may crash?
Old
  (#6)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 453
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: pfnRunPlayerMove - why it may crash? - 06-04-2006

I've tested epod too, and it's crashes everytime, doesn't matter loaded as standalone dll or as a metamod plugin.

As i say before, it seems that problem not with bot code. Just as experiment, start server, set developer level 2, and add 16 epods. Game crashed, but last message i saw, was something abouit player_weaponstrip, then i've download BSPEdit, and edit .bsp, and remove this
Quote:
{
"origin" "432 -56 -128"
"targetname" "strip"
"classname" "player_weaponstrip"
}
I'm save the map, and create server, and add 16 epods, game working withour problems. So i this it's some kind of conflict with player_weaponstrip entity (i don't know why, because i tested ka_matrix (has this entity too), and game working perfectly.
  
Reply With Quote
Re: pfnRunPlayerMove - why it may crash?
Old
  (#7)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: pfnRunPlayerMove - why it may crash? - 08-04-2006

Well - How are You finding that player_weapon_strip which is causing the problem? I mean - what do You need to run on Your PC to get such info in Your logs? And how did You find it's exactly that entity You removed - it's that one causing the problem? I mean - if there was more such called entities how did You find it's exactly that one needs to be removed?
I also believe there might be no need to remove that entity at all, but only move it somewhere else (for example a bit down or so). If that weapon is responsible to remove the player's start weapon (glock18 or usp), I don't want to have some player still having such weapon, but everyone else on that map without it. I'm asking, because I don't want to bother You too much with other maps I also have with the same problem (scoutzknivez_winter, aaaaiiiimmmm) and I want to fix these maps to get them working correctly.
  
Reply With Quote
Re: pfnRunPlayerMove - why it may crash?
Old
  (#8)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 453
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: pfnRunPlayerMove - why it may crash? - 08-04-2006

I'm simply before start listenserver, open console, and set developer 2, than start map. While map loading i switched to VS8 IDE, and attach to cstrike.exe process... (Attach at map load, since cs, crashes, if attaching on process start). Now all contents of consoile are displayed in Output Debugger Window. So when the game crashed, last message that was shown is Found: player_weaponstrip, firing (strip), so i decided that problem is with this entity, also map has only one entity of this class, so there was no problem with selecting right entity to remove . Also changing this entity origin, does not give any results, game crashes as always. Also there is no different beetwen map with this entity or without this entity, secondary weapons is stripped anyway.

And here's a last lines of output window of debugger i saw:
Quote:
Firing: (game_playerjoin)
Firing: (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Firing: (strip)
Found: player_weaponstrip, firing (strip)
No one can buy!!
Firing: (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Firing: (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Firing: (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Firing: (strip)
Found: player_weaponstrip, firing (strip)
Firing: (strip)
Found: player_weaponstrip, firing (strip)
Firing: (strip)
Found: player_weaponstrip, firing (strip)
Firing: (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Found: multi_manager, firing (game_playerspawn)
Firing: (strip)
Found: player_weaponstrip, firing (strip)
First-chance exception at 0x00000000 in cstrike.exe: 0xC0000005: Access violation reading location 0x00000000.
'cstrike.exe': Loaded 'C:\WINDOWS\system32\dbghelp.dll', No symbols loaded.
'cstrike.exe': Loaded 'C:\WINDOWS\system32\psapi.dll', No symbols loaded.
'cstrike.exe': Unloaded 'C:\WINDOWS\system32\psapi.dll'
First-chance exception at 0x7c81eb33 in cstrike.exe: Microsoft C++ exception: common::CConvertedWin32StructuredException at memory location 0x0012f1d0..
First-chance exception at 0x7c910806 in cstrike.exe: 0xC0000005: Access violation reading location 0x00370032.
'cstrike.exe': Unloaded 'C:\WINDOWS\system32\wshtcpip.dll'
'cstrike.exe': Unloaded 'C:\WINDOWS\system32\hnetcfg.dll'
'cstrike.exe': Unloaded 'C:\WINDOWS\system32\winrnr.dll'
The thread 'Win32 Thread' (0x4e4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x60 has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x25c) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x684) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x630) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x4e0) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x260) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x50 has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x2d4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x2c0) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1a4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x44c) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x384) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x580) has exited with code 0 (0x0).
(as usual, sorr for my english)
  
Reply With Quote
Re: pfnRunPlayerMove - why it may crash?
Old
  (#9)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: pfnRunPlayerMove - why it may crash? - 08-04-2006

Thanks for the info. Did You try if that map still works the same way with CS1.5? I mean about that stripping - maybe old HL needs that entity?
Another thing is this - actually I have 4 maps using that entity. 3 of them are crashing. The map not crashing is he_glass. I have no idea why that one is working (even with 31 bots and me), but the rest (3 of 4) are crashing. What might be wrong with that entity?
  
Reply With Quote
Re: pfnRunPlayerMove - why it may crash?
Old
  (#10)
DrEvil
Member
 
DrEvil's Avatar
 
Status: Offline
Posts: 142
Join Date: Jan 2004
Location: Los Angeles, CA
Default Re: pfnRunPlayerMove - why it may crash? - 09-04-2006

Clearly a null pointer somewhere.

First-chance exception at 0x00000000 in cstrike.exe: 0xC0000005: Access violation reading location 0x00000000.


Omni-bot AI framework
http://www.omni-bot.com

Foxbot - for Team Fortress Classic
http://www.foxbot.net


  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com