Post by Deep on Aug 23, 2009 21:28:51 GMT -6
How to get Sentmod to work with no CD patch.
If your running the Sentmod and the nocd patch you need to have this let it over write your old Console file ok . The console file is located in the starsiege folder ok . unzip this to you starsiege folder allow it to overwrite your old one . There all will work now ..
cid-aca2b7c7635ceba3.skydrive.live.com/self.aspx/How%20to%20get%20Sentmod%20to%20work%20with%20no%20CD%20patch/console.zip
eye
==============================================
Replace your consol with that code.
If your running the Sentmod and the nocd patch you need to have this let it over write your old Console file ok . The console file is located in the starsiege folder ok . unzip this to you starsiege folder allow it to overwrite your old one . There all will work now ..
cid-aca2b7c7635ceba3.skydrive.live.com/self.aspx/How%20to%20get%20Sentmod%20to%20work%20with%20no%20CD%20patch/console.zip
eye
==============================================
// NoCD console.cs
//**************************************************************************************
$NoCD::installPath = "C:\\Dynamix\\Starsiege\\";
$NoCD::enableNoCDpatch = true;
$NoCD::enableMEsoftware = false;
$NoCD::fullScreenType = OpenGL;
function noCDloop()
{
if(isObject("MainMenuGui")&&!dataRetrieve(getNextObject("NamedGuiSet",0),"menuSet"))
{
%set = getNextObject("MainMenuGui",getNextObject("MainMenuGui",getNextObject("MainMenuGui",0)));
deleteObject(getNextObject(%set,0));
deleteObject(getNextObject(%set,0));
if($me::enableMissionEditor)
deleteObject(getNextObject(%set,getNextObject(%set,0)));
else
{
deleteObject(getNextObject(%set,0));
deleteObject(getNextObject(%set,0));
}
addtoSet(%set,loadObject("","noCDpatch\\NoCDButton1"));
addtoSet(%set,loadObject("","noCDpatch\\NoCDButton2"));
if(!$me::enableMissionEditor)
addtoSet(%set,loadObject("","noCDpatch\\NoCDButton3"));
addtoSet(%set,loadObject("","noCDpatch\\NoCDButton4"));
dataStore(getNextObject("NamedGuiSet",0),"menuSet",true);
}
schedule("noCDloop();",0.5);
}
if($NoCD::enableNoCDpatch)
noCDloop();
function noCD1()
{
$CDROM_drive = $NoCD::installPath;
exec("repath.cs");
flushTextureCache();
GuiLoadContentCtrl( simCanvas, *IDGUI_TUTORIAL);
}
function noCD2()
{
$CDROM_drive = $NoCD::installPath;
exec("repath.cs");
flushTextureCache();
GuiLoadContentCtrl( simCanvas, *IDGUI_TRAINING);
}
function noCD3()
{
$CDROM_drive = $NoCD::installPath;
exec("repath.cs");
flushTextureCache();
$Gui::MainMenuTab = 142003;
GuiLoadContentCtrl( simCanvas, *IDGUI_MAIN_MENU);
}
function noCD4()
{
$CDROM_drive = $NoCD::installPath;
exec("repath.cs");
$ConsoleWorld::DefaultSearchPath = $ConsoleWorld::DefaultSearchPath@";;multiplayer";
flushTextureCache();
$Gui::MainMenuTab = 142002;
GuiLoadContentCtrl( simCanvas, *IDGUI_MAIN_MENU);
}
//**************************************************************************************
$sentModEnabled = false;
//--------------------------------------
// parse the command line args
if ($cargv1 == "-me")
{
//Normal SS Mission Editor
$me::enableMissionEditor = true;
$serverHeartBeat = false;
}
else if ($cargv1 == "-sentmod")
{
//Sentinal Mod
$sentModEnabled = true;
$me::enableMissionEditor = false;
$serverHeartBeat = true;
newObject( sentmodVol, SimVolume, "SentMod.vol" );
}
else if ($cargv1 == "-sentmodme")
{
//SS Mission Editor w/ Sentinal Mod enabled
$sentModEnabled = true;
$me::enableMissionEditor = true;
$serverHeartBeat = false;
newObject( sentmodVol, SimVolume, "SentMod.vol" );
}
#$telnetport = your_port_number; # suggest greater than 10000 and less than 65000
#$telnetpassword = your_password;
$allowOldClients = false;
if ($cargc > 2)
{
// Only dedicated servers can be run in multiple instances
if ($cargv1 == "-s")
{
$CmdLineServer = true;
$CmdLineServerPrefs = $cargv2;
}
else
{
createSSMutex();
if ($cargv1 == "+connect")
{
$CmdLineJoin = true;
$CmdLineJoinAddr = $cargv2;
$CmdLineJoinPassword = "";
if ($cargc == 4)
$CmdLineJoinPassword = $cargv3;
}
}
}
else
{
createSSMutex();
}
exec("3DHardwareCard.cs");
exec("keyboardSetup.cs");
//--------------------------------------
// load the string tables
// darkstar strings (editor is optional, or should be)
exec("editor.strings.cs" );
// load tag dictionaries required to display gui
exec( "darkstar.strings.cs" );
exec( "gui.strings.cs" );
exec( "addendum.strings.cs" );
// check disk free space after gui strings is loaded
// because this function uses a gui string
checkDiskFreeSpace(8);
// common strings (editor is optional, or should be)
exec( "esf.strings.cs" );
exec( "commonEditor.strings.cs" );
// earthsiege specific strings
exec( "mission.strings.cs" );
exec( "sim.strings.cs" );
exec( "itag.strings.cs" );
exec( "sfx.strings.cs" );
exec( "action.strings.cs" );
exec( "multiplayer.strings.cs" );
exec( "show.cs" );
exec( "deathMessages.cs" );
exec( "censor.cs" );
exec( "squadActions.cs" );
exec( "cdAudioTracks.cs" );
//--------------------------------------
checkDisk();
getCDRomDrive();
checkForFile("smackw32.dll", "shell.vol", "dinput.dll", "ddraw.dll", "dsound.dll", "dinput.dll");
checkDirectXVersion();
Console::enable(false);
if ($CmdLineServer || isFile("dbstarsiege.ilc") || isFile("rbstarsiege.ilc"))
{
$Console::History = 150;
$Console::Prompt = "% ";
$Console::LastLineTimeout = 3000;
Console::enable(true);
$pref::canvasCursorTrapped=false;
$ShowDynamixLogo = false;
}
else
{
verifyCDRomInDrive();
$playOldRecording = true;
}
exec(repath);
exec(stdlib);
#--------------------------------------
# bring up the console window if cmdline server,
# else bring up the game window
$pref::Display::gammaValue = 1.0;
if ($CmdLineServer)
{
$basePath = $basePath @ ";multiplayer";
$consoleWorld::defaultSearchPath = $basePath;
$WinConsoleEnabled = true;
}
else
{
newObject( simCanvas, SimGui::GuiCanvas, "Starsiege", 640, 480, true, 1 );
$Console::GFXFont = "console.pft";
exec( "sound.cs" );
exec( "quickchat.cs" );
}
#--------------------------------------
# load some volumes
if (isFile("patch.vol"))
{
newObject( patchVol, SimVolume, "patch.vol" );
}
newObject( darkstarVol, SimVolume, "Darkstar.vol" );
newObject( editorVol, SimVolume, "Editor.vol" );
newObject( gameObjectsVol, SimVolume, "gameObjects.vol" );
newObject( shellVol, SimVolume, "shell.vol" );
newObject( "", ChatDispatcher );
newObject( "", ChatScheduler );
newObject( "", SSIRCClient );
echo("CREATING DUST MANAGER");
newObject( "", DustManager );
newObject( "", ShellMusic );
if (isFile("Missions.vol"))
{
newObject( Missions, SimVolume, "Missions.vol" );
}
$Console::FontTag = IDFNT_LUCIDA_9_1;
if (! $CmdLineServer)
{
# start up the gui
focusClient();
setFullscreenDevice( simCanvas, Glide );
GuiLoadContentCtrl( simCanvas, "Splash.gui" );
inputActivate(all);
GoFullWhenBoth640x480();
ForceToShellRes();
bind( keyboard, make, sysreq, TO, "screenShot(simCanvas);");
bind( keyboard, make, shift, "numpad+", TO, "nextRes(simCanvas);" );
bind( keyboard, make, shift, "numpad-", TO, "prevRes(simCanvas);" );
forceFrameRender();
if($NoCD::enableMEsoftware)
{
if($me::enableMissionEditor == true)
setFullscreenDevice( simCanvas, Software );
else
setFullscreenDevice( simCanvas, $NoCD::fullScreenType );
}
}
# render the splash screen before going on
regOk("/HKEY_LOCAL_MACHINE/Software/Dynamix/Starsiege", "PATH");
#--------------------------------------
# load misc common things for both cmdLine server
# and regular game startup sequence
//exec ("loadShow.cs" );
loadExplosionTables();
# Declare master server and broadcast addresses
exec( "master.cs" );
$Mission::ChangeTime = 9;
$alt = 3;
$Console::LastLineTimeout = 0;
$pref::PacketRate = 10;
messageCanvasDevice(simCanvas, enableCacheNoise, 0.13);
exec( "datLoad.cs" );
#--------------------------------------
function showGfxSW()
{
$ConsoleWorld::Eval = "echo($ConsoleWorld::FrameRate, \" P:\", $GFXMetrics::EmittedPolys, \", \", $GFXMetrics::RenderedPolys, \"S:\", $GFXMetrics::UsedSpans, \" TSU:\", $GFXMetrics::textureSpaceUsed);";
}
#--------------------------------------
# perform
if ($CmdLineServer)
{
echo("COMMAND LINE SERVER ", $CmdLineServerPrefs);
if (isFile($CmdLineServerPrefs))
{
exec($CmdLineServerPrefs);
if ($server::Password == "")
{
$server::PasswordSet = false;
}
else
{
$server::PasswordSet = true;
}
$server::Dedicated = true;
exec( "server.cs" );
setWindowTitle( "Starsiege [ port " @ $server::UDPPortNumber @ " : " @ $cargv2 @ " ]" );
inputActivate(all);
focusServer();
}
else
{
echo( "Could not locate specified file:" );
echo( $CmdLineServerPrefs );
echo( "Please type 'quit();'" );
}
}
else
{
$MED::camera = easyCamera;
exec( "easyCamera.cs" );
exec( "actionTable.cs" );
setCursor( simCanvas, "cursor.bmp" );
clientCursorOn();
# create a redbook object if CD device is available
cdAudioNew();
# create a client net delegate
focusClient();
# NOTE: only one of the ESCSDelegates should be created for the client, but
# you can change which transport it uses (the last two parameters are transport
# type and port #)
# setup UDP transport only
# newObject( cDel, ESCSDelegate, false, "IP", 0);
# setup other transports
# newObject( cDel, ESCSDelegate, false, "COM1", 0 );
newObject( cDel, ESCSDelegate, false, "LOOPBACK", 0);
function setAllowedItems() {}
}
showVersion();
a
Replace your consol with that code.