4 Commits

7 changed files with 62 additions and 7 deletions
Split View
  1. +20
    -3
      Config/DefaultEngine.ini
  2. +4
    -3
      Config/DefaultGame.ini
  3. BIN
      Content/Blueprints/BP_controller.uasset
  4. BIN
      Content/Blueprints/WidgetSongInfos.uasset
  5. BIN
      Content/Levels/Level_Startup.umap
  6. +31
    -0
      Source/MediocreMapAssistant2/BPFileIO.cpp
  7. +7
    -1
      Source/MediocreMapAssistant2/BPFileIO.h

+ 20
- 3
Config/DefaultEngine.ini View File

@ -114,9 +114,6 @@ SmoothedFrameRateRange=(LowerBound=(Type=Inclusive,Value=22.000000),UpperBound=(
+ActiveGameNameRedirects=(OldGameName="MediocreMapper",NewGameName="MediocreMapAssistant2")
bSmoothFrameRate=True
[/Script/WindowsTargetPlatform.WindowsTargetSettings]
Compiler=VisualStudio2017
[/Script/Engine.CollisionProfile]
-Profiles=(Name="NoCollision",CollisionEnabled=NoCollision,ObjectTypeName="WorldStatic",CustomResponses=((Channel="Visibility",Response=ECR_Ignore),(Channel="Camera",Response=ECR_Ignore)),HelpMessage="No collision",bCanModify=False)
-Profiles=(Name="BlockAll",CollisionEnabled=QueryAndPhysics,ObjectTypeName="WorldStatic",CustomResponses=,HelpMessage="WorldStatic object that blocks all actors by default. All new custom channels will use its own default response. ",bCanModify=False)
@ -191,6 +188,26 @@ bGenerateCrashReportSymbols=True
CrashReportClientVersion=4.7.1
DataRouterUrl="https://o462013.ingest.sentry.io/api/5464708/unreal/40d9818b9fee4b72be61bcd0cc2c5e3b/"
[/Script/WindowsTargetPlatform.WindowsTargetSettings]
Compiler=VisualStudio2017
-TargetedRHIs=PCD3D_SM5
-TargetedRHIs=PCD3D_SM4
+TargetedRHIs=PCD3D_SM5
+TargetedRHIs=PCD3D_SM4
MinimumOSVersion=MSOS_Vista
AudioDevice=
AudioSampleRate=48000
AudioCallbackBufferFrameSize=1024
AudioNumBuffersToEnqueue=1
AudioMaxChannels=0
AudioNumSourceWorkers=4
SpatializationPlugin=
ReverbPlugin=
OcclusionPlugin=
[/Script/Engine.EndUserSettings]
bSendAnonymousUsageDataToEpic=False
[/Script/Engine.PhysicsSettings]
DefaultGravityZ=-980.000000
DefaultTerminalVelocity=4000.000000


+ 4
- 3
Config/DefaultGame.ini View File

@ -3,7 +3,7 @@ ProjectID=F5529D354BF9DDA5B4BC06BB62D10933
bShouldWindowPreserveAspectRatio=False
ProjectName=MediocreMapAssistant2
ProjectDisplayedTitle=NSLOCTEXT("[/Script/EngineSettings]", "A4F171D24A09E6B0C435A39031D526F5", "Mediocre Map Assistant 2")
ProjectVersion=4.8.0
ProjectVersion=4.8.4
[/Script/UnrealEd.ProjectPackagingSettings]
Build=IfProjectHasCode
@ -11,7 +11,7 @@ BuildConfiguration=PPBC_Shipping
StagingDirectory=(Path="E:\\Documents\\Unreal Projects\\MediocreMapper")
FullRebuild=False
ForDistribution=True
IncludeDebugFiles=True
IncludeDebugFiles=False
BlueprintNativizationMethod=Disabled
bIncludeNativizedAssetsInProjectGeneration=False
UsePakFile=True
@ -26,7 +26,7 @@ IncludeAppLocalPrerequisites=False
bShareMaterialShaderCode=False
bSharedMaterialNativeLibraries=False
ApplocalPrerequisitesDirectory=(Path="")
IncludeCrashReporter=True
IncludeCrashReporter=False
InternationalizationPreset=English
-CulturesToStage=en
+CulturesToStage=en
@ -39,3 +39,4 @@ bSkipEditorContent=True
+MapsToCook=(FilePath="/Game/Levels/Level_Startup")
bNativizeBlueprintAssets=False
bNativizeOnlySelectedBlueprints=False

BIN
Content/Blueprints/BP_controller.uasset View File


BIN
Content/Blueprints/WidgetSongInfos.uasset View File


BIN
Content/Levels/Level_Startup.umap View File


+ 31
- 0
Source/MediocreMapAssistant2/BPFileIO.cpp View File

@ -336,4 +336,35 @@ int UBPFileIO::getFileSize(const FString & File)
int UBPFileIO::getTimestamp(const FString & File)
{
return FPlatformFileManager::Get().GetPlatformFile().GetTimeStamp(*File).ToUnixTimestamp();
}
bool UBPFileIO::SaveStringTextToFile(
FString SaveDirectory,
FString JoyfulFileName,
FString SaveText,
bool AllowOverWriting
) {
if (!FPlatformFileManager::Get().GetPlatformFile().CreateDirectoryTree(*SaveDirectory))
{
//Could not make the specified directory
return false;
//~~~~~~~~~~~~~~~~~~~~~~
}
//get complete file path
SaveDirectory += "\\";
SaveDirectory += JoyfulFileName;
//No over-writing?
if (!AllowOverWriting)
{
//Check if file exists already
if (FPlatformFileManager::Get().GetPlatformFile().FileExists(*SaveDirectory))
{
//no overwriting
return false;
}
}
return FFileHelper::SaveStringToFile(SaveText, *SaveDirectory, FFileHelper::EEncodingOptions::ForceUTF8WithoutBOM);
}

+ 7
- 1
Source/MediocreMapAssistant2/BPFileIO.h View File

@ -55,5 +55,11 @@ class MEDIOCREMAPASSISTANT2_API UBPFileIO : public UBlueprintFunctionLibrary
UFUNCTION(BlueprintCallable, Category = "File IO")
static int getTimestamp(const FString& File);
UFUNCTION(BlueprintCallable, Category = "File IO")
static bool SaveStringTextToFile(
FString SaveDirectory,
FString JoyfulFileName,
FString SaveText,
bool AllowOverWriting);
};

Loading…
Cancel
Save