Commit Graph
12 Commits
Author SHA1 Message Date
Jonas Volman 1aa822f30c Correct network packet class API 2026-07-15 11:00:01 -07:00
Jonas VolmanandClaude Opus 4.8 35d3a59674 Match network game message initialization, event, and decode
Reconstruct three bounded functions in network_messages.obj against the
January target object:

  initialize_network_game_packets  0x10 padded,  2 relocations
  network_event                    0x60 padded,  8 relocations
  decode_network_game_message      0xa0 padded,  8 relocations

All three are proven exact by coff_compare.py: padded size, normalized
hash, and every relocation offset, type, resolved target and addend.

Parameter names and assert expressions are recovered from the target's
own assert strings. data_0030aa68 is declared with a named container
type following the initialize_key_agreement_packets convention, placing
the packet group at +0x830; its definition is deferred with the packet
definition table.

data_packet_group_decode_packet is declared in data_packet_groups.h,
whose parameter names come from the callee's assert strings.
data_packet_groups.h now includes cseries.h so it is self-sufficient for
translation units that include it without cseries.h first.

code_0011af00 (encode_network_game_message) is left dormant: it takes
message_struct, encoded_message and encoded_message_size in edi/ebx/esi
without saving them, so it uses a private register calling convention
that MSVC only selects with its sole caller, create_network_game_message,
present in the same translation unit.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-15 10:58:22 -07:00
Jonas Volman 0ce8c8a49d Match network connection initialization 2026-07-15 08:46:18 -07:00
Jonas Volman 3cd314ca3b Align typed accessors with HCEX conventions 2026-07-14 19:03:06 -07:00
Jonas Volman 1d76b70081 Match network_game_get_random_player_name 2026-07-14 14:10:49 -07:00
punpckhdq cce8ecb1f2 Use space before equals (#21) 2026-06-08 02:44:47 +01:00
Berthalamew 52a0dc4c28 add tag definitions and misc function prototypes (#19)
* misc changes

- add function prototypes and change types
- add profile_initialize

* add tag definitions and prototypes

- real math changes
2026-05-05 18:56:06 +01:00
Berthalamewandpunpckhdq 4817ee1995 console/terminal related work (#8)
* misc changes and additions

formatting changes and add structs/constants for terminal work

* match write_to_error_file and add error_global_data

* console work

* requested changes

* terminal work

100% match all terminal functions

* Formatting

---------

Co-authored-by: punpckhdq <121350336+punpckhdq@users.noreply.github.com>
2026-01-06 23:30:12 +00:00
punpckhdq 13ede36d69 Cleanup attract_mode.c 2026-01-06 18:08:35 +00:00
punpckhdq 4fc9a8a143 main.c WIP 2025-12-02 15:59:57 +00:00
punpckhdq 4bd27e8251 Push all applicable HCEX header stubs 2025-11-27 10:43:31 +00:00
punpckhdq e830efbd7c Initial commit 2025-11-27 02:27:27 +00:00