Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Racing #309

Merged
merged 75 commits into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
a031725
Add component structs
enteryournamehere Sep 20, 2021
e6c1649
Some experimenting
enteryournamehere Sep 24, 2021
46404ab
Fix Instantiate when item is not in Objects table
enteryournamehere Sep 24, 2021
438b840
Add OnAcknowledgePossession event to GameObject
enteryournamehere Sep 26, 2021
765190a
Merge branch 'dev' into enhancement/racing
TecCheck Nov 1, 2021
ed20c2c
Add script for mission 'Build Your Ride!'
TecCheck Nov 1, 2021
ca4681e
Remove logs from NimbusCarBuildMission.cs
TecCheck Nov 1, 2021
6a0630c
Fix LDF parsing in game messages
TecCheck Nov 2, 2021
ee4d39d
Fix for (parts of) racing control component
TecCheck Nov 9, 2021
c1dc519
Use players car for racing
TecCheck Nov 9, 2021
45ff9d5
One small step for car(?)
enteryournamehere Nov 13, 2021
792d235
Implement racing start routine
TecCheck Nov 13, 2021
bc3afa2
Revert testing changees
TecCheck Nov 13, 2021
76ae70b
Merge two lists and change some names
enteryournamehere Nov 13, 2021
895eab3
Remove position update logging
enteryournamehere Nov 13, 2021
04744be
Merge branch 'dev' into enhancement/racing
enteryournamehere Nov 13, 2021
ffa5e1d
Imagination spawners
enteryournamehere Nov 13, 2021
4d013e7
Implement exit button for racing
TecCheck Nov 14, 2021
f58f914
Fix ModuleAssembly serialization (fix imagination)
enteryournamehere Nov 14, 2021
d60cdc1
Position updates
enteryournamehere Nov 14, 2021
d778fd2
Respawning
enteryournamehere Nov 15, 2021
f65083b
Implement CarBoostBehavior
TecCheck Nov 15, 2021
48b1935
Fix FindItem for first item in inventory
enteryournamehere Nov 15, 2021
3cc1f28
Ignore vehicle object in /near
enteryournamehere Nov 15, 2021
036ef59
Reset car if it has fallen off the map
enteryournamehere Nov 15, 2021
c8203dc
Add zone return data for racing
TecCheck Nov 15, 2021
a4e3082
Communicate car boost to others
enteryournamehere Nov 16, 2021
93a2c3f
Fix position and roatation before race
TecCheck Nov 16, 2021
4aa519a
More boost communication
enteryournamehere Nov 17, 2021
0535cf0
Remove position log
enteryournamehere Nov 17, 2021
6436876
Add vehicle death trigger script
enteryournamehere Nov 17, 2021
5ea8939
Initialize FV racetrack things to correct position
enteryournamehere Nov 17, 2021
281ca2c
Imagination crate script
enteryournamehere Nov 17, 2021
be31e34
FV racetrack dragon eggs imagination script
enteryournamehere Nov 17, 2021
9eb7d66
Remove array to fix ranking, thanks @TecCheck
enteryournamehere Nov 20, 2021
e00328b
Add delay to respawn in racing
TecCheck Nov 21, 2021
e4abf33
End of race exit button
enteryournamehere Nov 21, 2021
69a1eca
Better timing at start of race
enteryournamehere Nov 21, 2021
d2477ae
Avoid null reference in imagination handler
enteryournamehere Nov 22, 2021
b9d89dd
Fix match queue display
TecCheck Nov 23, 2021
49745c2
Send players to match instance when zone is loaded
enteryournamehere Nov 24, 2021
841f454
Actually start timer
enteryournamehere Nov 26, 2021
35fee93
Remove some unnecessary usages of .ToArray()
enteryournamehere Nov 26, 2021
c2f5e40
Disable logging every message sent/received
enteryournamehere Nov 26, 2021
aa4d594
Add RacingTask
TecCheck Dec 7, 2021
aa11f5d
Implement timing and ranking for racing
TecCheck Dec 12, 2021
d014a4f
Fix RacingTask
TecCheck Dec 12, 2021
c63f8ea
Implement more stuff in lap routine
TecCheck Jan 10, 2022
75433d8
Add racing leaderboard
TecCheck Feb 3, 2022
ca86dd6
Add migrations for racing leaderboards
TecCheck Feb 3, 2022
733be6f
Implement rewards for racing
TecCheck Feb 4, 2022
0e61c62
Fix BestLapTime being 0
TecCheck Feb 4, 2022
62f9d67
Close race instance after all players have left
TecCheck Feb 6, 2022
98aef45
Add description to _arrayNoLenght attribute
TecCheck Feb 10, 2022
6987ea9
Implement PostRacePlayerInfos
TecCheck Feb 10, 2022
29d3597
Format RacingControlComponent
TecCheck Feb 10, 2022
709152b
Refactor RacingTask
TecCheck Feb 19, 2022
cb8c3cc
Merge branch 'dev' of github.com:UchuServer/Uchu into enhancement/racing
enteryournamehere Feb 19, 2022
3f76234
Implement last racing task types
TecCheck Feb 20, 2022
66a8cc5
Script changes
Frozenreflex Feb 20, 2022
a9daed9
Add progression for "Dragonscourge" and "Terror of Dragonmaw Chasm"
Frozenreflex Feb 20, 2022
1dc606d
Add blue mark and add race_imagine_powerup to script blacklist
Frozenreflex Feb 20, 2022
84ca188
Add maelstrom geiser script
Frozenreflex Feb 20, 2022
ad3148d
Add dragon animation and dragon egg manager scripts
Frozenreflex Feb 21, 2022
4297e6b
Clean up RacingControlComponent
TecCheck Feb 21, 2022
e681714
Reset player when driving wrong way
TecCheck Feb 22, 2022
c108db6
Oops
Frozenreflex Feb 22, 2022
2ea8b70
Merge branch 'dev' into enhancement/racing
TecCheck Feb 22, 2022
361db46
Don't accept any new players when race has started
TecCheck Feb 23, 2022
d54e73a
Add pillar animations, add RigidBodyPhantomPhysicsComponent, fix drag…
Frozenreflex Mar 3, 2022
cef66f1
Disable render distance filter for racing
enteryournamehere Mar 3, 2022
5cafb1d
Fix and add to script blacklist, make death triggers in racing only k…
Frozenreflex Mar 4, 2022
b812b7e
Wait for players in minigame queue
TecCheck Jul 18, 2022
4830c83
Handle players leaving
TecCheck Jul 28, 2022
9f50063
Revert min player count in racing task to 3
TecCheck Jul 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Uchu.Api/Models/ZoneStatusResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Uchu.Api.Models
{
public class ZoneStatusResponse : BaseResponse
{
public bool Loaded { get; set; }
}
}
7 changes: 7 additions & 0 deletions Uchu.Core/Database/Models/ActivityScore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,19 @@ public class ActivityScore

