From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Format:AGS asset library" |
|---|
| claim | "The engine scans a directory for files named *.ags, ac2game.dat, agsgame.dat or *.exe (case-insensitive) and takes the first one whose asset library table of contents (read with AssetManager::ReadDataFileTOC, so any valid CLIB library, appended to an exe or not) lists an asset named game28.dta or ac2game.dta (case-insensitive); other libraries (speech, audio) are skipped because they lack that asset." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:AGS asset library" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "directory scan plus table of contents lookup" |
|---|
| indicator | "file name pattern *.ags, ac2game.dat, agsgame.dat, *.exe; asset game28.dta or ac2game.dta in the TOC" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Read IsMainGameLibrary and both FindGameData overloads." |
|---|
| repo | "https://github.com/adventuregamestudio/ags" |
|---|
| commit | "01cc4c3dafea4a5fc5804d887ca21975f738ce4e" |
|---|
| path | "Common/game/main_game_file.cpp" |
|---|
| lines | "105-158" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Finding the main game library" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T11:04:24.769Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:47:54.180Z" |
|---|
| result | "partial" |
|---|
| method | "Fetched ags main_game_file.cpp at 01cc4c3 and read IsMainGameLibrary and both FindGameData overloads (lines 105-158) plus MainGameSource constants (game28.dta, ac2game.dta, lines 44-45): file-name tests (.ags, ac2game.dat, agsgame.dat, .exe, case-insensitive), first match in directory order, CompareNoCase on the two asset names are confirmed. The statement that ReadDataFileTOC accepts any valid library appended to an exe or not rests on code outside this file, which was not read." |
|---|
|
|
|---|