Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 29 Sep 2012
Offline Last Active Nov 25 2015 12:29 PM

Posts I've Made

In Topic: SF government/race types

25 September 2015 - 07:52 AM



If they are a religious organization maybe you could use caliphate?


I was going to suggest hive, but I was too late =p

In Topic: ENET peer list?

17 September 2015 - 01:45 PM

enet_host_broadcast will send a packet to the local network for everyone to receive if they're listening to it. I don't think that's what the OP wants.

The ENetPeer is the main connection object representing the "other end," so I imagine this is valid until such time that the connection goes away. I don't know what kind of notification you get when it becomes invalid, though.


Are you sure? I just tested here (server running on NY based VM, clients running on my machine).


packet = enet_packet_create(buffer, strlen(buffer)+1, 0);
enet_host_broadcast(server, 1, packet);

And this:

for (i = 0; i <  ipeerCount; i++) {
    if (&server->peers[i] != event.peer) {
        packet = enet_packet_create(buffer, strlen(buffer)+1, 0);
        enet_peer_send(&server->peers[i], 0, packet);

Both worked for the clients (I can paste the outputs here).


PS: I ommited the buffer value initialization.

In Topic: ENET peer list?

17 September 2015 - 11:18 AM

I looked at a very simple program I have written using enet, I haven't use it extensively, so take it with a grain of salt.


That being said, have you tried using "enet_host_broadcast"? It is what I used and it worked fine.

In Topic: What choose for first game?

28 August 2015 - 11:31 AM

Old but gold:




Step by step, covering even the most basic programming up to some basic games (this includes a console tic tac toe) and graphics.


Maybe this is one of those links that should be added to the FAQ, as I have posted it a lot of times over the years tongue.png

In Topic: How is this python statement suppose to be friendly? (3.4 ver)

28 August 2015 - 07:38 AM

A good and fun place to practice is this one:




Basically a crossword using regular expressions.