• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Cant directly open w3x/w3n

Status
Not open for further replies.
Level 28
Joined
Sep 28, 2004
Messages
1,379
Somehow I mishandled the (re)installation of WC3+TFT and now every time I try to open a w3n or w3x directly (double-click or open with) it just open the wc3 edtor with a blank map. I can only open campaigns or tft maps from inside the editor.

I believe this has more to do with my windows setup and not my wc3/tft installation, as reinstalling doesn't solve it.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,199
Use regedit to add the appropriate file mappings. Be warned that this is an expert tool, it is possible to do damage to your OS installation so do not change anything you do not need to and have no idea what it does. I also will not be responsible for any mistakes you make using it.

They are found in "HKEY_CLASSES_ROOT". Two entries are defined for each file type.

1. The command line open target which is used to open a file. An example looks like...
[HKEY_CLASSES_ROOT\WorldEdit.ScenarioEx\shell\open\command]
@="\"C:\\Program Files (x86)\\Warcraft III\\Utilities\\jassnewgenpack5d\\NewGen WE.exe\" -loadfile \"%L\""
Note this is an entry for JNGP on my system. The path will very likely be different for your system and when targeting standard WE.

2. The file extension resolver for explorer. An example looks like...
[HKEY_CLASSES_ROOT\.w3x]
@="WorldEdit.ScenarioEx"
This is a link to the open target to use. This abstraction allows a single open target to open many different file extensions with the same command line.
 
Level 16
Joined
May 25, 2004
Messages
1,170
Warcraft III Registry Fixer 1.0
Warcraft III Registry Fixer is a program that fixes several registry entries that warcraft
uses.

Also:
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.w3g]
@="Warcraft3.Replay"

[HKEY_CLASSES_ROOT\Warcraft3.Replay]
@="Warcraft III Replay File"

[HKEY_CLASSES_ROOT\Warcraft3.Replay\DefaultIcon]
@="C:\\Program Files (x86)\\Warcraft III\\Replays.ico"

[HKEY_CLASSES_ROOT\Warcraft3.Replay\shell]

[HKEY_CLASSES_ROOT\Warcraft3.Replay\shell\open]

[HKEY_CLASSES_ROOT\Warcraft3.Replay\shell\open\command]
@="\"C:\\Program Files (x86)\\Warcraft III\\War3.exe\" -loadfile \"%1\""

[HKEY_CLASSES_ROOT\.w3m]
@="WorldEdit.Scenario"

[HKEY_CLASSES_ROOT\WorldEdit.Scenario]
@="Warcraft III Scenario File"

[HKEY_CLASSES_ROOT\WorldEdit.Scenario\DefaultIcon]
@="C:\\Program Files (x86)\\Warcraft III\\WorldEdit.exe,2"

[HKEY_CLASSES_ROOT\WorldEdit.Scenario\shell]

[HKEY_CLASSES_ROOT\WorldEdit.Scenario\shell\open]

[HKEY_CLASSES_ROOT\WorldEdit.Scenario\shell\open\command]
@="C:\\Program Files (x86)\\Warcraft III\\World Editor.exe -loadfile \"%1\""

[HKEY_CLASSES_ROOT\.w3n]
@="WorldEdit.Campaign"

[HKEY_CLASSES_ROOT\WorldEdit.Campaign]
@="Warcraft III Campaign File"

[HKEY_CLASSES_ROOT\WorldEdit.Campaign\DefaultIcon]
@="C:\\Program Files (x86)\\Warcraft III\\WorldEdit.exe,4"

[HKEY_CLASSES_ROOT\WorldEdit.Campaign\shell]

[HKEY_CLASSES_ROOT\WorldEdit.Campaign\shell\open]

[HKEY_CLASSES_ROOT\WorldEdit.Campaign\shell\open\command]
@="C:\\Program Files (x86)\\Warcraft III\\World Editor.exe -loadfile \"%1\""

[HKEY_CLASSES_ROOT\.w3x]
@="WorldEdit.ScenarioEx"

[HKEY_CLASSES_ROOT\WorldEdit.ScenarioEx]
@="Warcraft III Expansion Scenario File"

[HKEY_CLASSES_ROOT\WorldEdit.ScenarioEx\DefaultIcon]
@="C:\\Program Files (x86)\\Warcraft III\\WorldEdit.exe,3"

[HKEY_CLASSES_ROOT\WorldEdit.ScenarioEx\shell]

[HKEY_CLASSES_ROOT\WorldEdit.ScenarioEx\shell\open]

[HKEY_CLASSES_ROOT\WorldEdit.ScenarioEx\shell\open\command]
@="C:\\Program Files (x86)\\Warcraft III\\World Editor.exe -loadfile \"%1\""

[HKEY_CLASSES_ROOT\.wai]
@="WorldEdit.AIData"

[HKEY_CLASSES_ROOT\WorldEdit.AIData]
@="Warcraft III AI Data File"

[HKEY_CLASSES_ROOT\WorldEdit.AIData\DefaultIcon]
@="C:\\Program Files (x86)\\Warcraft III\\WorldEdit.exe,5"

[HKEY_CLASSES_ROOT\WorldEdit.AIData\shell]

[HKEY_CLASSES_ROOT\WorldEdit.AIData\shell\open]

[HKEY_CLASSES_ROOT\WorldEdit.AIData\shell\open\command]
@="C:\\Program Files (x86)\\Warcraft III\\World Editor.exe -loadfile \"%1\""
 
Status
Not open for further replies.
Top