Retail MED (updated 14 Nov 2026): NovaLogic's MED with fixes, for Joint Ops and Escalation

For mappers making maps for plain Joint Ops (base game or Escalation): no mod, no extra DLL, no special server.
Same MED, same maps - they work on any normal server. You'll see "FMJ retail fixes" in the title bar and in
Info > About.

NEW IN THIS UPDATE (14 Nov 2026, later)
CHECK WAC SCRIPT - NOW BUILT INTO MED
 - Tools > Check WAC Script... (under "open Mission WAC!") checks a WAC script inside MED. No other program is needed any more (the separate
WACChecker.exe is retired - you can delete it).
  1. A file picker opens on your mission's own script (MyMap.mis -> MyMap.wac); if there is none yet, in your
     mission's folder. Pick any saved .wac you like, anywhere. Cancel = nothing happens.
  2. MED checks it with the plain Joint Ops rules - the game's own script compiler plus plain-English advice - against
     the map OPEN IN MED RIGHT NOW: objects you added or deleted count straight away, no need to save or export.
  3. The results show in their own window next to MED: the summary ("2 errors, 1 warning, 0 notes" or "No
     problems found"), every problem with its line (errors red, warnings orange, notes blue), and for the one you
     click the full explanation, the game's own compiler message and the script lines around it, marked.
     "Check again" re-reads the script and the map (fix the script in your editor, then press it). "Close" shuts it.
  It catches typos, a missing ENDIF, commands short of values, objects that aren't on the map,
  \\ used as a comment, Unix line endings that make a whole script silently do nothing, and more.

EARLIER UPDATE (5 Nov 2026)
 - AI Link: an AI agent on your own PC can help you build your map. It can move, turn, add and delete objects
   in the map you have open, and save. It goes through MED's own routines, so MED redraws straight away and
   moves, turns and deletes can be undone with Ctrl+Z.
   If you don't want it, ignore it: it's OFF until you tick File > AI Link, and MED works as it did before.
   To use it:
   1. Open your map in MED. Work on a copy while it's new.
   2. Tick File > AI Link (or start MED with /AILINK).
   3. Give your agent the guide: https://fmj-squad.com/downloads/JOTACmed_AGENTS.md
      and the tools: https://fmj-squad.com/downloads/MED_agent_tools.zip
      The tools let it read the open map, measure what floats or clips, and draw pictures of it.
   4. Untick File > AI Link when you've finished.
   Good to know:
   - It only works on your own PC. Nothing can reach it from another machine, but while it's on, any program on
     your PC can edit the open map.
   - With a dialog open, MED refuses the agent's edits and nothing moves.
   - Adding an object clears MED's undo list, the same as MED's own Insert.
   - The agent's pictures come from its own renderer, not the game, so check the map in MED's 3D view and in game.
   - It isn't an AI itself: you bring your own agent.
   Tested in MED on stock Joint Ops and Escalation maps. Maps exported by this MED and the last one are the same
   apart from the "saved on" time. No map edited this way has been played on retail yet, so please say if
   anything looks wrong.

UPDATE OF 28 OCT 2026
 - Your tiles can no longer be lost on save. Every time MED saved the tile file (.til) - Save As, Export,
   Save and Export, each 5-minute autosave - it borrowed some memory to build the file and never gave it back
   (NovaLogic's own MED did this too). After a few hours of work on a big map the memory ran out, and the next
   save wrote an EMPTY .til over the good one, without a word: all the ground tiles gone in game. The tiles were
   always still in the .mis.
   Now the memory is given back after every save; MED builds the tile file before replacing the old one, so a
   failed save can't wipe a good .til; and if a .til ever can't be saved (disk full, file read-only, ...) a box
   says so, with the file name. Got a 0 KB .til already? Open the .mis in this MED and export again.

UPDATE OF 20 OCT 2026
 - File > Import Nile Project reads Water Murk from the updated Retail Nile (20 Oct 2026). That Nile now saves
   murk as the whole percent the game reads (old Nile saved a fraction the game ignored); MED reads both the
   new and the old way, so the murk you set in Nile comes into MED and into your .bms.

EARLIER THE SAME DAY (20 Oct 2026)
 - Solid 3D view: a "Solid 3D" button next to "3D Wireframe". Select an object and click it: every surface
   is filled in and shaded, with outlines, so walls, floors and roofs are easy to tell apart.
   In the 3D view: V = switch solid / wireframe, H = cut-away on/off (hides everything higher than 2 m
   above the selected object, so you can look inside a building), PgUp / PgDn = move the cut 0.5 m
   (Shift = 2 m). The yellow line top left of the view says which mode is on.

EARLIER UPDATE (16 Oct 2026)
 - Edit > General Information: the two night vision boxes are separate now.
   The first box ("Night Vision Goggles Available") never controlled NVGs - players can always use them.
   The game only reads it as "this is a night mission" (night death sounds, a small change to the AI), so it
   is now called "Night Mission (sounds + AI)". "Start with NVG Turned On" does work (players spawn with
   NVGs on) and can now be ticked on its own; MED used to grey it out unless the first box was ticked.
   Existing maps keep exactly what they had.
 - Group names on new maps: group 1 is "All Players", group 2 is "Group 2". The game puts every human player
   in group 1 whatever their team, and nobody in group 2, so "Blue Players" / "Red Players" were misleading.
   Only the default names changed; maps that already have names keep them.

WHAT'S NEW (since the first release)
 - Autosave every 5 minutes: YourMap_autosave1/2/3.mis + .til next to your map (1 = newest).
   File > Autosave every 5 minutes switches it off/on (remembered).
 - Crash files: if MED crashes it writes MED_crash_<date>.dmp (please send it to the FMJ team), tries an
   emergency save to YourMap_crash.mis/.til, and a box tells you where both are.
 - Mouse-wheel zoom no longer freezes MED.
 - No more false "READ-ONLY ... will NOT be saved" box when saving a new map.
 - Picking a terrain whose height file is missing shows a message instead of crashing.
 - No more "Can't find file .tga" after switching to a terrain with a different tile strip.
 - Deleting an event now removes the "Reset Event" actions that pointed at it (before, they were moved onto
   a different event).
 - Big screens (1440p, 4K): MED no longer scrambles itself when its window is taller than 1024 pixels
   (tabs that won't switch, "save this mission?" on unchanged maps).
 - No crash drawing a vehicle whose type has no vehicle details.
 - File > Import Binary Mission (.bms): turns any .bms back into an editable .mis.
   Every .bms MED exports also carries the whole map inside it, so importing your own exports is exact.
   (The game ignores that extra part.)
 - File > Import Nile Project (.npj / .npz): place objects in Nile's 3D view, finish the map in MED.
 - Reads game archives bigger than 2 GB.
 - Saving in a folder with a dot in its name no longer puts the .til somewhere else.
 - The weapon list comes from the game itself: start MED normally for Joint Ops weapons, or with /MOD jox01
   for Escalation's.
 - MED tells you when a map is full instead of silently doing nothing, and a map made in a modded editor that
   is too big for normal Joint Ops opens safely: MED keeps what fits, tells you what it left out, and saves it
   as YourMap_retail.mis so your original is never overwritten.

HOW TO INSTALL
This zip is the COMPLETE MED: MED_retail.exe plus NovaLogic's MED files it needs (MedDll.dll, med.pff) and
NovaLogic's MED manual (MEDMAn.pdf). Plain Joint Ops doesn't come with MED, so nothing else is needed.
Unzip everything into your Joint Ops game folder (the one with JointOps.exe and resource.pff) and run
MED_retail.exe from there. If that folder already has MedDll.dll / med.pff, they're the same MED files.
Always the newest retail MED at the same link: https://fmj-squad.com/downloads/MED_retail.zip
   Joint Ops maps:    MED_retail.exe
   Escalation maps:   MED_retail.exe /MOD jox01   (make a shortcut with that on the end)
It's a new file, so your old MED stays as it is.

CHECKED ON THE STEAM JOINT OPS FILES
 - 16 NovaLogic maps (10 Joint Ops, 6 Escalation) imported and exported again: everything comes back the same.
   (Some NovaLogic maps name "WPN_CAR15AUTO" as the default gun, which isn't in the game's weapon list - MED
   leaves it out, and the game can't use it either.) The 10 Joint Ops maps re-checked with this update.
 - Autosave, crash file + emergency save, wheel zoom, both terrain fixes, delete event, big screens, Nile import.
 - The 16 Oct update: the night vision boxes, saving and reopening them, and the new group names.
 - This update: a Nile map with Water Murk 40 (new Nile) and 0.5 (old Nile) both import as murk 40 / 50 and
   export with that murk in the .bms.
Found a problem? Send the crash file and a note of what you did to the FMJ team (fmj-squad.com).

Fixes by BadgerLove. MED by NovaLogic.
