mirror of
https://github.com/chocolate-doom/research.git
synced 2024-11-10 07:11:34 +00:00
Make dump-mobjinfo use modular config. Add dumps of v1.2 and v1.3
mobjinfo tables. Subversion-branch: /research Subversion-revision: 1885
This commit is contained in:
parent
5cfc8901d4
commit
f3ce33db78
7 changed files with 8661 additions and 3 deletions
|
@ -4,9 +4,8 @@ require "scanf"
|
||||||
require "common.rb"
|
require "common.rb"
|
||||||
|
|
||||||
filename = ARGV[0]
|
filename = ARGV[0]
|
||||||
offset = ARGV[1].scanf("%x")[0]
|
|
||||||
|
|
||||||
NUM_MOBJS=161
|
set_config(ARGV[1])
|
||||||
|
|
||||||
def read_int(file)
|
def read_int(file)
|
||||||
c1 = file.getc
|
c1 = file.getc
|
||||||
|
@ -82,7 +81,7 @@ end
|
||||||
states = []
|
states = []
|
||||||
|
|
||||||
File.open(filename) do |file|
|
File.open(filename) do |file|
|
||||||
file.seek(offset)
|
file.seek(MOBJINFO_OFFSET)
|
||||||
|
|
||||||
NUM_MOBJS.times do
|
NUM_MOBJS.times do
|
||||||
states.push(read_mobj(file))
|
states.push(read_mobj(file))
|
||||||
|
@ -101,3 +100,6 @@ for state in states
|
||||||
puts
|
puts
|
||||||
end
|
end
|
||||||
|
|
||||||
|
puts "};"
|
||||||
|
puts
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,10 @@ module Heretic_1_0
|
||||||
NAME="v1.0"
|
NAME="v1.0"
|
||||||
|
|
||||||
NUM_STATES=1206
|
NUM_STATES=1206
|
||||||
|
NUM_MOBJS=161
|
||||||
|
|
||||||
STATE_OFFSET=0x8bf04
|
STATE_OFFSET=0x8bf04
|
||||||
|
MOBJINFO_OFFSET=606956
|
||||||
|
|
||||||
# Locations of action pointer functions for Heretic 1.0. Hand-constructed.
|
# Locations of action pointer functions for Heretic 1.0. Hand-constructed.
|
||||||
|
|
||||||
|
|
|
@ -4347,3 +4347,5 @@ mobjinfo_t mobjinfo[] = {
|
||||||
0, // flags2
|
0, // flags2
|
||||||
},
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,10 @@ module Heretic_1_2
|
||||||
NAME="v1.2"
|
NAME="v1.2"
|
||||||
|
|
||||||
NUM_STATES=1206
|
NUM_STATES=1206
|
||||||
|
NUM_MOBJS=160
|
||||||
|
|
||||||
STATE_OFFSET=0x8e8b4
|
STATE_OFFSET=0x8e8b4
|
||||||
|
MOBJINFO_OFFSET=617600
|
||||||
|
|
||||||
# Locations of action pointer functions for Heretic 1.2. Hand-constructed.
|
# Locations of action pointer functions for Heretic 1.2. Hand-constructed.
|
||||||
|
|
||||||
|
|
4324
hhe/v1.2/mobjinfo.c
Normal file
4324
hhe/v1.2/mobjinfo.c
Normal file
File diff suppressed because it is too large
Load diff
|
@ -4,8 +4,10 @@ module Heretic_1_3
|
||||||
NAME="v1.3"
|
NAME="v1.3"
|
||||||
|
|
||||||
NUM_STATES=1206
|
NUM_STATES=1206
|
||||||
|
NUM_MOBJS=160
|
||||||
|
|
||||||
STATE_OFFSET=0x8e8b4
|
STATE_OFFSET=0x8e8b4
|
||||||
|
MOBJINFO_OFFSET=617600
|
||||||
|
|
||||||
# Action pointers for Heretic 1.3.
|
# Action pointers for Heretic 1.3.
|
||||||
|
|
||||||
|
|
4324
hhe/v1.3/mobjinfo.c
Normal file
4324
hhe/v1.3/mobjinfo.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue