hiker
8cca845dde
Hopefully fixed item collection prediction.
2018-05-31 09:48:33 +10:00
hiker
70039f7d92
Removed unnecessary #include.
2018-05-31 09:29:01 +10:00
hiker
e6d5e194d3
Don't save the terrain slowdown as part of the state, it will get
...
updated on each client automatically.
2018-05-29 19:25:24 +10:00
hiker
50425ef59f
Moved item position into ItemState.
2018-05-29 19:21:34 +10:00
hiker
755cd8095b
Use ItemState instead of Item as paramter for kart's collectedItem.
2018-05-28 00:26:02 +10:00
hiker
d0e95d0d63
Removed debug code (always get bubble gum as powerup).
2018-05-27 23:44:51 +10:00
hiker
ab3a3e1155
Combined event handler and emitter in item into one object (since
...
they are the same anyway).
2018-05-27 23:42:38 +10:00
hiker
079b5abe2a
Started to use ItemState instead of Item in the attachment and
...
powerup callbacks on item collection.
2018-05-27 00:42:21 +10:00
hiker
89ded35c21
Fixed bugs in MaxSpeed state saving and restoring.
2018-05-24 10:19:54 +10:00
hiker
227572809a
Synch attachments of bananas between client and server, some
...
code cleanup.
2018-05-22 00:00:38 +10:00
hiker
9108934c18
Added handling of predicted item drops.
2018-05-21 10:09:10 +10:00
hiker
cdea16f81d
Fixed kart id being received as unsigned int (needs to be signed since
...
the sign indicates the event type).
2018-05-16 08:55:18 +10:00
hiker
ad82dca6cc
Created separate file for ItemEventInfo.
2018-05-15 18:05:46 +10:00
hiker
0d850201fb
Renamed and split the two newItem () functions into three functions:
...
placeItem(), placeTrigger(), dropNewItem(). Started to add support
for networked bubble gum (though that's not working, i.e. will crash
atm ;) ).
2018-05-15 10:40:25 +10:00
hiker
8c4158c139
Removed option to set item etc type via additional parameter for
...
networking. Now networking relies on deterministically determined
'random' item types and state updates.
2018-05-14 08:46:50 +10:00
hiker
d2dc99f859
Added --disable-item-collection command line flag, which is useful
...
for evaluating client/server 'disagreements'.
2018-05-13 23:43:29 +10:00
hiker
af0495848a
Use client prediction for item collection.
2018-05-13 01:04:45 +10:00
hiker
d88ce3b3b6
Removed unused code, coding style fixes.
2018-05-11 09:41:46 +10:00
hiker
b77a76dd8c
The ItemManager must be updated even if no event is received (to
...
rewind item states to the rewind time).
2018-05-10 23:25:04 +10:00
hiker
5f8dc7b641
Added debug comment to let the server not connect any items
...
(--> client predictions wrong, useful for debugging).
2018-05-10 23:24:07 +10:00
hiker
ff6d5119b4
CLients now predict item (predictions are not synched with server,
...
so the item will chance once the server update is received atm).
2018-05-10 23:23:23 +10:00
hiker
8f2b991e6a
Code cleanup.
2018-05-10 09:31:21 +10:00
hiker
4e37c1388b
Item collection on a client now works, though it is not predicted yet.
...
Other things (dropping bubble gum, switch, synchronised banana collection)
still do be done.
2018-05-10 01:09:23 +10:00
hiker
031eb461a3
Removed debug output.
2018-05-10 01:07:41 +10:00
hiker
c98df155a6
Change item visibility always in Item::updateGraphics, which (except
...
for listener) makes it unnecessary to call collect for Item (only
for ItemState).
2018-05-10 01:05:38 +10:00
hiker
e1530267f3
Fixed compilation error and some warnings.
2018-05-09 00:48:20 +10:00
hiker
3f96ba2b93
Added nitro amount to state.
2018-05-08 20:51:35 +10:00
hiker
9d60112e65
Started to implement proper item handling: the server now sends
...
updates of all collected items to the clients as part of a state.
A client confirms the received states. Once all clients have
confirmed a certain event, that event is deleted on the server
and not sent anymore. WIP, item collection kind of works, but only
because of kart state updates which include attachment (but not
e.g. nitro).
2018-05-08 19:12:06 +10:00
hiker
356680b182
Removed debug prints.
2018-05-08 18:41:37 +10:00
hiker
eb647124e8
Split the item update into update and updateGraphics() parts.
2018-05-04 16:41:03 +10:00
hiker
c7c061c7c1
Bugfix: all items were counted as easter eggs :)
2018-05-04 16:36:56 +10:00
hiker
3e518968b3
Added a generic collectedItem() virtual function to world
...
instead of a special case of easter eggs only.
2018-05-04 10:29:44 +10:00
hiker
10ce48b86f
Moved notification of easter egg collectoin from Item to ItemManager.
2018-05-04 09:48:54 +10:00
hiker
5ba79bddd7
Removed m_confirmed, renamed m_disappear_counter to m_used_up_counter.
2018-05-04 09:31:50 +10:00
hiker
9392354663
Split Item into two classes: ItemState which contains the non-graphical
...
and changing properties (e.g. collected,item type etc), and Item (using
ItemState as base class) which contains graphical and constant values.
2018-05-04 01:01:15 +10:00
hiker
0d1e799b4b
Removed unused function.
2018-04-30 08:56:28 +10:00
hiker
a737f9e3d5
Fixed typos.
2018-04-27 00:34:58 +10:00
hiker
8a8b954bf9
Fixed more ticks vs time issues.
2018-04-24 17:44:39 +10:00
hiker
c8befd7505
Fixed compiler warning.
2018-04-24 17:30:15 +10:00
hiker
6f38a56dfa
Merge branch 'lan-broadcast'
2018-04-24 17:28:19 +10:00
hiker
88abad8dc7
Moved handleMaterialGFX() and updateEngineSFX() from update()
...
to updateGraphics() - i.e. only one per rendered frame.
2018-04-24 17:19:13 +10:00
hiker
f2f15ac4e0
Removed duplicated entries.
2018-04-24 09:22:52 +10:00
hiker
2a89e7e0d1
Merge remote-tracking branch 'origin/lan-broadcast' into lan-broadcast
2018-04-24 09:18:41 +10:00
hiker
0809f3e286
Added 192.168.1.255 as default broadcast address.
2018-04-24 09:16:55 +10:00
Benau
62ea07ecc8
Try to synchronize timer independent of music
2018-04-24 01:01:47 +08:00
Benau
b919c82da5
Merge remote-tracking branch 'origin/master'
2018-04-23 23:47:30 +08:00
hiker
866eba936d
Try to fix linux - compiles. but untested.
2018-04-24 00:37:53 +10:00
hiker
59b796a7f5
Since broadcasting to 255.255.255.255 does not work in all cases,
...
add code to create a set of potential broadcast addresses and
use them all. Duplicated will be filtered out (since likely a server
will replace more than all).
2018-04-23 23:30:48 +10:00
Alayan-stk-2
d3659232e0
Fix time-to-ticks build issue ( #3215 )
2018-04-22 20:18:46 -04:00
auria.mg
c08093d732
Merge branch 'More-AI-improvem'
...
# Conflicts:
# src/karts/controller/skidding_ai.cpp
2018-04-22 19:36:37 -04:00