On Wed, 28 May 2008, Ryan Neufeld wrote:

> 5. OS X: The client returns with this error:
> Network Error:
> The client connected to the host but could not login because the
> username o[r] password was incorrect.
> This could be because you are connecting to the wrong server or
> mistyped the username or password.
>
> The tpserver-cpp command line log is as follows:
> JumperOne::jaffer(risk)-> ./tpserver/tpserver-cpp -C quickstart-
> risk.conf
<snip>
> 2008-05-27 15:54:00 < Info  > Creating new player automatically
> 2008-05-27 15:54:00 < Info  > Bad username or password
> tpserver-cpp>

This is odd.

> 5. UBUNTU: The client accepts the user:pass guest:guest and downloads
> the universe. I click OK to proceed and upon loading the client I am
> presented with a blank board. I've attached a screenshot. It is
> important to note the message I programmed to be sent to new users
> does display. (screen1.png):
>
> As a bit off side commentary I should note that the universe/galaxy/
> star-system/planet have been hard coded into the ruleset and should be  
> displaying. Unless, of course, I need to explicitly state that the  
> player should see them?

That is correct. You need to tell the player's view that they are visible.

in Risk::onPlayerAdded(player)

get playerview from player->getPlayerView()
for each IGObject
  create ObjectView
  obview->setCompletelyVisible(true)
  playerview->addVisibleObject(obview)

> $./tpserver/tpserver-cpp -C quickstart-minisec.conf
> 7. Upon reconnecting to the server with tpclient-pywx as guest:guest  
> both OS X and Ubuntu are greeted by a Minisec game. The two pictures  
> Ubuntu1.png and OSX1.png show the universes I am presented with.

A slightly different process is going on here, as in Minisec, the guest user 
is already created. Try a different username and see what happens.
Otherwise, this is correct.


> 12. OSX. Again I am greeted with the "Network Error" message as
> before. The tpserver-cpp command line operation is pasted below:
> tpserver-cpp> JumperOne::jaffer(risk)-> ./tpserver/tpserver-cpp -C
> modules/games/risk/testing-risk.conf
> 2008-05-27 16:20:17 < Info  > Logger started
> <snip>
> 2008-05-27 16:20:50 < Info  > Creating new player automatically
> 2008-05-27 16:20:50 < Debug > finding player
> 2008-05-27 16:20:50 < Debug > Risk onAddPlayer
> 2008-05-27 16:20:50 < Info  > Bad username or password

Same as before but with debugging output.

> 12. UBUNTU: The behavior on Ubuntu is entirely bizarre. Instead of
> displaying a blank game as before a strange mix of minisec and risk is
> displayed. I've attached a screenshot as risk-minisec.png

This is caused by tpclient-pywx not being smart enough. It doesn't correct 
detect when a game is restarted or reset. Delete ~/.tp/cache.* to remove 
tpclient-pywx's cache.


Creating a player automatically doesn't appear to be working on OSX. I'm not 
sure why at this point. You could try creating them the "proper" way, using 
the "find" button, and creating the account that way, then logging in with 
it.

When I get some time, I will add a bit about PlayerView and (Object|Design|
Component)View to the ruleset book.

Later
Lee

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel

Reply via email to