Skip to content

AI.obj Sxxx. messages importer

DmitryV edited this page Nov 25, 2020 · 2 revisions

Description

Module do export all string variables (Sxxx) to text file. Also imports these back to Ai.obj. This feature use for translating all say/shout npc messages.

Use

  • Tab "AI", button "AI.obj Sxxx. messages importer"
  • Use "Export"
    • Select source Ai.obj
    • waiting
    • check ai_messages.txt file into current folder
  • Use "Import"
    • Select ai_messages.txt
    • Select target Ai.obj
    • waiting
    • check ai_messages.txt file into current folder

Example code

Before import

fetch_i
push_const 0
S36732. "山寨争夺战"
push_string S36732

Import translated text

fetch_i
push_const 0
S36732. "Competition for the Bandit Stronghold"
push_string S36732