Forums Index >> Modding >> Never Stopping Download Bar



Page : <1> :


Have you ever joined to a mod server and your downloading bar stops suddenly? You have no idea what you are downloading and the loading bar just sits in one place.
Here are cure for you, if you dont like that. The loading bar will never stop to sit again and it will show what you are downloading and to where.

You need to open up main.cs file which is located in your ThinkTanks folder. It can be done with any text editor( example Notepad, Textpad, UltraEdit, etc...). After you have opened the main.cs file up scroll to end of the file and add this code to there.

Function onFileChunkReceived(%fileName, %ofs, %size)
{
LoadingProgress.setValue(%ofs / %size);
LoadingProgressTxt.setValue(" " @ %fileName @ "...");
}

After you added that to end of main.cs file, save changes and shut text editor down.

Heres a picture what it looks like in action.

 

You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.

Thursday, August 05, 2004 at 8:58:50 AM

That is cool Triv, I'm going to do it now. This will help people know they are not just stuck and that something is happening

Thursday, August 05, 2004 at 10:44:24 AM

Very cool!!!

Thursday, August 05, 2004 at 10:49:47 AM

Nice job!!! I'm definetly using this!

 

Thursday, August 05, 2004 at 10:58:32 AM

Sweet. :)

Thursday, August 05, 2004 at 12:56:22 PM

Un-capitalize the 1st letter of every sentence. Stupid auto-capitalization.

 

Thursday, August 05, 2004 at 5:36:30 PM

Awesome work Triv, this will really help a lot of impatient people me being one of them. :P

Thursday, August 05, 2004 at 6:34:00 PM

Ahem,
wooooooooooooooooooooooooooooooooooooooooooooot
:)

Thursday, August 05, 2004 at 6:37:40 PM

Hehe........ I've been doing that for the past two days, I was checking the realm wars script when I figured it out. Good job triv, you beat me to it. ;)

Thursday, August 05, 2004 at 7:07:59 PM

Wow it works yes triv very nice job


Thursday, August 05, 2004 at 11:17:11 PM

I would like to let you all know, that I'm pretty sure this only effects YOUR GAME, not the clients joining your server.

Friday, August 06, 2004 at 2:22:16 AM

It only effects your game.

Friday, August 06, 2004 at 11:25:45 AM

Thanks Spunky for clearing that up. Forgot that silly auto-capitalizator.
And yes, its client sided. Thought im pretty sure people understanted that anyway.

You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.

Friday, August 06, 2004 at 5:03:26 PM

I wouldn't be so sure triv. Lol.

Friday, August 06, 2004 at 6:15:58 PM

@Triv
So you're talking to me again? I thought you were giving me the cold shoulder.

 

Friday, August 06, 2004 at 11:06:38 PM

Most Very Excellent Triv
"BUMP"
Another way too reduce download time is to
preload the terrains
According to Nathan the game servers only download at 5 kbs
Man thats like dialup speed but if more modders would
email terrains to -z- then we could preload quickly from PTT in a Heartbeat!!!
***Cut the Lag***
Spread the word

Am currently sending -z- terrains from dash that will
play MODASH and Roosters Realms games
Thks again 4 download manager script
Roo

 

Sunday, August 08, 2004 at 11:12:42 AM

Does it only work when you are downloading something new. :o

Monday, August 09, 2004 at 4:25:17 PM

Yeah intruder. It wont show up if you just join to some shockwave server. But it will show up if you join to a modded server which uses objects/terrain/sky which you dosent have.

You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.

Monday, August 09, 2004 at 7:03:06 PM

What about if you put that in your.mis file.....Would it show it to everyone else???

Tuesday, August 10, 2004 at 2:01:33 AM

Does it work on Mac?

Tuesday, August 10, 2004 at 3:47:34 AM

Gj triv

B

Edit:

On dash's new scrum server I waited and finally got all the files and joined. How come every game AFTER that it still takes forever to load?

B

Last edited: Tuesday, August 10, 2004 at 4:36:20 AM

Tuesday, August 10, 2004 at 4:35:34 AM

Failed to ''main.cs''

Tuesday, August 10, 2004 at 5:22:22 AM

Does it work on Mac?

Tuesday, August 10, 2004 at 11:05:09 AM

