04-25-2020, 12:55 AM
(This post was last modified: 05-08-2020, 09:20 PM by Melg.
Edit Reason: Changing the title so it's less confusing
)
Hello,
So over the past week I have been learning -as best as I can since this is all very new to me- coding using the various tutorials in this forum and I have managed to make easy codes such as always win races offline and so on... You know what they say, we all have to start somewhere...
My final goal is to make a "time trials online" pack where you would race people with time trials conditions.
Right now I have trying to make a code that would make people start at the same xyz coordinates and more precisely the time trials position as defined in the KMP of the .szs files. To my understanding, the game uses a "start area" grid to position racers depending on their previous placement: this start area is 2000 game units wide and 5300 (or 4800 in narrow mode) game units long.
My idea was therefore to try to make this area have a size of 0,0 so that racers would start at the same spot (which would not be a problem with a no clip code). I have therefore tried to find where in static memory the positioning of racers is defined, to no avail. (using a read breakpoint on adresses that have a decimal value of 1000/2000 did not yield any results).
I was wondering if any of you guys could offer some help:
-is the direction I am going in the right one or will changing the size of the area to 0,0 straight up crash the game?
-if it is, does any of you guys know where in the memory I can find what I am looking for?
Thanks in advance.
So over the past week I have been learning -as best as I can since this is all very new to me- coding using the various tutorials in this forum and I have managed to make easy codes such as always win races offline and so on... You know what they say, we all have to start somewhere...
My final goal is to make a "time trials online" pack where you would race people with time trials conditions.
Right now I have trying to make a code that would make people start at the same xyz coordinates and more precisely the time trials position as defined in the KMP of the .szs files. To my understanding, the game uses a "start area" grid to position racers depending on their previous placement: this start area is 2000 game units wide and 5300 (or 4800 in narrow mode) game units long.
My idea was therefore to try to make this area have a size of 0,0 so that racers would start at the same spot (which would not be a problem with a no clip code). I have therefore tried to find where in static memory the positioning of racers is defined, to no avail. (using a read breakpoint on adresses that have a decimal value of 1000/2000 did not yield any results).
I was wondering if any of you guys could offer some help:
-is the direction I am going in the right one or will changing the size of the area to 0,0 straight up crash the game?
-if it is, does any of you guys know where in the memory I can find what I am looking for?
Thanks in advance.