[gameprogrammer] Re: online server, propagating changes

Do you have to notify them? Couldn't you just change the world state and
have anyone interested ask?
What I think you are trying to do is: give a step and declare "I just made a
step", when it's much easier to just make the step and make anyone see you
and realise what just happened.
Since all objects near the player will have to react to something, it
doesn't matter if the player does or does not do something in order for them
to act (though, then again, I have no idea of how your rpg works), so really
I think you'd be more interested in instead knowing, or being notified (on
demand) of what the entities near one do.
So when the player moves, only those entities that ask would know that he
moved, those that where close to the player but couldn't care less (like
maybe a rock, or something like that) wouldn't have to be notified at all. A
creature that might be more reactive (a creep or something) would just ask
to be notified what all the things around it are doing, so if anyone is
attacking it, it would know and react acordingly.
I think I'm starting to go in circles and using to many words for what I'm
trying to say, so I hope that this helps, though I might have misunderstood
what you want.

On 11/13/06, Roger D Vargas <luo_hei@xxxxxxxx> wrote:

Yes, I dont know the exact term to define it. What I need to do is the
following:

if X starts walking:
    notify all entities in visible range

Not just "walking", but any state change or action, like X starts
attacking Y,  or changes armor, equips a new weapon, etc.

Alan Wolfe escribió:
> I didn't even consider that he might not be talking about propogating
> data across a network but now that you mention it, that might be exactly
> what he's trying to do.
>
> Can you give some more info on what you are trying to accomplish Roger?
(:
>
> On 11/13/06, *Matthew Weigel* <unique@xxxxxxxxxxx
> <mailto:unique@xxxxxxxxxxx>> wrote:
>
>     Roger D Vargas wrote:
>      > Im working in an online rpg project in my spare time, but I
stilll
>      > havent figured out an algorithm to propagate entity changes to
>     nearby
>      > entities. Also I have no idea about what terms to use to google.
>      > Can somebody pooint me to some resource about this?
>
>     Sounds like either data replication, or a neural network?
>     --
>     Matthew Weigel
>     hacker
>     unique@xxxxxxxxxxx <mailto:unique@xxxxxxxxxxx>
>
>     ---------------------
>     To unsubscribe go to http://gameprogrammer.com/mailinglist.html
>     <http://gameprogrammer.com/mailinglist.html>
>
>
>

--
http://dsgp.blogspot.com | Linux, programación, juegos
Have no place I can be since I found Serenity
But you can't take the sky from me


______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html



Other related posts: