Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cantina Loader #22

Open
JayFoxRox opened this issue May 11, 2018 · 3 comments
Open

Cantina Loader #22

JayFoxRox opened this issue May 11, 2018 · 3 comments

Comments

@JayFoxRox
Copy link
Member

JayFoxRox commented May 11, 2018

(All functions in patched US version)

sub_457C20 / sub_45BB80 seems to load cantina objects
sub_457CF0 loads the track preview for the hologram

@Olganix
Copy link
Contributor

Olganix commented May 20, 2018

you said "sub_45BB80 to load cantina object" but
sub_45BB80 load :
-the model 0x53 = 83 = "Garage's Room"
-the model 0x54 = 84 = "Watto's Store's Room"
-the model 0x55 = 85 = "Breaker's yard's Room"
-the model 0x9A = 154 = "Cantina's Objects's Room"

(add information : sub_457C20 load Cantina's Hologram planets and moons)

@JayFoxRox
Copy link
Member Author

Yes. I've since re-named these locally to:

 00000001:0000000000056C20       _sub_457C20_load_cantina_planet_models
 00000001:0000000000056CF0       _sub_457CF0_load_cantina_track_preview_models
[...]
 00000001:000000000005AB80       _sub_45BB80_load_hangar_room_models

Hang appears quite often, so I decided to call all of the non-track portion "Hangar" (includes the cantina, garage and marketplaces).

Getting these named correctly is not that important, as long as we have a rough idea of whats going on. This issue is more of a placeholder until someone does a full RE of this and turns it into C pseudocode.

@Olganix
Copy link
Contributor

Olganix commented May 20, 2018

the Cantina Objects seam to be loaded on sub_4586E0, there is also loaded inside :

--------------------- if ( *(_DWORD *)(a1 + 56) == 3 )
-LoadCantinaObject_Planets
-LoadCantinaObject_PreviewTrack
-0x78: unknow model 120
-0x30: Holograme background flag

---------------------------- Else , switch ( *(_DWORD *)(a1 + 8) )
----------------- case 8: (Garage stuffs)
-a serie of model (may be pod or chararter or both )
-0x3C = 60: coffer
-0x44 = 68 : double coffer
-0x45 = 69 : quad coffer
-0x44 = 68 : double coffer

  • 4 x:
    --0x46 = 70 : plane For Garage's Robot Fly (SO IT'S LOAD ALSO GARAGE STUFF)
    --0x140 = 320 : texturedCircle
    --0x141 = 321 : unknow plane with texture with 4 things

-0x92 : AnakinPod_LB_2plane (Beam)

  • 4 x:
    --0x31 = 49 : AnakinPod_LightningBolt (Beam)

-0x6D = 109 = Robot With Tool

----------------- case 4 and 7 :
-0x78 = 120 : unknow model 120
-0x141 = 321 : unknow plane with texture with 4 things

----------------- case 0xF :
-a serie of model

----------------- case 0x10 :

  • 3 x:
    --0x7c = 124 : Mon Gazza Flag support

-0x7B = 123 : Flag First Blue
-0x7D = 125 : Flag Second Red
-0x7E = 126 : Flag Third White
-0x7F = 127 : Start Race object

----------------- case 0x11 :
-a model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants