zicodxx
|
02fbfada3a
|
Unbuffered writing of gamelog.txt has it's own argument and is not triggered by -verbose argument anymore; Also increases verbosity of packet-loss-prevented packets by showing their types when added to queue
|
2012-01-09 15:21:09 +01:00 |
|
zicodxx
|
de3c04c582
|
Do not attempt to check for MULTI_PROTO_VERSION when requesting lite_info
|
2011-11-03 14:26:46 +01:00 |
|
zicodxx
|
2f08947f48
|
Introduced extra short based on MULTI_PROTO_VERSION for version-independent Multiplayer-compability-check; Changed version to 0.57.2 to make new version checking not cause problems with stable release 0.57.1; Removed old version_major/minor variables from netgame and player structures since DXX handles this independently; Cleaned up old version stuff and copyright messages
|
2011-11-02 01:04:42 +01:00 |
|
Chris Taylor
|
6eb4629ac2
|
Fix comparison is always false warning
|
2011-10-09 20:08:26 +08:00 |
|
zicodxx
|
a5d7454f64
|
Added wrapper functions dxx_sendto and dxx_recvfrom to collect simple statistics about amount and size of packets sent/received per second; Actually fixed packet scheduling in main UDP frame - was sending more than intended - stupid me
|
2011-09-21 20:03:46 +02:00 |
|
zicodxx
|
aa165490e6
|
Streamlined joining, rejoining, disconnecting players and timeouts, getting rid of unwanted rejoin messages and let host remove a player for good without rejoining it via pdata packet to really get rid of lossy or unwanted players; Care for rollover of pkt_num of stored mdata packets
|
2011-09-21 12:04:10 +02:00 |
|
zicodxx
|
951f3edd80
|
Reworked Packet Loss Prevention: If an important packet could not be recovered until it timed out, dump player who failed sending/receiving it; Noloss queue can proces spackets until a certain traffic has been reached; In main UDP frame schedule different types of packets depending on PPS to decrease traffic produced in one frame, hopefully preventing too much loss in high-traffic situations; Small code cleanups; Added new dump signal for loss of important packet; When dumping player also disconnect that one in case the dumped player does not accept the signal
|
2011-09-19 13:01:11 +02:00 |
|
zicodxx
|
a8892bd13a
|
Added new priority level for MDATA packets to also send them ASAP without the need for an ACK; Streamlined sending multibot and fire packets and on the way artificially and automatically scaling fire rates, energy/ammo usage and damage of weapons in Multiplayer to decrease traffic easy way without changing the Gameplay
|
2011-09-15 10:45:48 +02:00 |
|
zicodxx
|
0e50a9e7c4
|
Properly call multi_leave_game() when host leaves multi game to let clients exit smoothly
|
2011-07-19 11:31:08 +02:00 |
|
zicodxx
|
4367c9a117
|
Fixed typo in Packets per sec. in GAME_RULES screen; Reduced max amount of games shown on netlist to 900 to reduce RAM usage... as if we'd ever reach this
|
2011-07-15 11:46:06 +02:00 |
|
zicodxx
|
8a495dab09
|
When updating netgame hoard game flag used for compability reasons must be removed as it can be set - otherwise screwing up game mode display in netlist menu
|
2011-07-15 01:34:36 +02:00 |
|
zicodxx
|
c947462c38
|
Slight improvement for Packet Loss Prevention: Be able to send to 35 packets per call of net_udp_noloss_process_queue() and also let counter only increase if a packet was actually sent, making sure the queue is not stuck on the first 5 packets in the list
|
2011-07-08 01:23:44 +02:00 |
|
zicodxx
|
dd01f591a6
|
Fixed object sync for latecoming clients which was broken due to a very, very, VERY stupid mistake...
|
2011-06-24 13:09:42 +02:00 |
|
zicodxx
|
dd991fbf6b
|
Got rid of cfile code: Renamed cfile-functions to use PHYSFSX-naming convention, Replaced cfile-macros with proper PHYSFS(X) calls; Introduced PHYSFSX_exists() which can check case-sensitive or case-insensitive to give more flexibility with game content
|
2011-06-01 09:59:55 +02:00 |
|
zicodxx
|
ea70f3db03
|
Made netgame setup menu more flexible towards (constant or temporary) changes in available game modes
|
2011-05-28 12:07:40 +02:00 |
|
zicodxx
|
dadb99bdca
|
Added multi_send_data_direct to send multibuf to a specific player (i.e. Host<->Client, not Client<->Client); Overhauled kill sending/receiving and computation to rely in host information about game_mode-related variables (team_vector, Bounty_target) which are vital for consistent kill computation; Added function to send/update game_mode-related variables and solve /move command with this as well instead of workaround via updating lite_info
|
2011-05-25 15:25:13 +02:00 |
|
zicodxx
|
bdeb0a70b4
|
When restoring Coop setting from netgame profile don't forget to fix max players variable
|
2011-05-22 20:04:43 +02:00 |
|
zicodxx
|
f797decf45
|
Making D1X- and D2X-Rebirth more similar in behavior of which player limit is needed to start team-based game in both RELEASE and DEBUG builds
|
2011-05-20 17:10:19 +02:00 |
|
zicodxx
|
8962863723
|
Making D1X- and D2X-Rebirth more similar in behavior of which player limit is needed to start team-based game in both RELEASE and DEBUG builds
|
2011-05-20 16:15:07 +02:00 |
|
zicodxx
|
2f098796e0
|
Rearranged code to check for netgame-closed flag and refuse-players flag so they are updated correctly if another part of the code changes the menu item without activating it
|
2011-05-20 11:48:20 +02:00 |
|
zicodxx
|
914555fe81
|
Host can now decide (again) if players are allowed to display enemy names on HUD
|
2011-05-05 00:16:37 +02:00 |
|
zicodxx
|
040407cf02
|
Fix crash in multi_maybe_disable_friendly_fire() when killer == NULL; Do not let player join game when gamemode is HOARD or TEAM HOARD and hoard.ham is not available
|
2011-05-04 12:05:59 +02:00 |
|
zicodxx
|
d3601c56e3
|
Remember previously set up netgame variables in pilot-related file with extension ngp - due to feature consistency for UDP only
|
2011-04-22 17:14:29 +02:00 |
|
zicodxx
|
d9bbc359a2
|
When leaving game and still sending extras, don't forget to update the timer so we won't get stuck in an infinite loop
|
2011-04-21 20:52:33 +02:00 |
|
zicodxx
|
f42aa8a5fc
|
Improved security for UDP protocol: Add checks for correct packet size and - if possible - valid sender address (valid player) and making sure Clients only accept packets meant for Clients and Hosts only accept packets meant for Hosts
|
2011-04-13 00:19:42 +02:00 |
|
zicodxx
|
baeca7ebfa
|
Little fix for typing-indicator in multiplayer - was showing comma even if no player name was displayed; Removed team_vector from UDP lite_info structure - it's not needed; Removed ShowAllNames from Netgame structure as I see no reason why names display should be host-controlled; Increased UDP_NETGAMES_PAGES to actually show 3000 possible games
|
2011-04-12 00:45:21 +02:00 |
|
zicodxx
|
d5619e806a
|
Allow multi_send_fire when necessary and not crop to PPS so fix weapons with high firing rate
|
2011-04-08 01:38:00 +02:00 |
|
zicodxx
|
7f18afd5d7
|
Client-side implementation for Tracker support by Matt 1360 Vandermeulen including improvements in udp_dns_filladdr and IPv4/IPv6 compability; Very little adjustments by me, too including IPv6 support for Windows (untested); Actual tracker code will follow later as seperate branch when it's done
|
2011-04-05 02:24:34 +02:00 |
|
zicodxx
|
d6fbef4e43
|
Moved all these unsorted global cheat variables to a handy structure; Simplified reading of the cheats without trying to make it complicated so no one finds them (everyone can get the source); Removed one or two cheats which carry more garbage than they are worth; Added replacement for the bittersweet cheat; Made FPS Counter an option of Graphics menu
|
2011-02-14 22:27:07 +01:00 |
|
zicodxx
|
3c9c7af995
|
Little more smoothness for Multiplayer: Before dropping Powerups in random segment, make sure it's accessible by the player who drops it; Got rid of goto in InitPlayerPositions() and made code more D2-ish; Allow host to send 50 object/extra packets per second which does not overload network stack, yet but speeds up joining
|
2011-02-02 23:51:34 +01:00 |
|
zicodxx
|
fd53a1264b
|
On NETGAMES list Bounty mode was not shown since MODE_NAMES define was not adjusted - so in the end introduced GMNames and GMNamesShrt Arrays in multi.c for globally displaying full or short Multiplayer game mode names
|
2011-01-19 19:55:38 +01:00 |
|
zicodxx
|
a1f7da133e
|
Introducing new BOUNTY Multiplayer game mode by Matt -1360- Vandermeulen <matt1360@gmail.com>
|
2011-01-19 02:19:17 +01:00 |
|
zicodxx
|
931d134357
|
Instead of calling object/extras sending every frame, use a delay of 100ms between packet send to not overload the network stack
|
2011-01-19 00:07:10 +01:00 |
|
zicodxx
|
9cace92b4e
|
In net_udp_send_objects() player_num byte was not considered for mode 1 resulting on incorrect object count for this mode
|
2011-01-18 19:43:07 +01:00 |
|
zicodxx
|
c0864b71a9
|
Fixed small bug in net_udp_list_join_poll() which was introduced when I reorganized the events for making console render global
|
2011-01-18 14:37:19 +01:00 |
|
zicodxx
|
0d997ed81a
|
Converted console into a window and allow it to show in every part of the game; Fit several poll functions and kmatrix so they won't get interrupted by the console
|
2011-01-14 22:56:00 +01:00 |
|
zicodxx
|
8a10ec4238
|
Added feature to optionally disable friendly fire in Team and Coop games
|
2011-01-14 19:48:48 +01:00 |
|
zicodxx
|
ba74b14753
|
When displaying kill goals in game rules, value must be multiplied by 5 to show the correct limit
|
2011-01-14 17:54:31 +01:00 |
|
zicodxx
|
eeecf4016e
|
Fixing code used for capping powerups in multiplayer - it was not correctly conting 4pack powerups; Cleaned up this code a bit and added more consistent naming convention for functions to maybe make it more understandable; Removed MULTI_PROTO_D2X_VER define as it's not needed
|
2011-01-14 14:29:08 +01:00 |
|
Chris Taylor
|
030aef43e3
|
For editor, replace use of ui_mega_process() with event_process(), with the editor's own default event handler; add EVENT_MOUSE_MOVED event with event_mouse_get_delta() accessor; add event_key_get() to replace ugly casting; rename mouse_get_button() with event_mouse_get_button() to keep with name convention; only send idle events when there are no input events so editor still works properly (or the same anyway); add and use event_send() function for input events (including idle)
|
2011-01-14 17:51:13 +08:00 |
|
zicodxx
|
aca6890bd4
|
Fixed Menu setting for AllowedItems which was broken due to changed return value of newmenu_do1
|
2011-01-11 01:26:14 +01:00 |
|
zicodxx
|
eac593a047
|
Fix for rev968: my_pnum must be defined static
|
2011-01-09 17:09:29 +01:00 |
|
zicodxx
|
281c9668bb
|
Moved NoRedundancy, MultiMessages and NoRankings toggles from GameArg to PlayerCfg to be set via Misc Options
|
2011-01-03 02:01:26 +01:00 |
|
zicodxx
|
8a202f04ed
|
Mouse wheel now can scroll through menu/listbox items; Right mouse button closes a menu (without the need of these ugly close boxes); Also added mouse-closing capabilities to credits, scores and kconfig menus; While being in UDP Netgames list, override keycode at PAGEUP/DOWN keypress to only flip pages without modifying citem also added messagebox showing TXT_INVALID_CHOICE when invalid netgame was chosen
|
2011-01-02 12:25:51 +01:00 |
|
zicodxx
|
a1c830a92b
|
Reworked object sending/receiving to work without unnecessary type casting and a bit less error prone; Also increased UDP max packet size to 2048 so we can send 7 objects per frame; Fixded joinign games - GameID was sent for full game info, not lite info
|
2010-12-23 22:42:26 +01:00 |
|
zicodxx
|
5172e33d84
|
in IPv6 builds also send regular broadcast packets to get games found via LAN between IPv4 clients/systems and IPv6 clients/systems; rather than identifying (lite_info) games via IP use randomly generated GameID and game name to prevent duplicated coming from IPv6 builds
|
2010-12-22 14:55:26 +01:00 |
|
zicodxx
|
fe84fa3a9a
|
Made GameTime to GameTime64 using fix64; Changed all structures saving GameTime64 for internal timer purposes to store fix64 and added converting functions to save such times in fix; For Savegames/Demos always reset GameTime64 to 0 while saving and putting all timer values to safe limits, Multiplayer objects are sent in similar fashion
|
2010-12-22 01:17:59 +01:00 |
|
zicodxx
|
3bcb0ecdde
|
Introduced new data type fix64 to be used for new timers which can last 4462756 years instead of 9 hours; Introduced new timer functions to update and query program time; Used new timer all over the program except GameTime (which comes next)
|
2010-12-11 00:18:17 +01:00 |
|
zicodxx
|
3ccde930c3
|
Made resent_delay for net_udp_noloss_process_queue() a bit longer depending on the player's ping
|
2010-12-03 01:09:46 +01:00 |
|
zicodxx
|
3042de6649
|
When adding data from net_udp_send_mdata_direct to noloss queue, use data_len as length of data stream - not len which is longer and would then cause storing garbage
|
2010-11-25 14:17:28 +01:00 |
|