rubidium
0c20992c5b
(svn r18051) -Codechange: make the active clients pause use a separate bit in the pause mode
15 years ago
rubidium
934e6a295d
(svn r18051) -Codechange: make the active clients pause use a separate bit in the pause mode
15 years ago
rubidium
d8580eb8b9
(svn r18048) -Change: make no distinction between unpausing because of a client aborting to join or actually joining
15 years ago
rubidium
c08c10f329
(svn r18048) -Change: make no distinction between unpausing because of a client aborting to join or actually joining
15 years ago
rubidium
b2d7edddfa
(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables
15 years ago
rubidium
c2221885f4
(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables
15 years ago
rubidium
3a9a88782b
(svn r17737) -Codechange: remove the chat window when you were chatting with someone who lost his/her connection or when you were team chatting and moved out of the company.
15 years ago
rubidium
58a36f038b
(svn r17737) -Codechange: remove the chat window when you were chatting with someone who lost his/her connection or when you were team chatting and moved out of the company.
15 years ago
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
dd01e6196a
(svn r17685) -Fix: autounpausing kept trying to unpause a loaded game that was paused due to an error. Just reject such savegames in dedicated servers.
15 years ago
rubidium
afed4330da
(svn r17685) -Fix: autounpausing kept trying to unpause a loaded game that was paused due to an error. Just reject such savegames in dedicated servers.
15 years ago
rubidium
ae115cda83
(svn r17667) -Fix [FS#3245]: autopause tried to (un)pause the server every tick when the pause command only gets processed once every frame_freq ticks. So it would spam the console with duplicate attempts.
15 years ago
rubidium
124e543b1d
(svn r17667) -Fix [FS#3245]: autopause tried to (un)pause the server every tick when the pause command only gets processed once every frame_freq ticks. So it would spam the console with duplicate attempts.
15 years ago
rubidium
99235a0d30
(svn r17618) -Fix [FS#3226]: the 'lock' icon would erroneously be drawn for companies if the company had a password before the reset
15 years ago
rubidium
b3c5c8cadb
(svn r17618) -Fix [FS#3226]: the 'lock' icon would erroneously be drawn for companies if the company had a password before the reset
15 years ago
frosch
0e36260337
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
frosch
ebd916be3d
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
rubidium
0153e7a211
(svn r17467) -Change: show the client id in join messages at the server (patch by dihedral)
15 years ago
rubidium
bd9670ea47
(svn r17467) -Change: show the client id in join messages at the server (patch by dihedral)
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
be9033295e
(svn r17247) -Change: move '3rd party' MD5 implementation also to the 3rdparty directory.
15 years ago
rubidium
60a3bc9034
(svn r17247) -Change: move '3rd party' MD5 implementation also to the 3rdparty directory.
15 years ago
rubidium
d61be2637e
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
15 years ago
rubidium
1fe3ad3288
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
15 years ago
rubidium
71c7064ad6
(svn r16601) -Fix [FS#2880]: try 2... hopefully better this time
16 years ago
rubidium
9b156c1bd4
(svn r16601) -Fix [FS#2880]: try 2... hopefully better this time
16 years ago
rubidium
8b8920533b
(svn r16573) -Fix: [Network] Always send the starting date from the game you're currently playing instead the starting date from the config file.
16 years ago
rubidium
f8bccce555
(svn r16573) -Fix: [Network] Always send the starting date from the game you're currently playing instead the starting date from the config file.
16 years ago
smatz
7d4d3850cb
(svn r16555) -Feature [FS#570]: ability to enter server and company password via command line when joining a server (based on patch by Progman, Ammler and planetmaker)
16 years ago
smatz
35635c6248
(svn r16555) -Feature [FS#570]: ability to enter server and company password via command line when joining a server (based on patch by Progman, Ammler and planetmaker)
16 years ago
smatz
f74b597c83
(svn r16506) -Fix: count only active clients (not those waiting for map download) when checking min_active_clients limit
16 years ago
smatz
2b4d37de3d
(svn r16506) -Fix: count only active clients (not those waiting for map download) when checking min_active_clients limit
16 years ago
alberth
580e478e4e
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
16 years ago
alberth
bab70a823d
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
16 years ago
smatz
50624d5c0f
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
16 years ago
smatz
62a7948af0
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
16 years ago
rubidium
789999ecf3
(svn r16360) -Codechange: don't use _network_playas as a 'second' _local_company, but only as a storage location for the company you want to join in MP.
16 years ago
rubidium
9f4d64bda0
(svn r16360) -Codechange: don't use _network_playas as a 'second' _local_company, but only as a storage location for the company you want to join in MP.
16 years ago
smatz
512db5248e
(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get()
16 years ago
smatz
8808f3beea
(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get()
16 years ago
smatz
0c10daa243
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
smatz
871107f529
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
smatz
d495dc5dbc
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
smatz
6221d74644
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
rubidium
31b9cd6d03
(svn r16250) -Fix (r16242): do not try to unpause when paused for a joining company
16 years ago
rubidium
101af1f9b5
(svn r16250) -Fix (r16242): do not try to unpause when paused for a joining company
16 years ago
rubidium
241af768f0
(svn r16242) -Codechange: rework pausing
...
-Fix [FS#2864]: autopause and manual pausing conflict with eachother
-Fix: new game + pause on new game + autopause make the game not unpause on the first join
16 years ago
rubidium
2664f2a2d9
(svn r16242) -Codechange: rework pausing
...
-Fix [FS#2864]: autopause and manual pausing conflict with eachother
-Fix: new game + pause on new game + autopause make the game not unpause on the first join
16 years ago
rubidium
6c3fa9b487
(svn r16135) -Fix [FS#2856]: always give the server an already resolved 'client address' so we can be sure the client address is always resolved
16 years ago
rubidium
169a003e9a
(svn r16135) -Fix [FS#2856]: always give the server an already resolved 'client address' so we can be sure the client address is always resolved
16 years ago
rubidium
a46de87b03
(svn r16022) -Fix (r15159): sometimes the unregister "query" thread could be delayed so much that the network stuff was already closed and the packet would never reach the master server causing the server to appear online longer than necessary.
16 years ago
rubidium
2663ad302f
(svn r16022) -Fix (r15159): sometimes the unregister "query" thread could be delayed so much that the network stuff was already closed and the packet would never reach the master server causing the server to appear online longer than necessary.
16 years ago
rubidium
8cd7def31c
(svn r16014) -Feature(-ish): allow binding to several IPs; [network]:server_bind_ip doesn't exist anymore. Add the IPs/hostnames to [server_bind_addresses]
16 years ago
rubidium
7d3db3ee91
(svn r16014) -Feature(-ish): allow binding to several IPs; [network]:server_bind_ip doesn't exist anymore. Add the IPs/hostnames to [server_bind_addresses]
16 years ago
rubidium
b0113af67c
(svn r15998) -Codechange: some coding style updates
16 years ago
rubidium
ebe0f9e7f7
(svn r15998) -Codechange: some coding style updates
16 years ago
rubidium
6c6fb6a927
(svn r15989) -Fix (r15987: segfault due to uninitialised sockets.
16 years ago
rubidium
e779c56e31
(svn r15989) -Fix (r15987: segfault due to uninitialised sockets.
16 years ago
rubidium
f5339e492a
(svn r15987) -Fix: make the master socket only listen on the IP the server is bound to.
16 years ago
rubidium
08e37a6f10
(svn r15987) -Fix: make the master socket only listen on the IP the server is bound to.
16 years ago
rubidium
f9f61dc208
(svn r15981) -Fix: don't print the address family when writing the IP+port to the config file.
16 years ago
rubidium
9d6edae94d
(svn r15981) -Fix: don't print the address family when writing the IP+port to the config file.
16 years ago
rubidium
ac043bc7e8
(svn r15978) -Codechange: support parsing [] enclosed IPv6 addresses.
16 years ago
rubidium
a5a424ce28
(svn r15978) -Codechange: support parsing [] enclosed IPv6 addresses.
16 years ago
rubidium
a2c5cf906c
(svn r15973) -Codechange: make it possible to listen on multiple TCP sockets
16 years ago
rubidium
8cf88876ef
(svn r15973) -Codechange: make it possible to listen on multiple TCP sockets
16 years ago
rubidium
bc072884b0
(svn r15972) -Codechange: remove unneeded parameter
16 years ago
rubidium
c0f8214218
(svn r15972) -Codechange: remove unneeded parameter
16 years ago
rubidium
e1a7fad295
(svn r15971) -Codechange: make it possible for UDP socket handlers to bind to multiple sockets.
16 years ago
rubidium
2a6e9288fd
(svn r15971) -Codechange: make it possible for UDP socket handlers to bind to multiple sockets.
16 years ago
rubidium
f6e27e7274
(svn r15969) -Codechange: make the list of broadcast addresses virtually unlimited.
16 years ago
rubidium
82f8badc07
(svn r15969) -Codechange: make the list of broadcast addresses virtually unlimited.
16 years ago
rubidium
a25684b833
(svn r15967) -Codechange: do not access NetworkSocketHandler::has_quit directly
16 years ago
rubidium
22d9306889
(svn r15967) -Codechange: do not access NetworkSocketHandler::has_quit directly
16 years ago
rubidium
a76218eab9
(svn r15947) -Codechange: replace uint32 client_ip with NetworkAddress client_address.
16 years ago
rubidium
c9ebf14ba5
(svn r15947) -Codechange: replace uint32 client_ip with NetworkAddress client_address.
16 years ago
rubidium
a5576bc6e1
(svn r15946) -Codechange: move netmask matching to NetworkAddress and add some support for IPv6 netmask matching.
16 years ago
rubidium
2fd9f0fffa
(svn r15946) -Codechange: move netmask matching to NetworkAddress and add some support for IPv6 netmask matching.
16 years ago
rubidium
e8852635ab
(svn r15940) -Codechange: move setting reuse address to the binding process.
16 years ago
rubidium
1463b00b48
(svn r15940) -Codechange: move setting reuse address to the binding process.
16 years ago
rubidium
2d140fab62
(svn r15932) -Codechange: show ip:port as (fallback) servername instead of only the ip. This way you can clearly see there aren't any duplicates.
16 years ago
rubidium
5386fe1a1c
(svn r15932) -Codechange: show ip:port as (fallback) servername instead of only the ip. This way you can clearly see there aren't any duplicates.
16 years ago
rubidium
bc7a870a61
(svn r15931) -Codechange: let the host and ban lists use of SmallVector.
16 years ago
rubidium
89d0eca6b7
(svn r15931) -Codechange: let the host and ban lists use of SmallVector.
16 years ago
rubidium
2b7a30f209
(svn r15926) -Codechange: make the broadcast IP list less AF dependent.
16 years ago
rubidium
11723c40b2
(svn r15926) -Codechange: make the broadcast IP list less AF dependent.
16 years ago
rubidium
be8919c968
(svn r15925) -Codechange: remove _network_server_bind_ip as it's pretty AF dependant.
16 years ago
rubidium
47602d7b60
(svn r15925) -Codechange: remove _network_server_bind_ip as it's pretty AF dependant.
16 years ago
rubidium
3e6c6d7294
(svn r15922) -Codechange: unify the ways to listen on a socket
16 years ago
rubidium
632d74c6b1
(svn r15922) -Codechange: unify the ways to listen on a socket
16 years ago
rubidium
020b1f9328
(svn r15921) -Fix: some OSes don't like sizeof(sockaddr_storage) but want sizeof(sockaddr) or whatever is 'valid' for the given protocol
16 years ago
rubidium
ba5aafb9bb
(svn r15921) -Fix: some OSes don't like sizeof(sockaddr_storage) but want sizeof(sockaddr) or whatever is 'valid' for the given protocol
16 years ago
rubidium
6664998667
(svn r15918) -Fix (r15917): comparing IPs sometimes failed due to 'random' data (as spotted by SpComb)
16 years ago
rubidium
beef5da970
(svn r15918) -Fix (r15917): comparing IPs sometimes failed due to 'random' data (as spotted by SpComb)
16 years ago
rubidium
f22566f8df
(svn r15917) -Codechange: remove the latest traces of NetworkAddress::GetIP.
16 years ago
rubidium
c5160c7c8e
(svn r15917) -Codechange: remove the latest traces of NetworkAddress::GetIP.
16 years ago
rubidium
785779ca62
(svn r15916) -Codechange: let the network game list use NetworkAddress
16 years ago
rubidium
1e205e01b8
(svn r15916) -Codechange: let the network game list use NetworkAddress
16 years ago
rubidium
f524d39963
(svn r15773) -Fix [FS#2475]: number of active clients wasn't always properly
16 years ago
rubidium
ee4a660b0c
(svn r15773) -Fix [FS#2475]: number of active clients wasn't always properly
16 years ago
rubidium
c3e87f345d
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
16 years ago
rubidium
b25a4f8231
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
16 years ago
rubidium
880d296b25
(svn r15644) -Fix [FS#2710]: closing a network connection twice in the case that sending packets starts failing while disconnecting
16 years ago
rubidium
4a5c4f6089
(svn r15644) -Fix [FS#2710]: closing a network connection twice in the case that sending packets starts failing while disconnecting
16 years ago
smatz
19c01ee0ec
(svn r15640) -Fix [FS#2712]: game crashes when network pools are empty, so always allocate at least one pool block
16 years ago
smatz
642dc1ea5e
(svn r15640) -Fix [FS#2712]: game crashes when network pools are empty, so always allocate at least one pool block
16 years ago
rubidium
b2def94607
(svn r15577) -Codechange: bool _networking belongs in network/ not gfx.cpp
16 years ago
rubidium
66a8c0a132
(svn r15577) -Codechange: bool _networking belongs in network/ not gfx.cpp
16 years ago
rubidium
e3ac127617
(svn r15529) -Fix [FS#2644]: the local command queue didn't get properly cleaned when leaving a game meaning you could end up executing commands of the previous network game.
16 years ago
rubidium
c5677da94d
(svn r15529) -Fix [FS#2644]: the local command queue didn't get properly cleaned when leaving a game meaning you could end up executing commands of the previous network game.
16 years ago
rubidium
a7693c6059
(svn r15425) -Codechange: some color->colour changes and type safety.
16 years ago
rubidium
8dae160d0f
(svn r15425) -Codechange: some color->colour changes and type safety.
16 years ago
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
rubidium
2722cabcce
(svn r15242) -Feature: allow moving clients between companies/spectators by the server and the clients themselves (dihedral)
16 years ago
rubidium
04709f2798
(svn r15242) -Feature: allow moving clients between companies/spectators by the server and the clients themselves (dihedral)
16 years ago
peter1138
00aa88040e
(svn r15194) -Fix: Don't count dedicated server as a spectator
16 years ago
peter1138
727ffeedc9
(svn r15194) -Fix: Don't count dedicated server as a spectator
16 years ago
rubidium
7c5a618639
(svn r15176) -Fix [FS#2554]: querying the content server could free when resolving the hostname or connecting takes long/is timing out.
16 years ago
rubidium
eeb38a8e3a
(svn r15176) -Fix [FS#2554]: querying the content server could free when resolving the hostname or connecting takes long/is timing out.
16 years ago
rubidium
206841ba5f
(svn r15163) -Change/Fix: use a non-blocking method to resolve the hostname and connect to game servers.
16 years ago
rubidium
28a641066e
(svn r15163) -Change/Fix: use a non-blocking method to resolve the hostname and connect to game servers.
16 years ago
glx
62ec25a8ff
(svn r15160) -Fix (r15157): port != IP
16 years ago
glx
24351416f6
(svn r15160) -Fix (r15157): port != IP
16 years ago
rubidium
4aabc91c04
(svn r15157) -Codechange: wrap the hostname/ip and port into a single structure so we can pass either one of them and not convert an ip to a string and then back again.
16 years ago
rubidium
5f3772a42c
(svn r15157) -Codechange: wrap the hostname/ip and port into a single structure so we can pass either one of them and not convert an ip to a string and then back again.
16 years ago
rubidium
7a81c0e5b4
(svn r15155) -Codechange: remove unused return value
16 years ago
rubidium
9b463c26de
(svn r15155) -Codechange: remove unused return value
16 years ago
rubidium
72b0341ed0
(svn r15126) -Feature: downloading content from a central server (content.openttd.org) where authors can upload they NewGRFS/AI etc. This should make joining servers that use only NewGRFs that are distributed via this system easier as the players can download the NewGRFs from in the game. It should also make it easier to see whether there are updates for NewGRFs and make the necessary updates.
16 years ago
rubidium
3a13b75e37
(svn r15126) -Feature: downloading content from a central server (content.openttd.org) where authors can upload they NewGRFS/AI etc. This should make joining servers that use only NewGRFs that are distributed via this system easier as the players can download the NewGRFs from in the game. It should also make it easier to see whether there are updates for NewGRFs and make the necessary updates.
16 years ago
peter1138
31a586dc6f
(svn r15094) -Feature: Add support for IP range bans using CIDR notation.
16 years ago
peter1138
a039ec0d21
(svn r15094) -Feature: Add support for IP range bans using CIDR notation.
16 years ago
rubidium
28ea38ae55
(svn r14949) -Cleanup: pointer coding style
16 years ago
rubidium
11da45ee55
(svn r14949) -Cleanup: pointer coding style
16 years ago
rubidium
c0e7434f38
(svn r14944) -Cleanup: add spaces around some operators
16 years ago
rubidium
cda853872a
(svn r14944) -Cleanup: add spaces around some operators
16 years ago
rubidium
054787f082
(svn r14943) -Cleanup: remove some rogue spaces/replace some rogue tabs with spaces
16 years ago
rubidium
c08f520acf
(svn r14943) -Cleanup: remove some rogue spaces/replace some rogue tabs with spaces
16 years ago
rubidium
4df86694a7
(svn r14910) -Codechange: merge the command queue handling into a single location
16 years ago
rubidium
d4b6cc997d
(svn r14910) -Codechange: merge the command queue handling into a single location
16 years ago
rubidium
f55995f1ef
(svn r14772) -Codechange: make the "dump log of game to reproduce" desync debug stuff a runtime configurable debug option instead of a compile time option.
16 years ago
rubidium
3c6add5293
(svn r14772) -Codechange: make the "dump log of game to reproduce" desync debug stuff a runtime configurable debug option instead of a compile time option.
16 years ago
rubidium
1892994ab2
(svn r14771) -Fix (r14764): resolving of error types to error messages kinda failed :(
16 years ago
rubidium
ad1c52abf8
(svn r14771) -Fix (r14764): resolving of error types to error messages kinda failed :(
16 years ago
rubidium
0b806c7bbc
(svn r14764) -Codechange: make the '***' chat messages like "Game paused (not enough players)" fully translateable.
16 years ago
rubidium
a25e3f8d70
(svn r14764) -Codechange: make the '***' chat messages like "Game paused (not enough players)" fully translateable.
16 years ago
rubidium
e83cca7d13
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
16 years ago
rubidium
87e5a8b52b
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
16 years ago
rubidium
2b5362de13
(svn r14731) -Fix: don't initialise UDP multiple times without closing it.
16 years ago
rubidium
ece37ca2c0
(svn r14731) -Fix: don't initialise UDP multiple times without closing it.
16 years ago
rubidium
54f23ed0b3
(svn r14730) -Codechange: remove the need for networkclientsockets and networkclientinfo structs to be in a contiguous piece of memory and put them in a pool.
...
-Note: 255 should really be enough for now... making it any more means network protocol bumps.
16 years ago
rubidium
afddfcb2b1
(svn r14730) -Codechange: remove the need for networkclientsockets and networkclientinfo structs to be in a contiguous piece of memory and put them in a pool.
...
-Note: 255 should really be enough for now... making it any more means network protocol bumps.
16 years ago
rubidium
c1b2f17bc8
(svn r14725) -Change: make it clearer why (and that) MAX_CLIENTS isn't the amount of slots in the array, but one less as a dedicated server takes a slot too.
16 years ago
rubidium
f8f7febe41
(svn r14725) -Change: make it clearer why (and that) MAX_CLIENTS isn't the amount of slots in the array, but one less as a dedicated server takes a slot too.
16 years ago
rubidium
97662a0fff
(svn r14723) -Codechange: shuffling some stuff around to reduce indirect #include dependencies.
16 years ago
rubidium
9476a49763
(svn r14723) -Codechange: shuffling some stuff around to reduce indirect #include dependencies.
16 years ago
rubidium
768fdee77a
(svn r14722) -Codechange: s/DEREF_CLIENT/GetNetworkClientSocket/
16 years ago
rubidium
d501a20065
(svn r14722) -Codechange: s/DEREF_CLIENT/GetNetworkClientSocket/
16 years ago
rubidium
cb8b31c3c1
(svn r14721) -Codechange: s/NetworkTCPSocketHandler/NetworkClientSocket/ as it's (way) more descriptive what it's used for.
16 years ago
rubidium
ae96ca635c
(svn r14721) -Codechange: s/NetworkTCPSocketHandler/NetworkClientSocket/ as it's (way) more descriptive what it's used for.
16 years ago
rubidium
3ddde0c8d6
(svn r14720) -Codechange: s/FOR_ALL_CLIENTS/FOR_ALL_CLIENT_SOCKETS/ as the latter describes the name more precisely.
16 years ago
rubidium
d95a485108
(svn r14720) -Codechange: s/FOR_ALL_CLIENTS/FOR_ALL_CLIENT_SOCKETS/ as the latter describes the name more precisely.
16 years ago
rubidium
9a96557763
(svn r14719) -Codechange: replace DEREF_CLIENT with an instance function and replace looping socket structs with info structs when the loop is only interested in the info structs (i.e. not derefing the info from sockets when one can loop info directly and the socket isn't used)
16 years ago
rubidium
b4734ee9a4
(svn r14719) -Codechange: replace DEREF_CLIENT with an instance function and replace looping socket structs with info structs when the loop is only interested in the info structs (i.e. not derefing the info from sockets when one can loop info directly and the socket isn't used)
16 years ago
rubidium
bdd92008cf
(svn r14718) -Change: remove some direct network core variable accesses from non-network locations.
16 years ago
rubidium
94e7f41a9d
(svn r14718) -Change: remove some direct network core variable accesses from non-network locations.
16 years ago
rubidium
7403790ba4
(svn r14717) -Change: more 'Index' -> ClientID to not confuse ClientID and ClientIndex
16 years ago
rubidium
f49cc67f83
(svn r14717) -Change: more 'Index' -> ClientID to not confuse ClientID and ClientIndex
16 years ago
rubidium
648d7072a4
(svn r14714) -Codechange: only allocate the company network "state" variables (password/months not used) when needed, i.e. only for servers.
16 years ago
rubidium
a687667448
(svn r14714) -Codechange: only allocate the company network "state" variables (password/months not used) when needed, i.e. only for servers.
16 years ago
rubidium
d146b48063
(svn r14712) -Codechange: split server and client side w.r.t. the storage of network related company information.
16 years ago
rubidium
abc903d625
(svn r14712) -Codechange: split server and client side w.r.t. the storage of network related company information.
16 years ago
rubidium
6d23f48bb6
(svn r14709) -Codechange: make a clearer distinction between 'unique' client identification ids and the indices into the clients/client info arrays.
16 years ago
rubidium
782b80eff7
(svn r14709) -Codechange: make a clearer distinction between 'unique' client identification ids and the indices into the clients/client info arrays.
16 years ago
skidd13
9b282b3e51
(svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible
16 years ago
skidd13
706dd0f86c
(svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible
16 years ago
smatz
ad0a578b69
(svn r14486) -Fix (r13343)(r14484): compilation with desync debug was broken
16 years ago
smatz
7a031b60cd
(svn r14486) -Fix (r13343)(r14484): compilation with desync debug was broken
16 years ago
rubidium
96156a8ab1
(svn r14423) -Codechange: also do r14221 for the strings.
16 years ago
rubidium
c9a82ac3e7
(svn r14423) -Codechange: also do r14221 for the strings.
16 years ago
rubidium
e589c7e580
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
16 years ago
rubidium
b650a86e58
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
16 years ago
rubidium
f56e630e5c
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
16 years ago
rubidium
3b798599b6
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
16 years ago
rubidium
a20b833516
(svn r14199) -Codechange: split fileio.h into fileio_type.h and fileio_func.h so not everything that includes saveload.h needs to include everything else too.
16 years ago
rubidium
ea1f180a55
(svn r14199) -Codechange: split fileio.h into fileio_type.h and fileio_func.h so not everything that includes saveload.h needs to include everything else too.
16 years ago
rubidium
c816cc37fd
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
16 years ago
rubidium
97c184f8f8
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
16 years ago
rubidium
31d69a49e8
(svn r14047) -Codechange: move chatmessage handling to the network directory as that's the only case chat messages are used. Furthermore remove any trace of chatmessages when compiling without network support.
16 years ago
rubidium
d0c1a989a4
(svn r14047) -Codechange: move chatmessage handling to the network directory as that's the only case chat messages are used. Furthermore remove any trace of chatmessages when compiling without network support.
16 years ago
rubidium
eb5fb4443a
(svn r13988) -Codechange: move the to IP resolving functions to a separate file.
16 years ago
rubidium
c88cb1daa0
(svn r13988) -Codechange: move the to IP resolving functions to a separate file.
16 years ago
rubidium
cde65455ac
(svn r13731) -Codechange: make a pool of the array of players.
16 years ago
rubidium
3a799389eb
(svn r13731) -Codechange: make a pool of the array of players.
16 years ago
rubidium
6898a76c5f
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
16 years ago
rubidium
d06529ef4d
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
16 years ago
rubidium
03afcec36f
(svn r13712) -Fix: enforce the length restrictions of company and president name in the commands too.
16 years ago
rubidium
2e4f32023c
(svn r13712) -Fix: enforce the length restrictions of company and president name in the commands too.
16 years ago
belugas
a324f30783
(svn r13682) -Codechange: -Codechange: remove a now useless variable(dih).
16 years ago
belugas
cb452bcc7d
(svn r13682) -Codechange: -Codechange: remove a now useless variable(dih).
16 years ago
rubidium
35f3284a60
(svn r13433) -Codechange: remove a now useless global variable.
...
-Fix: MP advertising was not advertising.
17 years ago
rubidium
657bbf305e
(svn r13433) -Codechange: remove a now useless global variable.
...
-Fix: MP advertising was not advertising.
17 years ago
rubidium
994779e9e2
(svn r13369) -Codechange: remove duplication of network configuration settings between NetworkSettings and NetworkGameInfo.
...
-Fix: failure of changing the server password during games because the password wasn't duplicated properly.
17 years ago
rubidium
abf2b0efc3
(svn r13369) -Codechange: remove duplication of network configuration settings between NetworkSettings and NetworkGameInfo.
...
-Fix: failure of changing the server password during games because the password wasn't duplicated properly.
17 years ago
rubidium
387f4cfbe1
(svn r13344) -Codechange: remove some code duplication.
17 years ago
rubidium
6d90affce0
(svn r13344) -Codechange: remove some code duplication.
17 years ago
rubidium
bae02e8c67
(svn r13343) -Codechange: reorder/move variable/functions in the network headers so that nothing from the network directory needs to include basically all network headers.
17 years ago
rubidium
2f3b88ef9a
(svn r13343) -Codechange: reorder/move variable/functions in the network headers so that nothing from the network directory needs to include basically all network headers.
17 years ago
rubidium
02dbab8721
(svn r13334) -Codechange: move the network settings variables from network/network_internal to settings.
17 years ago
rubidium
c33164831d
(svn r13334) -Codechange: move the network settings variables from network/network_internal to settings.
17 years ago
rubidium
e7a501100a
(svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
17 years ago
rubidium
923e21129c
(svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
17 years ago
rubidium
d289464d69
(svn r13255) -Codechange: move _opt to _settings.
17 years ago
rubidium
8c9cc415e3
(svn r13255) -Codechange: move _opt to _settings.
17 years ago
rubidium
dc77647ea4
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
...
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
17 years ago
rubidium
4625695653
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
...
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
17 years ago
rubidium
080af12d8b
(svn r13229) -Codechange: replace some global variables that are only initialised once and always with the same value with enums.
17 years ago
rubidium
6884f9cb41
(svn r13229) -Codechange: replace some global variables that are only initialised once and always with the same value with enums.
17 years ago
rubidium
bf3b61cfa3
(svn r13228) -Codechange: split console.h.
17 years ago
rubidium
6c20f77330
(svn r13228) -Codechange: split console.h.
17 years ago
rubidium
e0e1bf76a2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
17 years ago
rubidium
7ccda80b0b
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
17 years ago
rubidium
1ce0b03bf0
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
17 years ago
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
17 years ago
smatz
89a8dc8cf7
(svn r12944) -Codechange: use rev.h instead of externs at many places
17 years ago
smatz
297f99e100
(svn r12944) -Codechange: use rev.h instead of externs at many places
17 years ago
rubidium
d46d8d9c9d
(svn r12765) -Codechange: move some stuff out of variables.h that required including other headers in variables.h.
17 years ago
rubidium
1b2773445d
(svn r12765) -Codechange: move some stuff out of variables.h that required including other headers in variables.h.
17 years ago
rubidium
ca1f8fbe2e
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
17 years ago
rubidium
9d8fa486af
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
17 years ago
rubidium
3e90a16cfc
(svn r12017) -Fix: when you have more than 9 network interfaces you'll enter the wonderfull world of overflows.
17 years ago
rubidium
44f4ebffed
(svn r12017) -Fix: when you have more than 9 network interfaces you'll enter the wonderfull world of overflows.
17 years ago
rubidium
1b7051768c
(svn r12004) -Codechange: refactor the random functions to reduce code duplication.
17 years ago
rubidium
3b2145aafe
(svn r12004) -Codechange: refactor the random functions to reduce code duplication.
17 years ago
rubidium
9ac26e1bf1
(svn r11840) -Codechange: split network.h so not everything in there needs to be included when wanting to know whether we are a server.
17 years ago
rubidium
392d59f6a9
(svn r11840) -Codechange: split network.h so not everything in there needs to be included when wanting to know whether we are a server.
17 years ago
rubidium
9c0c798dd8
(svn r11834) -Codechange: only include settings_type.h if needed.
17 years ago
rubidium
dc87b05e8c
(svn r11834) -Codechange: only include settings_type.h if needed.
17 years ago
rubidium
0ca79e2fb8
(svn r11829) -Feature: allow reloading openttd.cfg when starting a new game on a dedicated server. Patch by dihedral.
17 years ago
rubidium
079abbd04b
(svn r11829) -Feature: allow reloading openttd.cfg when starting a new game on a dedicated server. Patch by dihedral.
17 years ago
rubidium
90acd52f22
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
17 years ago
rubidium
d4e6a6bf57
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
17 years ago
rubidium
2fc62eab05
(svn r11818) -Codechange: split player.h into smaller pieces.
17 years ago
rubidium
ac528411df
(svn r11818) -Codechange: split player.h into smaller pieces.
17 years ago
rubidium
97d6e0e6c0
(svn r11811) -Fix: make compilation without networking work again (and thus move the debugdumpcommand stuff out of the network 'area').
17 years ago
rubidium
04f936c2c6
(svn r11811) -Fix: make compilation without networking work again (and thus move the debugdumpcommand stuff out of the network 'area').
17 years ago
rubidium
b09d957f31
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
17 years ago
rubidium
a3ccdcea36
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
17 years ago
glx
7a890182c0
(svn r11762) -Fix: compilation with DEBUG_DUMP_COMMANDS was broken
17 years ago
glx
91be5d7531
(svn r11762) -Fix: compilation with DEBUG_DUMP_COMMANDS was broken
17 years ago
rubidium
db73addb43
(svn r11702) -Codechange: move all date related stuff to date*.
17 years ago
rubidium
b9046c97fb
(svn r11702) -Codechange: move all date related stuff to date*.
17 years ago
rubidium
f82aeb82c5
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
17 years ago
rubidium
2786d789a1
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
17 years ago
skidd13
7bcc4d28e1
(svn r11695) -Codechange: Converted the md5 algorithm to OOP
...
-Codechange: Adapt the md5 algorithm to the OpenTTD source
17 years ago
skidd13
7963963d98
(svn r11695) -Codechange: Converted the md5 algorithm to OOP
...
-Codechange: Adapt the md5 algorithm to the OpenTTD source
17 years ago
rubidium
81bf9f8503
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
17 years ago
rubidium
429521a7d1
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
17 years ago
rubidium
3074bca136
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
17 years ago
rubidium
6a9e77e079
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
17 years ago
rubidium
766551b0bc
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
17 years ago
rubidium
9e9cfe6e59
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
17 years ago
rubidium
8427b8bad2
(svn r11675) -Codechange: split the string types from the string functions.
17 years ago
rubidium
433a9f3c09
(svn r11675) -Codechange: split the string types from the string functions.
17 years ago
rubidium
2b9f51219f
(svn r11584) -Change: add some extra checking in the hope to find the cause of FS#1482.
17 years ago
rubidium
42dbdbb7f9
(svn r11584) -Change: add some extra checking in the hope to find the cause of FS#1482.
17 years ago
rubidium
e9924421bf
(svn r11089) -Codechange: add revision detection to MSVC.
17 years ago
rubidium
9e7931f6ea
(svn r11089) -Codechange: add revision detection to MSVC.
17 years ago
rubidium
4ef6e75609
(svn r10932) -Codechange: replace "text" with "chat" for the chat related function and variables.
17 years ago
rubidium
0fed821efb
(svn r10932) -Codechange: replace "text" with "chat" for the chat related function and variables.
17 years ago
rubidium
b1ab5f3e1c
(svn r10498) -Fix [FS#1008]: remove inconsistency between a warning and the actual behaviour.
17 years ago
rubidium
e1bdad1e57
(svn r10498) -Fix [FS#1008]: remove inconsistency between a warning and the actual behaviour.
17 years ago
rubidium
db5c9fc9a0
(svn r10462) -Add: a command dumper/loader that could be enabled compile-time and server side only to aid debugging some desyncs, i.e. dump the stream of commands so it could be replayed in exactly the same way later. This should primarily be used to make desyncs more easily reproducable, so it can be properly debugged.
17 years ago
rubidium
3b52a6bfc4
(svn r10462) -Add: a command dumper/loader that could be enabled compile-time and server side only to aid debugging some desyncs, i.e. dump the stream of commands so it could be replayed in exactly the same way later. This should primarily be used to make desyncs more easily reproducable, so it can be properly debugged.
17 years ago
glx
bbc9a67f6f
(svn r9716) -Add: server_lang in [network] section of openttd.cfg, so dedicated servers can have the little lang flag.
18 years ago
glx
c1b898392e
(svn r9716) -Add: server_lang in [network] section of openttd.cfg, so dedicated servers can have the little lang flag.
18 years ago
rubidium
d99a269493
(svn r9378) -Fix [FS#688] (r9038): cancel in password queries reduces amount of players in the network game when they haven't joined the game yet.
18 years ago
rubidium
80ef389080
(svn r9378) -Fix [FS#688] (r9038): cancel in password queries reduces amount of players in the network game when they haven't joined the game yet.
18 years ago
rubidium
4169bfba06
(svn r9050) -Codechange: Foo(void) -> Foo()
18 years ago
rubidium
36bb92ae24
(svn r9050) -Codechange: Foo(void) -> Foo()
18 years ago
celestar
7d08af73f0
(svn r9016) [SunOS] -Fix: Don't use a struct-member that doesn't exist.
...
-Documentation: Updated readme.txt for SunOS 5.10 (aka Solaris 10)
Note: With this commit, building and running on Solaris 10 works, thus
we officially support this OS now :)
18 years ago
celestar
f8e7d08885
(svn r9016) [SunOS] -Fix: Don't use a struct-member that doesn't exist.
...
-Documentation: Updated readme.txt for SunOS 5.10 (aka Solaris 10)
Note: With this commit, building and running on Solaris 10 works, thus
we officially support this OS now :)
18 years ago
rubidium
3e9cc1a651
(svn r8949) -Codechange: only test the first NETWORK_REVISION_LENGTH - 1 characters when determining network compatability. This makes it possible to have 'long' branch names while still being able to play network games.
18 years ago
rubidium
66487d59fd
(svn r8949) -Codechange: only test the first NETWORK_REVISION_LENGTH - 1 characters when determining network compatability. This makes it possible to have 'long' branch names while still being able to play network games.
18 years ago
truelight
c8c9c0c831
(svn r8674) [PSP] -Add: added network code for PSP, based on the work of Turulo
...
-Add: added general header-inclusing for PSP
18 years ago
truelight
0d91ed68a9
(svn r8674) [PSP] -Add: added network code for PSP, based on the work of Turulo
...
-Add: added general header-inclusing for PSP
18 years ago
truelight
bc5d3ef3b0
(svn r8631) -Add: added parameter -l ip[:port] to ./openttd, which redirects DEBUG() to a remote connection over TCP
...
For example, launch on 192.168.0.1 with, say, netcat a listener: netcat -l -p 3982
Launch OpenTTD on a remote host (say, PSP): ./openttd -l 192.168.0.1 -d9
And you get all debug information on 192.168.0.1. Very useful for debugging Portable systems.
18 years ago
truelight
c46a1cc2f6
(svn r8631) -Add: added parameter -l ip[:port] to ./openttd, which redirects DEBUG() to a remote connection over TCP
...
For example, launch on 192.168.0.1 with, say, netcat a listener: netcat -l -p 3982
Launch OpenTTD on a remote host (say, PSP): ./openttd -l 192.168.0.1 -d9
And you get all debug information on 192.168.0.1. Very useful for debugging Portable systems.
18 years ago
rubidium
fe996cb13d
(svn r8543) -Codechange: make a real difference between querying the server via UDP and TCP.
18 years ago
rubidium
6a820a30d1
(svn r8543) -Codechange: make a real difference between querying the server via UDP and TCP.
18 years ago
rubidium
922a623402
(svn r8525) -Codechange: make NetworkSend_Packet(s) and NetworkRecv_Packet functions of NetworkTCPSocketHandler.
18 years ago
rubidium
59f4f056df
(svn r8525) -Codechange: make NetworkSend_Packet(s) and NetworkRecv_Packet functions of NetworkTCPSocketHandler.
18 years ago
rubidium
51c2af6e5e
(svn r8521) -Codechange: initial step in converting Packet to a class; make and use constructors and functions related to the reading/saving the packet size.
18 years ago
rubidium
99f860e686
(svn r8521) -Codechange: initial step in converting Packet to a class; make and use constructors and functions related to the reading/saving the packet size.
18 years ago
rubidium
752ca4ebf7
(svn r8520) -Fix/Feature: requery gameservers that did not respond to their first query.
18 years ago
rubidium
15980fc023
(svn r8520) -Fix/Feature: requery gameservers that did not respond to their first query.
18 years ago
rubidium
6787514d62
(svn r8461) -Feature: check for NewGRF compatability before actually downloading the map from a game server when connecting from the command prompt and internal console.
18 years ago
rubidium
86b046864a
(svn r8461) -Feature: check for NewGRF compatability before actually downloading the map from a game server when connecting from the command prompt and internal console.
18 years ago
rubidium
89865658b1
(svn r8372) -Fix (8361): NUM_LANDSCAPE comes (via some detour) from openttd.h, which does not exist in the masterserver/updater.
18 years ago
rubidium
269c1a58a0
(svn r8372) -Fix (8361): NUM_LANDSCAPE comes (via some detour) from openttd.h, which does not exist in the masterserver/updater.
18 years ago
Darkvater
4b3cbf1a14
(svn r8168) -Regression (r6783): ParseConnectionstring didn't use the port parameter if a player was also specified. (both IP#Player:Port and IP:Port#Player btw)
18 years ago
Darkvater
1f3ea708c3
(svn r8168) -Regression (r6783): ParseConnectionstring didn't use the port parameter if a player was also specified. (both IP#Player:Port and IP:Port#Player btw)
18 years ago
rubidium
98e462e564
(svn r8083) -Codechange: make a NetworkSocketHandler as base for all sockets and move a little of NetworkClientState functionality to the NetworkSocketHandler. Move the rest of the NetworkClientState to the new NetworkTCPSocketHandler class/struct, which is not yet implemented in an object oriented manner. The UDP socket handler now extends the NetworkSocketHandler instead of having a reference to a NetworkClientState.
18 years ago
rubidium
f66b373b52
(svn r8083) -Codechange: make a NetworkSocketHandler as base for all sockets and move a little of NetworkClientState functionality to the NetworkSocketHandler. Move the rest of the NetworkClientState to the new NetworkTCPSocketHandler class/struct, which is not yet implemented in an object oriented manner. The UDP socket handler now extends the NetworkSocketHandler instead of having a reference to a NetworkClientState.
18 years ago
rubidium
cf01dc9b16
(svn r8078) -Codechange: rewrite UDP part of the network code to make use classes. This is only one of the many steps to really cleanup the network code.
18 years ago
rubidium
c48aa5db45
(svn r8078) -Codechange: rewrite UDP part of the network code to make use classes. This is only one of the many steps to really cleanup the network code.
18 years ago
rubidium
a7d0cdf95f
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
18 years ago
rubidium
f35ed4bbc2
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
18 years ago
KUDr
07c30785ab
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
18 years ago
KUDr
e373ea7096
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
18 years ago