WorldPlayer vs RemotePlayer

Questions or HOWTOs about the above? Post 'em here...
Post Reply
PsYch0
Private First Class
Private First Class
Posts: 37
Joined: Sun Nov 27, 2005 2:23 am
Location: Chicago, IL USA

WorldPlayer vs RemotePlayer

Post by PsYch0 » Fri Mar 03, 2006 8:19 pm

So I've sparked a great interest in reading through the code of BZFlag. However, I find while the comments are more than some programs, they aren't necessarily the MOST helpful.

One thing I'm wondering right now is: what exactly is the practical difference between a WorldPlayer and a RemotePlayer instance?

Any help would be much appreciated.
Thanks,
PsYch0

trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Post by trepan » Fri Mar 03, 2006 9:26 pm

WorldPlayer is used for world weapon shots.
RemotePlayer represents the remote players

PsYch0
Private First Class
Private First Class
Posts: 37
Joined: Sun Nov 27, 2005 2:23 am
Location: Chicago, IL USA

Post by PsYch0 » Fri Mar 03, 2006 9:31 pm

Sure... but what is the difference between "world" and "remote" ... practically? WHO is a world player and WHO is a remote player?


I understand that, e.g., if I'm playing, I'm the LocalPlayer; I would presume all other players are represented in my client as RemotePlayer's; so who exactly are the WorldPlayer's? And am I right about all other players being of the RemotePlayer definition...?

Thanks again
PsYch0

User avatar
huw
Private First Class
Private First Class
Posts: 158
Joined: Fri Apr 02, 2004 9:22 am
Location: England

Post by huw » Sat Mar 04, 2006 12:56 pm

I believe that WorldPlayers are world weapons and are server-side only

PsYch0
Private First Class
Private First Class
Posts: 37
Joined: Sun Nov 27, 2005 2:23 am
Location: Chicago, IL USA

Post by PsYch0 » Sat Mar 04, 2006 6:40 pm

I'm thinking maybe WorldPlayer = robot (bot, whatever) and RemotePlayer = remotely-connected-REAL-player... ??

Can anyone confirm that?

thanks

User avatar
L4m3r
Hater of Everything
Hater of Everything
Posts: 724
Joined: Tue Feb 08, 2005 5:15 am
Location: Los Angeles

Post by L4m3r » Sat Mar 04, 2006 9:34 pm

PsYch0 wrote:I'm thinking maybe WorldPlayer = robot (bot, whatever) and RemotePlayer = remotely-connected-REAL-player... ??

Can anyone confirm that?

thanks
Listen to what these people are telling you, dude. :|

Going by what trepan said:
All players are RemotePlayers.

WorldPlayer is only used to fire server-controlled world weapons. It's not a "player" per se, there's no tank or anything, it only has an instance so that the game world can fire automatic weapons.
Optimism is just a milder alternative to denial.

PsYch0
Private First Class
Private First Class
Posts: 37
Joined: Sun Nov 27, 2005 2:23 am
Location: Chicago, IL USA

Post by PsYch0 » Sat Mar 04, 2006 10:10 pm

L4m3r wrote: Listen to what these people are telling you, dude. :|

Going by what trepan said:
All players are RemotePlayers.

WorldPlayer is only used to fire server-controlled world weapons. It's not a "player" per se, there's no tank or anything, it only has an instance so that the game world can fire automatic weapons.
No need to be rude ... dude!
1) trepan clarified that Remote = remote... ?? how does one infer remote=all from that. One doesn't; unless, of course, he already knows that remote=all, which you must, and I don't, which is why I've posted the question.
2) I was not aware that there were situations in which "the game world" would fire weapons. So of course I wouldn't infer that from someone saying "the server" so much as I would infer that they might mean "bot" players when speaking of "server" weapons... afterall, bots are not run remotely at all are they? So I don't know what "remote" and "world" mean, which I mustn't for I've asked the question, the non-remote-operated BOT players might make "server" sense to me.

However, in your condescending response, I do think you might have given me what I asked for - the "practical" definition of World and Remote. That is, during game play, who is WORLD and who is REMOTE.

At any rate, thanks for you clarification,
PsYch0

User avatar
L4m3r
Hater of Everything
Hater of Everything
Posts: 724
Joined: Tue Feb 08, 2005 5:15 am
Location: Los Angeles

Post by L4m3r » Sat Mar 04, 2006 10:29 pm

My apologies on assuming that you had previously encountered world weapons.

Although I can understand why you would be inclined to think otherwise, there are no server-side bots in BZFlag. All robots are either a client on autopilot or a "robot tank" that is "brought in" with a standard client by adding "-solo n" to the command line, where n is the number of bots you wish to bring.

I'm sorry for the tone- I didn't mean to come off that harsh. It just seemed like you were essentially asking the same question three times, but now I see it was just a misunderstanding regarding some game terms.

Sorry for that, and I'm glad I clarified it for you. ;)
Optimism is just a milder alternative to denial.

PsYch0
Private First Class
Private First Class
Posts: 37
Joined: Sun Nov 27, 2005 2:23 am
Location: Chicago, IL USA

Post by PsYch0 » Sun Mar 05, 2006 12:57 am

No worries. Thanks for being understanding, for it's definitely a misunderstaning of game terms that I based my question on.

As for bots... you say their actually clients? They are typically run on the same machine as the server right? Or atleast, I've seen maps that will use bots until a certain number of players are logged in... those bots are then client apps run from the same machine as the server ?

Again, thanks for the help...
-PsYch0

User avatar
L4m3r
Hater of Everything
Hater of Everything
Posts: 724
Joined: Tue Feb 08, 2005 5:15 am
Location: Los Angeles

Post by L4m3r » Sun Mar 05, 2006 1:38 am

Usually the server machine will run a bot as well, yes. Not always, though- and the server doesn't care, either. Sometimes, in the Planet MoFo ring, we share bots across our servers. :lol:

Servers with bots that enter and depart usually run a script that watches the number of players, and runs a client as needed, with bots, and exits when they are no longer necessary. The script typically uses an observer slot to watch the game, so, like normal bots, it doesn't really matter where they're coming from.
Optimism is just a milder alternative to denial.

temporal distraction
Sergeant
Sergeant
Posts: 250
Joined: Wed Jan 05, 2005 3:12 pm

Post by temporal distraction » Sun Mar 05, 2006 1:44 am

PsYch0 wrote:As for bots... you say their actually clients? They are typically run on the same machine as the server right? Or atleast, I've seen maps that will use bots until a certain number of players are logged in... those bots are then client apps run from the same machine as the server ?
That's the way I do it. Just start a client and press 9 to get Roger. It takes alot of CPU resources though.

Teppic has a custom script and client that lets players use this:
Type xROBOTPLAYERS in lower case, where x is the number of bots you want.
See his reply in this thread: http://my.bzflag.org/bb/viewtopic.php?t ... teppic+bot

PsYch0
Private First Class
Private First Class
Posts: 37
Joined: Sun Nov 27, 2005 2:23 am
Location: Chicago, IL USA

Post by PsYch0 » Sun Mar 05, 2006 5:53 pm

excellent . thanks for the tips :D

Post Reply