Duke4.net Forums: [r8784] Skill and Level Warp Cheat Menu cannot be used - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[r8784] Skill and Level Warp Cheat Menu cannot be used

#1

This concerns the following menu entries, accessible once you enter the cheats "DNSCOTTY" and "DNSKILL".
Attached Image: duke0099.png

The menu entries are intended to allow you to enter a episode + map number consisting of 3 digits, and set a skill consisting of 1 digit, but the game only allows you to enter 2 and 0 digits respectively.
This is because the buffers do not account for the null character that ends the string, so they are in fact one character too small to contain the final digit.

The following patch resolves this:
Index: source/duke3d/src/menus.cpp
===================================================================
--- source/duke3d/src/menus.cpp (revision 8784)
+++ source/duke3d/src/menus.cpp (working copy)
@@ -1513,8 +1513,8 @@

 static MenuTextForm_t M_ADULTPASSWORD = { NULL, "Enter Password:", MAXPWLOCKOUT, MTF_Password };
 static MenuTextForm_t M_CHEATENTRY = { NULL, "Enter Cheat Code:", MAXCHEATLEN, 0 };
-static MenuTextForm_t M_CHEAT_WARP = { NULL, "Enter Warp #:", 3, 0 };
-static MenuTextForm_t M_CHEAT_SKILL = { NULL, "Enter Skill #:", 1, 0 };
+static MenuTextForm_t M_CHEAT_WARP = { NULL, "Enter Warp #:", 4, 0 };
+static MenuTextForm_t M_CHEAT_SKILL = { NULL, "Enter Skill #:", 2, 0 };

 #define MAKE_MENUFILESELECT(a, dir, b, c) { a, { &MMF_FileSelectLeft, &MMF_FileSelectRight }, { &MF_Minifont, &MF_Minifont }, dir, b, c, { NULL, NULL }, { 0, 0 }, { 3<<16, 3<<16 }, FNLIST_INITIALIZER, 0 }



This post has been edited by Doom64hunter: 26 March 2020 - 05:12 AM

3

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options