Difference between revisions of "LE-CODE/Item Cheat"
Line 22: | Line 22: | ||
[[File:Item Cheat Wiimote + Nunchuck.png|thumb|right|270px|Buttons for Wiimote + Nunchuck]] | [[File:Item Cheat Wiimote + Nunchuck.png|thumb|right|270px|Buttons for Wiimote + Nunchuck]] | ||
− | 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. See the picture on the right for details. | + | 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. |
<br clear=all> | <br clear=all> | ||
== <span id=classic>Classic Controller</span> == | == <span id=classic>Classic Controller</span> == | ||
[[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. | ||
+ | |||
+ | 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>GCN 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. | ||
<br clear=all> | <br clear=all> | ||
− | == <span id=stick>Use | + | == <span id=stick>Use a joystick as buttons</span> == |
+ | |||
+ | This section explains, how analog sticks are analysed to simulate 8 buttons. | ||
+ | |||
??? | ??? | ||
Line 47: | Line 55: | ||
| 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 |
Revision as of 21:45, 13 March 2021
- LE-CODE & related file formats
- LE-CODE: General description
- LE-CODE: History
- LE-CODE: FAQ for track creators
- LE-CODE: Distribution Tutorial
- LE-CODE: Definition file for distributions
- LE-CODE: FAQ for distribution creators
- LE-CODE: Item Cheat
- LE-CODE: Controllers & Buttons
- LE-CODE: Slot usage
- LE-CODE: Exception Handler
- LPAR: File format for parameters
- LEX: File format and definitions
- LTA: LE-CODE Track Archive
- LFL: LE-CODE File List
- Wiimm's Test Tracks
- Extended presence flags
- Related Categories
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.
General description
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 Wiimote + Nunchuck, the first Classic Controller and the first connected GameCube Controller.
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 parameter. Wiimmfi detects the usage of this item code. So use it only for testing, but never in regular online races.
Wiimote + Nunchuck
If the Wiimote is used together with a Nunchuck, there are enough free buttons. However, these must be programmed on three levels. Buttons
Classic Controller
The Classic Controller (connected to a Wiimote) has not enough buttons for all 20 different items. But the right joystick is not used during racing. So it can be used to simulate 8 buttons. However, it must be programmed on three levels. and 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.
Classic Controller and GCN Controller uses an identical stick layout.
GCN Controller
The GameCube Controller (short: GCN Controller) has not enough buttons for all 20 different items. But the right 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. and 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 Controller uses an identical stick layout.
Use a joystick as buttons
This section explains, how analog sticks are analysed to simulate 8 buttons.
???
Controller | Data type | minimal1 | maximal1 | neutral2 | neutral range2 |
---|---|---|---|---|---|
Wiimote+Nunchuck | 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 |
- Notes
- 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.