update event data, improve server selector

This commit is contained in:
Mikhail
2025-02-21 20:51:49 -05:00
parent 07fab687e7
commit 09ad13fabd
4 changed files with 143 additions and 67 deletions

View File

@@ -12,86 +12,160 @@ namespace EpinelPS.LobbyServer.Event
//types are defined in EventTypes.cs
var response = new ResGetEventList();
// footsteps walk run
// evangellion event again
response.EventList.Add(new NetEventData()
{
Id = 40066,
Id = 81900,
EventSystemType = FieldHubEvent,
EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
EventEndDate = DateTime.Now.AddDays(20).Ticks,
EventDisableDate = DateTime.Now.AddDays(20).Ticks
});
response.EventList.Add(new NetEventData()
{
Id = 81902,
EventSystemType = ShopEvent,
EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
EventEndDate = DateTime.Now.AddDays(20).Ticks,
EventDisableDate = DateTime.Now.AddDays(20).Ticks
});
response.EventList.Add(new NetEventData()
{
Id = 81903,
EventSystemType = LoginEvent,
EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
EventEndDate = DateTime.Now.AddDays(20).Ticks,
EventDisableDate = DateTime.Now.AddDays(20).Ticks
});
response.EventList.Add(new NetEventData()
{
Id = 40070,
EventSystemType = StoryEvent,
EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
EventEndDate = DateTime.Now.AddDays(20).Ticks,
EventDisableDate = DateTime.Now.AddDays(20).Ticks
});
response.EventList.Add(new NetEventData()
});
response.EventList.Add(new NetEventData()
{
Id = 60066,
EventSystemType = ChallengeModeEvent,
Id = 40071,
EventSystemType = StoryEvent,
EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
EventEndDate = DateTime.Now.AddDays(20).Ticks,
EventDisableDate = DateTime.Now.AddDays(20).Ticks
});
// ssr rapi
});
response.EventList.Add(new NetEventData()
{
Id = 70077,
Id = 70087,
EventSystemType = PickupGachaEvent,
EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
EventEndDate = DateTime.Now.AddDays(20).Ticks,
EventDisableDate = DateTime.Now.AddDays(20).Ticks
});
response.EventList.Add(new NetEventData()
{
Id = 10046,
EventSystemType = LoginEvent,
EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
EventEndDate = DateTime.Now.AddDays(20).Ticks,
EventDisableDate = DateTime.Now.AddDays(20).Ticks
});
});
response.EventList.Add(new NetEventData()
{
Id = 70088,
EventSystemType = PickupGachaEvent,
EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
EventEndDate = DateTime.Now.AddDays(20).Ticks,
EventDisableDate = DateTime.Now.AddDays(20).Ticks
});
response.EventList.Add(new NetEventData()
{
Id = 79001,
EventSystemType = PickupGachaEvent,
EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
EventEndDate = DateTime.Now.AddDays(20).Ticks,
EventDisableDate = DateTime.Now.AddDays(20).Ticks
});
response.EventList.Add(new NetEventData()
{
Id = 20001,
EventSystemType = DailyMissionEvent,
EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
EventEndDate = DateTime.Now.AddDays(20).Ticks,
EventDisableDate = DateTime.Now.AddDays(20).Ticks
});
response.EventList.Add(new NetEventData()
{
Id = 20002,
EventSystemType = DailyMissionEvent,
EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
EventEndDate = DateTime.Now.AddDays(20).Ticks,
EventDisableDate = DateTime.Now.AddDays(20).Ticks
});
response.EventList.Add(new NetEventData()
{
Id = 70078,
EventSystemType = PickupGachaEvent,
EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
EventEndDate = DateTime.Now.AddDays(20).Ticks,
EventDisableDate = DateTime.Now.AddDays(20).Ticks
});
response.EventList.Add(new NetEventData()
{
Id = 70079,
EventSystemType = PickupGachaEvent,
EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
EventEndDate = DateTime.Now.AddDays(20).Ticks,
EventDisableDate = DateTime.Now.AddDays(20).Ticks
});
//full burst day
/*
// footsteps walk run
// response.EventList.Add(new NetEventData()
// {
// Id = 40066,
// EventSystemType = StoryEvent,
// EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
// EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
// EventEndDate = DateTime.Now.AddDays(20).Ticks,
// EventDisableDate = DateTime.Now.AddDays(20).Ticks
// });
//response.EventList.Add(new NetEventData()
// {
// Id = 60066,
// EventSystemType = ChallengeModeEvent,
// EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
// EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
// EventEndDate = DateTime.Now.AddDays(20).Ticks,
// EventDisableDate = DateTime.Now.AddDays(20).Ticks
// });
//// ssr rapi
// response.EventList.Add(new NetEventData()
// {
// Id = 70077,
// EventSystemType = PickupGachaEvent,
// EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
// EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
// EventEndDate = DateTime.Now.AddDays(20).Ticks,
// EventDisableDate = DateTime.Now.AddDays(20).Ticks
// });
//response.EventList.Add(new NetEventData()
//{
// Id = 10046,
// EventSystemType = LoginEvent,
// EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
// EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
// EventEndDate = DateTime.Now.AddDays(20).Ticks,
// EventDisableDate = DateTime.Now.AddDays(20).Ticks
//});
//response.EventList.Add(new NetEventData()
//{
// Id = 20001,
// EventSystemType = DailyMissionEvent,
// EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
// EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
// EventEndDate = DateTime.Now.AddDays(20).Ticks,
// EventDisableDate = DateTime.Now.AddDays(20).Ticks
//});
//response.EventList.Add(new NetEventData()
//{
// Id = 20002,
// EventSystemType = DailyMissionEvent,
// EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
// EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
// EventEndDate = DateTime.Now.AddDays(20).Ticks,
// EventDisableDate = DateTime.Now.AddDays(20).Ticks
//});
//response.EventList.Add(new NetEventData()
//{
// Id = 70078,
// EventSystemType = PickupGachaEvent,
// EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
// EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
// EventEndDate = DateTime.Now.AddDays(20).Ticks,
// EventDisableDate = DateTime.Now.AddDays(20).Ticks
//});
//response.EventList.Add(new NetEventData()
//{
// Id = 70079,
// EventSystemType = PickupGachaEvent,
// EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks,
// EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks,
// EventEndDate = DateTime.Now.AddDays(20).Ticks,
// EventDisableDate = DateTime.Now.AddDays(20).Ticks
//});
//full burst day
/*
response.EventList.Add(new NetEventData()
{
Id = 140052,
@@ -102,10 +176,10 @@ namespace EpinelPS.LobbyServer.Event
EventDisableDate = DateTime.Now.AddDays(20).Ticks
});
*/
//dailies reward up
/*
//dailies reward up
/*
response.EventList.Add(new NetEventData()
{
Id = 170017,
@@ -117,7 +191,7 @@ namespace EpinelPS.LobbyServer.Event
});
*/
await WriteDataAsync(response);
}
}

