PDA

Просмотр полной версии : Wanted! Ищестся Формат .sav



swan
01.08.2004, 20:36
Post from EsatP

Кто-то писал про формат SAV. Якобы он взят из SPSS10. На выходные поставил сию прогу, надо сказать далеко не простая штучка. И в результате пшик. Пытался импортировать все три типа файлов.
1. Обычный сейв просто не воспринимается никак, ясное дело упакован черти-чем.
2. Автосейв и распаковка прогой с фанатиков. Принимается SPSS, но очень интересно. Ну то, что она говорит, что это не ее формат пережить можно. Дальше удается вытащить то, что основная база имеет имя CIV, что очень информативно, а таблица переменных одну несчастную переменную V1.
Кто-нибудь реально раскрывал базу SAV или это были умозаключения типа и там и там файлы по умолчанию имеют расширение SAV?

swan
01.08.2004, 20:38
Post from UniqueUnit

Как следует из обсуждения на том же Аполетоне форматы.Sav и .Bic -
по сути одно и тоже.
============================

The SAV format is less space efficient than the BIC format.
For a section in the BIC format there are
4 char NAME
4 long Number
for each section
4 long length of section n
Section Data


For the saves the build up is
4 char NAME
4 long size of section header (many sections have variable length data blocks after the header)
The first section of the SAVE is the "BIC " section, which stores the full BIC/BIX file used with it
header data
data

The First section of the saves is "BIC " In the first public saveversion (14 (1.07f)) the "BIC " header were four bytes telling the length of the BIC data.
In later versions it will also contain info on the source of the data.

The two first GAME sections you referre too is (as I see it a bug, only one of them is needed (and it's only with later varsions it started to show up), but I've not taken myself time to see which one of the two the game actually used (they are identical))

The third on is the GAME section for the Ssave which contains overall data as for instance the number of cities, units and colonies (in header) and research progress for all civs and great wonder data (in the data area)

==================================

http://apolyton.net/forums/showthread.php?...62&pagenumber=2 (http://apolyton.net/forums/showthread.php?threadid=48062&pagenumber=2)

Т.е. как я понял, все самое необходимое можно выдрать из первой части sav-файла, которая записана в формате bic/bix/biq/

сам формат Bix - здесь.
http://apolyton.net/forums/showthread.php?threadid=105623
там же и распаковщик.

ЗЫ я сам пока не пробовал - просто нет времени. А ведь еще и играть в JGP надо . Бог даст - со второй частью sav-файла поробую разобраться в выходные, (если jgp доиграю... )

swan
01.08.2004, 20:44
Вроде остальное к флейму в этой теме отностися
Больше подобных постов не будет