Results 1 to 6 of 6

Thread: Using new ui_1.PAK will result in CTD when going into battle mode?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Senior Member Senior Member Duke John's Avatar
    Join Date
    May 2003
    Location
    Netherlands
    Posts
    2,917

    Default Using new ui_1.PAK will result in CTD when going into battle mode?

    I hope that someone else has ventured into this, since I don't know what I'm doing wrong. I have edited the interface and it works sublime in strategic mode, but when going to battle, the game loads for 10% and a CTD occurs.

    So I put back the original PAK file and it works fine. Then I tested wether the PAK extractor is to blame and I extracted ui_1.PAK and packed it. The result is a CTD, weird since the PAK file only contains the original files.

    It seems that the PAK extractor is doing something wrong, but why would the campaign interface work without problems. The CTD also occurs when I remove the PAK file and use normal directory structure instead (the engine will look for the files outside the PAK file if the PAK file is not present). Using the UI directory the campaign interface does work, but I get a crash when going to battle.

    Has anyone succesfully edited the ui_1.PAK file which didn't result in a CTD?

  2. #2
    Modding Godfather Member Vercingetorix's Avatar
    Join Date
    Oct 2004
    Location
    I am but a figment of your imagination
    Posts
    453

    Default Re: Using new ui_1.PAK will result in CTD when going into battle mode?

    When you create the new ui_1.PAK it's named the same? I'll have to look into it seems strange.
    I have found God.

  3. #3
    Senior Member Senior Member Duke John's Avatar
    Join Date
    May 2003
    Location
    Netherlands
    Posts
    2,917

    Default Re: Using new ui_1.PAK will result in CTD when going into battle mode?

    Yes, it is named the same. As I tried to explain in the first post, everything is working fine, the new interface is showing up without problems (using the PAK file or not does not matter). But whenever I go to battle it crashes. Note that the CTD also happens when I unPAK the original files (campaign part works with no problems) and use them straight from the directory. It also happens when I make a PAK file of the original files (campaign works).

    The only thing I can think of is that the size of the PAK is 50kB smaller even when I pak the original files.

    I don't have experience with the other PAK files, only ui_1.PAK, so perhaps there are more problems.

  4. #4
    Modding Godfather Member Vercingetorix's Avatar
    Join Date
    Oct 2004
    Location
    I am but a figment of your imagination
    Posts
    453

    Default Re: Using new ui_1.PAK will result in CTD when going into battle mode?

    Well I just extracted the ui_1.pak then repacked it and it was the exact same size and no problem in game. Are you sure you're doing everything right?

    What I did:

    1) extracted pak file
    2) created .bat file in the data\packs folder and entered the following:

    echo ui_1.pak > ui1.txt
    dir .\data\* /a:-D /s /b >>ui1.txt
    xpak.exe -cf ui1.txt

    3) Save file and double click the bat file.

    New file has exactly the same size down to the byte as the original. Sure there's not a missing file of some sort? By the way you should have 3466 files extracted from that pack and it should be 208,824,445 bytes large.
    I have found God.

  5. #5
    Senior Member Senior Member Duke John's Avatar
    Join Date
    May 2003
    Location
    Netherlands
    Posts
    2,917

    Default Re: Using new ui_1.PAK will result in CTD when going into battle mode?

    I made a new dirlist yesterday, but I'll try again and make sure that the parameters are allright.

    Thanks for your help!

    Edit: it works now. I think the fault lies at the old BAT file for dirlist and packing for one unknown reason.
    Last edited by Duke John; 11-17-2004 at 07:32.

  6. #6
    Modding Godfather Member Vercingetorix's Avatar
    Join Date
    Oct 2004
    Location
    I am but a figment of your imagination
    Posts
    453

    Default Re: Using new ui_1.PAK will result in CTD when going into battle mode?

    Quote Originally Posted by Duke John
    I made a new dirlist yesterday, but I'll try again and make sure that the parameters are allright.

    Thanks for your help!

    Edit: it works now. I think the fault lies at the old BAT file for dirlist and packing for one unknown reason.
    Sure thing John glad it works. Myabe a file was accidently deleted or renamed who knows.
    I have found God.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO