Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
LawsonThompson

Registered:
Posts: 589
Reply with quote  #1 
What are the official guidelines for clients when it comes to scripts? Does every client need an exact copy of the server's scripts?

(I'm wondering if some of my server stability issues are due to the fact that I don't copy every script to every client.)

__________________
----
Visit us at http://www.ltebridge.com
ryleyra

Registered:
Posts: 2,915
Reply with quote  #2 
Only the server needs a copy of the script. The clients should not access it. This can be a bit of a drawback if the script plays a file, as it will only play it on the server and the clients won't hear it. But outside of minor little glitches like logging into Comms late or needing to reset the Game Master client, the server should tell the clients everything they need to know when they need to know it.
Darrin

Registered:
Posts: 98
Reply with quote  #3 
If the script uses any texture or object file that isn't part of the standard Artemis distribution, then you need to make sure every Artemis client /dat folder has a copy of the texture/object file. If it doesn't, Artemis will crash. Artemis checks the /dat folder instead of the mission folder, so you have to copy them over to each client.

I'm not sure about .wav files. I think those only play on the server.
Mike Substelny

Avatar / Picture

Administrator
Registered:
Posts: 2,285
Reply with quote  #4 
Quote:
Originally Posted by Darrin
If the script uses any texture or object file that isn't part of the standard Artemis distribution, then you need to make sure every Artemis client /dat folder has a copy of the texture/object file. If it doesn't, Artemis will crash. Artemis checks the /dat folder instead of the mission folder, so you have to copy them over to each client.

I'm not sure about .wav files. I think those only play on the server.


I believe that you can get Artemis to check the mission folder if your script includes the complete path. If this is wrong them the program has been changed without me realizing it. These are needed because every console has the ability to show the mainscreen so any art asset that might appear on mainscreen must be available to all of the clients. You generally need this if you use generic objects you built yourself. This helps remote players share in the experience of seeing mainscreen.

The sound and video files do only play on the server, so if those are the only files you use then the clients do not need a copy of the script. Of course if you use this type of asset then remote players won't share the full experience of your script.

__________________
"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight."
- Winston Churchill
ryleyra

Registered:
Posts: 2,915
Reply with quote  #5 
Just for clarification, the clients do not need the script, but they do need any meshes or texture files the script uses to create generic meshes. A lot of the built-in assets can be re-used for a generic mesh, so some scripts won't need to use a custom mesh. Basically, if a script does use a custom mesh, it will be included in the install file, and you'll have to copy it to the clients as well.

If a script doesn't include any mesh or texture files, it's only needed on the server, even if it includes an audio file.
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.