Skip to content

About

Call of Duty Tools

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoD4 and CoD2 Tools

A small set of browser tools for Call of Duty 4 / Promod and Call of Duty 2, all on one page. Nothing to install and nothing to set up — open index.html and it works. Everything runs locally in your browser; no config is ever uploaded.

Live at https://tipsyspit.github.io.

Games and tabs

The page has a section per game, picked with the CoD4 / CoD2 buttons under the title; each section has its own tabs. The title, the logo and the browser tab's icon follow the game.

The tabs run top to bottom in a column beside the page by default; the two buttons at the top right switch them to a row, left to right. The choice is remembered in your browser.

Every tab has a link of its own: #cod4/minimap-generator, #cod2/demos. #cod2 alone opens the first tab of CoD2; links from before the games existed (#killfeed-colors) still work and lead to the CoD4 tab. Back and forward move between the tabs and games you visited.

CoD4

config checker

Paste a config or load a .cfg file, and it flags the lines that leagues and match servers usually disallow.

  • Forbidden DVAR names are marked red, forbidden contents in binds and values orange. The name list covers 318 known cheat and cheat-menu names.
  • A banned word in a player, server or map name (name, sv_hostname, ui_mapname, mapname) or in the text of say / say_team is listed gray for review instead ("^1Killer", "Kill Zone", "say need a radar").
  • Commands are read the way the game reads them: split at ;, also after a //, with /* */ skipped and quoted text kept together.
  • 33 protected client DVARs are never flagged, not even when the name contains a banned word.
  • Flagged lines are highlighted right in the text, with line numbers beside it.
  • Every finding has Jump to this line and Remove this line.
  • Load .cfg opens a local file, Copy puts the config on the clipboard, Download saves it as config_mp.cfg, or under the loaded file's name and in its encoding (Windows-1252 stays Windows-1252).

rcon commands

A Promod rcon reference with a copy button on every command: login and server commands, kicking and banning players, promod modes with their syntax, examples and preset modes, game modes, match control, and all 21 maps.

server configuration

Everything a server.cfg normally sets, grouped by purpose, with a copy button per block: identity, slots and passwords, logging, connection limits, anti-cheat, voice, downloads, Promod, one block per gametype and the map rotation. Where a setting notes a default or range, it is the one the engine registers, with the CoD4X value where that differs.

dvars

Every CoD4 dvar from the stock 1.7 game, CoD4x and Promod (1934), searchable by name or description, sortable by name, with filters for the protection and for each source. Columns: name, default, min, max, type, description, source. A click on a name copies seta <name> "<default>", or the name alone where the default is not known or a config cannot set the dvar (read-only).

  • Stock values are the game's own registrations. Flags, the Windows-only dvars (r_autopriority, cl_update…, r_smp_…), enum values and string defaults come from the original Windows 1.7 iw3mp.exe, read by emulating its registration code (tools/cod4_winexe.py); defaults, ranges and descriptions from the disassembly of the 1.7 Mac build that CoD4x keeps (tools/cod4_dasm in the CoD4x server repository), including the dvars it registers in loops (con_gameMsgWindow0–3…, one bg_shock_volume_… per sound channel). Descriptions are the game's own; where it has none, none is shown.
  • scr_<gametype>_timelimit and the other names the gametype scripts build are listed per stock gametype, with the default and range the script sets (marked "gsc" and "Generated name" in the description).
  • Each dvar's protection, beside the name; a click on it shows the reason and the file and line (or code address) it comes from:
    • cheat protected (tag): registered with the cheat flag (0x80) by stock 1.7 or by CoD4x; only works with sv_cheats 1.
    • cheat flag in stock 1.7 only (a small ⓘ): CoD4x registers it without the flag (g_debugBullets).
    • Promod enforced (tag): no cheat flag, but Promod blocks the screen while it has the wrong value (ui_mp/hud.menu); the reason names the value each version wants (Promod 2.91 and Promod X differ for rate).
    • read-only / init only (a small ⓘ): registered with CVAR_ROM / CVAR_INIT, by stock or by CoD4x (client or server).
    • script / config only (a small ⓘ): nothing registers it, neither the stock binary nor CoD4x; set, a script or a menu creates it at run time, so it has no flags and is not cheat protected.
  • Where CoD4x registers a different default or range, it is noted under the default.
  • Every dvar is proven by the CoD4 sources themselves: a registration, a config line, a script or menu that uses it, the engine reading or setting it by name, or its name in iw3mp.exe. The proofs are in js/cod4/dvars-proof.json, which the page does not load.
  • tools/build-cod4-dvars.py builds both files from a CoD4 install, the disassembly, the CoD4x client and server source, the Promod X and current Promod sources and the install's fast files as exported by cod4-ff; the command is at the top of the script. To keep the file small, each protection reason is written once and the entries point to it.

