Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
Helbreath 3.82 - Classic MMORPG client-server in C++ for Windows (early 2000s codebase).
Sign in to like and favorite skills
Helbreath 3.82 - Classic MMORPG client-server in C++ for Windows (early 2000s codebase).
| Rule | Details |
|---|---|
| Always build from solution | Use , never from or |
| Win32 only | Target x86/Win32 architecture exclusively |
| No git commits | Work only in the working tree |
| No over-optimization | Implement only what is requested |
| Delete refactored code | Do not keep old code "for reference" - git has history |
| Build early and often | Rebuild after each logical change |
| Backup before bulk edits | Create files before mass find/replace operations |
| Use Python for file ops | Prefer Python over PowerShell for text manipulation |
ALWAYS use the full path to batch files (do NOT use
):cmd.exe /c "cd && batch"
# Build both Client and Server "C:\Users\ShadowEvil\source\Repos3\Helbreath-3.82\build_all.bat" # Client only "C:\Users\ShadowEvil\source\Repos3\Helbreath-3.82\build_game.bat" # Server only "C:\Users\ShadowEvil\source\Repos3\Helbreath-3.82\build_server.bat"
Log files are created:
build_all.log, build_game.log, build_server.log
Output:
Debug\Game.exe, Debug\Server.exe (or Release\)
Sources/Client/ - Game client (DirectDraw/DirectInput/DirectSound) Sources/Server/ - Game server (networking, AI, world state) Dependencies/Shared/ - Shared headers (NetMessages.h, ActionID.h, DynamicObjectID.h) Dependencies/Client/ - DirectX SDK headers and libs Binaries/Game/ - Client configs and assets Binaries/Server/ - Server configs PLANS/ - Implementation plans for significant changes
| File | Purpose |
|---|---|
(~1.7MB) | Client game loop, rendering, UI |
(~2.1MB) | Server logic, entity management |
| Network protocol (must match both sides) |
| Async socket wrapper (both sides) |
m_ members, p pointers, i int, sz strings)C prefix, PascalCase (CGame, CClient, CNpc)DEF_ prefix, ALL_CAPSnew/delete, no smart pointers#pragma onceCGame - Monolithic class: rendering, input, network, UIXSocket - Async sockets via Windows message pump (WM_USER_GAMESOCKETEVENT)CGame - Central coordinator for all systemsCClient - Player session (inventory, stats, skills, connection)CNpc - NPC behavior and AICMap - Tile-based world, collision, visibilityNetMessages.hPLANS/.vcxproj to include new source/header filesDONE.md, mark complete in TODO.mdNo automated tests. Manual only:
Binaries/DEF_MAXCLIENTS 2000 DEF_MAXNPCS 5000 DEF_MAXMAPS 100 DEF_MAXITEMTYPES 5000 DEF_MAXDYNAMICOBJECTS 60000
TODO.md)