Jump to content

Talk:Oni engine patches (Mac PPC): Difference between revisions

weapon_reset; P.S. have fun
(update; 0x1B91A0, new hex: 00 04 17 20)
(weapon_reset; P.S. have fun)
Line 307: Line 307:


Thank you for the patches! chr_set_class works!!!  chr_focus works!!!  chr_location crashes, I included the report [[Talk:Oni engine patches (Mac)/chr_location|on a separate page]].  Here is the modified engine: http://edt.oni2.net/files/OniTest.zip for your examination. [[User:EdT|EdT]] 07:26, 9 October 2008 (CEST)
Thank you for the patches! chr_set_class works!!!  chr_focus works!!!  chr_location crashes, I included the report [[Talk:Oni engine patches (Mac)/chr_location|on a separate page]].  Here is the modified engine: http://edt.oni2.net/files/OniTest.zip for your examination. [[User:EdT|EdT]] 07:26, 9 October 2008 (CEST)
:Updated the pointer-to-function for chr_location, should work now. Will add weapon_reset later today. Thanks for the crash report (but you should have linked to it ;) ). And I have no idea ho w you managed to mess up chr_focus the way you did ^_^ --[[User:Geyser|geyser]] 17:26, 9 October 2008 (CEST)
:Updated the pointer-to-function for chr_location, should work now. Will add weapon_reset later today. Thanks for the crash report (but you should have linked to it ;) ). And I have no idea how you managed to mess up chr_focus the way you did ^_^ --[[User:Geyser|geyser]] 17:26, 9 October 2008 (CEST)
 
 
----
OK, Ed, here's a last one that should make your Oni 100% PC-OTA-compatible (I don't remember any other important command that you're missing, will check). Looking forward to massive OTA porting and mission scripting now ;) --[[User:Geyser|geyser]] 22:14, 9 October 2008 (CEST)
:I settled on '''ai2_skill_save''' even though it works OK, because we're running short of commands, so I'd rather use something that I know is a mere commodity than something potentially useful that we haven't figured out yet. --[[User:Geyser|geyser]] 22:14, 9 October 2008 (CEST)
 
 
{{Table}} style="white-space:nowrap"
|+making '''ai2_skill_save''' into '''weapon_reset''': fixing pointers
{{th}}
!Offset
!Old hex
!New hex
!Description
|-
|0x1B97A4
|00 17 0F 10
|00 17 0F 10
|pointer to BSL name; unchanged
|-
|0x1B97B0
|00 17 0F 20
|00 17 0F 20
|pointer to help string; unchanged
|-
|0x1B97B4
|00 16 A1 48
|00 16 A1 48
|pointer to signature string; unchanged
|-
|0x1B97B8
|00 03 0D 90
|00 '''0A 56 38'''
|pointer to function; now pointing to _WPiWeapons_Reset
|}
 
 
{{Table}} style="white-space:nowrap"
|+making '''ai2_skill_save''' into '''weapon_reset''': fixing strings
{{th}}
!Offset
!0x16FF10
!0x16FF20
!0x169148
|-
!Old chars
|<tt>ai2_skill_save°°</tt>
|<tt>saves the shooting skill being edited out as a text file°°°°</tt>
|<tt>°°°°</tt>
|-
!New chars
|<tt>weapon_reset°°°°</tt>
|<tt>deletes unheld weapons and spawns initially present weapons°</tt>
|<tt>°°°°</tt>
|-
!Description
|replacing name in-place
|replacing help string in-place
|empty signature string; unchanged
|}