.:: 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 > SDK Programming discussions > Half-Life 1 SDK
Half-Life 1 SDK For developments focused around Half-Life (and its mods) Half-Life

Reply
 
Thread Tools
Debug mm dll on CZ client
Old
  (#1)
Austin
Moderator
 
Austin's Avatar
 
Status: Offline
Posts: 403
Join Date: Nov 2003
Default Debug mm dll on CZ client - 20-02-2005

Ok I am trying to debug a mm plugin for CZ using .NET 2003.
I have everything setup for debugging and it runs fine under the debugger but break points don't work. The ide gives me this message when I hold the mouse pointer over the red breakpoint with a ? in it. "the breakpoint will not currently be hit. No executible code is currently at this location."

The breaks points ARE on executible code, and this code IS being called once I am in the game.

My setting for the debugger is.

Command:
C:\CS\Steam\Steam.exe

Command Arguments:
-applaunch 80 -game "czero" +map de_dust2_cz +maxplayers 32

Working Directory:
C:\CS\Steam\

Attach:
No

The build is a debug build. Any ideas why this isn't working???
  
Reply With Quote
Re: Debug mm dll on CZ client
Old
  (#2)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Debug mm dll on CZ client - 20-02-2005

i have no clue, but a little guess would be to use -allowdebug. As with HL2 it allows you to run a debugged version then. *PERHAPS* it will do some magic for you then.

If that does not work, i'm afraid the story that you cannot debug on STEAM is true... (i never debugged on STEAM btw, i used trial and error )


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Debug mm dll on CZ client
Old
  (#3)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Debug mm dll on CZ client - 20-02-2005

ditto... I never managed to make any Debug build run properly on HL1/Steam

Perhaps it would work on dedicated servers, but one thing's for sure, not on listen servers.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Debug mm dll on CZ client
Old
  (#4)
link2002
Member
 
Status: Offline
Posts: 2
Join Date: Mar 2004
Default Re: Debug mm dll on CZ client - 22-02-2005



http://articles.thewavelength.net/382/
  
Reply With Quote
Re: Debug mm dll on CZ client
Old
  (#5)
Austin
Moderator
 
Austin's Avatar
 
Status: Offline
Posts: 403
Join Date: Nov 2003
Default Re: Debug mm dll on CZ client - 22-02-2005

Quote:
Originally Posted by link2002
Thanks for the link.
Have you actually used this to successfully setup a client cz debug session?
The article has some vague and missing information.

1) it says to:
Place your mod in the directory of the program you launched in step 2 (i.e c:\program files\steam\steamapps\<email addr>\Half-Life)

Well the mod is cz. should I copy the entire ..\condition zero folder into the
steamapps\<email addr>\Half-Life folder?

is the mod directory ..\condition zero\czero
or \condition zero ????

I tried copying both directories and still get a message box when I try to startup hl.exe
with these parameters.
C:\CS\Steam\SteamApps\<user>\half-life\hl.exe -Steam -applaunch 80 -game "czero" +map de_dust2_cz +maxplayers 32

hl.exe tells me:
Files: Src\EngineClientManager.cpp
Line 1361

nRet > 0

an exception is thrown after this dialog is canceled and the jit show hl.exe calling Steam.dll and about 7 calls down it forces an int3.

I also tried setting up th eSteamApp.cfg in the condition zero folder but still get the same error.

Some other things:
The article says to use 70 for the SteamAppId.
Is this valid for cz?

Well thanks for the info but I still can't get it to work.
  
Reply With Quote
Re: Debug mm dll on CZ client
Old
  (#6)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Debug mm dll on CZ client - 22-02-2005

I tried the method described in this article but it doesn't seem to work either. The debugger attaches correctly, but just when the world is spawned and the game is about to start, something exits with error code 1 and the whole thing gets on the knees.

@Austin: the mod is CZ, but with Steam, each Steam game has its own copy of the HL engine. You do not need to worry about copying the czero folder. The only thing is that you must change the Steam app number, because here it's not a mod running on the HL engine used for Half-Life (Steam app ID 70) but the default mod (czero) running on the HL engine used for Condition Zero (hence Steam app ID = 80)

You can get the Steam app ID of any Steam app by right-clicking on it in the Steam games list and choosing "create a shortcut on the desktop" and then look at the shortcut's parameters.

However I've set up everything like said, but I can't seem to get the thing running. It attaches, starts a game and then breaks. I'm pretty sure it's not a IsDebuggerPresent() check, because it would have crashed much earlier.

*edit*

for those who are interested, my SteamApps.cfg says this (for CZ):
Quote:
SteamAppId=80
SteamAppVersionId=0
SteamInstallPath=D:\Steam
SteamAppUser=pm@racc-ai.com



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."

Last edited by Pierre-Marie Baty; 22-02-2005 at 18:39..
  
Reply With Quote
Re: Debug mm dll on CZ client
Old
  (#7)
Austin
Moderator
 
Austin's Avatar
 
Status: Offline
Posts: 403
Join Date: Nov 2003
Default Re: Debug mm dll on CZ client - 24-02-2005

Quote:
Originally Posted by Pierre-Marie Baty
You can get the Steam app ID of any Steam app by right-clicking on it in the Steam games list and choosing "create a shortcut on the desktop" and then look at the shortcut's parameters.
Thanks PM, I missed that!

I found a little more info here:
http://articles.thewavelength.net/650/

tried everything, still no joy....
  
Reply With Quote
Reply


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

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