Jump to content

Welcome to the Forum!

The best place to exchange builds and ideas! Vote for the best ideas and suggestions here.

Join the Avorion Discord!

Connect with other passionate players and talk about the latest news.
Discord

DLC Avorion Into the Rift Out Now!

Now available on Steam!
Steam

[question] server Vs. client?


harrymcb
 Share

Recommended Posts

I started using/making mods, but i don't know how to tell if a mod works on a server only or server and client or client only. for example, i made a simple modification to script/systems/valubalesdetector.lua  would that have any effect if i play multi-player? or would it change something if i made my own server? my main experience with mods is Minecraft.

Link to comment
Share on other sites

What you can look for are keywords and server/client-only objects (e.g. GUI Elements for Client, onServer() or onClient() statements, updateClient(), updateServer(), invoking functions on client/server, using server-only methods on common objects and so on). Check API documentation to find those. Another thing is to check what script is attached to: Entity, Player, Upgrade, command script etc. Actually I would risk saying that most of the scripts you will find are server-side, but you really need to watch for invoking and GUI/display related stuff (so, it's not actually most of them, kek). Spend some time with docs and read some scripts you should get it in no time.

Link to comment
Share on other sites

thanks. i assume if i change a server script that it will only effect my servers or single player? i'll look through the docs for more thanks.

PS. i just figured(based on assumptions) out that scripts like the systems scripts are entirely server based. the OnClient part is the server telling the client what to do. so my changes there have no effect on other servers. BTW if i am way off, which i don't doubt, tell me please. i don't want to cheat.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...