View File

@@ -8,6 +8,8 @@ namespace ServerSelector
public class ServerSwitcher
{
private static int GameAssemblySodiumIntegrityFuncHint = 0x5F17AF0;
public static string PatchGameVersion = "130.8.13";
private static byte[] GameAssemblySodiumIntegrityFuncOrg = [0x40, 0x53, 0x56, 0x57, 0x41];
private static byte[] GameAssemblySodiumIntegrityFuncPatch = [0xb0, 0x01, 0xc3, 0x90, 0x90];
private const string HostsStartMarker = "# begin ServerSelector entries";

View File

@@ -33,7 +33,7 @@
<TextBlock VerticalAlignment="Center" Margin="5" Grid.Row="0" Grid.Column="0">Game path: </TextBlock>
<TextBox x:Name="txtGamePath" Grid.Row="0" Grid.Column="1" TextChanged="GamePath_TextChanged">C:\NIKKE\</TextBox>
<TextBox x:Name="txtGamePath" Grid.Row="0" Grid.Column="1" TextChanged="GamePath_TextChanged" ToolTip.Tip="The folder with the game and launcher folders.">C:\NIKKE\</TextBox>
<Button x:Name="btnSelectGamePath" Grid.Row="0" Grid.Column="2" Content="..." Click="BtnSelectGamePath_Click"></Button>
<TextBlock VerticalAlignment="Center" Margin="5" Grid.Row="4" Grid.Column="0">Server: </TextBlock>
@@ -50,7 +50,7 @@
<CheckBox x:Name="ChkOffline" VerticalAlignment="Center" Margin="5" Grid.Row="8" Grid.Column="0" Grid.ColumnSpan="3" ToolTip.Tip="Enables the ability to run the game offline by making the game download the assets from the server, and not the official server. This only works if enableOffline is enabled on the server. Please note that this should not be enabled on public servers due to copyright issues, as assets are downloaded through said server. This is required if you want to use an older version of the game.">Enable offline mode</CheckBox>
<TextBlock Grid.Row="10" Grid.Column="0" TextWrapping="WrapWithOverflow" VerticalAlignment="Center" Margin="5" x:Name="LblStatus" ToolTip.Tip="Shows the status of the patches to the game. All patches are reverted when server is set to official.">Status: OK</TextBlock>
<TextBlock Grid.Row="10" Grid.Column="0" Grid.ColumnSpan="2" TextWrapping="WrapWithOverflow" VerticalAlignment="Center" Margin="5" x:Name="LblStatus" ToolTip.Tip="Shows the status of the patches to the game. All patches are reverted when server is set to official.">Status: OK</TextBlock>
<Button HorizontalAlignment="Right" Margin="5" Click="Save_Click" Grid.Row="10" Grid.Column="1" Grid.ColumnSpan="2" Classes="accent">Save</Button>
</Grid>
</TabItem>

View File

@@ -108,7 +108,7 @@ public partial class MainView : UserControl
return;
SetLoadingScreenVisible(true);
LblStatus.Text = "Status: " + await ServerSwitcher.CheckIntegrity(GamePath, LauncherPath);
LblStatus.Text = "Status: " + await ServerSwitcher.CheckIntegrity(GamePath, LauncherPath) + ", for game version " + ServerSwitcher.PatchGameVersion;
SetLoadingScreenVisible(false);
}