Difference between revisions of "Function Memory Addresses (SA)"

From GTAMods Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
==Actors==
 +
; 0x005E4720
 +
: <code>CActor::CreateNewActorRecord</code>
 +
 
==Audio==
 
==Audio==
 
; 0x004EF510
 
; 0x004EF510
Line 116: Line 120:
 
; 005504C0
 
; 005504C0
 
: <code>CPool_CVehicle_CAutomobile::CPool_CVehicle_CAutomobile((int))</code>
 
: <code>CPool_CVehicle_CAutomobile::CPool_CVehicle_CAutomobile((int))</code>
 +
 +
==Emergency==
 +
; 0x00407C50
 +
: <code>CEmergency::CreatePoliceInCity</code>
 +
; 0x0156AB70
 +
: <code>CEmergency::CreateRoadBlocks</code>
  
 
==File Management==
 
==File Management==
Line 136: Line 146:
 
; 0x0082318B
 
; 0x0082318B
 
: <code>CFileMgr::CloseFile</code>
 
: <code>CFileMgr::CloseFile</code>
 +
; 0x00402B8B
 +
: <code>CFileMgr::CreateFile</code>
 +
 +
==Players==
 +
; 0x00409D10
 +
: <code>CPlayer::CreatePlayer_Unk</code>
  
 
==Scripts==
 
==Scripts==
Line 151: Line 167:
 
: <code>StoreOpcodeResult()</code>
 
: <code>StoreOpcodeResult()</code>
 
: For opcodes that return a value in a variable parameter, copies the return value from '''0xA43C78''' to the variable. A complementary function to <code>GetOpcodeParameters()</code>.
 
: For opcodes that return a value in a variable parameter, copies the return value from '''0xA43C78''' to the variable. A complementary function to <code>GetOpcodeParameters()</code>.
 +
; 0x0156A2A0
 +
: <code>CScript::CreateNewThread</code>
 +
 +
==Stats==
 
; 0x0055C180
 
; 0x0055C180
: <code>AddToStat</code>
+
: <code>CStat::AddToStat</code>
 +
; 0x00532010
 +
: <code>CStat::CrimeCommited_Unk</code>
  
 
==Text==
 
==Text==
Line 161: Line 183:
 
; 0x0053CF30
 
; 0x0053CF30
 
: <code>CText::ConvertGXTEntryToCRC32</code>
 
: <code>CText::ConvertGXTEntryToCRC32</code>
 +
; 0x0069F7E0
 +
: <code>CText::CopyToStatString</code>
 +
; 0x00718660
 +
: <code>CText::CopyString</code>
 +
 +
==Vehicles==
 +
; 0x0043A0B6
 +
: <code>CVehicle::CreateCar</code>
 +
; 0x006F7550
 +
: <code>CVehicle::CreateTrain</code>
  
 
==Version==
 
==Version==
Line 215: Line 247:
 
; 0x00572670
 
; 0x00572670
 
: <code>CMission::ClearZonesInfo</code>
 
: <code>CMission::ClearZonesInfo</code>
 +
; 0x0040A2A0
 +
: <code>CreateFiremenInCity</code>
  
 
[[Category:Memory Addresses]]
 
[[Category:Memory Addresses]]

Revision as of 08:25, 30 April 2007

Actors

0x005E4720
CActor::CreateNewActorRecord

Audio

0x004EF510
CAudio::36021_Unk

Cheats

0x00438480
CCheat::Process
0x00609F50
CCheat::SetWantedLevel
0x00438E90
CCheat::Add2Stars
0x00438E40
CCheat::AddArmourMoneyHealth
0x00438F20
CCheat::ClearWantedLevel
0x00407851
CCheat::CreateCar
0x0043A510
CCheat::CreateCar408
0x0043A500
CCheat::CreateCar409
0x0043A4A0
CCheat::CreateCar432
0x0043A4F0
CCheat::CreateCar442
0x0043A520
CCheat::CreateCar457
0x0043A4D0
CCheat::CreateCar502
0x0043A4E0
CCheat::CreateCar503
0x0043A4B0
CCheat::CreateCar504
0x0043A4C0
CCheat::CreateCar505
0x0043A660
CCheat::CreateCarDozer
0x0043A550
CCheat::CreateCarHunter
0x0043A560
CCheat::CreateCarQuad
0x0043A680
CCheat::CreateCarMonster
0x0043A670
CCheat::CreateCarStuntPlane
0x0043A570
CCheat::CreateCarTanker
0x00438FC0
CCheat::DecreaseGameSpeed
0x00438F90
CCheat::IncreaseGameSpeed
0x00439C70
CCheat::EveryoneArmed
0x00439600
CCheat::Jetpack
0x004399D0
CCheat::SetSkillsMax
0x00438F50
CCheat::SetWeather0
0x00438F40
CCheat::SetWeather1
0x00438F70
CCheat::SetWeather16
0x00438F60
CCheat::SetWeather4
0x00438F80
CCheat::SetWeather9
0x004385B0
CCheat::WeaponSet1
0x00438890
CCheat::WeaponSet2
0x00438B30
CCheat::WeaponSet3
0x00439B20
CCheat::PedsAttackAll

Data Pools

Data arrays for storing entities.

00550F10
CPools::Initialise((void))
005519F0
CPools::ShutDown((void))
00550570
CPool_CBuilding_CBuilding::CPool_CBuilding_CBuilding((int))
005507C0
CPool_CColModel_CColModel::CPool_CColModel_CColModel((int))
005506F0
CPool_CDummy_CDummyPed::CPool_CDummy_CDummyPed((int))
00550320
CPool_CEntryInfoNode_CEntryInfoNode::CPool_CEntryInfoNode_CEntryInfoNode((int))
00550960
CPool_CEvent_CEvent::CPool_CEvent_CEvent((int))
00550BD0
CPool_CNodeRoute_CNodeRoute::CPool_CNodeRoute_CNodeRoute((int))
00550640
CPool_CObject_CObject::CPool_CObject_CObject((int))
00550B00
CPool_CPatrolRoute_CPatrolRoute::CPool_CPatrolRoute_CPatrolRoute((int))
00550E40
CPool_CPedAttractors_CPedAttractors::CPool_CPedAttractors_CPedAttractors((int))
00550D70
CPool_CPedIntelligence_CPedIntelligence::CPool_CPedIntelligence_CPedIntelligence((int))
005503F0
CPool_CPed_CPlayerPed::CPool_CPed_CPlayerPed((int))
00550A30
CPool_CPointRoute_CPointRoute::CPool_CPointRoute_CPointRoute((int))
00550250
CPool_CPtrNodeDouble_CPtrNodeDouble::CPool_CPtrNodeDouble_CPtrNodeDouble((int))
00550180
CPool_CPtrNodeSingle_CPtrNodeSingle::CPool_CPtrNodeSingle_CPtrNodeSingle((int))
00550CA0
CPool_CTaskAllocator_CTaskAllocator::CPool_CTaskAllocator_CTaskAllocator((int))
00550890
CPool_CTask_CTask::CPool_CTask_CTask((int))
005504C0
CPool_CVehicle_CAutomobile::CPool_CVehicle_CAutomobile((int))

Emergency

0x00407C50
CEmergency::CreatePoliceInCity
0x0156AB70
CEmergency::CreateRoadBlocks

File Management

0x004AB260
CFileMgr::CloseFile((int))
0x005389D0
CFileMgr::CloseFile((int))
0x004AB240
CFileMgr::OpenFile((char const *))
0x00538900
CFileMgr::OpenFile((char const *))
0x00538950
CFileMgr::Read((int,char *,int))
0x005387D0
CFileMgr::SetDir((char const *))
0x008232D8
CFileMgr::AssignFile
0x00538950
CFileMgr::BlockRead
0x0082318B
CFileMgr::CloseFile
0x00402B8B
CFileMgr::CreateFile

Players

0x00409D10
CPlayer::CreatePlayer_Unk

Scripts

0x00486720
CTheScripts::ReadObjectNamesFromScript((void))
0x00486780
CTheScripts::UpdateObjectIndices((void))
0x00464080
CRunningScript::CollectParameters((uint *,short)) (GetOpcodeParameters)
0x00469F00
CRunningScript_ProcessOneCommand
0x00A43C78
Where the routine above stores opcode parameters values. Max 32 parameters for an opcode it seems. (Although only 16 are ever used.)
0x00464370
StoreOpcodeResult()
For opcodes that return a value in a variable parameter, copies the return value from 0xA43C78 to the variable. A complementary function to GetOpcodeParameters().
0x0156A2A0
CScript::CreateNewThread

Stats

0x0055C180
CStat::AddToStat
0x00532010
CStat::CrimeCommited_Unk

Text

0x008214D0
CText::CompareStrings
0x0076FA94
CText::CompareText
0x0053CF30
CText::ConvertGXTEntryToCRC32
0x0069F7E0
CText::CopyToStatString
0x00718660
CText::CopyString

Vehicles

0x0043A0B6
CVehicle::CreateCar
0x006F7550
CVehicle::CreateTrain

Version

0x0056D200
CVersion::IsGerman

Wanted Levels

0x0056E5D0
BustedProc

UnCategorised

004CE090
CAnimBlendAssocGroup::GetAnimation((uint))
00735FD0
CBulletInfo::Initialise((void))
00736A40
CExplosion::Initialise((void))
00737B40
CProjectileInfo::Initialise((void))
007170C0
CRGBA::CRGBA((uchar,uchar,uchar,uchar))
00739B60
CShotInfo::Initialise((void))
0073A300
CWeapon::InitialiseWeapons((void))
005BF750
CWeaponInfo::Initialise((void))
0053BC80
LoadGame(char; fileName))
Initializes all data structures and loads fileName (which is gta.dat).
005B9030
LoadMapDefinitionFile(char; fileName))
Parses and loads dat-files, such as default.dat and gta.dat.
00550F10
AllocatePools())
Allocates stuff which LimitAdjuster modifies, such as Peds and Buildings.
0082119A
malloc(size_t size)
00748760
int __stdcall WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nShowCmd)
00747F00
int __stdcall WndProc(HWND hWnd,int msg,WPARAM wParam,int lParam)
007486F0
int __cdecl RegisterSAWindow()
00745560
HWND __cdecl CreateSAWindow(HINSTANCE hInstance)
007476B0
void __cdecl PlayMPEG(int nShowCmd, char *filename)
Used to play intro videos (Logo.mpg and GTAtitles.mpg)
0x01569F10
CMission::ClearLocals
0x0156EF70
CMission::ClearRoadBlocks
0x00572670
CMission::ClearZonesInfo
0x0040A2A0
CreateFiremenInCity