Jump to content

Template:Engine calls: Difference between revisions

Combined engine call table
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Please document all engine calls ([[Bytecode#Control_0x9906_(engine_call)|control 0x9906]] and [[Bytecode#Control_0xb745_(engine_call)|control 0xb745]] opcodes) '''on this page only'''. Changes you make here will be automatically merged into [[Engine calls (Boktai 1)]], [[Engine calls (Boktai 2)]], and [[Engine calls (Boktai 3)]] daily by a bot (so it may take a bit until your changes show up).
Please document all engine calls ([[Bytecode#Control_0x9906_(engine_call)|control 0x9906]] and [[Bytecode#Control_0xb745_(engine_call)|control 0xb745]] opcodes) '''on this page only'''. Changes you make here will be automatically merged into [[Engine calls (Boktai 1)]], [[Engine calls (Boktai 2)]], and [[Engine calls (Boktai 3)]] daily by a bot (so it may take a bit until your changes show up).


'''DO NOT''' add/remove columns to the next table as that will confuse the bot. You should only edit the "Description" column. Ask [[User:Raphi]] if you need to edit anything else.
Please do not add/remove columns to the next table as that will confuse the bot. You should only edit the "Description" column. Just ask [[User:Raphi]] if you need to edit anything else.


{| class="wikitable exportable"
{| class="wikitable exportable"
|-
! ID || Games || Description
! ID || Games || Description
|-
|-
Line 52: Line 53:
| 0x058d || _23 ||  
| 0x058d || _23 ||  
|-
|-
| 0x05a5 || 123 ||  
| 0x05a5 || 123 || BokEnemy_Create
|-
|-
| 0x05e2 || _2_ ||  
| 0x05e2 || _2_ ||  
Line 234: Line 235:
| 0x1778 || 1__ ||  
| 0x1778 || 1__ ||  
|-
|-
| 0x180b || _23 ||  
| 0x180b || _23 || Camera_SetBoundsType2Scripted
|-
|-
| 0x1833 || 123 ||  
| 0x1833 || 123 ||  
Line 376: Line 377:
| 0x264f || 1__ ||  
| 0x264f || 1__ ||  
|-
|-
| 0x2687 || __3 ||  
| 0x2687 || __3 || NameEntry_Create
|-
|-
| 0x26b3 || 1__ ||  
| 0x26b3 || 1__ ||  
Line 417: Line 418:
Only visuals (obj), does not affect colission
Only visuals (obj), does not affect colission
|-
|-
| 0x2a8c || 1__ || Camera_ConnectToTilemap(...) - Positions the camera on the tile map (call every frame)
| 0x2a8c || 1__ || Camera_SetBounds2(min_x, max_x, min_y, max_y) // How is this different to Camera_SetBounds()?
|-
|-
| 0x2aab || 1__ ||  
| 0x2aab || 1__ ||  
Line 533: Line 534:
| 0x3590 || 1__ ||  
| 0x3590 || 1__ ||  
|-
|-
| 0x3613 || 123 ||  
| 0x3613 || 123 || Django_Lock() - Takes the player's control away, mostly for cutscenes.
|-
|-
| 0x3620 || __3 ||  
| 0x3620 || __3 ||  
Line 553: Line 554:
| 0x38d0 || 1__ ||  
| 0x38d0 || 1__ ||  
|-
|-
| 0x3960 || __3 ||  
| 0x3960 || __3 || BikeRace_RecordScreen_Create
|-
|-
| 0x39c6 || __3 ||  
| 0x39c6 || __3 ||  
Line 601: Line 602:
| 0x3dba || 1__ ||  
| 0x3dba || 1__ ||  
|-
|-
| 0x3df7 || 123 ||  
| 0x3df7 || 123 || Credits_Create
|-
|-
| 0x3e17 || 123 ||  
| 0x3e17 || 123 ||  
Line 729: Line 730:
| 0x4a1c || 1__ ||  
| 0x4a1c || 1__ ||  
|-
|-
| 0x4a25 || __3 ||  
| 0x4a25 || __3 || MainMenu_Create
|-
|-
| 0x4a8d || _23 ||  
| 0x4a8d || _23 ||  
Line 749: Line 750:
| 0x4bef || 1__ ||  
| 0x4bef || 1__ ||  
|-
|-
| 0x4c4d || 123 ||  
| 0x4c4d || 123 || Django_Unlock() - Undoes the effect of engine call 0x3613.
|-
|-
| 0x4cbb || 123 ||  
| 0x4cbb || 123 ||  
Line 803: Line 804:
| 0x5292 || 12_ ||  
| 0x5292 || 12_ ||  
|-
|-
| 0x52bf || _23 ||  
| 0x52bf || _23 || AlbumMenu_Create
|-
|-
| 0x5335 || __3 ||  
| 0x5335 || __3 ||  
Line 809: Line 810:
| 0x5365 || 123 ||  
| 0x5365 || 123 ||  
|-
|-
| 0x53bf || 123 ||  
| 0x53bf || 123 || Sound_PlayMusic(i=sound ID) - Plays music. Exactly the same as engine call 0xe7ca.
|-
|-
| 0x53f4 || 1__ ||  
| 0x53f4 || 1__ ||  
Line 901: Line 902:
| 0x5c9e || 123 || With 0 parameters: Back up stat & world structs (see RAM map). With 1+ parameters: Back up specific pointers from the stat & world structs.
| 0x5c9e || 123 || With 0 parameters: Back up stat & world structs (see RAM map). With 1+ parameters: Back up specific pointers from the stat & world structs.
|-
|-
| 0x5cbb || __3 ||  
| 0x5cbb || __3 || SoundTest_Create
|-
|-
| 0x5cc4 || _23 ||  
| 0x5cc4 || _23 ||  
Line 1,001: Line 1,002:
| 0x6487 || 123 ||  
| 0x6487 || 123 ||  
|-
|-
| 0x648f || __3 ||  
| 0x648f || __3 || PasswordMenu_Create
|-
|-
| 0x650b || _23 || Create password menu
| 0x650b || _23 || Create password menu
Line 1,141: Line 1,142:
| 0x752d || 1__ ||  
| 0x752d || 1__ ||  
|-
|-
| 0x7539 || 123 ||  
| 0x7539 || 123 || Camera_SetTilemapOffset
|-
|-
| 0x7566 || _23 ||  
| 0x7566 || _23 ||  
Line 1,260: Line 1,261:
| 0x7df5 || 1__ ||  
| 0x7df5 || 1__ ||  
|-
|-
| 0x7e33 || 123 ||  
| 0x7e33 || 123 || Elevator_Start(n=elevator ID, m=direction (1=down, 2=up, others?))
|-
|-
| 0x7e73 || _23 ||  
| 0x7e73 || _23 ||  
Line 1,282: Line 1,283:
| 0x806a || 1__ ||  
| 0x806a || 1__ ||  
|-
|-
| 0x8071 || 123 ||  
| 0x8071 || 123 || Camera_PanTo(p=(x,y,z), f=duration_frames, R=callback script ID (optional)) - For cutscenes
|-
|-
| 0x8089 || 123 || Map_SpawnLoadingZoneIndicator(n=loading_zone_id)
| 0x8089 || 123 || Map_SpawnLoadingZoneIndicator(n=loading_zone_id)
Line 1,378: Line 1,379:
| 0x89c6 || _23 ||  
| 0x89c6 || _23 ||  
|-
|-
| 0x8a05 || 1__ ||  
| 0x8a05 || 1__ || Django_Emote(...) - Displays an emote over Django's head, like an exclamation mark or a question mark.<br>
i: Django index (optional, for multiplayer)<br>
m: Emote (0=blue !, 1=white !, 2=white ?, ...)<br>
t: Speed (only used for certain emotes, like the speech bubble)
|-
|-
| 0x8a21 || _2_ ||  
| 0x8a21 || _2_ ||  
Line 1,465: Line 1,469:
p1 in callback = answer
p1 in callback = answer
|-
|-
| 0x9284 || _23 ||  
| 0x9284 || _23 || CrossoverLobby_Create
|-
|-
| 0x92be || _23 ||  
| 0x92be || _23 ||  
Line 1,475: Line 1,479:
| 0x9311 || 123 ||  
| 0x9311 || 123 ||  
|-
|-
| 0x933c || 123 ||  
| 0x933c || 123 || Django_MoveTo(p=(x,y,z), e=callback script ID, d=?) - Causes Django to walk somewhere. Mostly for cutscenes.
|-
|-
| 0x9386 || _2_ ||  
| 0x9386 || _2_ ||  
Line 1,487: Line 1,491:
| 0x94eb || _2_ ||  
| 0x94eb || _2_ ||  
|-
|-
| 0x9519 || 123 ||  
| 0x9519 || 123 || PasswordScreen_Create
|-
|-
| 0x9531 || _23 ||  
| 0x9531 || _23 ||  
Line 1,497: Line 1,501:
| 0x9671 || 1__ ||  
| 0x9671 || 1__ ||  
|-
|-
| 0x96cd || __3 ||  
| 0x96cd || __3 || OptionMenu_Create
|-
|-
| 0x9700 || 123 ||  
| 0x9700 || 123 ||  
Line 1,547: Line 1,551:
| 0x9c0c || 1__ ||  
| 0x9c0c || 1__ ||  
|-
|-
| 0x9c24 || __3 ||  
| 0x9c24 || __3 || TimeMenu_Create
|-
|-
| 0x9c2c || __3 ||  
| 0x9c2c || __3 ||  
Line 1,595: Line 1,599:
| 0xa169 || 1__ ||  
| 0xa169 || 1__ ||  
|-
|-
| 0xa16f || 123 ||  
| 0xa16f || 123 || ElevatorController_Create() - Call this before creating any elevators with engine call 0xa4fc
|-
|-
| 0xa1af || 1__ ||  
| 0xa1af || 1__ ||  
Line 1,627: Line 1,631:
| 0xa46e || __3 ||  
| 0xa46e || __3 ||  
|-
|-
| 0xa4fc || 123 ||  
| 0xa4fc || 123 || Elevator_Create(...)<br>
Creates an elevator. This only works after calling engine call 0xa16f. There are many possible keywords, this is just a subset:<br>
r: Spawn point. Should be 3 values: (path_id, 0, 0). The zeroes probably mean something. The path_id sets the spawn point of the elevator, that should be a [[Collision_map_file#Paths|path]] with 1 node. Only the X/Y coordinates of the node are relevant.<br>
Y: height range and initial position of the elevator. The order is (probably) min_y, max_y, initial_y.<br>
n: ID of the elevator. Used for controlling them later.<br>
f: Set to 0 or Django does strange things.<br>
m: Seems to affect how the callback (keyword R) gets called? 6 seems to be a safe value.<br>
k: Should be 2, 0 makes weird lava elevators, other values crash the game?<br>
R: Callback script ID, will be called when the elevator reaches its destination (but only if Django is on it?)<br>
s: Speed. The most common value is 16.<br>
T: Graphics. 1 is a basic iron platform, 0/2/3 are other options, there may be even mroe.<br>
|-
|-
| 0xa58d || 1__ ||  
| 0xa58d || 1__ ||  
Line 1,767: Line 1,781:
| 0xb189 || _2_ ||  
| 0xb189 || _2_ ||  
|-
|-
| 0xb1c4 || 123 ||  
| 0xb1c4 || 123 || Elevator_Shake(n=elevator ID) - Shakes an elevator for 1 frame
|-
|-
| 0xb1f3 || __3 ||  
| 0xb1f3 || __3 ||  
Line 1,875: Line 1,889:
| 0xbf96 || 1__ ||  
| 0xbf96 || 1__ ||  
|-
|-
| 0xc015 || _23 ||  
| 0xc015 || _23 || Crossover_LoadMappingBuf
|-
|-
| 0xc036 || __3 ||  
| 0xc036 || __3 ||  
Line 1,889: Line 1,903:
| 0xc15e || 123 ||  
| 0xc15e || 123 ||  
|-
|-
| 0xc1f2 || 123 ||  
| 0xc1f2 || 123 || Enemy_Sleep(n=enemy id) - Makes an enemy fall asleep
|-
|-
| 0xc233 || _23 ||  
| 0xc233 || _23 ||  
Line 1,968: Line 1,982:
| 0xca93 || 1__ ||  
| 0xca93 || 1__ ||  
|-
|-
| 0xca9a || __3 ||  
| 0xca9a || __3 || RegionMenu_Create
|-
|-
| 0xcabd || 1__ ||  
| 0xcabd || 1__ ||  
Line 2,240: Line 2,254:
| 0xe7bc || __3 ||  
| 0xe7bc || __3 ||  
|-
|-
| 0xe7ca || 123 ||  
| 0xe7ca || 123 || Sound_PlaySfx(i=sound ID) - Plays a sound effect. Exactly the same as engine call 0x53bf.
|-
|-
| 0xe832 || __3 ||  
| 0xe832 || __3 ||  
Line 2,370: Line 2,384:
| 0xf33f || _2_ ||  
| 0xf33f || _2_ ||  
|-
|-
| 0xf341 || 123 ||  
| 0xf341 || 123 || Camera_Reset(f=duration_frames, R=callback script ID (optional)) - Centers the camera on Django (useful to undo engine call 0x3824)
|-
|-
| 0xf3a3 || __3 ||  
| 0xf3a3 || __3 ||  
Line 2,382: Line 2,396:
| 0xf426 || __3 ||  
| 0xf426 || __3 ||  
|-
|-
| 0xf5eb || 123 ||  
| 0xf5eb || 123 || Django_SpawnScripted
|-
|-
| 0xf5f2 || 1__ ||  
| 0xf5f2 || 1__ ||