Author Topic: stops loading after "Loading Objects"  (Read 1266 times)

the game thinks i spawned but it does not load heres part of server.cs
Code: [Select]
package Script_Message
{
  function gameConnection::onClientEnterGame(%client)
  {
  messageClient(%client, '', "\c6This server is running the Personal Message mod \c6use \c3/message USER MESSAGE \c6to send them a personal message.");
  }
};
activatepackage(Script_Message);

the game does the message client but it does not load past objects

This is because you are overwriting GameConnection::onClientEnterGame(%client), the default function spawns the player and such. However the only thing you've made it do once the client has entered the game and is ready to spawn is send that message. To fix this, run the parent function first, then message the client.

This is because you are overwriting GameConnection::onClientEnterGame(%client), the default function spawns the player and such. However the only thing you've made it do once the client has entered the game and is ready to spawn is send that message. To fix this, run the parent function first, then message the client.
this will take some time as i know nothing about parent

nevermind read one extra line and got it parent loads the default action for that command from blocklands main data files so i overright this command with my message then i make the command revert back to default

So you would add parent::onClientEnterGame(%client); before your message.