summaryrefslogtreecommitdiff
path: root/network_gui.c
AgeCommit message (Collapse)Author
2004-12-19(svn r1168) -Cleanup: [Network] Cleaned the network code a bit. Added 'const' truelight
and 'void' where needed, prefixed all functions, typedefs and global vars with 'Network' and organized all externals nicely.
2004-12-18(svn r1162) The server list can now be automatically filled from the config ↵dominik
file. Add a section [servers] with the addresses each in a new line. Those will be checked upon OpenTTD startup.
2004-12-16(svn r1126) -Fix: [Network] Pressing Disconnect on the GUI puts you back to the truelight
main-menu (so you no longer stay ingame (if you were))
2004-12-15(svn r1113) -Add: [Network] Added the GUI part for server advertising. When ↵truelight
you go to Start Server, you can select by connection: 'Internet (advertise)'. When selected, the server will announce itself to the server-list at http://servers.openttd.org (when finished)
2004-12-15(svn r1108) -Fix: [Network] Fixed problem around slow clients:truelight
They joined, they got the map, but it took some time before the new player was created. In this time a player could do stuff, causing a player-id-mismatch, and the player was kicked out. Now a player get's a nice GUI which says: registering.. When that is gone, the player is joined and can play safely. Tnx to Moriarty for bugging me with this bug ;)
2004-12-15(svn r1093) -Fix: Hopefully fixed windows revision issues once and for all. ↵darkvater
Removed globalness of _openttd_revision and put all such ifdefs into one place. If server has a revision only the same revisions can join; if the server has no revision everyone can join. I reckon this should be a server-side option to allow people to join or not to join.
2004-12-14(svn r1090) -Fix: Made the _openttd_revision variable global, and with that truelight
hopefully killed the windows-revision problem. If WITH_REV is defined, for both Windows as *nix system _openttd_revision is filled with normal info, else _openttd_revision is set to 'norev000' -Fix: Small possible server-crash
2004-12-14(svn r1082) Feature: Chat toolbardominik
- to chat with all players press Return (or Shift-T) and type in the message - Press Return again to send the message
2004-12-13(svn r1054) -Fix: [Network] Redid revision 1024, only a bit more nice this time truelight
(revision length is back to 10, and checking is now done correctly)
2004-12-13(svn r1052) -Fix: [Network] You can't join a server when revision mismatches.truelight
2004-12-13(svn r1051) -Fix: [Network] New Company button is disabled when there is no ↵truelight
more space for a new company
2004-12-13(svn r1042) -Fix: [Network] Hopefully enabled revision-check for windows ↵truelight
(somehow windows uses WITH_REV_HACK instead of WITH_REV :s)
2004-12-10(svn r1012) -Fix: [Network] Endless loop if a server was offline (WizKid)truelight
2004-12-09(svn r999) New icons for the network interface, newgrf gui and the tiny eurodominik
2004-12-04(svn r942) -Merged branch/network back into the trunktruelight
2004-12-02(svn r901) Small step in the process to clean up the DPARAM mess:tron
- reduce to 2 sizes (*DParam64 for 64bit values, *DParam for the rest) - use inline functions instead of macros - add assert()s to check for buffer overruns
2004-11-25(svn r815) Include strings.h only in the files which need it.tron
This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled.
2004-09-12(svn r229) -Fix: Some more const stuff fixed .(Tron)darkvater
-Fix: ParseConnectionString() function to parse network connection string: <IP>[:<PORT>][#<PLAY_AS] .
2004-09-12(svn r223) -Fix: Const correctness and miscellaneous fixes. Thank you Tron ↵darkvater
for your diligent fixing of warnings (and some possibly bugs) (Tron) -CodeLayout: Remove trailing spaces and Windows linebreaks
2004-09-12(svn r217) -Fix: remove warning and simplify loop network_gui.c (Tron)darkvater
2004-09-12(svn r215) -Feature: direct connect now allows selecting a port and a ↵signde
playername [ip/host]:[port]#[player]
2004-09-12(svn r214) -Feature: CMD_NET_INSTANT [just in time command handling over ↵darkvater
network] (sign_de) -Fix: Only server can pause in network, action disabled for clients -Fix: Direct Connect editbox can handle up to max ~35 characters
2004-09-12(svn r212) -Fix: Network-gui fixes (sign_de)darkvater
-Fix: any disabled button in a window doesn't receive WE_CLICK events -Added network.h
2004-09-11(svn r207) -Codechange: randomizer handlingsignde
-Fix: desync problem fixes -Fix: server doesnt hang anymore when a client timed out -Feature: low latency connection enhancements [*net_sync_freq, *net_ready_ahead]
2004-09-10(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!truelight
2004-09-07(svn r177) -Fix: padded out Widget code to solve warnings on C99 compiler (Tron)darkvater
-Fix: added WIDGETS_END macro for WWT_LAST which does this for all last widget-types
2004-09-07(svn r176) -Fix: network_gui const and warnings fixes (Tron)darkvater
2004-09-06(svn r173) -Network: [1023231] Debug Code + ErrorBoxes + Load Game/Scenario. ↵darkvater
Added some more desync debug code and replaced some of the error() calls with some better error boxes. Hopefully find desyncs easier (sign_de) -GUI: Change some network GUI stuff (Darkvater)
2004-08-22(svn r106) New network core (by sign_de)dominik
Features: * network core is dynamicly loaded when needed (-n isn't needed anymore) for easy switching between single and multiplayer. But commandline shortcuts are still enabled: -n = autodetect network server -n [ip] = connect to the server * udp now uses 2 different ports - you can run 1 server and serveral clients on one pc - the clients udp-socket gets unloaded when the network game starts - the servers udp-sockets remains online to allow the network gui to detect itself * new gameinfo structure this struct is available for every online/lan game * dynamic NetworkGameList
2004-08-10(svn r2) -Fix [993829] UDP Fixes (lucaspiller)darkvater
-Fix change 255/0xFF to OWNER_SPECTATOR for spectator stuff (TrueLight)
2004-08-09(svn r1) Import of revision 975 of old (crashed) SVNtruelight