December 05 2026 17:47:10
Navigation
· Home
· Articles
· Downloads
· FAQ
· Discussion Forum
· Web Links
· News Categories
· Contact Me
· Photo Gallery
· Search
· Gameservers
Languages
Users Online
· Guests Online: 2

· Members Online: 0

· Total Members: 1,165
· Newest Member: Earpi
Teamspeak 3
Last Seen Users
· Anickaa03:10:38
· Floxen21:50:25
· Intruder 1 day
· middle44 2 days
· Terminator 5 days
· VCG john 6 days
· VictorMyson 6 days
· desintegrator 1 week
· Silent Bob 1 week
· The ACE 2 weeks
· ozzy-ita 2 weeks
· SGT PEPPER 2 weeks
· Don Turtuma 2 weeks
· Nasko0o 2 weeks
· Midcall 3 weeks

View Thread: [Tools] CBF Unpacker, DirectPlay Host-fix, Crash Translator
Vietcong.Info » Vietcong General Discussion » General Discussion
Who is here? 1 Guest
Current Rating: (Total: 0 ratings)  
 Print Thread
[Tools] CBF Unpacker, DirectPlay Host-fix, Crash Translator
middle44
Hi everyone,

over the past months (mostly) I've been working on a few tools for Vietcong, and I think it's time to share them with the community. All three are free, open source and tested with Vietcong v1.60 on Windows 10/11. There's more to come, but I'll start with these:


1. CBF Unpacker

Extracts .CBF archives from the game, patches, Fist Alpha and Red Dawn.

Why another unpacker? Existing tools (cbfext, Dragon UnPACKer) have a known bug. Larger files are stored as several LZW chunks in a row, and these tools only decompress the first one. You end up with truncated DDS textures, broken BES models and incomplete BMPs. This unpacker reads all the chunks, so every file comes out complete.

• Decrypts encrypted file tables (retail ZBL1 archives)
• Interactive menu: just double-click the .exe, or drag a .cbf onto it
• Extract only what you need, by type, name or folder (e.g. *.dds, *ak47*, g/weapons/*)
• Warns before overwriting existing files (no more old patch files silently replacing newer ones)
• Command line options for scripts: --list, --filter, --select, --overwrite
• Tested on the whole game, all patches (1.01–1.60), Fist Alpha and Red Dawn: 60,940 files, 4 GB, 0 errors

Download: https://github.com/erik-blasko/VC_CBF-unpacker/releases
(standalone .exe, or a Python script for any platform)


2. DirectPlay Host-fix

Fixes hosting a multiplayer game on Windows 10/11 PCs where creating a server fails with GNET_GAM_CreateEx() failed.
Not every PC has this problem. If you can already host a LAN or Internet game, you don't need it.

On affected systems, Windows' DirectPlay listens only on IPv6, so the game never manages to join its own server. The fix is a small drop-in dpnet.dll that skips that broken step and connects the host directly to its own address. Everything else is still Windows' own DirectPlay.

• Only the host installs it. Players join with normal, unmodified DirectPlay.
• No admin rights needed and no system files changed. Run install.bat to install, uninstall.bat to remove it.
• Bonus: if your router supports UPnP, it also opens the GameSpy query port, so your server actually answers in the internet server list instead of looking dead. (No UPnP? Forward UDP 15425 and UDP+TCP 5425.)
• Works with both vietcong.exe and the level editor (dev_editor.exe)

Download: https://github.com/erik-blasko/VC_DirectPlay-hostfix/releases/latest


3. Crash Translator

When the game or the level editor crashes, it writes pt_excp.txt, which is just raw addresses and registers. This tool turns it into something readable: which part of the engine crashed, what kind of error it was, and where to look.

Every crash gets a cause class: DATA ERROR, MISSING OBJECT, SCRIPT / LOGIC ERROR, MEMORY CORRUPTION or PATCH / MOD CODE. For known crashes it shows the fix as well (shortened example):
Download source  Code
Cause : DATA ERROR
Where : Graphics driver (Direct3D 8, pd3d8)
        [I3D_Driver__CreateMaterial]
What  : A pointer was overwritten by the text "irt_",
        a too long name overflowed its buffer
Known : Diffuse texture name in a BES model is too
        long (32+ characters)
Fix   : Rename the texture (and its file) to at most
        31 characters, re-export the BES.



• Repeated crashes are grouped, so a crash that keeps coming back is easy to spot
• Copy the .exe into your game folder and it opens the log right away
• Can analyze logs sent by other players (with the same game version)
• Read-only: it doesn't change any files or send anything anywhere

Download: https://github.com/erik-blasko/VC_Crash-translator/releases

The list of known crashes is short so far, since it's based on the crashes I've run into myself. If the tool can't explain your crash, please post your pt_excp.txt here and I'll try to add it in the next update.


Notes

The .exe files are not code-signed, so Windows SmartScreen may warn you. Click "More info" → "Run anyway". SHA-256 checksums are listed with each release, and the source code is on GitHub.

Thanks to Luigi Auriemma (cbfext, unlzw), Romop5 (vietcong-unpacker), the OpenVietcong project (vc-spec) and the Wine project, whose work made these tools possible.

Feedback and bug reports are welcome, here in the thread or via GitHub Issues.
  x 1  x 1
 
discord.com/users/411182584500846614
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Crash while dowload custom map Vietcong Tech Talk 6 11-02-2025 16:15
3DS Max crash Vietcong Tech Talk 6 05-12-2022 15:35
Ptero Engine II crash Maps & Mapping 2 02-02-2022 01:48
Editor Crash Maps & Mapping 3 18-05-2020 21:37
TP-HILL900 map causes crash? Vietcong Tech Talk 3 06-12-2018 15:05
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Render time: 0.06 seconds - 47 Queries 8,159,893 unique visits