Talk:SDK Known Issues List: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
 
(54 intermediate revisions by 14 users not shown)
Line 1: Line 1:
== Needs a cleanup pass ==
The SLAM patch didn't work - I think you might've left out a file you needed to patch or something, so I rewrote it a bit - thanks for the idea though.


This page needs some serious cleanup and formatting for organization. It's too difficult to find and read the issues. Maybe there should each issue should have a section head so the table of contents gets made? Right now it's just one huge section. I'll do it if no one has any objections. --[[User:IanL|IanL]] 16:54, 20 Jul 2005 (PDT)


:A table of contents at the top with #anchor tags would be great - not sure how to do so in wiki though. [[User:Bloodykenny|Bloodykenny]] 17:07, 20 Jul 2005 (PDT)


::A TOC with anchors appears automatically if you make enough section headings (more than 2?). The huge section tag around the top title should be reduced, and small section heads placed throughout (i.e. <code><nowiki>===Issue name===</nowiki></code>). My coding skills are not so hot, so it would be better for someone with more knowledge to add the proper headings. --[[User:IanL|IanL]] 17:13, 20 Jul 2005 (PDT)
== Porting / Code warnings ==
Perhaps I should make a new page for the -Wall stuff... this list could get enormous. Valve desperately needs to Lint their codebase.


:::I realized a better alternative would maybe be to create sections based on categories. Server, client, etc? Again, someone more familiar with the code would know better than me if there are categories that make sense.
How do you just upload a file to wiki?  I have a patch for tons of little fixes, but it's so enormous it seems silly to paste it into a webpage. Or, maybe since a lot of these are just search/replace I should describe the fixes that way...


== Health fix ==
:Jeff Lane had reported that for legal reasons only specific file uploads will be allowed.<br />
:Google for any of the free file hosting sites and then link to the files. --[[User:Mark WiseCarver|wisemx]] 05:55, 2 Oct 2005 (PDT)


should it really be setting health to 100 in the constructor?
Well, I've got places I could host it, but it'd sure be suboptimal, cause then no one else could edit it.  Sort of defeats some of the wiki usefulness.


that's dealt with in the spawn function.... [[User_talk:ts2do]]
I uploaded the first pass to a file host site - hopefully the file won't get deleted or anything. (The patch is only 9110 lines long, no biggie!) --[[User:Bloodykenny|Bloodykenny]] 09:55, 16 Oct 2005 (PDT)


I found that you need to initialize it first, or it sends the spawn notice, then the health across the wire, causing the 'low health' sound to play the first time you ever spawn. Perhaps there's a more elegant solution to be had? [[User:Bloodykenny|Bloodykenny]] 17:46, 19 Jul 2005 (PDT)
That hosting site apparently had a drive failure, but I've re-uploaded the file. Too bad this !@#$ wiki won't take files.


I have a better solution in mind which is to more quickly update the PlayerResource on spawn - will post something soon. [[User:Bloodykenny|Bloodykenny]] 23:01, 19 Jul 2005 (PDT)
'''This file is now hosted on 3 of my server sites'''--[[User:Amckern|Amckern]] 08:48, 27 May 2006 (PDT)
 
== progress bar fix ==
 
weren't they talking about the map_background in the post? the fix could be done in the rc file if so [[User_talk:ts2do]]
 
The map background doesn't ever display during a first load, so I don't see how... but if you get it working, explain in detail. [[User:Bloodykenny|Bloodykenny]] 17:46, 19 Jul 2005 (PDT)


== Stun baton ==
== Stun baton ==
Line 31: Line 25:


