kondrak / vkQuake2

id Software's Quake 2 v3.21 with mission packs and Vulkan support (Windows, Linux, macOS, FreeBSD, Raspberry Pi 4)
GNU General Public License v2.0
896 stars 91 forks source link

Garbled text in output #78

Closed tomgreen66 closed 4 years ago

tomgreen66 commented 4 years ago

Having uninstalled Xcode (mainly to save some space) I found I needed to develop a Makefile to build Quake2 along the lines on the Linux method (rather than use xcodebuild). Now have a working Makefile if others find it useful. Noticed during the development that in Vk_Strings_f https://github.com/kondrak/vkQuake2/blob/576d48bbe8502c4a437ae1c884b9d4a87d569c39/ref_vk/vk_rmisc.c#L180-L182:

Not sure if the for loop is required - seems to be adding a constant to a string and creating garbage string in the output.

kondrak commented 4 years ago

This loop is used to change the version string's color to green - the garbage you see in the output is a side effect of this, since the game font doesn't map green characters to proper ASCII codes for letters/numbers.

PRs are always welcome, especially if they're useful, so I'm open to a new Makefile that doesn't require XCode on MacOS!