Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

...


...

 

 

 

...

 

 







Most of the code and data that governs the game is located in XML files. Mods can add to the game data, or even alter the stock data as its loaded.

...

Event list: https://gist.github.com/NodusCursorius/56f55f267a5f0f5509b6f46c6a1d3703 VTable list: https://gist.github.com/NodusCursorius/ac6bd44080ebee47662204c1ed983dcb Lua function list: https://gist.github.com/NodusCursorius/b61f26177fdcb490d2456e353d57f363 API misc list; https://gist.github.com/NodusCursorius/c8a97cc73a03fe6bdb466863e1a8ef84

Ventures with mods

from the Discord:

[2019-07-01 11:15 PM] Nodus Cursorius: X4: Foundations - 2.5 Prevent modified flag (yay ventures with mods) X4.exe Offset: 0x112140 - 3 byte change 48 83 EC 28 E8 27 5B 57 00 85 C0 0F 95 C0 48 83 C4 28 C3 ; pre-hack 0F 95 C0 48 83 EC 28 E8 27 5B 57 00 85 C0 B0 00 90 48 83 C4 28 C3 ; post-hack B0 00 90 ^ ^ ^

; origial
IsGameModified  proc near
                sub     rsp, 28h
                call    sub_140688870
                test    eax, eax
                setnz   al
                add     rsp, 28h
                retn
IsGameModified  endp

; changed
IsGameModified  proc near
                sub     rsp, 28h
                call    sub_140688870
                test    eax, eax
                mov     al, 0
                nop
                add     rsp, 28h
                retn
IsGameModified  endp

...