public int Points { get; set; }

// BestTime for racing
public int Time { get; set; }

public long LastPlayed { get; set; }

public int NumPlayed { get; set; }

// Racing
public int BestLapTime { get; set; }

// Racing
public int Wins { get; set; }

// YYYYWW for Weekly leaderboard entries
// 0 for All-time leaderboard entries
public int Week { get; set; }
Expand Down
6 changes: 3 additions & 3 deletions Uchu.Core/Extensions/RakConnectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static void Send(this IRakConnection @this, ISerializable serializable)
if (serializable == null)
throw new ArgumentNullException(nameof(serializable),
ResourceStrings.RakConnectionExtensions_Send_StreamNullException);
Logger.Debug($"Sending {serializable}");
// Logger.Debug($"Sending {serializable}");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why several debug statements were taken out? This applies to several files but I am only putting 1 comment for it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For racing it's constantly serializing people's positions which makes the logs kind of unreadable

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. In that case, I see 2 options: we remove the logging statements altogether, or we start using the Trace log level.


using var stream = new MemoryStream();
using var writer = new BitWriter(stream);
Expand Down Expand Up @@ -57,7 +57,7 @@ public static void Send<T>(this IRakConnection @this, T packet) where T : struct
if (@this == null)
throw new ArgumentNullException(nameof(@this),
ResourceStrings.RakConnectionExtensions_Send_ConnectionNullException);
Logger.Debug($"Sending {packet}");
// Logger.Debug($"Sending {packet}");

try
{
Expand All @@ -69,4 +69,4 @@ public static void Send<T>(this IRakConnection @this, T packet) where T : struct
}
}
}
}
}
Loading
Loading