Main > Driving & Racing Cabinets

Daytona USA ++ Patch - Modding and Hacks

<< < (18/29) > >>

Nuexzz:
yes they are 1- to 100 and more  ;D

Daveybird:

--- Quote from: Nuexzz on January 14, 2016, 01:05:04 am ---yes they are 1- to 100 and more  ;D

--- End quote ---

Hey, can you please tell me the memory addresses of each car?

SailorSat:

--- Quote from: Daveybird on January 14, 2016, 07:04:49 am ---Hey, can you please tell me the memory addresses of each car?

--- End quote ---

there are a few things to note:

each "car" in the game has some basic values like the position, rotation and models (yes, multiple) as well as information on "what" it is and "who" controls is (player + node, cpu, script etc.)

A list of notable "models" can be found here.
Most of the cars are available in 4 versions (polygon count goes lower every time) - and they get changed all the time while driving (based on the distance to the camera/player).

side fact - daytona still have some leftovers from virtua racing and virtua stock car (daytona's working title on model1) :) {and virtua stock car is even left in the artworks 3rd car on the front (white)}

Daveybird:
Okay, thanks. Are those all the AI cars, or only the 20 that Nuexzz found before? And also. how do you put these in game with a lua script?

SailorSat:

--- Quote from: Daveybird on January 14, 2016, 08:51:49 am ---Okay, thanks. Are those all the AI cars, or only the 20 that Nuexzz found before? And also. how do you put these in game with a lua script?

--- End quote ---

Did you even look at the list?

Anyway...
CAR1 starts at RAMBASE + 0x5180
CAR2 starts at RAMBASE + 0x5480
CAR3 starts at RAMBASE + 0x5780
CAR4 starts at RAMBASE + 0x5A80
and so on...

to change the primary model of CAR1 you would change RAMBASE + 0x5180 + 0x0014
to change the secondary model of CAR1 you would change RAMBASE + 0x5180 + 0x0258


--- Code: ---RAMBASE=0x00500000;
CAR1    =0x5180;
CAR2    =0x5480;
CAR3    =0x5780;
CAR4    =0x5A80;
MODL1  =0x0014;
MODL2  =0x0258;
function Frame()
  -- change primary model of car1 to "virtua stock car"
  I960_WriteDWord(RAMBASE + CAR1 + MODL1, 0x028439E4);

  -- change secondary model of car1 to "none"
  I960_WriteDWord(RAMBASE + CAR1 + MODL2, 0);
end

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version