Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server-side only elements #1202

Open
tederis opened this issue Jan 7, 2020 · 2 comments
Open

Server-side only elements #1202

tederis opened this issue Jan 7, 2020 · 2 comments
Labels
enhancement New feature or request
Projects

Comments

@tederis
Copy link
Collaborator

tederis commented Jan 7, 2020

Is your feature request related to a problem? Please describe.
There are numbers of situations when some entity should be handled by several resources but replication to the client-side is redundant. The simplest example is a spawnpoint. In my practice was not any case in which spawnpoints had used on a client-side. But maintaining spawnpoints as elements is a very convenient so it'll be desirable to add an opportunity to decide replicate an element or don't.

Describe the solution you'd like
I propose to add a new argument to createElement function that tells the game about a local nature of an element.
For example, createElement( string elementType, [ string elementID = nil, bool isLocal = false ] )

Describe alternatives you've considered
At the moment there are two kind of approaches to handle this. The first one is to create elements as is, do all the work to replicate element for a client. And second one is to syncronize a table between resources, that in most cases is painful and unreliable.

@tederis tederis added the enhancement New feature or request label Jan 7, 2020
@CrosRoad95
Copy link
Contributor

only serverside colshape too are useful

@qaisjp qaisjp added this to Incoming in Proposals via automation Jan 7, 2020
@qaisjp qaisjp moved this from Incoming to Likely Accept in Proposals Jan 7, 2020
@qaisjp qaisjp moved this from Likely Accept to Active in Proposals Jan 7, 2020
@qaisjp qaisjp moved this from Active to Likely Accept in Proposals Jan 7, 2020
@qaisjp
Copy link
Contributor

qaisjp commented Jan 7, 2020

Sounds fine to me. The intent seems clearer if it's named bool synced = true.

Want to avoid using the word "local" since people are used to localPlayer and it might cause confusion (i.e. thinking it means "client only")

@qaisjp qaisjp changed the title Local server-side elements Server-side only elements Jan 7, 2020
@qaisjp qaisjp moved this from Likely Accept to Accepted in Proposals Mar 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Proposals
  
Accepted
Development

No branches or pull requests

3 participants