Results 1 to 3 of 3

Thread: How to edit unknown file types in the main.pack

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default How to edit unknown file types in the main.pack

    I was looking through the main.pack file and found a file called "UI\frontend ui\grand_campaign_japan". I was able to open it with notepad but large parts of it are garbled. As far as I can tell this file seems to tell TWS2 which factions you can select in which campaigns so it's possible that editing this file will allow modders to make more clans playable. So do anyone know of a good program to open these files with?
    Morning Sun (adds Korea and China to the Shogun 2 map)
    http://www.twcenter.net/forums/forum...28-Morning-Sun

    Expanded Japan mod (97 new regions and 101 new factions)
    http://www.twcenter.net/forums/showt...ew-factions%29

    How to split a region in TWS2
    http://www.twcenter.net/forums/showt...split-a-region

    Eras Total Conquest 2.3 (12 campaigns from 970-1547)

  2. #2

    Default Re: How to edit unknown file types in the main.pack

    They are compiled UI layout files. To edit them you need to decompile them to xml. taw released a converter for NTW and ETW, I presume he has one out for S2. To do anything decent with them you'll also need to decompile the associated .luac file (it should have the same name, just with a .luac extension). taw also released these files decompiled, as the decompiler wasn't windows compatible. To recompile them you'll need a lua compiler compatible with TW Lua, I have one if you need it. But the decompiler was broken, chances are the lua code is very badly garbled when decompiled.
    My Tools, Tutorials and Resources

    Was running out of space, so see the full list here!

    Consider the postage stamp: its usefulness consists in the ability to stick to one thing till it gets there.- Josh Billings
    The creatures outside looked from pig to man, and from man to pig, and from pig to man again; but already it was impossible to say which was which.- George Orwell

  3. #3

    Default Re: How to edit unknown file types in the main.pack

    Also, you're right about adding new factions. From here you can probably add extra UI components to facilitate extra faction selection.
    My Tools, Tutorials and Resources

    Was running out of space, so see the full list here!

    Consider the postage stamp: its usefulness consists in the ability to stick to one thing till it gets there.- Josh Billings
    The creatures outside looked from pig to man, and from man to pig, and from pig to man again; but already it was impossible to say which was which.- George Orwell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •