Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by jpthek9 · Jan 22, 2015 at 11:12 PM · photonserverpluginrts

Plugins for Photon?

Is there a way I can write code to run on my game's servers (hosted on Amazon EC2)? I don't need to do anything too intense like simulating physics or unit stats. I need to use the server as a middle man to process commands for my lockstep RTS game.

What I wish to do: Every time a client tells a unit to move, the move command will be sent to all players. Every player, upon receiving the command, will send a confirmation message to the server. Once the server has received confirmation from all clients, it will send an RPC to all clients to let them know that the command is ready to be executed. If not, it will send the ID of the player who is not confirmed and a voting screen will pop up to vote that unconfirmed player out of the game.

To accomplish this, I will have to 1. Have an RPC on the server to be called for confirmations and 2. Send an RPC from the server if all clients are confirmed. Is this possible with Photon Unity Networking?

Do I have to edit a certain script or insert my own into a directory?

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image khos85 · Jan 22, 2015 at 11:26 PM 0
Share

I'd go to the photon thread and check there or read their docs on this.. but you refer to RPC, why do you need photon?

avatar image jpthek9 · Jan 22, 2015 at 11:32 PM 0
Share

@$$anonymous$$hos85 I need to use the server to implement the lockstep system and I intend to do this as described in my question.

Ins$$anonymous$$d of a player sending confirmations to every other player, I want the server to store the confirmations and send out an RPC when all players are confirmed for a command. This would drastically reduce the bandwidth demand on players and take advantage of packets going through the server.

I can't find how to do this in the documentation. If you know of it, can you link it please?

avatar image jpthek9 · Jan 24, 2015 at 09:15 PM 0
Share

Anyone have any ideas on how to do this?

avatar image khos85 · Jan 24, 2015 at 11:31 PM 0
Share

Hi , I'd try asking on the photon thread too http://forum.unity3d.com/threads/photon-unity-networking.101734/

avatar image jpthek9 · Jan 25, 2015 at 01:42 AM 0
Share

I posted a question there but it'd still be nice getting an answer here.

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by jpthek9 · Jan 29, 2015 at 07:20 PM

This can be done in the room.cs file in the photon server sdk by following this tutorial: http://doc.exitgames.com/en/onpremise/current/tutorials/adding-operations.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Detect if webplayer is supported or not from UserAgent 0 Answers

Problems with Photon self-hosted server 0 Answers

Wrong App ID given for upgrading photon CCU,Wrong App Id given for upgrading the Photon CCU 0 Answers

How can I architect a persistent RTS using Unity as the client? 0 Answers

Photon Server Tutorials? Or Alternative Networking Asset 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges