Skip to content

v2.8.0 — AI Script Editor, Object List, Terrain Editor

Choose a tag to compare

@haseeb-heaven haseeb-heaven released this 04 Jun 10:30

🤖 IGI Editor v2.8.0 — Pre-Release

This release brings a full inline AI Script Editor embedded inside the property panel, a proper mini-notepad text editor with scrolling and arrow-key navigation, a complete autocomplete overhaul that makes Ctrl+N/Ctrl+Space work in every textbox, and three keyboard shortcut fixes in the find system.


✨ What's New

🤖 Inline AI Script Editor

The biggest feature of this release. When you select any HumanSoldier or HumanAI task and open its properties, the panel now shows a dedicated AI Script section at the bottom:

  • AI Script Path — Editable textbox showing the resolved .qvm file path (e.g. D:\IGI1\missions\location0\level1\ai\2203.qvm). Change the path and press Enter to load a different script file.
  • AI Script — Tall multiline textbox showing the fully decompiled QSC source of the AI behaviour script. Edit it like a text file.
  • Correct task ID — The path correctly uses the HumanAI child task's ID (e.g. 2203), not the parent HumanSoldier's ID.
  • Compile-on-Save — Changes compile back to .qvm only when you save the level (F3 / Save button). An orange "modified — save to compile" label appears when unsaved edits exist.
  • Round-trip validation — After compiling, the written .qvm is parsed back to catch silent corruption before it reaches the game.

📝 Mini-Notepad Text Editor

The AI script textbox is a real text editor — not just a display:

Feature Detail
Vertical scrolling Mouse wheel + PageUp / PageDown
Arrow key navigation ← → by character · ↑ ↓ by visual line (column preserved across wrapped lines)
Mouse click positioning Click anywhere in the box to move the caret to that character
Horizontal scroll (path box) Path textbox scrolls horizontally as you type or move the caret
Proper line wrapping \n-aware: each logical line renders on its own row; long lines wrap at box width
Active border Box highlights with a yellow border when focused for editing
Autocomplete Ctrl+N opens keyword picker, Ctrl+Space inline-completes the word at cursor

🔡 Autocomplete Overhaul — Works Everywhere Now

Root cause fixed: A stale prop_text_edit_field_ < 0 guard was silently blocking Ctrl+N, Ctrl+Space, and Ctrl+O in every text field. All guards now correctly check == -1 (the actual "no field" sentinel), so AI field IDs (-10, -11) no longer get blocked.

Shortcut What it does
Ctrl+N Opens keyword picker — INSERT at cursor in AI script, REPLACE in standard fields
Ctrl+Space Inline autocomplete — completes the word before the cursor in any text box
Ctrl+O Model ID picker — unchanged, still working as before

Caret-preserving insert: When Ctrl+N opens the picker, the cursor position is saved. Confirming a pick inserts the keyword exactly where your cursor was in the script — the code before and after the cursor is preserved.

Example: Type WEAPON_ID_AK → press Ctrl+Space → auto-completes to WEAPON_ID_AK47


⌨️ Find Shortcut Fixes

Shortcut Fix
Ctrl+Shift+X TaskFindTextInTask — rebound from Ctrl+H (was permanently blocked by ASCII backspace)
Ctrl+Shift+N TaskFindByTaskNote — was consumed by Ctrl+N autocomplete intercept; now correctly fires
Ctrl+Shift+F TaskFindAgain — now scrolls and highlights the found task in the tree after each press

📦 Installation

  1. Download IGI Editor v2.8.0 (Windows x86) below
  2. Extract to your Project IGI game directory (next to igi.exe)
  3. Run igi1ed.exe

Requires: Project IGI installed at a known path. The editor auto-detects the IGI root from its own directory.


🗒️ Full Changelog

See CHANGELOGS.md for the complete change log.


Compatibility: Fully backward compatible — existing levels and configurations work without modification.