I've been looking at the code and found that if I commented out in /usr/lib/python2.4/site-packages/soya/tofu/__init__.py these two lines: # import soya.server_mode # soya.server_mode.set_server()
The --server mode works fine. When trying to connect from another client I got a connection refused error. Changing in the same file this line: HOST = "localhost" For this one: HOST = "10.4.10.6" #(my LAN IP) The client could connect just fine. The demo works great and now I'm looking forward to start building some test stuff which I'll share with you as I go by. Thanks Jiba for the great work. PS: for those who don't want to read the code to find out how to invoke the demo correctly This is what I do to start a server: python demo.py --server And this to start a client: python demo.py --client 10.4.10.6 UserName Nicolás Echániz wrote: > Jiba and all, > > I'm trying to test tofu on Soya 0.13 > > The demo works fine in single mode, but when I try to run server mode > like this: > # python demo.py --server > > I get: > > Traceback (most recent call last): > File "demo.py", line 228, in ? > main_loop = MainLoop() > File "/usr/lib/python2.4/site-packages/soya/tofu/sides.py", line 77, in f > for f1 in fs: r = f1(*args, **kargs) > File "/usr/lib/python2.4/site-packages/soya/tofu/__init__.py", line > 175, in __init__ > import soya.server_mode > ImportError: No module named server_mode > > Any clues? > > > Thanks, > > Nico. > > > Jiba wrote: > >> Hi all, >> >> I've integrated the latest version of Tofu in soya SVN (soya.tofu). The >> tutorial/tofu directory includes a small demo, and I've started a chapter >> about tofu in the Soya guide (the famous "Yet-in"... well, actually the >> chapter is nearly finished, but I find it not enough clear and I probably >> rewrite it entirely :-)). >> >> Tofu has also be improved: >> - it can now support several players on the same client (e.g. one using >> keyboard and the other the joypad). >> - it includes a "mixin" class for dealing with collision detection, using >> raypicking. The long term idea is to provide many such "mixin" class, and >> then the game developer just has to combine them :-) >> >> Due to all these changes, I'll surely release a second RC for 0.13 soon, and >> then the final release. >> >> I probably moves the website to a new engine this week-end, so there may be >> some temporary problems with the site. >> >> Jiba >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Soya-user mailing list >> [email protected] >> https://mail.gna.org/listinfo/soya-user >> >> > > _______________________________________________ > Soya-user mailing list > [email protected] > https://mail.gna.org/listinfo/soya-user > > _______________________________________________ Soya-user mailing list [email protected] https://mail.gna.org/listinfo/soya-user