I believe it has something to do with the glow that the stun baton generates on the end of the stick. Several others have reproduced it... [[User:Bloodykenny|Bloodykenny]] 00:58, 20 Jul 2005 (PDT)
I believe it has something to do with the glow that the stun baton generates on the end of the stick. Several others have reproduced it... [[User:Bloodykenny|Bloodykenny]] 00:58, 20 Jul 2005 (PDT)
This has been fixed in HL2:DM, so hopefully an SDK fix will be announced at some point. --[[User:Bloodykenny|Bloodykenny]] 10:28, 15 Sep 2005 (PDT)
== Source Crashes when alt+tab during background map loading ==
I don't think this belongs on this page.  Agreed this is a bug, but it doesn't seem like an SDK bug, just a general hl2.exe/steam dlls bug.  Is there another page for that?
:Some problem here, even without a background map. Just a plain image. --[[User:Dutchmega|dutchmega]] 14:24, 22 Jul 2006 (PDT)
==multiplay_gamerules.cpp==
m_flIntermissionEndTime is never initialized, on rare occasions it can end up with a ghost variable.  This check was done somewhere else in the code(player code) to Freeze when in a intermission.  Ran into rare problems that cause players to become frozen when entering the game.  Can someone confirm? --[[User:Scottloyd|Scott Loyd]] 8:05, 8 Jul 2006 (PST)
:it does get initialized in CHL2MPRules...should be in CMultiplayRules tho, it probably isn't a problem&mdash;'''[[User:Ts2do|ts2do]]''' 20:36, 8 Jul 2006 (PDT)
::I've done some rewriting with the intermissions but it did seem to work good. It's defined in multiplay_gamerules.cpp --[[User:Dutchmega|dutchmega]] 03:15, 9 Jul 2006 (PDT)
== SDK Update ==
What now, with the SDK update released? Some entries in the list can go now. --[[User:Dutchmega|dutchmega]] 09:53, 5 Aug 2006 (PDT)
:I don't think it's needed to define it in ''August 06'' and ''Pre August 06'' --[[User:Dutchmega|dutchmega]] 14:10, 5 Aug 2006 (PDT)
We should continue to note what version a bug first appeared in, and try to move fixed bugs over to the the Fixed page. --[[User:Bloodykenny|Bloodykenny]] 12:27, 19 Aug 2006 (PDT)
== Jittery Animation ==
The fix by removing
if ( !IsSelfAnimating() )
{
  m_flAnimTime = engine->GetLastTimeStamp();
}
Doesn't seem to work for me. Anyone care to share their experiences?
:I am using HL2DM SDK and implementing a third-person cam. Animation works fine, but is laggy/lowFPS (read: not interpolated). --[[User:Mflux|Mflux]] 22:49, 13 Aug 2006 (PDT)
:Did yesterday's engine update fix this? --[[user:TomEdwards|TomEdwards]] 12:59, 19 Aug 2006 (PDT)
:The "fix" looks wrong (like a fragile hack) to me, I tried it locally with fakelag and the animations didn't start playing for my character until round trip time had elapsed, and then played an insane pace to "catch up." It doesn't help with the jitter when you rotate your character's yaw, either. ('''edit:''' I guess it might be fine for "everyone else," though.)
:Regarding the person above me and problems with third person animations, my understanding is that HL2's problems with local player animation run much, much deeper than any one-liner like this can hope to fix, and require something like entirely from-scratch implementation of client-side prediction and interpolation of the animation systems. If anyone knows otherwise, I'd sure be glad to hear it, though. [[User:Neverender|Neverender]] 22:21, 28 Nov 2006 (PST)
:This fix was supposed to take care of most entities that had animations, such as Npcs, vehicles and all that jazz. The player animations are server-side and are poorly predicted. [[User:Tannerbondy|Tannerbondy]] 22:17, 17 Nov 2008 (PST)
== Missing Materials in HL2MP Mod ==
It appears that the MOTD window comes up with many "purple checkerboard"s when running a HL2MP mod.  Also, the physgun is missing the proper materials for it's orange aura effect.  I think these are probably in the .gcf, just not sure of their names.  Anyone? [[User:Reacheround|Reacher]] 15:56, 12 Jan 2007 (PST)
I have found these files.  They are in the HL2DM gcf file.  The motd window files are in materials/VGUI/gfx/VGUI/* and the physgun files are in materials/sprites/*.  [[User:Reacheround|Reacher]] 10:36, 17 Jan 2007 (PST)
==  Usercmd sends unneeded extra data ==
You realize that the impulse one is kind of pointless.
If you look at the code, it clearly only sends the data through usercmd if it doesn't change.
if noone ever hits one of the impulse commands, the impulse is always 0, thus it WriteOneBit(0), and doesn't send the the actual 8 bit integer over. so if it doesn't change, it sends 1 bit instead of 9. not a heck of a big deal ;)
:I do now, should have seen that... Anyway, I wasn't using the impulse anyway so removing it wasn't so bad --[[User:Dutchmega|dutchmega]] 07:04, 11 Jul 2007 (PDT)

Latest revision as of 00:18, 18 November 2008

The SLAM patch didn't work - I think you might've left out a file you needed to patch or something, so I rewrote it a bit - thanks for the idea though.


Porting / Code warnings

Perhaps I should make a new page for the -Wall stuff... this list could get enormous. Valve desperately needs to Lint their codebase.

How do you just upload a file to wiki? I have a patch for tons of little fixes, but it's so enormous it seems silly to paste it into a webpage. Or, maybe since a lot of these are just search/replace I should describe the fixes that way...

Jeff Lane had reported that for legal reasons only specific file uploads will be allowed.
Google for any of the free file hosting sites and then link to the files. --wisemx 05:55, 2 Oct 2005 (PDT)

Well, I've got places I could host it, but it'd sure be suboptimal, cause then no one else could edit it. Sort of defeats some of the wiki usefulness.

I uploaded the first pass to a file host site - hopefully the file won't get deleted or anything. (The patch is only 9110 lines long, no biggie!) --Bloodykenny 09:55, 16 Oct 2005 (PDT)

That hosting site apparently had a drive failure, but I've re-uploaded the file. Too bad this !@#$ wiki won't take files.

This file is now hosted on 3 of my server sites--Amckern 08:48, 27 May 2006 (PDT)

Stun baton

Issue: Doing a 360 quickly with the Stun Baton as your active weapon causes the screen to flash white

I can't reproduce this. Even if I could, it sounds a lot like a gfx card issue. --TomEdwards 23:55, 19 Jul 2005 (PDT)

I believe it has something to do with the glow that the stun baton generates on the end of the stick. Several others have reproduced it... Bloodykenny 00:58, 20 Jul 2005 (PDT)

This has been fixed in HL2:DM, so hopefully an SDK fix will be announced at some point. --Bloodykenny 10:28, 15 Sep 2005 (PDT)


Source Crashes when alt+tab during background map loading

I don't think this belongs on this page. Agreed this is a bug, but it doesn't seem like an SDK bug, just a general hl2.exe/steam dlls bug. Is there another page for that?

Some problem here, even without a background map. Just a plain image. --dutchmega 14:24, 22 Jul 2006 (PDT)

multiplay_gamerules.cpp

m_flIntermissionEndTime is never initialized, on rare occasions it can end up with a ghost variable. This check was done somewhere else in the code(player code) to Freeze when in a intermission. Ran into rare problems that cause players to become frozen when entering the game. Can someone confirm? --Scott Loyd 8:05, 8 Jul 2006 (PST)

it does get initialized in CHL2MPRules...should be in CMultiplayRules tho, it probably isn't a problem—ts2do 20:36, 8 Jul 2006 (PDT)
I've done some rewriting with the intermissions but it did seem to work good. It's defined in multiplay_gamerules.cpp --dutchmega 03:15, 9 Jul 2006 (PDT)

SDK Update

What now, with the SDK update released? Some entries in the list can go now. --dutchmega 09:53, 5 Aug 2006 (PDT)

I don't think it's needed to define it in August 06 and Pre August 06 --dutchmega 14:10, 5 Aug 2006 (PDT)

We should continue to note what version a bug first appeared in, and try to move fixed bugs over to the the Fixed page. --Bloodykenny 12:27, 19 Aug 2006 (PDT)

Jittery Animation

The fix by removing if ( !IsSelfAnimating() ) {

 m_flAnimTime = engine->GetLastTimeStamp();

}

Doesn't seem to work for me. Anyone care to share their experiences?

I am using HL2DM SDK and implementing a third-person cam. Animation works fine, but is laggy/lowFPS (read: not interpolated). --Mflux 22:49, 13 Aug 2006 (PDT)
Did yesterday's engine update fix this? --TomEdwards 12:59, 19 Aug 2006 (PDT)
The "fix" looks wrong (like a fragile hack) to me, I tried it locally with fakelag and the animations didn't start playing for my character until round trip time had elapsed, and then played an insane pace to "catch up." It doesn't help with the jitter when you rotate your character's yaw, either. (edit: I guess it might be fine for "everyone else," though.)
Regarding the person above me and problems with third person animations, my understanding is that HL2's problems with local player animation run much, much deeper than any one-liner like this can hope to fix, and require something like entirely from-scratch implementation of client-side prediction and interpolation of the animation systems. If anyone knows otherwise, I'd sure be glad to hear it, though. Neverender 22:21, 28 Nov 2006 (PST)
This fix was supposed to take care of most entities that had animations, such as Npcs, vehicles and all that jazz. The player animations are server-side and are poorly predicted. Tannerbondy 22:17, 17 Nov 2008 (PST)

Missing Materials in HL2MP Mod

It appears that the MOTD window comes up with many "purple checkerboard"s when running a HL2MP mod. Also, the physgun is missing the proper materials for it's orange aura effect. I think these are probably in the .gcf, just not sure of their names. Anyone? Reacher 15:56, 12 Jan 2007 (PST)

I have found these files. They are in the HL2DM gcf file. The motd window files are in materials/VGUI/gfx/VGUI/* and the physgun files are in materials/sprites/*. Reacher 10:36, 17 Jan 2007 (PST)

Usercmd sends unneeded extra data

You realize that the impulse one is kind of pointless. If you look at the code, it clearly only sends the data through usercmd if it doesn't change. if noone ever hits one of the impulse commands, the impulse is always 0, thus it WriteOneBit(0), and doesn't send the the actual 8 bit integer over. so if it doesn't change, it sends 1 bit instead of 9. not a heck of a big deal ;)

I do now, should have seen that... Anyway, I wasn't using the impulse anyway so removing it wasn't so bad --dutchmega 07:04, 11 Jul 2007 (PDT)