Logging game events to text file
#6
For codes/addresses that execute per every player/CPU, sometimes a certain non-volatile register (r14 thru r31) will hold the Slot number of the specific player. Human players always get the lower slots (i.e. Player 1 is always slot 0). So for a 4 person multiplayer, slots 0 thru 3 are for the real players. 4 thru 11 for the CPUs.

After that, you can then write some assembly to set up a conditional for the code to never execute for the CPUs.

https://mariokartwii.com/showthread.php?tid=1962

There are other codes on this forum that contain instructions (which you can essentially copy) that can give the slot of the current Player at any time. Stebler's pretty speedometer contains such code.
Reply


Messages In This Thread
Logging game events to text file - by seanmcnally - 03-02-2024, 09:56 PM
RE: Logging game events to text file - by Vega - 03-04-2024, 01:38 AM
RE: Logging game events to text file - by Vega - 03-04-2024, 09:37 PM
RE: Logging game events to text file - by Vega - 03-07-2024, 01:02 AM
RE: Logging game events to text file - by Vega - 03-08-2024, 12:25 AM
RE: Logging game events to text file - by Vega - 03-08-2024, 06:44 PM
RE: Logging game events to text file - by Vega - 03-12-2024, 09:13 PM
RE: Logging game events to text file - by Vega - 03-13-2024, 11:36 PM
RE: Logging game events to text file - by Vega - 03-14-2024, 06:28 PM
RE: Logging game events to text file - by Vega - 03-16-2024, 02:23 AM
RE: Logging game events to text file - by Vega - 03-16-2024, 04:54 PM
RE: Logging game events to text file - by Vega - 03-16-2024, 11:13 PM
RE: Logging game events to text file - by Vega - 03-18-2024, 05:20 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)