Skip to main content

Simple Server - 1.1

Tiny threaded Server and Database Application


Teb Toddy
(steelo)
Server with database and password authentification. DEMO! Start server.py first, then fire up client.py. change "localhost" in server and client to your IP if you want to test it through the net. at the moment multiple players can build a homebase on a planet using right click and attack each other with their cannon (left click) or rockets/mines (space). you may not destroy players or planets at the moment. you can change some cannon and rocket variable on the numbers 1-6 (NOT on numpad). 1/2 cannon cooldown 3/4 cannon shootspeed 5/6 mine cooldown. 7 and 8 to start/stop playing music. press shift to hyperspeed, but be aware of the cooldown and energy drain. yellow is energy, green is your life. use your mousewheel to scroll in/out and click it or some other button i dont know to unlock camera. if you fancy knowing what the finished game will look like, leave a comment ;)

Changes

tech demo

Links

Home Page
http://www.pygame.org
Source
http://www.file-upload.net/download-3613173/Steelodemo.rar.html

Releases

Simple Server 1.1 — 25 Jul, 2011

Simple Server 1.0 — 22 Jun, 2011

Pygame.org account Comments

  • Moe Win 2011-06-22 19:14

    Hello fri: Firstly , I 'm newbie in python .I'm learning client server application . Can u explain soc.connect((HostIP, Port))
     this one . how to setup host ip and port??
    Thanks 

  • teb 2011-06-22 19:32

    Hey Moe
    HostIP and Port are Variable which i define in top of the program. HostIP is now "" (empty). the socket module will assume a localhost then, i think you could also write "localhost". if you want other people to connect to your server, put the IP to the "" where it belong in variable definitions at top. Hope i could help, here is a link to a newer version, i put the IP 107.107.107.107 for you in http://pastebin.com/Km9cg78S  the port you can set to pretty much anything thats open on your computer and the client.

  • teb 2011-06-24 10:42

    server: http://pastebin.com/YnaDdRZw
    client: http://pastebin.com/gHuQ0Z12
    you may create any kind of jobs now to exchange data, this one is a basic chat.
    guess thats it for the moment, client calling for a game =)

    teb 2011-06-24 13:00

    disregard this and use the links above in description, i will update them there instead of being stupid to comment here, thx =)

  • Blakeandrewwood 2011-09-18 07:52

    Hi teb, i'm trying to get this to work but i keep getting and error:

    Traceback (most recent call last):
      File "/Users/name/Desktop/untitled folder/client.py", line 32, in <module>
        soc.connect((HostIP, Port))
      File "<string>", line 1, in connect
    error: [Errno 61] Connection refused

    i've tried putting localhost in for the IP and i've tried setting it to my IP. Do you knopw what could possibly be wrong?