level 9
husenb
楼主
好吧~~~~~
为了大家~~~~
这是简介,看不懂得去翻译:
Hey guys,
managed to skip the CryDev login process with a little code change. But it works ONLY for the Launcher.exe and is very dirty code. It's definitely not illegal, because I used the public code only.
This is really only for people, who want to test the map on a pc without an internet connection or are doing some kind of presentation and don't have access to the internet
I really hope, that Crytek implements a better solution in the future, so use this at your own risk!
NOTE: Fullscreen is enabled with this Mod by default. Upon quitting the game will crash, there is nothing I can do about that at the moment. Use Alt+Tab or Taskmanager to get out and simply click "OK" and the game will close
INSTALLATION:
Simply extract the "CryGame.dll" from the .zip file below and put it in your Bin32 directory. Make a backup of the original file first, before overwriting it!
Then you are able to start the "Launcher.exe" without the whole login process
I will add 64 bit support, when I have time for it
SOURCE CODE:
File: Startup Files->GameStartup.cpp
After the section
Code:
这是源码,加到编译的Launch.exe里面去就行了(这只是Launch.exe的离线补丁,就先对不起了,Editor.exe的补丁有待发掘~~~~)这段代码加到你们自己的lua里面去。
LOADING_DONE;
// should be after init game (should be executed even if there is no game)
if(startupParams.bExecuteCommandLine)
pSystem->ExecuteCommandLine();
pSystem->GetISystemEventDispatcher()->RegisterListener(&g_system_event_listener_game );
// Creates and starts the realtime update system listener.
if (pSystem->IsDevMode())
{
CGameRealtimeRemoteUpdateListener::GetGameRealtimeRemoteUpdateListener().Enable(true);
} GCOV_FLUSH;
if (gEnv && GetISystem())
{
}
else
{
CryLogAlways("failed to find ISystem to register error observer");
assert(0);
}
这是下面的介绍:、
and before the "return pOut" add following lines:
这段代码也必须加进去!!!
// really horrible. Use at your own risk!!
if (!gEnv->IsEditor() && !gEnv->IsDedicated())
{
if (gEnv && gEnv->pSystem && gEnv->pConsole)
{
ICVar *pVar = gEnv->pConsole->GetCVar("r_Fullscreen");
if (pVar)
{
if (pVar->GetIVal() != 1)
{
pVar->ForceSet("1");
}
}
}
Run(NULL);
return false;
}
理论说这样就行了~~~
2012年06月13日 02点06分
1
为了大家~~~~
这是简介,看不懂得去翻译:
Hey guys,
managed to skip the CryDev login process with a little code change. But it works ONLY for the Launcher.exe and is very dirty code. It's definitely not illegal, because I used the public code only.
This is really only for people, who want to test the map on a pc without an internet connection or are doing some kind of presentation and don't have access to the internet
I really hope, that Crytek implements a better solution in the future, so use this at your own risk!
NOTE: Fullscreen is enabled with this Mod by default. Upon quitting the game will crash, there is nothing I can do about that at the moment. Use Alt+Tab or Taskmanager to get out and simply click "OK" and the game will close
INSTALLATION:
Simply extract the "CryGame.dll" from the .zip file below and put it in your Bin32 directory. Make a backup of the original file first, before overwriting it!
Then you are able to start the "Launcher.exe" without the whole login process
I will add 64 bit support, when I have time for it
SOURCE CODE:
File: Startup Files->GameStartup.cpp
After the section
Code:
这是源码,加到编译的Launch.exe里面去就行了(这只是Launch.exe的离线补丁,就先对不起了,Editor.exe的补丁有待发掘~~~~)这段代码加到你们自己的lua里面去。
LOADING_DONE;
// should be after init game (should be executed even if there is no game)
if(startupParams.bExecuteCommandLine)
pSystem->ExecuteCommandLine();
pSystem->GetISystemEventDispatcher()->RegisterListener(&g_system_event_listener_game );
// Creates and starts the realtime update system listener.
if (pSystem->IsDevMode())
{
CGameRealtimeRemoteUpdateListener::GetGameRealtimeRemoteUpdateListener().Enable(true);
} GCOV_FLUSH;
if (gEnv && GetISystem())
{
}
else
{
CryLogAlways("failed to find ISystem to register error observer");
assert(0);
}
这是下面的介绍:、
and before the "return pOut" add following lines:
这段代码也必须加进去!!!
// really horrible. Use at your own risk!!
if (!gEnv->IsEditor() && !gEnv->IsDedicated())
{
if (gEnv && gEnv->pSystem && gEnv->pConsole)
{
ICVar *pVar = gEnv->pConsole->GetCVar("r_Fullscreen");
if (pVar)
{
if (pVar->GetIVal() != 1)
{
pVar->ForceSet("1");
}
}
}
Run(NULL);
return false;
}
理论说这样就行了~~~