@@ -28,7 +28,7 @@ namespace DemoScanner.DG
28
28
public static class DemoScanner
29
29
{
30
30
public const string PROGRAMNAME = "Unreal Demo Scanner";
31
- public const string PROGRAMVERSION = "1.75.1b ";
31
+ public const string PROGRAMVERSION = "1.75.2b ";
32
32
33
33
public static string FoundNewVersion = "";
34
34
@@ -1148,15 +1148,19 @@ public static void DemoScanner_AddTextMessage(string msg, string type, float tim
1148
1148
return;
1149
1149
}
1150
1150
1151
-
1152
1151
msg = msg.Replace("\n", "^n").Replace("\r", "^n").Replace("\x01", "^1").Replace("\x02", "^2")
1153
1152
.Replace("\x03", "^3").Replace("\x04", "^4");
1154
1153
if (msg.Length == 0)
1155
1154
{
1156
1155
return;
1157
1156
}
1158
1157
1159
- OutTextMessages.Add("[" + type + "] : [" + msg + "]" + " at (" + time + ") " + timestring);
1158
+ type = type.PadRight(20);
1159
+ msg = msg.PadRight(25);
1160
+
1161
+ string frameId = CurrentFrameId.ToString().PadLeft(4);
1162
+
1163
+ OutTextMessages.Add("[" + type + "] " + " [FRAME NUMBER: " + frameId + "] : [" + msg + "]" + " at (" + time + ") " + timestring);
1160
1164
}
1161
1165
1162
1166
public static void DemoScanner_AddInfo(string info, bool is_plugin = false, bool no_prefix = false)
@@ -2785,23 +2789,40 @@ public static void RunDemoScanner(string[] args)
2785
2789
CurrentDir = CurrentDir.Remove(CurrentDir.Length - 1);
2786
2790
}
2787
2791
2792
+ IsRussia = File.Exists(CurrentDir + "/lang.ru") || File.Exists("lang.ru");
2793
+
2788
2794
try
2789
2795
{
2790
2796
if (!SKIP_RESULTS)
2791
2797
{
2792
- if (!File.Exists(CurrentDir + "/lang.ru") && !File.Exists(CurrentDir + "/lang.en"))
2798
+ if (!File.Exists(CurrentDir + "/lang.ru") && !File.Exists(CurrentDir + "/lang.en") &&
2799
+ !File.Exists( "lang.ru") && !File.Exists("lang.en"))
2793
2800
{
2794
2801
Console.Write("Enter language EN - Engish / RU - Russian:");
2795
2802
var lang = Console.ReadLine();
2796
2803
if (lang.ToLower() == "en")
2797
2804
{
2798
2805
IsRussia = false;
2799
- File.Create(CurrentDir + "/lang.en").Close();
2806
+ try
2807
+ {
2808
+ File.Create(CurrentDir + "/lang.en").Close();
2809
+ }
2810
+ catch
2811
+ {
2812
+ File.Create("lang.en").Close();
2813
+ }
2800
2814
}
2801
2815
else
2802
2816
{
2803
2817
IsRussia = true;
2804
- File.Create(CurrentDir + "/lang.ru").Close();
2818
+ try
2819
+ {
2820
+ File.Create(CurrentDir + "/lang.ru").Close();
2821
+ }
2822
+ catch
2823
+ {
2824
+ File.Create("lang.ru").Close();
2825
+ }
2805
2826
}
2806
2827
}
2807
2828
}
@@ -2830,6 +2851,8 @@ public static void RunDemoScanner(string[] args)
2830
2851
}
2831
2852
}
2832
2853
2854
+ IsRussia = File.Exists(CurrentDir + "/lang.ru") || File.Exists("lang.ru");
2855
+
2833
2856
try
2834
2857
{
2835
2858
string codestring = GetSourceCodeString();
@@ -8317,6 +8340,7 @@ следующий кадр изменение и 5 кадров нет движ
8317
8340
}
8318
8341
8319
8342
Console.ForegroundColor = ConsoleColor.Red;
8343
+
8320
8344
if (IsRussia)
8321
8345
{
8322
8346
Console.WriteLine("ВАЖНО!");
@@ -8911,11 +8935,7 @@ следующий кадр изменение и 5 кадров нет движ
8911
8935
int prevFrameNum = 0;
8912
8936
foreach (var cmd in CommandHistory)
8913
8937
{
8914
- if (prevFrameNum != 0)
8915
- {
8916
- CommandsDump.Add("wait" + (cmd.frameNum - prevFrameNum) + ";");
8917
- }
8918
-
8938
+
8919
8939
string timeCmdStr = "[ERROR]";
8920
8940
8921
8941
try
@@ -8929,13 +8949,13 @@ следующий кадр изменение и 5 кадров нет движ
8929
8949
8930
8950
if (IsRussia)
8931
8951
{
8932
- CommandsDump.Add(timeCmdStr + " [НОМЕР КАДРА: " + cmd.frameNum + "] : " + cmd.cmdStr + "(" +
8952
+ CommandsDump.Add(timeCmdStr + " [НОМЕР КАДРА: " + cmd.frameNum + "] : " + cmd.cmdStr + ";wait" + (cmd.frameNum - prevFrameNum) + ";" + " (" +
8933
8953
LastKnowRealTime + ")" + (cmd.cmdSource == 1 ?
8934
8954
" --> ВЫПОЛНЕНО СЕРВЕРОМ" : cmd.cmdSource == 2 ? " --> ВЫПОЛНЕНО ЧЕРЕЗ STUFFTEXT" : ""));
8935
8955
}
8936
8956
else
8937
8957
{
8938
- CommandsDump.Add(timeCmdStr + " [FRAME NUMBER: " + cmd.frameNum + "] : " + cmd.cmdStr + "(" +
8958
+ CommandsDump.Add(timeCmdStr + " [FRAME NUMBER: " + cmd.frameNum + "] : " + cmd.cmdStr + ";wait" + (cmd.frameNum - prevFrameNum) + ";" + " (" +
8939
8959
LastKnowRealTime + ")" + (cmd.cmdSource == 1 ?
8940
8960
" --> EXECUTED BY SERVER" : cmd.cmdSource == 2 ? " --> EXECUTED BY SERVER" : ""));
8941
8961
}
@@ -9550,7 +9570,7 @@ следующий кадр изменение и 5 кадров нет движ
9550
9570
}
9551
9571
}
9552
9572
9553
- if (IsRussia)
9573
+ if (! IsRussia)
9554
9574
{
9555
9575
if (PlayerSensUsageList.Count > 1)
9556
9576
{
0 commit comments