Blockland Forums > Modification Help

Making the client respond to the server(TOPIC NAME CHANGED)

Pages: << < (6/10) > >>

Kilser:

Well, can I get a copy of this?

Red_Guy:


--- Quote from: Reinforcements on February 15, 2011, 09:52:06 AM ---Oh noes! Its not working....troubleshooting now....

This should work with LAN right?

EDIT: It was kicking me when I started the server, so I had it check for the host.

--- End quote ---

It should work for both lan, SP and internet games, and even if your the host.

Ive seen this before myself - where the client.cs of a mod im working on doesnt get executed. a temporary fix would be to exec client.cs in your server.cs (just make sure you take it out before releasing).
Then you dont need the extra complication (and confusion) of checking for the host.


Reinforcements:


--- Quote from: Red_Guy on February 15, 2011, 01:44:42 PM ---It should work for both lan, SP and internet games, and even if your the host.

Ive seen this before myself - where the client.cs of a mod im working on doesnt get executed. a temporary fix would be to exec client.cs in your server.cs (just make sure you take it out before releasing).
Then you dont need the extra complication (and confusion) of checking for the host.


--- End quote ---
If I start a server, it will get to the loading screen and stop. The console says I got kicked.(this was before the "check for host") Also, I've tested this with LAN, my bro joined my server with the "client_checkForAddon". He promptly got kicked, and the message popped up. The message worked great, but he had the "client.cs" and still got kicked. I checked that client.cs executed on startup of blockland. It said it did. :0

Red_Guy:

ok something isnt working right then...
you should not have to check for the host.

stick some echo() statements in all your functions so you can see whats being called and when.

Try increasing the schedule time to 10 seconds:
schedule(10000,0,kickPlayerFromServerForNotHavingACertainAddOn,%this);

Also try packaging a different function like onClientEnterGame.

Reinforcements:


--- Quote from: Red_Guy on February 15, 2011, 03:51:10 PM ---ok something isnt working right then...
you should not have to check for the host.

stick some echo() statements in all your functions so you can see whats being called and when.

Try increasing the schedule time to 10 seconds:
schedule(10000,0,kickPlayerFromServerForNotHavingACertainAddOn,%this);

Also try packaging a different function like onClientEnterGame.

--- End quote ---
lol, I though there wasn't one like that so thats why people used the autoAdminCheck. I shall insert echo()'s and report back to you, sir.

Pages: << < (6/10) > >>

Go to full version