- Joined
- Nov 29, 2014
- Messages
- 191
Do you set war3.exe to run as administrator? If yes, then you can get this error.it said it couldn't find my War3 path
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Do you set war3.exe to run as administrator? If yes, then you can get this error.it said it couldn't find my War3 path
native void CtrlSetText(int id, bool autoResize, string text) // autoResize: if true, the GUI element adjusted to the entered text line, else text stretches to size of GUI element.
native void CtrlSetDepth(int id, float fDepth) // Defines the search order of GUI elements by CtrlGetFromMousePoint function. Than fDepth value is less, the GUI control located closer to the screen (1.0 by default).
native void CtrlSetAngle(int id, float fAngle) // Sets the the rotation angle of GUI element (in radians).
Do you set war3.exe to run as administrator? If yes, then you can get this error.
var key = Registry.CurrentUser.OpenSubKey(@"Software\Blizzard Entertainment\Warcraft III");
if (key != null && key.GetValue("InstallPath") != null)
{
InstallPath = (key.GetValue("InstallPath") as String);
}
if (String.IsNullOrEmpty(InstallPath))
{
key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Wow6432Node\Blizzard Entertainment\Warcraft III");
if (key != null && key.GetValue("InstallPath") != null)
InstallPath = (key.GetValue("InstallPath") as String);
}
// Force user to select path manually if we cannot find
// (you should do this)
if (String.IsNullOrEmpty(InstallPath))
{
var dialog = new OpenFileDialog();
dialog.Filter = "Warcraft III|war3.exe";
var result = dialog.ShowDialog();
if (dialog.FileName != null && dialog.FileName != "")
{
InstallPath = Path.GetDirectoryName(dialog.FileName);
var doInstall = MessageBox.Show("Install path into registry?", "Launcher", MessageBoxButtons.YesNo);
if (doInstall == DialogResult.Yes)
{
key = Registry.CurrentConfig.CreateSubKey(@"Software\Blizzard Entertainment\Warcraft III");
key.SetValue("InstallPath", InstallPath);
}
}
}
Thanks, I'll do it tomorrow.This is the code SharpCraft is using
An indicator that the mod was successfully launched is label "RenderEdge v0.0.1a" in the upper left corner of the screen. If it doesn't appear, restart mod, this sometimes happens
An indicator that the mod was successfully launched is label "RenderEdge v0.0.1a" in the upper left corner of the screen. If it doesn't appear, restart mod, this sometimes happens
Are all files of mod placed in one folder (.exe, .dll and .mpq)? In WC3 folder?
Update:
By the way, it doesn't work on 1.27a patch.
Its 1 huge file with a lot of automatically generated names and no structures... Sure it is not assembly but it is still a long way away from readable.Very readable!!!!
i don't have 1.27b patch, don't know where download only 1.27b patch
int __cdecl sub_6F0B49D2(int a1, int a2, char *a3, int a4)
{
(*(void (__cdecl **)(int, int, _DWORD, char *, int))(*(_DWORD *)a1 + 24))(a1, a2, 0, a3, a4);
return WEUChangeFileExtension(a3, ".mdl");
}