IT DIDN'T WORK :[ :P :'( :'( 8( :(

Tuesday, August 10, 2004 at 12:34:18 PM

Intruder did you remember write "Function" with small letters? Like this "function".
I have no idea does it work on Mac if it does thats just great. You gotta try it yourself

You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.

Tuesday, August 10, 2004 at 1:22:07 PM

I uncapitalized the letters and it didn't work :[ :S :'( :P :(

Wednesday, August 11, 2004 at 10:57:45 AM

Hmm...works for me and I have a mac.

Wednesday, August 11, 2004 at 5:27:59 PM

Well looks like you did someting wrong then Intruder.

You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.

Wednesday, August 11, 2004 at 5:34:23 PM

Someone's always coming up with some new great thing! . Good job! %)

Saturday, September 25, 2004 at 12:46:26 PM

It does work on Mac.

 

Saturday, September 25, 2004 at 10:13:47 PM

If ya want it to be for all ppl in one mod I think u gotta put it on the.mis ull just have ta test cos im a bit sleepy


Sunday, September 26, 2004 at 1:19:32 PM

WWWOOOOOOOOTTTTTTTTTTT im so impationt and this is great I will download it soon

Monday, September 27, 2004 at 10:45:01 PM

Sorry for the bump

But my god, this is a life saver. I've been trying to get into terrains online and have given up after 5 or so minutes only to be told later that I was nearly done with the downloading! This is a god-send. :) Bravo!

Monday, October 25, 2004 at 7:21:53 PM

Thats nice to hear Zenigate! :)
I got few other useless things too, might post them here too.

You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.

Tuesday, October 26, 2004 at 4:24:37 PM

It wont work for me

Heres the end of my main.cs file can u find out wuts rong??!

// 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]);
}

Function onFileChunkReceived(%fileName, %ofs, %size)
{
loadingProgress.setValue(%ofs / %size);
loadingProgressTxt.setValue(" " @ %fileName @ "...");
}

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

"exec("game/client/scripts/ModWizardBindings.cs");");
}

 

 

Last edited: Thursday, December 09, 2004 at 3:51:39 PM

Thursday, December 09, 2004 at 3:51:07 PM

TaKeNoPrIsOnErSs did you change Function to function, because its needs to be written with small f.

You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.

Friday, December 10, 2004 at 5:41:50 AM

}

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

"exec("game/client/scripts/ModWizardBindings.cs");");
}

The two brackets don't match. Lol, I figured that out just now.

Friday, December 31, 2004 at 6:13:21 AM

Its like this racer, you forgot!
}

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


Last edited: Friday, December 31, 2004 at 10:52:40 AM

Friday, December 31, 2004 at 10:51:58 AM

Heres a little different one that some others might like better:

 

Function onFileChunkReceived(%file, %ofs, %size)
{
loadingProgress.setValue(%ofs / %size);
loadingProgressTxt.setValue(" " @ %size - %ofs @ " kb left");
}

 


just make all of the begining letters lowercased, and that will tell you how much of the file is left to download. :)

 

Saturday, January 01, 2005 at 5:10:07 PM

NEVER STOPPING THREAD! XD

This was like in page 4 and Bumped to page 1 again...then it will happens again...and again again! :P

Last edited: Sunday, January 02, 2005 at 12:13:39 AM

Sunday, January 02, 2005 at 12:12:31 AM

^ lol :)

You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.

Sunday, January 02, 2005 at 12:38:56 PM

Triv do you mod? :( :) ;( ;)

Sunday, January 02, 2005 at 7:07:43 PM

Mine bar is much better, I can choose between size shower or name shower, and I can make it remove game/ out of the file's name


Friday, January 07, 2005 at 12:48:11 PM

Can't see the pic what does it look like and I don't understand I got a mac

my blaster will destroy u!

Monday, March 06, 2006 at 8:32:57 AM

Kuhbump.

Pray to GOD for him to reveal himself to you.

Thursday, May 11, 2006 at 2:12:16 PM

^^Kuh-Super BUmp :S

Leader of the Vigilante Tanks! May Vigilance Carry On!

Friday, May 12, 2006 at 7:40:19 PM

^General Vig I was new then lol. I didn't know anything but even I have to say
^^^Kuh-quadruple BUMP.

my blaster will destroy u!

Saturday, May 13, 2006 at 12:36:31 AM

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