fix javascript libraries not being loaded because the stupid CDN change. MICROSOFT, IF YOU'RE LISTENING, FIX YOUR INTEGRATION WITH CDNJS THANK YOU

force demo record and increase max demos saved for IW4x
fix issue with disconnect on a not fully connected client
This commit is contained in:
RaidMax 2019-12-27 20:37:50 -06:00
parent 82381457df
commit 2b26b9a707
6 changed files with 23 additions and 8 deletions

View File

@ -17,7 +17,7 @@ echo deleting misc files
if exist "%PublishDir%\web.config" del "%PublishDir%\web.config"
if exist "%PublishDir%\libman.json" del "%PublishDir%\libman.json"
del "%PublishDir%\*.exe"
del "%PublishDir%\*.pdb"
REM del "%PublishDir%\*.pdb"
echo setting up default folders
if not exist "%PublishDir%\Configuration" md "%PublishDir%\Configuration"

View File

@ -79,6 +79,12 @@ namespace IW4MAdmin
override public async Task OnClientDisconnected(EFClient client)
{
if (!GetClientsAsList().Any(_client => _client.NetworkId == client.NetworkId))
{
Logger.WriteInfo($"{client} disconnecting, but they are not connected");
return;
}
#if DEBUG == true
if (client.ClientNumber >= 0)
{

View File

@ -406,6 +406,13 @@ namespace SharedLibraryCore.Services
public async Task<EFClient> Update(EFClient temporalClient)
{
if (temporalClient.ClientId < 1)
{
temporalClient.CurrentServer?.Logger.WriteDebug($"[update] {temporalClient} needs to be updated but they do not have a valid client id, ignoring..");
// note: we never do anything with the result of this so we can safely return null
return null;
}
using (var context = new DatabaseContext())
{
// grab the context version of the entity

View File

@ -144,12 +144,12 @@
</footer>
</div>
<environment include="Development">
<script type="text/javascript" src="~/lib/jquery/jquery.js"></script>
<script type="text/javascript" src="~/lib/popper.js/popper.js"></script>
<script type="text/javascript" src="~/lib/moment/moment.js"></script>
<script type="text/javascript" src="~/lib/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="~/lib/popper.js/dist/umd/popper.js"></script>
<script type="text/javascript" src="~/lib/moment.js/moment.js"></script>
<script type="text/javascript" src="~/lib/moment-timezone/moment-timezone.js"></script>
<script type="text/javascript" src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
<script type="text/javascript" src="~/lib/canvasjs/canvasjs.js"></script>
<script type="text/javascript" src="~/lib/bootstrap/dist/js/bootstrap.bundle.js"></script>
<script type="text/javascript" src="~/lib/canvas.js/canvasjs.js"></script>
<script type="text/javascript" src="~/js/action.js"></script>
<script type="text/javascript" src="~/js/search.js"></script>
</environment>

View File

@ -11,8 +11,8 @@
{
"outputFileName": "wwwroot/js/global.min.js",
"inputFiles": [
"wwwroot/lib/jquery/jquery.min.js",
"wwwroot/lib/popper.js/umd/popper.js",
"wwwroot/lib/jquery/dist/jquery.js",
"wwwroot/lib/popper.js/dist/umd/popper.js",
"wwwroot/lib/moment.js/moment.min.js",
"wwwroot/lib/moment-timezone/moment-timezone.min.js",
"wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js",

View File

@ -29,6 +29,8 @@ onPlayerConnect( player )
for( ;; )
{
level waittill( "connected", player );
player setClientDvar("cl_autorecord", 1);
player setClientDvar("cl_demosKeep", 200);
player thread waitForFrameThread();
}
}