The minimap generator checks its dvars against the same data and would mark a cheat protected one; none of its twelve dvars is cheat protected.

killfeed colors

Pick your two team colors and get the config line for them.

  • Color picker, r g b a value and hex field per team — change any one and the others follow.

  • You can paste the values you already have in your config to see what color they are.

  • A live preview shows how the names look in the killfeed.

  • The result is a bind line that re-applies the colors on every key press, which helps on servers that reset them:

    bind W "+forward; g_TeamColor_Allies 0.498 0.655 1 1; g_TeamColor_Axis 1 0.541 0.361 1"
    

    Key and action can be changed.

scoreboard generator

Build your scoreboard and see it before you go in-game.

  • Team names, row colors, sizes and the ping display, all in one place.
  • The preview updates as you type and follows the game's own layout rules.
  • A ping ladder shows what every ping range turns into: how many bars and which color, for the values you have set.
  • The output comes in three blocks with a copy button each: the bind TAB line for the values the mod resets on every team change, the seta lines for the board and the ping graph, and the seta lines for the team names and colors.

minimap generator

Size the minimap and its icons and see the result on a real map.

  • Every compass dvar a player may set and that changes the multiplayer minimap: compassSize, the player, teammate and objective icon sizes, map rotation, and under Advanced the opacity and range of far icons, the tickertape width and the fade time. Defaults and limits are the engine's.
  • The preview draws the compass the way the game does: the game's own frame, tickertape, icons and minimap textures, each map's corners, north and compass range, S&D spawns and bomb sites. Pick a map, a position and the way you face.
  • The output is one seta line per dvar, with a copy button.

filmtweaks

