CHA Viewer

Started by Sledgy, Tue 14/01/2014 23:35:16

Previous topic - Next topic

Sledgy

Who can create fast CHA Viewer?

. FileListBox with cha-s
. Choose cha -> see frame #0 (loop 0)


I have pack of characters, and I can't to import it all to check it, I need to browse it

Cha examples (+ BMP versions)

Khris

Correct me if I'm wrong, but you can't do this with an AGS game. In order to view .cha files, you have to import them into the editor.
There's no command to import a .cha file at runtime.

Gilbert

I think he knew this. It's just a request for someone to make a viewer for the .cha format.

Crimson Wizard

There's already code for reading CHA in the Editor (obviously), and it looks pretty straightforward, except for calling native C++ code when creating bitmap, which may require setting up Allegro, or copying the important code manually from the library (which is open source too).

If anyone's interested, seek for functions ImportCharacter272 and ExportCharacter272 in Editor\AGS.Editor\ImportExport.cs.

Sledgy



http://www.mediafire.com/download/b11bihpq9nn9pzc/CHA_Viewer_v05.rar

v0.5, 'cause wrong palette for viewed frame. It's bad)


There's original code (C++) in ImportExport file. See pls, here is palette info, maybe you can convert it to Delphi code

And also there's source of the CHA Viewer (Delphi 6)

SMF spam blocked by CleanTalk