- Joined
- Aug 3, 2004
- Messages
- 710
Ask for help here. Only intended for installing issues and other problems with getting this to work.
I guess something was indeed wrong with the EXE, I just reinstalled everything and it works fine now.
Just one question though...it seems to be asking for RtCDemo.mpq which isn't in the archive. It works without it and I commented that out from loadmpq so no problem, just though you should know.
Great job so far BTW
You intend to release the source for this at point?
I see that Horror.Man reported this same thing in the other topic, but there was no real solution...
Anyway I simply can't get a map to load. The player slots never appear and clicking start makes the menu go up only to return immediately after that. This is the same thing that happens when trying to load a map with syntax errors so I assume common.j isn't being parsed.
Injecting doesn't produce any errors and the logs don't have anything of use either.
Any ideas?
Is Warcraft III installed on your C:\ drive or another?
EDIT2: RtC demo map didn' t also showed player slots. I hope I don' t have to reinstall Warcraft III with TFT because my cd-keys are missing and I got only TFT CD.startwar3.bat said:C:\RtC v0.10b>bin\exehack.exe -s war3.lua
Grimoire 1.4 9/17/2007
Attempt to open Software\Blizzard Entertainment\Warcraft III\InstallPath failed:
Could not open registry value
Attempt to open Software\Blizzard Entertainment\Warcraft III\InstallPathX failed
: Could not open registry value
Attempt to open Software\Blizzard Entertainment\Warcraft III\InstallPath failed:
Could not open registry key
Attempt to open Software\Blizzard Entertainment\Warcraft III\InstallPathX failed
: Could not open registry key
found Software\Grimoire\War3InstallPath : C:\Program Files\Warcraft III
starting C:\Program Files\Warcraft III\war3.exe war3.exe
injecting bin\ongameload.dll...302 8b55ff8b...done
C:\RtC v0.10b>pause
Press any key to continue . . .
Terminate batch job (Y/N)?
starting C:\Program Files\Warcraft III\war3.exe war3.exe
function Trig_TestTrig_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), I2S(GetMouseX()) )
endfunction
//===========================================================================
function InitTrig_TestTrig takes nothing returns nothing
set gg_trg_TestTrig = CreateTrigger( )
call TriggerRegisterPlayerKeyEventBJ( gg_trg_TestTrig, Player(0), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_LEFT )
call TriggerAddAction( gg_trg_TestTrig, function Trig_TestTrig_Actions )
endfunction
//===========================================================================
//
// Mouse Test
//
// Warcraft III map script
// Generated by the Warcraft III World Editor
// Date: Sat Mar 01 13:15:07 2008
// Map Author: olegbl
//
//===========================================================================
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// Generated
trigger gg_trg_Mouse = null
endglobals
function InitGlobals takes nothing returns nothing
endfunction
//***************************************************************************
//*
//* Unit Creation
//*
//***************************************************************************
//===========================================================================
function CreateUnitsForPlayer0 takes nothing returns nothing
local player p = Player(0)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'Hblm', -588.3, -20.6, 338.356 )
endfunction
//===========================================================================
function CreatePlayerBuildings takes nothing returns nothing
endfunction
//===========================================================================
function CreatePlayerUnits takes nothing returns nothing
call CreateUnitsForPlayer0( )
endfunction
//===========================================================================
function CreateAllUnits takes nothing returns nothing
call CreatePlayerBuildings( )
call CreatePlayerUnits( )
endfunction
//***************************************************************************
//*
//* Custom Script Code
//*
//***************************************************************************
//TESH.scrollpos=0
//TESH.alwaysfold=0
//***************************************************************************
//*
//* Triggers
//*
//***************************************************************************
//===========================================================================
// Trigger: Mouse
//===========================================================================
//TESH.scrollpos=0
//TESH.alwaysfold=0
function onMouseDownF takes nothing returns nothing
//debug call DisplayTextToForce(bj_FORCE_PLAYER[0], ("|cffffd700onMouseDown|r::|cffaaaaaa(" + I2S(GetMouseX()) + ", " + I2S(GetMouseY()) + ")|r"))
endfunction
function Trig_Mouse_Actions takes nothing returns nothing
local trigger onMouseDown = CreateTrigger()
//call TriggerRegisterMouseEvent(onMouseDown, EVENT_LMOUSEDOWN)
call TriggerAddAction(onMouseDown, function onMouseDownF)
endfunction
//===========================================================================
function InitTrig_Mouse takes nothing returns nothing
set gg_trg_Mouse = CreateTrigger( )
call TriggerAddAction( gg_trg_Mouse, function Trig_Mouse_Actions )
endfunction//===========================================================================
function InitCustomTriggers takes nothing returns nothing
call InitTrig_Mouse( )
endfunction
//===========================================================================
function RunInitializationTriggers takes nothing returns nothing
call ConditionalTriggerExecute( gg_trg_Mouse )
endfunction
//***************************************************************************
//*
//* Players
//*
//***************************************************************************
function InitCustomPlayerSlots takes nothing returns nothing
// Player 0
call SetPlayerStartLocation( Player(0), 0 )
call ForcePlayerStartLocation( Player(0), 0 )
call SetPlayerColor( Player(0), ConvertPlayerColor(0) )
call SetPlayerRacePreference( Player(0), RACE_PREF_HUMAN )
call SetPlayerRaceSelectable( Player(0), true )
call SetPlayerController( Player(0), MAP_CONTROL_USER )
endfunction
function InitCustomTeams takes nothing returns nothing
// Force: TRIGSTR_002
call SetPlayerTeam( Player(0), 0 )
endfunction
//***************************************************************************
//*
//* Main Initialization
//*
//***************************************************************************
//===========================================================================
function main takes nothing returns nothing
call SetCameraBounds( -1280.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -1536.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 1280.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 1024.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -1280.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 1024.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 1280.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -1536.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM) )
call SetDayNightModels( "Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl", "Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl" )
call NewSoundEnvironment( "Default" )
call SetAmbientDaySound( "LordaeronSummerDay" )
call SetAmbientNightSound( "LordaeronSummerNight" )
call SetMapMusic( "Music", true, 0 )
call CreateAllUnits( )
call InitBlizzard( )
call InitGlobals( )
call InitCustomTriggers( )
call RunInitializationTriggers( )
endfunction
//***************************************************************************
//*
//* Map Configuration
//*
//***************************************************************************
function config takes nothing returns nothing
call SetMapName( "TRIGSTR_003" )
call SetMapDescription( "" )
call SetPlayers( 1 )
call SetTeams( 1 )
call SetGamePlacement( MAP_PLACEMENT_USE_MAP_SETTINGS )
call DefineStartLocation( 0, -640.0, 0.0 )
// Player setup
call InitCustomPlayerSlots( )
call SetPlayerSlotAvailable( Player(0), MAP_CONTROL_USER )
call InitGenericPlayerSlots( )
endfunction