I'm trying to resurrect the Jetski from the HL2 Beta. I found the serverside
file still shipping with Ep2's Mod code so I figured I'd give it a shot. I
got the code to compile, but now it crashes the map if I start with a
prop_vehicle_jetski in it. (Added a FGD entry based off the Airboat, uses
Not having it client-side produces an error, not a crash though.What's wrong
with crashing while it loads? Debugging should work regardless of the
game-state :S
On Sun, Jul 19, 2009 at 6:59 PM, Matt Hoffman
lord.matt.hoff...@gmail.comwrote:
I'm trying to resurrect the Jetski from the HL2 Beta.
I guess maybe the question was of how to debug it. Build it in Debug Config,
and then put a breakpoint...where? Or just wait until it crashes and then
step through?
/me is new to debugging something this big.
On Sun, Jul 19, 2009 at 10:04 AM, Alexander Hirsch 1ze...@googlemail.comwrote:
Not
It crashes at
m_pVehicle-Update( gpGlobals-frametime, m_controls);
in fourwheelvehiclephysics.cpp, with the error: Unhandled exception at
0x0e60f730 in hl2.exe: 0xC005: Access violation reading location
0x.
However, I'm not sure/can't find what is actually crashing. If I look under
Whatever line it is pointing at, that line contains an access to a
NULL-pointer (Access violation reading location 0x).I have too
little information to find out how to fix that.
That CXX0030-error could just be because of insufficient debug-information
and code-optimazations.
On Sun, Jul
How do I find which part of that line points to a NULL-pointer?
On Sun, Jul 19, 2009 at 11:23 AM, Alexander Hirsch 1ze...@googlemail.comwrote:
Whatever line it is pointing at, that line contains an access to a
NULL-pointer (Access violation reading location 0x).I have too
little
Ehm the pointer itself would be the null pointer?
So m_pVehicle is a NULL pointer, not enough to know when or how the
pointer should get something to point to though.
Matt Hoffman wrote:
How do I find which part of that line points to a NULL-pointer?
On Sun, Jul 19, 2009 at 11:23 AM,
I mean, I know which line the code is breaking on. How do I find out which
part of the line (m_pVehicles, or the Update, or gpGlobals, or Frametime or
m_Controls, etc) is causing the problem? Or is it caused by the entire line?
Or is there not enough information provided by the engine/crash to
You can see the values the variables are holding on that line. Use that to
figure out which is bonkers.
On Sun, Jul 19, 2009 at 3:01 PM, botman botman.hlcod...@gmail.com wrote:
Maybe this will help...
http://msdn.microsoft.com/en-us/library/k0k771bt%28VS.71%29.aspx
From your questions, it
You are correct on the C++ statement Bot. However, I'm not entirely new to
it, no.
Anyways, I set a breakpoint on my Jetski's Think function. This gets called
when the level is loaded. I go into the BaseClass::Think() function, which
takes me into vehicle_base.cpp's Think. Then we go back to
10 matches
Mail list logo