Difference between revisions of "LE-CODE/Item Cheat"

From Custom Mario Kart
Jump to navigation Jump to search
(Cleaned the entire page. Also, the table of contents is automatically placed, so there's no need to include a marker place at the beginning.)
Line 1: Line 1:
 
{{LE-CODE Content|logo}}  
 
{{LE-CODE Content|logo}}  
  
As of build 27, [[LE-CODE]] has a built-in item cheat. [[Wiimm]] used his [[Item Cheat]] as base, so the the button layout is the same. The built-in item cheats supports all four game regions. The item selection can be controlled by ''Wiimote+Nunchuck'', by ''Classic Controller'' or by ''GCN Controller''. Wii Wheel is not supported due the lack of unused buttons.
+
As of build 27, [[LE-CODE]] includes a built-in expanded version of [[Wiimm]]'s [[Item Cheat]]. It now supports all four regions, and also supports the [[#classic|Classic Controller]] in addition to the previously compatible [[#nunchuk|Wii Remote and Nunchuk]] and [[#gcn|GameCube Controller]]. The base Wii Wheel is still not supported due to a lack of available buttons to use.
  
 +
== Overview ==
 +
The main purpose of this feature is to test tracks and battle arenas both offline and online with all available items. The cheat code works with the first connected supported controller.
  
__TOC__
+
The player can select all available items using various button combinations (see controller specific descriptions below). The items are placed into the item container (top left on-screen). If "Off" is selected, the cheat code is disabled and normal item handling is enabled. All controller options place the items on three layers, with the most important items for testing being on the primary layer.
  
== General description ==
+
The '''Thunder Cloud''' is a useful item for testing jumps in tracks while small. In Wiimm's [[Intermezzo]], he sets the duration of the effect to 30 seconds to allow for easier testing.
  
The main purpose of this cheat code is to test racing tracks and battle arenas offline and online with all available items. The cheat code works with the first [[#nunchuck|Wiimote + Nunchuck]], the first [[#classic|Classic Controller]] and the first connected [[#gcn|GameCube Controller]].
+
== Enabling the Item Cheat ==
 
+
The Item Cheat can be enabled by a [[LPAR#param|LPAR parameter]]. [[Wiimmfi]] detects the usage of it and blocks it in all non-cheat enabled Wiimmfi regions to prevent players from using it for an unfair advantage in regular online races.
The player can select all available items (see controller specific descriptions below). The items are placed into the item container (top left on-screen). It must be activated in the usual way. If »Off« is selected, the cheat code is disabled and normal item handling is enabled.
 
 
 
The ''Thunder Cloud'' is the perfect item to become small for testing jumps. Therefore [[Intermezzo]] sets the duration to 30 seconds.
 
 
 
== Enable the item cheat ==
 
 
 
The ''Item Cheat'' can be enabled by a [[LPAR#param|LPAR parameter]]. [[Wiimmfi]] detects the usage of this item code. So use it only for testing, but never in regular online races.
 
 
<br clear=all>
 
<br clear=all>
  
== <span id=nunchuck>Wiimote + Nunchuck</span> ==
+
== <span id=nunchuck>Wii Remote and Nunchuk</span> ==
[[File:Item Cheat Wiimote + Nunchuck.png|thumb|right|270px|Buttons for Wiimote + Nunchuck]]
+
[[File:Item Cheat Wiimote + Nunchuck.png|thumb|right|270px|Buttons for Wii Remote and Nunchuk]]
  
If the ''Wiimote'' is used together with a ''Nunchuck'', there are enough free buttons. However, these must be programmed on three levels. Buttons {{button|C}} and {{button|B}} are used to switch from level 1 to levels 2 and 3. The most important items are placed at level 1. See the picture on the right for details.
+
The '''Wii Remote and Nunchuk''' uses directions on the D-Pad in addition to the {{button|-}}, {{button|1}}, and {{button|2}} buttons to select items. Use those in combination with the {{button|C}} and {{button|B}} buttons to access the second and third layers, respectively.
 
<br clear=all>
 
<br clear=all>
  
Line 28: Line 23:
 
[[File:Item Cheat Classic Controller.png|thumb|right|270px|Buttons for Classic Controller]]
 
[[File:Item Cheat Classic Controller.png|thumb|right|270px|Buttons for Classic Controller]]
  
The ''Classic Controller'' (connected to a Wiimote) has not enough buttons for all 20 different items. But the right [[#stick|joystick]] is not used during racing. So it can be used to simulate 8 buttons. However, it must be programmed on three levels. {{button|Left}} and {{button|Right}} of the control pad are used to switch from level 1 to levels 2 and 3. The most important items are placed at level 1. See the picture on the right for details.
+
The '''Classic Controller''' uses directions on the [[#stick|right joystick]] to select items. Select a direction in combination with the {{button|Left}} and {{button|Right}} directions on the D-Pad to access the second and third layers, respectively.
 
 
Classic Controller and [[#gcn|GCN Controller]] uses an identical stick layout.
 
 
<br clear=all>
 
<br clear=all>
  
== <span id=gcn>GCN Controller</span> ==
+
== <span id=gcn>GameCube Controller</span> ==
 
[[File:Item Cheat GameCube Controller.png|thumb|right|270px|Buttons for GameCube Controller]]
 
[[File:Item Cheat GameCube Controller.png|thumb|right|270px|Buttons for GameCube Controller]]
The ''GameCube Controller'' (short: GCN Controller) has not enough buttons for all 20 different items. But the right [[#stick|joystick]] (yellow C-Stick) is not used during racing. So it can be used to simulate 8 buttons. However, it must be programmed on three levels. {{button|Left}} and {{button|Right}} of the control pad are used to switch from level 1 to levels 2 and 3. The most important items are placed at level 1. See the picture on the right for details.
 
  
GCN Controller and [[#classic|Classic Controller]] uses an identical stick layout.
+
The '''GameCube Controller''' uses directions on the [[#stick|C-stick]] to select items. Select a direction in combination with the {{button|Z}} and {{button|B}} buttons to access the second and third layers, respectively. The Classic Controller and GameCube Controller use identical joystick layouts, with the only difference being the buttons to activate the additional layers.
 
<br clear=all>
 
<br clear=all>
  
== <span id=stick>Use a joystick as buttons</span> ==
+
== <span id=stick>Joystick Analysis</span> ==
 
+
The following table explains how the inputs on the joysticks are analyzed to allow for selection of items.
This section explains, how analog sticks are analysed to simulate 8 buttons.
 
 
 
???
 
  
 
{| class="textbox grid alt"
 
{| class="textbox grid alt"
 
|+ Joystick Analysis
 
|+ Joystick Analysis
! Controller !! Data type
+
! Controller  
! minimal<sup>1</sup> !! maximal<sup>1</sup>
+
! Data Type
! neutral<sup>2</sup> !! neutral range<sup>2</sup>
+
! Minimum Position<ref name="range">The ''minimum'' and ''maximum'' values are only an approximation and vary from controller to controller.</ref>  
 +
! Maximum Position<ref name="range" />
 +
! Neutral Position<ref name="neutral">The ''neutral'' position is a only target value, you should assume at least ±10% of the total area as a neutral position. The ''neutral range'' column reflects this recommendation.</ref>  
 +
! Neutral Range<ref name="neutral" />
 
|-
 
|-
| Wiimote+Nunchuck
+
| Wii Remote and Nunchuk (not used by cheat)
| align=center | int16_t
+
| align=center| int16_t
| align=center | −25856
+
| align=center| −25856
| align=center | +26880
+
| align=center| +26880
| align=center | 0
+
| align=center| 0
| align=center | −5273 .. +5273
+
| align=center| −5273 +5273
 
|-
 
|-
 
| Classic Controller
 
| Classic Controller
| align=center | int16_t
+
| align=center| int16_t
| align=center | −512
+
| align=center| −512
| align=center | +480
+
| align=center| +480
| align=center | 0
+
| align=center| 0
| align=center | −100 .. +100
+
| align=center| −100 +100
 
|-
 
|-
 
| GCN Controller
 
| GCN Controller
| align=center | uint8_t
+
| align=center| uint8_t
| align=center | 16
+
| align=center| 16
| align=center | 238
+
| align=center| 238
| align=center | 128
+
| align=center| 128
| align=center | 106 .. 150
+
| align=center| 106 150
 
|}
 
|}
;Notes:
+
<references/>
:'''1)''' ''Minimum'' and ''maximum'' values are only an approximation and vary from controller to controller.
 
:'''2)''' The ''neutral'' position is a target value. In fact, you should assume at least ±10% of the total area as a neutral position. Column ''neutral range'' reflects this recommendation.
 
  
 
[[Category:LE-CODE]]
 
[[Category:LE-CODE]]
 
[[Category:Cheat Codes]]
 
[[Category:Cheat Codes]]

Revision as of 23:21, 13 March 2021

As of build 27, LE-CODE includes a built-in expanded version of Wiimm's Item Cheat. It now supports all four regions, and also supports the Classic Controller in addition to the previously compatible Wii Remote and Nunchuk and GameCube Controller. The base Wii Wheel is still not supported due to a lack of available buttons to use.

Overview

The main purpose of this feature is to test tracks and battle arenas both offline and online with all available items. The cheat code works with the first connected supported controller.

The player can select all available items using various button combinations (see controller specific descriptions below). The items are placed into the item container (top left on-screen). If "Off" is selected, the cheat code is disabled and normal item handling is enabled. All controller options place the items on three layers, with the most important items for testing being on the primary layer.

The Thunder Cloud is a useful item for testing jumps in tracks while small. In Wiimm's Intermezzo, he sets the duration of the effect to 30 seconds to allow for easier testing.

Enabling the Item Cheat

The Item Cheat can be enabled by a LPAR parameter. Wiimmfi detects the usage of it and blocks it in all non-cheat enabled Wiimmfi regions to prevent players from using it for an unfair advantage in regular online races.

Wii Remote and Nunchuk

Buttons for Wii Remote and Nunchuk

The Wii Remote and Nunchuk uses directions on the D-Pad in addition to the -, 1, and 2 buttons to select items. Use those in combination with the C and B buttons to access the second and third layers, respectively.

Classic Controller

Buttons for Classic Controller

The Classic Controller uses directions on the right joystick to select items. Select a direction in combination with the Left and Right directions on the D-Pad to access the second and third layers, respectively.

GameCube Controller

Buttons for GameCube Controller

The GameCube Controller uses directions on the C-stick to select items. Select a direction in combination with the Z and B buttons to access the second and third layers, respectively. The Classic Controller and GameCube Controller use identical joystick layouts, with the only difference being the buttons to activate the additional layers.

Joystick Analysis

The following table explains how the inputs on the joysticks are analyzed to allow for selection of items.

Joystick Analysis
Controller Data Type Minimum Position[1] Maximum Position[1] Neutral Position[2] Neutral Range[2]
Wii Remote and Nunchuk (not used by cheat) int16_t −25856 +26880 0 −5273 … +5273
Classic Controller int16_t −512 +480 0 −100 … +100
GCN Controller uint8_t 16 238 128 106 … 150
  1. 1.0 1.1 The minimum and maximum values are only an approximation and vary from controller to controller.
  2. 2.0 2.1 The neutral position is a only target value, you should assume at least ±10% of the total area as a neutral position. The neutral range column reflects this recommendation.