1. Head to the 33rd Modeling Contest Poll and drink to your heart's desire.
    Dismiss Notice
  2. Choose your means of doom in the 17th Mini Mapping Contest Poll.
    Dismiss Notice
  3. A slave to two rhythms, the 22nd Terraining Contest is here.
    Dismiss Notice
  4. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  5. The die is cast - the 6th Melee Mapping Contest results have been announced. Onward to the Hive Cup!
    Dismiss Notice
  6. The glory of the 20th Icon Contest is yours for the taking!
    Dismiss Notice
  7. 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.

Try to make custom campaigns in Refrorged

Discussion in 'Patch & Reforged Discussion' started by Vibe, Sep 30, 2020.

  1. Vibe

    Vibe

    Joined:
    Aug 11, 2018
    Messages:
    17
    Resources:
    0
    Resources:
    0
    Hello everyone, I am a user of World Editor from China Forum.

    I have been researching custom campaigns for a while, and this is my latest result.

    Here are four examples of custom campaigns I added. Their tabs are behind the Rexxar campaign.

    自定义战役-暗影国度.gif

    In general, these contents are completed by editing TXT files and JS files.

    Here are the steps :

    Step 0. Since version 1.30, the game has used CASC to store data files. And you should learn to use Cascview to observe and extract data files. You can visit this page to learn about Cascview.
    Casc Storages - Main page

    Step 1. Understand how [allow local file] works. It can be described as the game will preferentially read local files instead of files in CASC, When [Allow Local Files = 1] in the registry , which under the path [HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III\].

    Step 2. You extract a certain media file in the game, modify it, and place it in [Warcraft III\_retail_\]. Refer to the correct path under the Cascview extraction path [war3.w3mod\]. You will find that you can replace most of the media files of the game as long as you want.

    Step 3. Open [war3.w3mod\ui\campaigninforeforged.txt] in Cascview, read it, and get how it works from its comments. It has a CampaignList listing the campaigns that should be displayed in the game. It also has a series of [Tutorial], [Human], [Undead], etc. to define some of the parameters of the campaign (they are only partially useful, some have been abandoned)

    Then you can add your own custom campaign project. When you are finished, put the TXT file in the correct path, refer to step 2. You open the game and you will see it, although it does not yet have any media file support, you can still see its black title and a default battle tab border.

    Step 4. Open [war3.w3mod\webui\gluemanager.js] in Cascview and modify it.

    This step is a bit complicated and requires you to have some basic knowledge of the JavaScript language.

    The [gluemanager.js] is a code text file that controls the main menu interface. You will find it is confused/protected, so it is difficult to read and modify. But fortunately we have code beautification tools [Online JavaScript beautifier]. After you restore it, it will become easier to read.

    before_after.png

    Then you can look for content related to the custom campaign in the ocean of code. One trick is to search for "OrcEx", which is the name of the last campaign. When the code mentions it, it must be related to the custom campaign.

    When you search for "OrcEx", you will find 8 results.

    The first result is in [t.STORY_BACKGROUNDS], which determines the name of the webm background corresponding to the custom campaign opening interface. (The path of webm is [\webui\webm\])

    The second result is in [t.AMBIENT_SOUNDS], which decides to customize the music used by webm used in the opening interface of the battle. (The name and path of the music are defined in [\ui\soundinfo\ambiencesounds.slk])

    The third, fourth, fifth, sixth and seventh results are all in the obfuscated CSS code. You can also use [beautifier Online JavaScript beautifier] to restore them. They control the custom title font style, subtitle font style, tab image background path, and banner image path of the settlement interface.

    The eighth result is to serve the getStoryBackground command and specify the serial number of the custom battle background.

    After completing the addition and modification of your own campaign content in the above eight positions, I think you can achieve the same effect as mine.

    If you cannot understand these steps, ignore them. Just download the ZIP package I provided. Unzip it to [Warcraft III\_retail_\]. You only need to modify the TXT, replace the PNG and WEBM materials, and then you can make a custom campaign.
     

    Attached Files:

    Last edited: Oct 17, 2020
  2. Vibe

    Vibe

    Joined:
    Aug 11, 2018
    Messages:
    17
    Resources:
    0
    Resources:
    0
    I found a way to make a custom campaign in Refrorged.
    Why did no one reply to me? sad :(
     
  3. FeelsGoodMan

    FeelsGoodMan

    Joined:
    Dec 13, 2018
    Messages:
    1,552
    Resources:
    6
    Maps:
    3
    Template:
    1
    Ported Models:
    2
    Resources:
    6
    Hey, never saw this before. It is certainly interesting, maybe you should explain in simple terms what steps needs to be taken for this?

    Also, I suspect this includes altering the game files even for end users who wants to play custom campaigns, so it might not be so relevant to most people's interests.
     
  4. Vibe

    Vibe

    Joined:
    Aug 11, 2018
    Messages:
    17
    Resources:
    0
    Resources:
    0
    I translated and updated [WC3 Mod Manager] for Chinese players , which named [WC3R Mod Manager] .

    It can solve at least part of the problem .

    Projects · EzraZebra / WC3ModManager · GitLab
    kobayashi1998/WC3RModManager
     
    Last edited: Oct 14, 2020
  5. loktar

    loktar

    Model Reviewer

    Joined:
    Nov 2, 2004
    Messages:
    1,473
    Resources:
    47
    Models:
    20
    Icons:
    20
    Packs:
    1
    Tools:
    3
    Spells:
    2
    Tutorials:
    1
    Resources:
    47
    Cool ^^ Nice to see a fork of my code :p
     
  6. Vibe

    Vibe

    Joined:
    Aug 11, 2018
    Messages:
    17
    Resources:
    0
    Resources:
    0
  7. Ardenaso

    Ardenaso

    Joined:
    Jun 22, 2013
    Messages:
    743
    Resources:
    0
    Resources:
    0
    looks cool!
     
  8. yxq1122

    yxq1122

    Joined:
    Jun 5, 2018
    Messages:
    148
    Resources:
    0
    Resources:
    0
    Nice job! Looks very cool.
     
  9. Malistroth

    Malistroth

    Joined:
    Jul 13, 2020
    Messages:
    25
    Resources:
    0
    Resources:
    0
    Nice work!
     
  10. Vibe

    Vibe

    Joined:
    Aug 11, 2018
    Messages:
    17
    Resources:
    0
    Resources:
    0
    Hey, I am looking for someone to collaborate on a custom campaign for the short film.

    If we make a custom campaign, more people will know that making a custom campaign is possible in Refrorged, before Blizzard officially opens it.

    In this way, more people will look forward to it, and more people will be willing to make a custom campaign in Refrorged.