For the complete documentation index, see llms.txt. This page is also available as Markdown.

Trace

We updated Trace which TRACE_1, TRACE_2, TRACE_3 are 32bit, TRACE_4, TRACE_5 & TRACE_6 are 16 bit.

Trace

Description

Range

TRACE_1

32 Bit

-2,147,483,648 to 2,147,483,647

TRACE_2

32 Bit

-2,147,483,648 to 2,147,483,647

TRACE_3

32 Bit

-2,147,483,648 to 2,147,483,647

TRACE_4

16 Bit

-32,768 to 32,767

TRACE_5

16 Bit

-32,768 to 32,767

TRACE_6

16 Bit

-32,768 to 32,767


What are traces and what do they do?

Traces are boxes of information commonly used to debug a GPC, get the information you may want from a game or get information from mods that may be running, and more. When in Zen Studio simply click Tools > Device Monitor or press the shortcut F3 on your keyboard. This will bring up Device Monitor where traces can be seen on the bottom right of the Device Monitor.

Here is where information will be displayed depending on how you have traces set in a GPC script. The example below is an example of using a trace to verify if a combo is running. When the combo is running the value of trace 1 is 1 and when the mod is off the value of trace 1 is 0.


16bit example

Code-Snippet

main {
    set_val(TRACE_1, combo_running(rapidfire));
    
    if(get_ival(XB1_RT)){
        combo_run(rapidfire);
    }
}

combo rapidfire {
    set_val(XB1_RT, 100);
    wait(40);
    set_val(XB1_RT, 0);
    wait(30);
}

In the example above, the value of trace 1 goes between 1 and 0. Due to the nature of the combo being re-run while the right trigger is being held, this is normal and what to look for when using a trace to verify the combo is running.


32bit Example

Code-Snippet

In this example, the code for a basic dynamic Anti Recoil takes advantage of the higher value limits of 32bit to scale a value up then back down to be used with a polar constant for a much greater degree of accuracy. The value being traced is the radius of the right stick scaled up higher before being scaled back.


Example using TRACE_1 thru TRACE_6

Code-Snippet

Last updated