Re: [akka-user] Dependency issue

2017-02-23 Thread Steve Winfield
All right, it seems to work now, thank you very much! Cheers, -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> Search the archives: https://groups.google.com/group/akka-user

Re: [akka-user] Dependency issue

2017-02-21 Thread Steve Winfield
Well, I'm using Akka Distributed Data on both the player and room service with different keys. Player service: val replicator = DistributedData(context.system).replicator val DataKey = LWWMapKey[Player]("player") When the player service receives a "GetPlayer" message, it fetches the player

Re: [akka-user] Dependency issue

2017-02-21 Thread Steve Winfield
Nope, that's why I'm so confused about it. -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> Search the archives: https://groups.google.com/group/akka-user --- You received

Re: [akka-user] Dependency issue

2017-02-21 Thread Steve Winfield
Nope, that's why I'm so confused about it. -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> Search the archives: https://groups.google.com/group/akka-user --- You received

Re: [akka-user] Dependency issue

2017-02-21 Thread Steve Winfield
Nope, that's why I'm so confused about it. -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> Search the archives: https://groups.google.com/group/akka-user --- You received

Re: [akka-user] Dependency issue

2017-02-21 Thread Steve Winfield
Nope, that's why I'm so confused about it. -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> Search the archives: https://groups.google.com/group/akka-user --- You received

Re: [akka-user] Dependency issue

2017-02-20 Thread Steve Winfield
The exception is not thrown by the player service but by the room service that doesn't load the class (it doesn't use it!) -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >>

[akka-user] Dependency issue

2017-02-19 Thread Steve Winfield
;) ) ).props(), name = s"PlayerServiceGroup") playerService ! GetPlayer(1) // Now room service throws ClassNotFoundException: ...players.model.Player (class of player service) Do you know what's wrong with it? Thanks! Cheers, Steve Winfield -- >>>>>>>>&

[akka-user] Re: Distributed data

2016-11-28 Thread Steve Winfield
gt; Hi Steve, > have you looked at > http://doc.akka.io/docs/akka/2.4/scala/cluster-sharding.html? It seems > well suited to your use case if I understood it correctly. > > Cheers, > Rafał > > W dniu poniedziałek, 28 listopada 2016 18:24:23 UTC+1 użytkownik Steve > Winfi

[akka-user] Distributed data

2016-11-28 Thread Steve Winfield
mmands/setnx) a good alternative (my second approach)? How would you guys solve this "problem"?* Thanks! Cheers, Steve Winfield -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>&g

[akka-user] Re: Synchronization issue

2016-11-02 Thread Steve Winfield
All right, what if I'd use messages instead of a callback (The players handle their position by themselves)? In this case I want the selected players to be kicked out of the room so I could send ExecuteOnPlayersByPosition(position, LeaveRoom) to every single player and they would handle it

[akka-user] Synchronization issue

2016-11-02 Thread Steve Winfield
Hey, I got a question regarding a project I'm working on. There are player actors that can be managed by a "player director" actor which belongs to a virtual room and supervises the players. A player maintains its current position and name as a mutable state. The director looks like this:

Re: [akka-user] How to change this game loop to message-driven actors?

2016-10-08 Thread Steve Winfield
Am Samstag, 8. Oktober 2016 22:09:46 UTC+2 schrieb Justin du coeur: > > (Although my first impression is that I'd probably use a repeated > schedule, and on each call decide whether to stop, rather than a lot of > scheduleOnce's.) > Players are not always moving and I guess (!!) that a

Re: [akka-user] How to change this game loop to message-driven actors?

2016-10-07 Thread Steve Winfield
c66e270a7b25feb10dcd90926c) What do you think about it? (it's calling context.system.scheduler.scheduleOnce for every step - too much?) Cheers, Steve Winfield -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>>