Author Topic: Dedicated Server - Auto Brick Upload  (Read 866 times)

Code: [Select]
package Autoload
{
   function gameConnection::onClientEnterGame(%this)
      {
         Parent::onClientEnterGame(%this);
         serverDirectSaveFileLoad("Add-Ons/Map_TEST/utbrks.bls", 3, "", 0, 1);
      }
};
activatePackage(Autoload);

I have created this script for a custom map of mine, but it doesn't work on dedicated servers... Is there a way to make the bricks upload on a dedicated server as well as a normal server?

UPDATE: Also so that the host can only load the bricks...
« Last Edit: August 23, 2009, 12:31:13 PM by General »

It helps if he have the console and the script, you know, so we can actually help you. I see the ninja edit.

Shouldn't it load the bricks when the map is loaded rather than when a player enters the game?

Every time someone spawns, it's going to load the bricks.

Every time someone spawns, it's going to load the bricks.
No it isn't, if you don't have the map that is... I see your point. :o
« Last Edit: August 17, 2009, 10:41:41 AM by General »

Everytime any player spawns, those bricks will load.

schedule(1000,0,serverDirectSaveFileLoad,"Add-Ons/Map_TEST/utbrks.bls", 3, "", 0, 1);

Just throw that at the end of the .mis file. (Open it like you would any other .cs file)

Bump, still need help.

Did you even try Chrono's solution? Did it work? Was there any errors?

Did you even try Chrono's solution? Did it work? Was there any errors?

It did work, except it doesn't upload on a dedicated server.

Did you put it in the actual mission file as opposed to in your script there?

Did you put it in the actual mission file as opposed to in your script there?

Yes I did, and it works on non-dedicated servers. But here is my problem:

Whenever you load bricks on a dedicated server it requires an upload. My script doesn't request an upload... Is there a way to make it request one on a dedicated server?

It should be loading straight from the server.