Set the film colors (r_filmTweak*, r_filmUseTweaks, r_gamma) and see them on Backlot, Citystreets, Crash, Crossfire and Strike.

  • The preview runs the game's own color pass: the postfx_color pixel shader from code_post_gfx_mp.ff with the constants R_SetFilmInfo and R_UpdateColorManipulation build, then the render target's clamp and the r_gamma ramp. In WebGL, or per pixel on a canvas without it.
  • Five spots per map (attacker spawn, A, B, mid, defender spawn), each a 360° view: drag to look around, pinch or Ctrl + wheel to zoom, arrow keys and
    • / − on the focused picture, Reset view. The view is drawn first and the film pass then runs over the finished picture, as in the game, with the same shader as the flat preview; without WebGL each spot shows its start view.
  • Before / after shows your settings against the map's own film (its vision file, what r_filmUseTweaks 0 shows), split on the same view; All maps shows the chosen spot on all five maps side by side, with the shadows and the share cut at white of each underneath. Promod server applies Promod's r_desaturation 0 and r_filmTweakInvert 0; Mark lost detail shows where colors are cut at white or near black.
  • The tab opens with filmtweaks on (r_filmUseTweaks 1, r_filmTweakEnable 1; the game's own default is 0 for both); Reset, a preset or imported lines that leave either out turn it on too. Imported lines that set one to 0 keep it, with a hint under the switch.
  • Sunlight (r_lightTweakSunLight): Promod's three settings, 1.2 (where new players start), Stock (the map's own: Backlot 1.3, Citystreets 0.78, Crash 1.3, Crossfire 1, Strike 1, from Promod's map scripts, the same as each map's worldspawn) and Off. It is cheat protected, reset at every map load and set by Promod at every spawn, so there is no config line and nothing in the binds: the tab says how to set it in Promod (Graphics, 1. Lighting, or a key bound to openscriptmenu quickpromodgfx 1). The preview scales the sun's share of the light as the game does (sunColor × (sunlight − min)), from a second render of every spot without sun (<map>_<spot>_sunoff.js, loaded only when the sunlight is not Stock).
  • Cheat protected and Promod tags on the dvars, a warning when Promod would block a setting, presets (six suggestions, then TiPSY's and four examples that set every dvar, r_gamma too; each with a thumbnail on the shown map; a preset sets all five maps at once), randomize and fine-tune, importing pasted lines and a link with the shown film values, map, spot and sunlight (not the per-map setup, keys or bind names).
  • After Console commands, the per-map setup. All maps is on when the tab opens: one bind (F3) with brightness, contrast, tints, desaturation and r_gamma, ending in echo ^8[^9ALL_MAPS^8]^7. Off: one bind per map, ending in echo ^8[^9BACKLOT^8]^7 (the map's name in upper case); a key per map (F3 to F7). Under them two Promod toggles, each with its own key and on / off: bind F1 "openScriptMenu quickpromodgfx 1;echo ^8[^9TOGGLE_LIGHTING^8]^7" (Promod's Toggle Lighting: 1.2, Stock, Off) and quickpromodgfx 2 on F2 (Toggle Film Tweaks: r_filmUseTweaks on / off), tagged Promod only. A warning when two binds that are written share a key; Copy all binds copies the toggles, then the filmtweak bind(s). Each bind's name can be changed (letters, numbers, spaces, _ - . and color codes ^0–^9; empty is the default, ↺ resets it).
  • Under the preview, a note that the result looks different from monitor to monitor; fine-tune in game.
  • The pictures in assets/cod4/filmtweaks/ are renders by the CoD4 demo viewer's 3D maps (lightmaps, light grid, sun shadows, fog, sky), before any film pass: <map>_<spot>.js the start view (1280×688), 360/<map>_<spot>.js the six 2048×2048 faces of the 360° view, loaded only when the spot is shown (1024 on a phone) and let go when you leave the tab, as the start views are. The start views of the other maps load when All maps opens. The spawns are the S&D spawn point nearest the spawns' middle; A, B and mid are where the players of a recorded match stood most often there.

demo viewer

A link to the CoD4 demo viewer, a separate tool that loads a demo file in the browser and lays out what is in it.

FAQ

Answers to the questions that keep coming up around config_mp.cfg, searchable by question, answer or command. It opens with what to install for the CD version, the Steam version and FPS Challenge, and the settings answers give both the config line and the console command, with a copy button on each.

CoD2

The tabs, in order: chat generator, config checker, demo viewer, dvars, maps, name generator, rcon, server config, FAQ. Everything comes from the CoD2 1.3 game, CoD2x and zPAM themselves; nothing from CoD4.

name generator

Type a name with color codes (^1clan^2.^1tag ^4player) and see it the way the game draws it, in CoD2's own font with its drop shadow; copy the seta name "…" line.

  • One button per color, ^1–^9: it inserts the code at the cursor or colors the selection. ^8 and ^9 are the team colors (allies, axis) and change per map; pick the allies side to see theirs. Random colors per letter or word, and presets to start from.
  • The preview and the command show the name as a stock 1.3 server stores it: the client drops " ; \ and turns % into ., the server removes ^0 (a CoD2x server keeps it; the warning says so), leading spaces, more than 3 spaces in a row and a trailing ^, keeps at most 31 bytes (each ^X counts 2) and turns a name with nothing visible into UnnamedPlayer. The counter shows the bytes; a warning says what changed and why, including zPAM's rules for empty names and [{…}]. The colors show on the scoreboard; chat and the name above a player show it without them, in the team color.
  • Colors, team colors, rules and font come from the 1.3 game itself (renderer, scoreboard script, normalFont and its texture) and zPAM.

chat generator

Colored say / say_team messages as binds, previewed the way the chat shows them.

  • One row per message: bind key (checked against the game's key names, empty for a plain chat line), say or say_team, the text with its byte counter. The palette and the random colors work on the message being edited; the output is one bind F5 "say …" line per message.
  • The preview is the chat line the others see, in the game's font: the name in the team color, (Dead) and (Allies) / (Axis) where they apply, the text white for say and cyan for say_team, wrapped after 90 characters like the game does.
  • " and ; are left out (they would end the bind or the command), // or /* ends the message (a comment), % becomes ., spaces in a row become one, and the server keeps at most 149 bytes; each comes with a warning.

config checker

Paste a config or load a .cfg (it is only read in the browser) and see what the game does with every line.

  • Syntax errors (open quotes, set without a value, bind keys that do not exist), unknown dvars and commands with a "did you mean", values the game rejects (out of range, not a number, not one of the choices), read-only and write-protected dvars, cheat protected ones (orange: no effect without sv_cheats 1), what zPAM and CoD2x set or lock, duplicates (only values the game takes count) and latched dvars that change after a restart.
  • A summary with a count per kind that filters the list, a search, the line number of each finding to jump to it.
  • The config with the problem lines commented out (// [reason]), to copy or download; unknown dvars stay, since a mod may use them.
  • The rules are the engine's (how it sets a dvar, reads numbers and enum values, splits a line), the commands are every command the game registers (js/cod2/config-data.js, built by tools/build-cod2-config.py).

server config

A form that writes a server.cfg for a zPAM server, with comments.

  • Server info, passwords, downloads, network, CoD2x and logging, with the game's defaults and ranges and zPAM's recommended values. Passwords are never filled in: they start as CHANGE_ME, with a warning while they are.
  • Number fields only put numbers into the config: a value outside the dvar's range or something that is not a number is marked and warned about while typing, and set to the nearest allowed value (or the last good one) when the field is left. ; and \ are left out of server info values such as sv_hostname, which the game drops anyway (Info_SetValueForKey). sv_hideServerIp only works with the CoD2x 1.4.6.9 test build.
  • pam_mode from gametype, mode, score and options, with what each part means and the list of settings it sets at every map start, read from zPAM's rules files; fields the mode overwrites are marked. For pub the match settings of the gametype are part of the form.
  • The map rotation: stock maps and zPAM's map pack, a gametype per map, ordered by drag and drop or the arrow buttons; sv_mapRotation and map_rotate in the output. Warnings for maps zPAM replaces with a _fix version, a pam_mode a gametype does not take, and more.
  • Copy or download the server.cfg; nothing is stored or sent.
  • js/cod2/server-data.js is built by tools/build-cod2-server.py from zPAM.

maps

The 15 stock maps as cards: loading screen, name and internal name, with a search by name, internal name or zPAM version.

  • The detail view has the large loading screen, the allies and axis nations, who attacks in Search and Destroy (on every stock map the allies), the /rcon map command (and the zPAM _fix version's), the map from above (a top-down render, and zPAM's radar where it has one) and what zPAM changes: the _fix version it switches to, the kill triggers it can remove, British instead of Russians.
  • Tactics in the detail view opens a board for planning and presenting an S&D round, e.g. while screen sharing in a voice chat.
    • Each side has a rail at its edge, Allies left and Axis right, with its players 1–5 and its tools. Drag a player onto the map; click a player for Route, Smoke, Frag or Look: routes, throws and view cones (80°, cg_fov's default) start at the player and move with it. Right-click (long-press on touch) opens a radial menu with every tool at the pointer. Players, route ends and grenades snap to spawn points and bomb sites (Alt: no snap).
    • Start from builds a plan from the map's spawns and sites: A execute, B execute, B split (with the defense's default and rotation), default defense, or blank.
    • Fixed under the drawing: the S&D spawns of both sides (a triangle per spawn, pointing the way it faces, in a zone per group) and the bomb sites A and B with their plant area, each switchable, with a legend that says which nation attacks and which defends.
    • Each side is its own layer, in its scoreboard color, with its own phases, undo / redo, eraser, Clear (asked in the page) and visibility. The timeline has a track per side: click a phase, drag it to reorder, double-click to rename, + adds a phase with the players where they are; Play steps both sides together and the players glide from phase to phase; onion skin shows the phase before.
    • Present hides everything but the map, a small step bar (← → or the buttons) and a laser pointer; fullscreen with F. Wheel / pinch zooms, drag the empty map or Space-drag pans, double-click or 0 resets.
    • A grenade shows the HUD icon of its side's nation (M2 Frag Grenade, MK1 Frag Grenade, RGD-33 Stick Grenade, Stielhandgranate; CoD2 has no flash or stun grenade). A frag's ring is its real 256-unit damage radius, and a scale bar shows game units.
    • Keyboard: 1–9 tools, Shift+1–5 a player at the pointer, Tab switches the side, ? lists all keys. A short hint on the first open of each page load.
    • PNG: the current view (shown sides, spawns, sites, legend, scale), e.g. mp_toujane_tactics_phase1.png, or every step of Play. Nothing is saved: the drawing is gone when the board closes. Mouse, pen and touch; on a phone the map is on top with the Allies panel left and the Axis panel right below it (js/cod2/tactics.js).
  • tools/build-cod2-tactics.py builds js/cod2/tactics-data.js from the map files: the S&D spawns (mp_sd_spawn_attacker / _defender: position and facing) and bomb sites (bombzone with script_label A / B: position and trigger area) of each stock map's .d3dbsp, and the sides from its script. It checks every point against the images and the radar areas against zPAM's .radar files (CoD2x radar.cpp).
  • tools/build-cod2-maps.py (needs Pillow) builds js/cod2/maps-data.js and the images in assets/cod2/maps/: the loading screens from the game's .iwi files, zPAM's radar images, and the top-down renders of the CoD2 demo viewer's map export, with the world area each covers. It reads the sides from each map's script. For the tactics board it also writes one script per map in js/cod2/maps/ with the images as data URLs (a canvas that draws an image loaded from file:// can not be exported, one from a data URL can), and js/cod2/grenades-data.js: each nation's frag and smoke grenade with its English name, radius and HUD icon, from the game's weapon files.

dvars

Every CoD2 dvar from the stock 1.3 game, CoD2x and zPAM, plus the dvars only the CoD2rev server has (1388 in all), searchable by name or description, sortable by name, with filters for the protection and for each source. Columns: name, default, min, max, type, description, source. A click on a name copies seta <name> "<default>", or the name alone where the default is not known or a config cannot set the dvar (read-only, write-protected).

  • Each dvar's protection, beside the name; a click on it shows the reason and the file and line it comes from:

    • cheat protected (tag): registered with the cheat flag (0x80) by stock 1.3 or by CoD2x (release build); only works with sv_cheats 1. Where CoD2x takes the flag away (r_lodScale) or zPAM resets or sets the dvar, the reason says so.
    • CoD2x enforced (tag): while the server sets g_competitive 1 (zPAM does), CoD2x locks it, e.g. com_maxfps to 125–250.
    • set by zPAM (tag): zPAM sets it once, after the player's first team pick; the player can change it afterwards.
    • read-only, write-protected (DVAR_ROM, DVAR_NOWRITE, also where CoD2x sets it only on clients: g_competitive), read-only after start (the renderer adds DVAR_ROM when it starts, after the configs ran: r_fullscreen; CoD2x removes it again), zPAM rules (always reset to the rules' value) and script / config only (a small ⓘ).
    • script / config only: nothing registers it, neither the stock binaries nor CoD2x or CoD2rev (zPAM's registerCvar is a script cvar too); set, a script or a menu creates it at run time, so it has no flags and is not cheat protected.
  • Stock values are the game's own registrations: read from the 1.3 executable (through CoD2x's decompile of it, and its machine code emulated by tools/cod2_binreg.py, which also reads arguments held in registers), the renderer DLL and the stock Linux dedicated server. The engine ORs the flags of every registration of a dvar, so the renderer's count too. The dvars only a server registers (arch, username, ttycon) come from the Linux server, and where its default or range differs (dedicated 2, net_port), it is noted as "stock server".

  • Where CoD2x or zPAM use a different default or range, it is noted under the default, including what CoD2x patches into stock registrations (snaps max 40, cl_maxpackets max 125, com_hunkMegs 512, r_lodScale 0–1).

  • Names built in a loop are listed one by one and marked "Generated name" in the description: CoD2x's sv_wallbang_surface_<type>, zPAM's scr_streamer_text1–4, ui_matchinfo_map1–3 and sv_map1_name–sv_map3_team2 (name, score1, score2, team1, team2), and CoD2x's cg_headNationIcon…, cg_headName…, cg_headWeaponIcon… and cg_headWeaponName…, each for Spectator, Dead and Alive.

  • CoD2 registers its dvars without descriptions, so the descriptions come only from CoD2x's and zPAM's own documentation and code comments.

  • CoD2x is read from its current source; the data file's header and the tab name its version (a test build when the source is one).

  • Every dvar is proven by the CoD2 sources themselves: a registration, a config line, a script or menu that uses it, or its name in a CoD2 binary. No CoD4 data is used. Not counted as proof: pieces of names a menu macro glues together, script code that never runs (comments, /# #/ blocks, zPAM test functions no live code calls), the settings menus of gametypes the game does not ship, and on its own a line in the safe-mode, first-start or example server configs. The proofs (file and line or offset) are in js/cod2/dvars-proof.json, which the page does not load.

  • CoD2rev is a reverse-engineered CoD2 dedicated server with CoD2x support. Its registrations count as its own source: a dvar only it has is listed with the source "CoD2rev server", and where it differs from the game, it is noted. Its flags never count as proof for the game; the config checker treats a dvar only CoD2rev has as unknown.

  • tools/build-cod2-dvars.py (with tools/cod2_binreg.py) builds both files from a CoD2 install, the CoD2x source (with its bin/linux), the zPAM source and (optional) the CoD2rev server source; the command is at the top of the script. To keep the file small, each protection reason is written once and the entries point to it.

rcon

An rcon reference for stock CoD2 1.3, CoD2x and zPAM, built like the CoD4 one: a copy button on every command, which copies it as /rcon <command>, with placeholders in square brackets. Searchable by command or description, with filters for the source and the category.

  • A short guide on top: rcon_password on the server, then /rcon login, /rcon <command>, /rcon host and /rcon logout.
  • 66 commands (41 stock, 7 CoD2x, 18 zPAM) in players, chat, maps, match, bots, server and debug, each with syntax, a description and an example. Two that are easy to get wrong: kick also bans for sv_kickBanTime seconds (only onlykick and clientkick don't), and say / tell exist only on a dedicated server.
  • The gametypes and maps, stock and zPAM's map pack, one copy button each; the parts of pam_mode and zPAM's examples.
  • zPAM's 48 server settings from its in-game rcon menu, with a warning: in its match modes they go back to the rules' value at the next map.
  • Every command is proven by the CoD2 sources themselves: its registration in the 1.3 executable (CoD2x's decompile, checked against the executable) and the Mac build's named handlers, CoD2x's source, or zPAM's scripts and README. Nothing from CoD4, CoD4x or Promod. The proofs are in the data, not shown.
  • tools/build-cod2-rcon.py builds js/cod2/rcon-data.js from a CoD2 install, the CoD2x source and the zPAM source; it stops if a command can't be proven.

demo viewer

A link to the CoD2 demo viewer, a separate tool that replays a CoD2 demo in the browser, top-down in 2D or in the real map in 3D.

FAQ

Short answers: which tab is for what, how to use a line in game, where the config is, why name colors are gone in chat, what ^8 and ^9 show, why a setting does not stick, and how to set up a zPAM server.

Adding a tool

  1. Add its panel to index.html (<section class="panel" id="panel-..." role="tabpanel" aria-labelledby="tab-..." tabindex="0" hidden>).
  2. Add an entry to the game's tabs in js/<game>/game.js: tab id, panel id, label, the slug for its link and, if it has any, its scripts in the order they run (shared helpers and data files first).
  3. Put the tool's script in js/<game>/. It is loaded the first time its tab is shown (or its tab button is pointed at), not with the page, so a visit only downloads the open tab's scripts.

The game switcher, the tab bars and the links are built from the game.js files; a new game is one more folder js/<game>/ with its game.js, loaded after js/shared/games.js, and its icons in assets/<game>/icons/.

Files

The JavaScript is split by game: js/shared/ holds only what works for any game and gets everything game-specific as configuration; js/cod4/ and js/cod2/ never refer to each other. All of it loads as plain scripts, so the page also works from disk: index.html loads the shared ones and each game's game.js, and js/shared/tabs.js loads a tab's own scripts (listed in its game.js entry) through js/shared/loader.js when the tab is first shown. Until they have run, the tab's content and the footer stay invisible, so nothing jumps.

index.html              the page
css/style.css           styling, light and dark
js/shared/games.js      the list of games, filled by each js/<game>/game.js
js/shared/tabs.js       builds the game switcher and tab bars, handles the links,
                        loads a tab's scripts when it is first shown
js/shared/loader.js     loads scripts on demand, in order, as plain <script> tags
js/shared/tablayout.js  the tab bar's column or row, applied before the page is drawn
js/shared/decimal.js    number fields: decimal point, limits, - and + buttons
js/shared/ui.js         small helpers every tool uses: copy to clipboard, the status
                        line, building elements, escaping HTML
js/shared/dvar-table.js the table of a dvars tab, set up by js/<game>/dvars.js; it
                        adds the rows a part at a time, with the column widths
                        of all of them
js/cod4/game.js         CoD4 and its tabs
js/cod4/                one script per tab: checkcfg.js, rcon.js, serverconfig.js,
                        dvars.js, killfeed.js, scoreboard.js, minimap.js,
                        filmtweaks.js, faq.js
js/cod4/filmtweaks-360.js
                        the 360° view of the filmtweaks tab (WebGL cube faces)
js/cod4/dvars-data.js   the dvar list (dvars-proof.json: its proofs, not loaded)
js/cod4/dvars-subset.js the few entries of that list the filmtweaks and minimap
                        tabs read, built with it, so they load 1 KB, not 300
js/cod4/killfeed-icons.js
                        the killfeed icons as data URLs, so they can be measured
                        from disk too
js/cod4/minimap/        minimap data: maps.js and icons.js, and one script per map
                        with its texture, loaded when that map is picked (Backlot
                        X uses Backlot's: the same texture, "imageFrom" in maps.js)
js/cod2/game.js         CoD2 and its tabs
js/cod2/ui.js           the copy buttons of the CoD2 tabs
js/cod2/dvars.js        the dvars tab
js/cod2/dvars-data.js   the dvar list (dvars-proof.json: its proofs, not loaded)
js/cod2/rcon.js         the rcon tab
js/cod2/rcon-data.js    the rcon commands, with their proofs
js/cod2/text.js         colored text in the game's font, the color palette and the
                        editing helpers, shared by the name and chat generators
js/cod2/namegen.js      the name generator
js/cod2/chatgen.js      the chat generator
js/cod2/name-data.js    colors, team colors, name and chat rules, key names and the
                        game font
js/cod2/configcheck.js  the config checker
js/cod2/config-data.js  every console command of the game and CoD2x
js/cod2/serverconfig.js the server config
js/cod2/server-data.js  what each zPAM pam_mode sets, zPAM's example values
js/cod2/maps.js         the maps tab
js/cod2/maps-data.js    the stock maps and what zPAM changes on them
js/cod2/tactics.js      the tactics board of the maps tab; it and its data load with
                        the first click on Tactics, not with the tab
js/cod2/tactics-data.js the S&D spawns and bomb sites of each map, for the board
js/cod2/grenades-data.js
                        each nation's grenades and HUD icons, for the board
js/cod2/maps/           one script per map with its overhead images for the board,
                        loaded when the board opens that map
assets/cod4/            icons/cod4.png (browser tab and game switcher, from the
                        CoD4 demo viewer),
                        scoreboard/preview-bg.png (loaded with the scoreboard tab),
                        filmtweaks/: per spot (5 maps × 5 spots) its start view,
                        <map>_<spot>.js, and the same view without sun,
                        <map>_<spot>_sunoff.js; filmtweaks/360/: the 360° views,
                        with and without sun; each loaded only when it is shown
assets/cod2/            icons/cod2.png (from the CoD2 demo viewer),
                        maps/: loading screens, top-down renders and zPAM radars
LICENSE                 the license
tools/                  build-cod4-dvars.py (with cod4_winexe.py) rebuilds
                        js/cod4/dvars-data.js and dvars-subset.js from CoD4,
                        CoD4x and Promod;
                        build-minimap.py rebuilds
                        js/cod4/minimap/ from a CoD4 install and cod4-ff (needs
                        Pillow). For CoD2, from CoD2, CoD2x and zPAM:
                        build-cod2-dvars.py (with cod2_binreg.py), build-cod2-rcon.py,
                        build-cod2-names.py, build-cod2-config.py,
                        build-cod2-server.py, build-cod2-maps.py (needs
                        Pillow and the cod2-demo map export) and
                        build-cod2-tactics.py rebuild the
                        js/cod2/*-data.js files and assets/cod2/maps/

To rebuild the CoD2 data (Python 3.10+, run from the project root):

python tools/build-cod2-dvars.py  --cod2 <CoD2> --cod2x <CoD2x> --zpam <zpam3> --cod2rev <cod2rev-server>
python tools/build-cod2-rcon.py   --cod2 <CoD2> --cod2x <CoD2x> --zpam <zpam3>
python tools/build-cod2-names.py  --cod2 <CoD2> --cod2x <CoD2x> --zpam <zpam3>
python tools/build-cod2-config.py --cod2 <CoD2> --cod2x <CoD2x>
python tools/build-cod2-server.py --zpam <zpam3>
python tools/build-cod2-maps.py   --cod2 <CoD2> --zpam <zpam3> --cod2demo <cod2-demo>
python tools/build-cod2-tactics.py --cod2 <CoD2> --zpam <zpam3> --cod2demo <cod2-demo>

js/cod4/killfeed-icons.js is built by embed-icons.pl, which is kept outside this repository.

Credits

  • © 2013, A dude on Tek-9.org — original config checker
  • © 2013–2021, jNizM
  • © 2021–2026, TiPSY

About

Call of Duty Tools

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages