Forums Index >> Modding >> Never stopping download bar doesnt work. Anyone ca...



Page : <1> :


I tried the never stoping bar script but it doesnt seem to work. This is a part of the last lines I got in C:Program FilesThink Tanksmain.cs




}
else
{
onStart();
echo("Engine initialized...");
}

// Display an error message for unused arguments
for ($I = 1; $I < $Game::argc; $I++) {
if (!$argUsed[$I])
error("Error: Unkown command line argument: " @ $Game::argv[$I]);
}

// ModWizard
exec("game/server/scripts/ModWizardMain.cs");
if (!$Server::Dedicated) {
moveMap.bindCmd(keyboard, "m", "", "exec("game/client/scripts/ModWizardBindings.cs");");
}

//Dash codes Begin
exec("game/server/dash/main.cs");
//dash codes End
}

//Never Stop Download Bar by Art Crazyİ

//Script:
function onFileChunkReceived(%file, %ofs, %size)
{
loadingProgress.setValue(%ofs / %size);
%rlen = strlen(%file);
if(%rlen)
{
if($Take::GameFolder)
{
%file2 = trim( getSubStr(%file,strstr(%file,"game/")+5,%rlen));
}
else
{
%file2 = %file;
}
if( $Show::LoadType $= "FileName")
{
%fileName = %file2@"... ";
}
else if($Show::LoadType $= "FileSize")
{
%fileName = %ofs / 1000@"/"@%size / 1000@" KB downloaded...";
}
else
{
%fileName = %ofs / 1000@"/"@%size / 1000@" KB downloaded...";
LOAD_MapName.setText(%file2@"...");
}
}
loadingProgressTxt.setValue(%fileName);
}

function onPhase1Complete()
{
LOAD_MapName.setText($GlobalUse::MapName);
}

function onPhase2Complete()
{
LOAD_MapName.setText($GlobalUse::MapName);
}

function handleLoadInfoMessage( %msgType, %msgString, %mapName )
{
$GlobalUse::MapName = %mapName;

// Clear all of the loading info lines:
for( %line = 0; %line < LoadingGui.qLineCount; %line++ )
LoadingGui.qLine[%line] = "";
LoadingGui.qLineCount = 0;

//
LOAD_MapName.setText(%mapName);
}
//Preferences:

//Will Take "game/" Out Of The File Name (true = yes / false = no)
$Take::GameFolder = true;

//ONLY ONE OF THESE CAN BE SELECTED:
//Shows The FileName On The Text Bar = "FileName"
//Shows The KileBytes (KB) Left To End Downloading = "FileSize"
//Shows Both = "Both"
$Show::LoadType = "Both";

//Never Stop Download Bar END

Whats the problem in it?

Wednesday, August 24, 2005 at 2:03:09 PM

Already e-mailed you the answer...

Here it is anyway:

//Dash codes Begin
exec("game/server/dash/main.cs");
//dash codes End
} <-- remove this


Wednesday, August 24, 2005 at 2:15:09 PM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald