crysis

Unresolved External Symbol- Error in guide?

…衆ロ難τιáo~ 提交于 2020-01-06 19:38:30
问题 So I've been trying to fix a weird bug in a game engine SDK where the Windows loading cursor is used instead of the game's own cursor. The fix for this is here: http://www.crydev.net/wiki/index.php/Use_Custom_Cursor#Step_1:_Fixing_The_Cursor_Bug. I have followed the fix, but I keep getting these when building the game DLL: Error 1 error LNK2019: unresolved external symbol "public: __thiscall MODCursor::MODCursor(void)" (??0MODCursor@@QAE@XZ) referenced in function "public: __thiscall CGame:

Obtaining Current Network Rate

感情迁移 提交于 2019-12-25 01:55:40
问题 I would like to obtain the current network transfer rate of download/upload. This is for a C++ gameserver DLL and the primary objective of this is to best predict the upper-latency limit to kick players from the server, when their latency is too high. Basically, a players' ping influences the fluency of their movements, and higher latency leads to more delayed movement, meaning that we need to get rid of the player if it becomes too high. This is to mainly keep players happy. Via the internal

Count occurrence of a set of characters and subtract spaces from the string

亡梦爱人 提交于 2019-12-24 04:18:15
问题 See the first image below for the problem. You can see that the first line of text correctly aligns, but the second does not. A few months ago I wrote some code that centers the text in a string in order to process it nicely onto a console for a gameserver modification. This code works really nicely, but has two major problems: The gameserver crashes if we go over the 112 character limit of the actual console (this problem doesn't occur in a normal console message) Use of colours in the text