New Restart game Button unofficial patch 3.05
▲ 320 r/victoria2

New Restart game Button unofficial patch 3.05

Add a menu button that closes the game and reopens it with the currently active mod—similar to what happens in EU4 when you exit a match. This works for any mod, unless the mod itself modifies `menubar.gui`

u/maxiotenn — 7 days ago

SUPER EVENT IN VICTORIA 2 SPOILER FOR THE NEXT PATCH UPDATE

In short, the DLL detects when you load a specific picture for an event; if it matches, it plays a sound you’ve configured. If nothing is configured, it does nothing and doesn't affect other events.

u/maxiotenn — 14 days ago

Victoria 2 unofficial patch 3.05 0.5 Music Selector

summary: A music selector has been added that allows you to adjust the volume; you can also view battle casualties without participating in the battle, you can see the casualties of a battle without needing to be in it and performance has been improved, Note: The music feature works with all mods that don't have a modified topbar (.gui and .gfx files); if a mod does have one, you have to set it up manually. Regarding colonial factories, only the ones you specify in `v2dll_settings` can be built (This was done as a sample mod based on Alstad's work; colonial factories and the button to hide colonial states aren't in the vanilla game). Also, the video lagged at the end because my PC isn't great and I was recording xd.

u/maxiotenn — 19 days ago
▲ 52 r/victoria2+1 crossposts

Unofficial Patch 3.05

The first version of the unofficial patch is out; it includes various fixes to adjust mechanics and improve stability. All these tweaks can be enabled or disabled in `v2dll_settings.ini`. Economic patches are still being tested, so they aren't included in this version. There are two ways to launch it: either as a mod—by copying the two included folders and the `.mod` file, which reopens the launcher with the patch applied (this doesn't change the vanilla checksum or affect other mods)—or by manually copying the files into your Victoria 2 installation and including the `v2game.exe` and `victoria2.exe` executables. If you launch it as a mod, the copying happens automatically, but for the manual method, you need to copy those two executables yourself. I set it up this way to avoid distributing pirated files and to ensure you use your own existing copies. (The included `.bat` file is for opening the new launcher, but you can delete it if you plan to run this as a separate Victoria 2 installation.) Feel free to leave a comment if you have any questions.

moddb.com
u/maxiotenn — 1 month ago

Progress on reverse engineering Victoria 2

I bring you a small patch so that the uncivilized can research technologies, although

For human players:

You need to go to 0x007AA757 in Ghidra (within FUN_007AA580) and change the bytes 75 5A (JNZ) to EB 5A (JMP)

This way, you can research any tech, but be careful: if you research tech, you can't earn upgrade points—since they use the same system—so you have to choose which one to use

For the AI: (Not recommended)

Go to 0x00859755 (in FUN_00859710) and replace the 6 bytes 0F 84 B5 05 00 00 (JZ) with 90 90 90 90 90 90 (6 NOPs)

Then, upload the documentation outlining how the Vic 2 technology system works on GitHub

In case you're interested, I have this; with this, the next step is ensuring that major powers don't break free if they are your puppets:

[0x00537a22]> pdf
/ get_country_rank_type();
| 0x005379e0 cmp byte [ecx+0x12d0], 0x00 ; [ecx+0x12d0] = country.is_civilised
| 0x005379e7 jnz 0x5379ef
| 0x005379e9 mov eax, 0x03 ; 3 = uncivilised
| 0x005379ee ret
| 0x005379ef cmp byte [ecx+0x31], 0x00 ; [ecx+0x31] = country.is_great_power
| 0x005379f3 jz 0x5379f8
| 0x005379f5 xor eax, eax ; 0 = great power
| 0x005379f7 ret
| 0x005379f8 mov eax, dword [0x12586dc] ; defines_ptr
| 0x005379fd mov edx, dword [eax+0x40] ; [eax+0x40] = defines.country
| 0x00537a00 mov edx, dword [edx+0x50] ; [edx+0x50] = defines.country.COLONIAL_RANK
| 0x00537a03 mov eax, 0x10624dd3
| 0x00537a08 imul edx
| 0x00537a0a sar edx, 0x06; RELOC 3 pe_00537a0c @ 0x00000000
| 0x00537a0d mov eax, edx
| 0x00537a0f shr eax, 0x1f
| 0x00537a12 add eax, edx
| 0x00537a14 xor edx, edx
| 0x00537a16 cmp dword [ecx+0x1404], eax ; [ecx+0x1404] = country.rank
| 0x00537a1c setnle dl
| 0x00537a1f lea eax, dword [edx+0x01]
\ 0x00537a22 ret
\ ; 1 = secondary power
\ ; 2 = civilised nation

u/maxiotenn — 1 month ago
▲ 26 r/victoria2+1 crossposts

Victoria 2 reverse engineering project

The goal is to release a mod that fixes bugs in the vanilla game (unofficial patch 3.05)

The ultimate objective is to understand the entire codebase in order to create a native Linux port and add new mechanics

Español:

Objetivo es sacar un mod que arregle bugs del juego vanilla (parche no oficial 3.05)

El objetivo final es saber como funciona el codigo completo para hacer port nativo para linux y agregar nuevas mecanicas

github.com
u/maxiotenn — 1 month ago