Opened 12 years ago

Closed 12 years ago

Last modified 13 months ago

#8692 closed patch

WAG file parsing patch to AGI's fallback detector

Reported by: SF/buddha_ Owned by: sev-
Priority: normal Component: Engine: AGI
Keywords: Cc:
Game:

Description

Here's a patch that makes use of WinAGI's (http://www.winagi.com/) *.wag file format in AGI games' fallback detection. WAG-files may include information like game ID, game description, used AGI interpreter version, game's last edit date etc. This patch makes the AGI fallback detector use those information, if present.

Ticket imported from: #1735773. Ticket imported from: patches/797.

Attachments (2)

wagFileParsing.patch (21.6 KB ) - added by SF/buddha_ 12 years ago.
WAG file parsing patch to the AGI's fallback detector
WAGID.wag (453 bytes ) - added by SF/buddha_ 12 years ago.
A sample WAG file for testing the patch

Download all attachments as: .zip

Change History (7)

by SF/buddha_, 12 years ago

Attachment: wagFileParsing.patch added

WAG file parsing patch to the AGI's fallback detector

comment:1 by SF/buddha_, 12 years ago

Owner: set to sev-

by SF/buddha_, 12 years ago

Attachment: WAGID.wag added

A sample WAG file for testing the patch

comment:2 by SF/buddha_, 12 years ago

Here's a sample WAG file for testing the patch.

It contains the following information (In addition
to some other properties like CRC32, logics' and
sounds' and views' descriptions etc):

Game ID: "WAGID"
AGI Interpreter version: "2.411"
Game last edit date: "12.6.2007 17:59:51"
Game author: "test_wag_game_author"
Game description: "test_wag_game_description"
Game about: "test_wag_game_about"
Game version: "test_wag_game_version"

Try putting the WAG file into some directory
with nothing else in it and try detecting a game
from there.

Or if you want to see some warnings then put
two copies of the WAG file into some directory and
try detecting a game from there. It should bail out
and give you a warning about multiple WAG files.
File Added: WAGID.wag

comment:3 by sev-, 12 years ago

Status: newclosed

comment:4 by sev-, 12 years ago

Since that code appeared to be bigger than iI thought (mainly to great amount of comments :) ), I committed it as separate files.

comment:5 by digitall, 13 months ago

Component: Engine: AGI
Note: See TracTickets for help on using tickets.