Guardian Ship Design Offsets.

Information, How-to's, and discussion about mod'ing Master of Orion II.
User avatar
Lord Brazen
Site Admin
Posts:162
Joined:Mon Jul 18, 2005 10:16 pm
Location:Toronto, Canada
Contact:
Guardian Ship Design Offsets.

Postby Lord Brazen » Sat Sep 30, 2006 10:04 am

Here are the offset within Orion2.exe v1.31 for the guardian ship design.

Code: Select all

Guardian Ship Design -------------------- Hex Offset Size Purpose ----------------------------------------------------------------- DD5A6 BYTE Ship Type * 0 = Combat Ship 1 = Colony Ship 2 = Transport Ship 3 = ?? 4 = Outpost Ship DD5AA BYTE Shield Type 0 = none 1 = Class I 2 = Class III * 3 = Class V 4 = Class VII 5 = Class X DD5AE BYTE Computer Type 0 = No Computer 1 = Electronic Computer 2 = Optronic Computer 3 = Positronic Computer 4 = Cybertronic Computer * 5 = Moleculartronic Computer DD5B2 BYTE Ship Size Class (does not effect appearance of ship) 0 = Frigate 1 = Destroyer 2 = Cruiser 3 = Battleship * 4 = Titan 5 = Doom Star DD5B6 BYTE Armor type 1 = Titanium Armor 2 = Tritanium Armor 3 = Zortrium Armor 4 = Neutronium Armor 5 = Adamantium Armor * 6 = Xentronium Armor DD5BA BYTE Drive type * 0 = None 1 = Nuclear Drive 2 = Fusion Drive 3 = Ion Drive 4 = Anit-Matter Drive 5 = Hyper Drive 6 = Interphased Drive DD6CC BYTE Ship shape (appearance of ship) when Builder <8 (see builder below) 0-2b = normal ships 2c = Avenger 2d = colony ship 2e = outpost 2f = transport ship 30-7f = normal ships but when Builder >= 8 (see builder below) 00-04 = Antarian Ships (Builder=8) 07 = Guardian (Builder=9) 08 = Large Ameoba 09 = Large Crystal 0A = Large Dragon 0B = Large Eel 0C = Large Hydra 14 = Small Ameoba 15 = Small Crystalp 16 = Small Dragon 17 = Small Eel 18 = Small Hydra DD6D6 BYTE Builder (player # 0-7 or 8=Ants, 9=Guardian, A-E = built by monsters?) WEAPON SLOT #1 -------------- DD5C3 WORD weapon type (lo/hi) DD5C8 BYTE firing arc DD5CD WORD weapon mods DD5D2 BYTE Ammo remaining (missiles only) DD5D6 BYTE Initial quantity DD5DA BYTE quantity remaining (if weapon is damaged) WEAPON SLOT #2 -------------- DD5DF WORD weapon type (lo/hi) DD5E4 BYTE firing arc DD5E9 WORD weapon mods DD5EE BYTE Ammo remaining (missiles only) DD5F2 BYTE Initial quantity DD5F6 BYTE quantity remaining (if weapon is damaged) WEAPON SLOT #3 -------------- DD5FB WORD weapon type (lo/hi) DD5FE BYTE firing arc DD605 WORD weapon mods DD60A BYTE Ammo remaining (missiles only) DD60E BYTE Initial quantity DD612 BYTE quantity remaining (if weapon is damaged) WEAPON SLOT #4 -------------- DD617 WORD weapon type (lo/hi) DD61C BYTE firing arc DD621 WORD weapon mods DD626 BYTE Ammo remaining (missiles only) DD62A BYTE Initial quantity DD62E BYTE quantity remaining (if weapon is damaged) WEAPON SLOT #5 -------------- DD633 WORD weapon type (lo/hi) DD638 BYTE firing arc DD63D WORD weapon mods DD647 BYTE Ammo remaining (missiles only) DD64E BYTE Initial quantity DD654 BYTE quantity remaining (if weapon is damaged) SHIP SPECIALS ------------- DD65B BYTE bit number of 1st ship special DD667 BYTE bit number of 2nd ship special DD673 BYTE bit number of 3rd ship special DD67F BYTE bit number of 4th ship special DD68B BYTE bit number of 5th ship special DD697 BYTE bit number of 6th ship special DD6A3 BYTE bit number of 7th ship special DD6AF BYTE bit number of 8th ship special
"Stars are holes in the sky from which the light of the Infinite shine through." - Confucius.

Turbo Beholder
Posts:15
Joined:Tue Feb 26, 2008 3:32 am
Contact:

Re: Guardian Ship Design Offsets.

Postby Turbo Beholder » Thu Feb 28, 2008 2:21 pm

Here are the offset within Orion2.exe v1.31 for the guardian ship design.

Code: Select all

Guardian Ship Design [...] DD65B BYTE bit number of 1st ship special [...] DD6AF BYTE bit number of 8th ship special
Interesting, but can be improved. I looked through Hiew and Biew on it (32bit code mode). First Special (Auto Repair Unit, # 03) constant is located @ 0x0DD640 (1.3)/ 0x0DD680 (U1.4)

Code: Select all

0DD67F: BA03000000 mov edx,3 0DD684: C6434300 mov b,[ebx][43],0 0DD688: 8D4B17 lea ecx,[ebx][17] 0DD68B: C6433E02 mov b,[ebx][3E],2 0DD68F: 89C8 mov eax,ecx 0DD691: C6433F02 mov b,[ebx][3F],2 0DD695: E80CF70C00 call 0001ACDA6 --?1 0DD69A: BA0D000000 mov edx,00000000D 0DD69F: 89C8 mov eax,ecx 0DD6A1: E800F70C00 call 0001ACDA6 --?1 0DD6A6: BA01000000 mov edx,1 0DD6AB: 89C8 mov eax,ecx 0DD6AD: E8F4F60C00 call 0001ACDA6 --?1 0DD6B2: BA05000000 mov edx,5 0DD6B7: 89C8 mov eax,ecx 0DD6B9: E8E8F60C00 call 0001ACDA6 --?1
First call is stashed again...
"Two Eyes Good, Eleven Eyes Better."
- Michele Carter


Return to “Game Modifications”

Who is online

Users browsing this forum: No registered users and 32 guests