1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Tool] FaMPQ beta

Discussion in 'Warcraft Editing Tools' started by Fakov, Jul 5, 2018.

  1. Fakov

    Fakov

    Joined:
    Sep 21, 2009
    Messages:
    30
    Resources:
    1
    Tools:
    1
    Resources:
    1
    Hi everyone.
    After several painful days in searches and research, I did collect on my knees, with my crooked hands, my own MPQ-tool (its not an editor yet) which I had wanted for a long time. And I find it extremely useful.


    What problem did I want to solve?

    I was very often approached by a routine connected with the import of content into the map - icons and models. As you know, Blizzards did not provide automatic tools to find the necessary paths and erase these here "war3mapImported". Well, when I needed 30 icons to edit all the paths properly, I decided that I could solve the problem through any mpq editor.
    I was very surprised when I did not find a suitable editor for these purposes.
    And when I started to write my own, I understood why it was not there.

    And what is the result?

    As a result, there is the basis for the future mpq-editor, with the possibility of mass editing the content in the map - icons and models. Now you can:
    1) Massively update all paths for the icons the way they should be.
    2) Add one file to the root of the mpq.
    3) Add many files to the root of the mpq.
    And all this will work right away in WE.

    Restrictions

    Since this is a beta version, the program has limitations. The more you use it, the easier it will be to get rid of restrictions later.
    1) To run the program, you need SFmpq.dll - I attached it. Well, just about anybody.
    2) Important - If you can't launch the tool and there is error that the class is not declared - run the BAT file in the root folder of the program - it will install the necessary component for the system. This theory needs to be checked, since my win7 works.
    If you are paranoid and think that there are viruses - thanks for flattery and go to hell)


    Actually, I request the test drive and your feedback :)

    Also, there are before\after screenshots of tool:

    [​IMG] [​IMG]


    Changelog

    v1.0.1
    - I tried to do this!

    v1.0.2
    - Fix existing DISBTN paths at map

    v1.0.3
    - Fixed UI
    - Fixed adding files
    - Added delete function
    - Added context menu
    - Optimized to faster building mpq

    v1.0.4
    - Fix UI
    - Adding Rename function to popup menu

    v1.0.8.3107
    - Added main menu panel
    - Fix rename function - now you can see the renaming file name in modal window.
    - Fix deleting file from archive.
    - Fix the BAT file to registering class normally.
    - Also I created the install package.
    Now, you have two ways to install and run the program: use the install package (Setup FaMPQ.exe) or unpack standart archive of program, run *.bat file and the run FaMPQ.exe.
    As I see - there is no seriously difference between this two ways, but Install Package seems more stable for me.

    v1.0.9.2803 (ACTUAL)
    Extract function doesn't work yet!

    -
    Fixed incorrect saving mpq archive without deleting "war3mapImported/" paths.
    - Uncheck in beginning checkbox about deleting "war3mapImported/".
    - Fixed minor bugs.
    IF YOU ALREADY HAVE FAMPQ - you may download and change only exe-file in directory. If you haven't - you need to setup this tool.


    v1.0.9(TODO LIST)

    - Add search into mpq
    - Add Compact function
    - Turn on Extract File function
    - Add full extracting function
    - Add fixing paths for DISPAS and DISATC icons
    - Add blp viewer
     

    Attached Files:

    Last edited: Mar 28, 2019
  2. Chaosy

    Chaosy

    Joined:
    Jun 9, 2011
    Messages:
    10,611
    Resources:
    18
    Maps:
    1
    Spells:
    11
    Tutorials:
    6
    Resources:
    18
    Dope.
    This should be default import manager behavior really.

    I'd love it way more if this was a web based service however.
     
  3. Fakov

    Fakov

    Joined:
    Sep 21, 2009
    Messages:
    30
    Resources:
    1
    Tools:
    1
    Resources:
    1
    thx)
    I can't imagine, how it may work in a web. Upload map -> fix it -> download it? It seems there is no way to add files into mpq...
     
  4. Chaosy

    Chaosy

    Joined:
    Jun 9, 2011
    Messages:
    10,611
    Resources:
    18
    Maps:
    1
    Spells:
    11
    Tutorials:
    6
    Resources:
    18
    Pretty much.

    I know it is possible, ghostwolf gave me a .js file which was able to do it.
    It is quite a lot of work regardless, but personally I prefer web based services over downloading programs.
     
  5. Fakov

    Fakov

    Joined:
    Sep 21, 2009
    Messages:
    30
    Resources:
    1
    Tools:
    1
    Resources:
    1
    I understood you)
    Okay, as soon as I figure out how to search for overwriting bytes in a file on js/php, I'll try to make this tool as a web service)
     
  6. yxq1122

    yxq1122

    Joined:
    Jun 5, 2018
    Messages:
    108
    Resources:
    0
    Resources:
    0
    “place DISBTN’s icons where it sh”, what does it mean? The word "sh" seems to be an incorrect english word in the user interface.

    Suggestion: Add a feature of adding "war3mapimported\" prefix to the map files including jass script and object data files. This can provide convenience to rebuild the map with the world editor.
     
    Last edited: Jul 9, 2018
  7. Chaosy

    Chaosy

    Joined:
    Jun 9, 2011
    Messages:
    10,611
    Resources:
    18
    Maps:
    1
    Spells:
    11
    Tutorials:
    6
    Resources:
    18
    "sh" stands for "should" probably

    My assumption is that the sentence is too long which is why the entire word does not get displayed
     
  8. Fakov

    Fakov

    Joined:
    Sep 21, 2009
    Messages:
    30
    Resources:
    1
    Tools:
    1
    Resources:
    1
    Yeap, "sh" was "should")) i will make a new UI in the nearest build - this version absolutely non-working.

    I had fixed main function, which save war3map.imp correct now.

    About suggestions - I will try, I have never need it)
     
  9. yxq1122

    yxq1122

    Joined:
    Jun 5, 2018
    Messages:
    108
    Resources:
    0
    Resources:
    0
    Thanks for your kind reply! In my opinion, this work will be a special mpq editor that has the functionalities other editor doesn't have.
    After some useful features being added, it will be awesome.
     
  10. Fakov

    Fakov

    Joined:
    Sep 21, 2009
    Messages:
    30
    Resources:
    1
    Tools:
    1
    Resources:
    1
    Uploaded FaMPQ v1.0.3b

    I Hope it more stable version. But it really add and fix all paths and WorldEdit may it see.
    Testing it)
     
  11. Fakov

    Fakov

    Joined:
    Sep 21, 2009
    Messages:
    30
    Resources:
    1
    Tools:
    1
    Resources:
    1
    Uploaded FaMPQ v1.0.4

    Yep, superfast update - better stable version with renaming function) Hope it work at Win10)
     
  12. Kyrbi0

    Kyrbi0

    Joined:
    Jul 29, 2008
    Messages:
    7,883
    Resources:
    1
    Models:
    1
    Resources:
    1
    Huh! Will have to check it out later, get a handle on how it truly works, but a cursory examination seems promising; good work!

    I offer my services as a spell checker.

    Finally, I hate to be the bearer of bad news, but... You are aware that Blizzard is (almost certainly) moving away from the MPQ format, right?

    @Retera
     
  13. Retera

    Retera

    Tool Reviewer

    Joined:
    Apr 19, 2008
    Messages:
    803
    Resources:
    25
    Models:
    17
    Tools:
    2
    Maps:
    6
    Resources:
    25
    @Kyrbi0 But the MPQ format will continue to be used for maps. That isn't going to change. So this tool will continue to be relevant.

    However, to solve the problem you are trying to solve, I recently have used the FileImporter system available in WEX (and previously in JNGP).

    Code ( (Unknown Language)):
    //! external FileImporter C:\Users\Retera\Documents\ModDevelopment\Archive
    Basically, if you save the map with a trigger with this custom script in it, JassHelper in WEX will run an external program to automatically add the contents of that folder to your map -- and to war3map.imp. And it will include all of the paths to the files that were present in your folder, such as "ReplaceableTextures\CommandButtons\".
    So, I've been building my mod in a folder structure in Windows explorer, rather than with the Import manager, and only when I'm finished working on content do I import using the WEX utility.
     
  14. Fakov

    Fakov

    Joined:
    Sep 21, 2009
    Messages:
    30
    Resources:
    1
    Tools:
    1
    Resources:
    1
    Thank you, if I don't find extremely bugs here, certanly, it will necessary spell checking. So I will glad to hear your advices about it)
    By the way, I hadn't heard that Blizzard is moving away from the MPQ format, is there any news\article about it?


    Yes, thank you, I know about it, but what for me - I don't use WEX, cause it less stable than JNGP 5d at my win7. So I decided to make something standalone functional, which I hadn't found in other mpq editors)
     
  15. Kyrbi0

    Kyrbi0

    Joined:
    Jul 29, 2008
    Messages:
    7,883
    Resources:
    1
    Models:
    1
    Resources:
    1
    Hm, a bit of trouble...
    upload_2018-7-12_11-51-21.png

    I've got Windows 7, and my initial attempt was stopped by my antivirus which ran a scan. However, every time after that it failed to work (Windows put up the "would you like to send more information blah blah" message). Tried Run As Admin (big leap of faith here, man xD), and still didn't work.

    Read the readme! & double-clicked on MpqCtlSetup.bat... A quick Command Prompt window opened then closed. Nothing else seemed to be happening, so I tried to double-click on FaMPQ.exe &... nothing. This error message.
     
  16. Fakov

    Fakov

    Joined:
    Sep 21, 2009
    Messages:
    30
    Resources:
    1
    Tools:
    1
    Resources:
    1
    Very interesting! o___o Thank you, i will see it
     
  17. Regno

    Regno

    Joined:
    Sep 16, 2016
    Messages:
    91
    Resources:
    0
    Resources:
    0
    Yea I have that as well. Thanks for the work though, Fakov!
     
  18. Wareditor

    Wareditor

    Joined:
    Jan 16, 2009
    Messages:
    681
    Resources:
    3
    Maps:
    3
    Resources:
    3
    Same error as Kyrbi0 for me!
     
  19. Fakov

    Fakov

    Joined:
    Sep 21, 2009
    Messages:
    30
    Resources:
    1
    Tools:
    1
    Resources:
    1
    Upload FaMPQ 1.0.8.3107

    Extract function doesn't work yet!
    - Added main menu panel
    - Fix rename function - now you can see the renaming file name in modal window.
    - Fix deleting file from archive.
    - Fix the BAT file to registering class normally.
    - Also I created the install package.
    Now, you have two ways to install and run the program: use the install package (Setup FaMPQ.exe) or unpack standart archive of program, run *.bat file and the run FaMPQ.exe.
    As I see - there is no seriously difference between this two ways, but Install Package seems more stable for me.

    Thx you all guys for your replies! It helps me to find a ways to fix problems)
     
    Last edited: Mar 28, 2019
  20. yxq1122

    yxq1122

    Joined:
    Jun 5, 2018
    Messages:
    108
    Resources:
    0
    Resources:
    0
    @Fakov why don’t you consider to publish this tool to the "Tools" section of "Maps and resources" of the community? We like this tool, and mpq format is still useful for the maps on patch 1.29 earlier.