FAshion FA_BIG

FA_BIG

A patched FA.EXE (version 1.02f) that starts with far more .LIB archives and shape files in the game folder. The original game silently overflows its tables and dies at startup with “Not enough memory.” FA_BIG gives those tables much more room.

修改過的 FA.EXE(1.02f 版),讓遊戲目錄可以放更多 .LIB 和外形檔。原版的表格滿了不會檢查,直接寫壞記憶體,啟動時就跳出 「Not enough memory.」 結束。FA_BIG 把這些表格放大很多倍。

⬇ Download FA_BIG.ZIP下載 FA_BIG.ZIP How to install安裝方式 ZIP 619 KB · FA.EXE 1,319,424 B · CRC32 7EE82875

Try it: will the game start?

試試看:遊戲能不能啟動?

At startup FA scans its folder and every .LIB inside it, and writes one 35-byte entry per file into a file index. Move the sliders to see what each EXE does with your folder.

FA 啟動時會掃描遊戲目錄,以及裡面每一個 .LIB,每個檔案在「檔案索引」裡佔一格(35 bytes)。拉動滑桿,看兩個 EXE 遇到你的目錄會怎樣。

FA.EXE 1.02f

File index檔案索引
LIB slotsLIB 格子

FA_BIG (renamed FA.EXE)(改名為 FA.EXE)

File index檔案索引
LIB slotsLIB 格子

Duplicates count too: every copy of a file, in any LIB or loose, takes an index slot during the scan before duplicates are removed.

重複的檔案也算:同名檔案不管在哪個 LIB 或是散檔,掃描時每一份都先佔一格,之後才去掉重複的。

Same file name in several places

同名檔案放在好幾個地方

After the scan FA sorts the index by name, then by date and time (newest first, compared to the minute), and keeps only the first of each name. A file inside a LIB gets the LIB file's own date. Change the dates below to see which F14.SH the game would load.

掃描完後,FA 會依檔名排序,再依日期時間排序(新的在前,比到分鐘),每個檔名只留第一個。LIB 裡的檔案用的是那個 LIB 檔本身的日期。改改下面的日期,看看遊戲會載入哪一個 F14.SH。

The copies that lose cost nothing after startup: they are dropped from the index, never loaded, and use no object or cache slot. Only disk space, and a LIB stays memory-mapped as a whole.

沒被選中的那幾份,啟動後就不再佔東西:它們從索引移除、不會被載入,也不佔物件或快取的格子。只佔硬碟空間,另外 LIB 整個檔案會一直映射在記憶體位址空間裡。

What FA_BIG changes, and what it does not

FA_BIG 改了什麼、沒改什麼

Limit上限FA.EXEFA_BIGWhat happens when it is exceeded超過時會怎樣
File index (loose files + all LIB members, duplicates included)檔案索引(散檔+所有 LIB 成員,含重複)9,950100,000No bounds check: memory is overwritten and the game dies at startup.沒有邊界檢查:寫壞記憶體,啟動時就掛掉。
.LIB files.LIB 檔數量20256No check: the 21st LIB overwrites the LIB counter.沒有檢查:第 21 個 LIB 會蓋掉計數器。
Resource cache (SH, PIC, type files loaded at once)資源快取(同時載入的 SH、PIC、型別檔)1,4004,096Loader keeps reloading the same file (hang).一直重載同一個檔(卡住)。
Object memory pool物件記憶體池300 KB1.5 MB“Not enough memory.” in a mission.任務中跳「Not enough memory.」。
Objects in a mission任務中的物件數900900“Not enough memory.” Not changed: over 580 places in the code use these tables.「Not enough memory.」。沒改:程式裡有 580 多處用到這些表。
Vertices per SH shape每個 SH 的頂點數900900Fixed vertex table in the shape renderer.外形繪製用的頂點表是固定的。
Files in one LIB單一 LIB 的檔案數32,76732,767That LIB is skipped.那個 LIB 會被略過。
File names檔名長度8.38.3Longer loose names are never loaded; LIB names over 13 characters overflow.散檔名太長永遠不會被載入;LIB 檔名超過 13 個字元會溢位。
Total LIB sizeLIB 總大小~2 GB~2 GBAll LIBs stay mapped in the 32-bit address space.所有 LIB 都映射在 32 位元的位址空間裡。

Only 63 bytes of code and one new empty section (.rmcache) differ from 1.02f. Four bytes in unused padding make the CRC32 equal to the original, so launchers that check the 1.02f CRC still accept it.

跟 1.02f 相比只改了 63 個位元組的程式碼,加上一個新的空區段(.rmcache)。另外在沒用到的空白處改了 4 個位元組,讓 CRC32 跟原版一樣,所以會檢查 1.02f CRC 的啟動器也能用。

Download and install

下載與安裝

  1. Make sure you have FA 1.02f. FA_BIG is built from the 1.02f FA.EXE.
  2. Back up your FA.EXE, for example rename it to FA_ORIG.EXE.
  3. Download FA_BIG.ZIP and unzip it into the game folder. It contains one file, FA.EXE.
  4. Keep the name FA.EXE. The game looks for <exe name>.SMS, which shapes need. If you rename the EXE (for example FA_BIG.EXE) it stops with “Not enough memory.” right away.
  5. Start the game as usual, directly or with your launcher.
  1. 確認你的 FA 是 1.02f 版。FA_BIG 是用 1.02f 的 FA.EXE 改的。
  2. 先備份原本的 FA.EXE,例如改名成 FA_ORIG.EXE。
  3. 下載 FA_BIG.ZIP,解壓到遊戲目錄。裡面只有一個檔案:FA.EXE。
  4. 檔名一定要是 FA.EXE。遊戲會用自己的檔名去找 <檔名>.SMS,外形檔需要它。改成別的名字(例如 FA_BIG.EXE)會馬上跳「Not enough memory.」。
  5. 照平常方式啟動遊戲,直接執行或用你的啟動器都可以。
To go back, delete the new FA.EXE and rename FA_ORIG.EXE back to FA.EXE. Mission files and settings are not touched.
要還原的話,刪掉新的 FA.EXE,再把 FA_ORIG.EXE 改回 FA.EXE。任務檔和設定都不受影響。

Since release #7 the ZIP's FA.EXE also has the smaller gun hit box: see what it changes.

從發布 #7 起,ZIP 裡的 FA.EXE 也包含較小的機砲判定框:看改了什麼。

Build it yourself: FA_BIG on GitHub has fa_patch_limits.py (the patch, with every address) and crc_match.py (the CRC fix).

想自己做:GitHub 上的 FA_BIG 目錄有 fa_patch_limits.py(修改程式,列出每個位址)和 crc_match.py(CRC 修正)。