11 Commits

17 changed files with 64 additions and 9 deletions
Split View
  1. +21
    -4
      Config/DefaultEngine.ini
  2. +4
    -3
      Config/DefaultGame.ini
  3. BIN
      Content/Blueprints/BPSG_config.uasset
  4. BIN
      Content/Blueprints/BP_controller.uasset
  5. BIN
      Content/Blueprints/BP_event.uasset
  6. BIN
      Content/Blueprints/BP_event_manager.uasset
  7. BIN
      Content/Blueprints/BP_lasers.uasset
  8. BIN
      Content/Blueprints/BP_note.uasset
  9. BIN
      Content/Blueprints/VarTypes/StructSong.uasset
  10. BIN
      Content/Blueprints/WidgetEditorMenu.uasset
  11. BIN
      Content/Blueprints/WidgetExtraFields.uasset
  12. BIN
      Content/Blueprints/WidgetMapMenu.uasset
  13. BIN
      Content/Blueprints/WidgetSongInfos.uasset
  14. BIN
      Content/Levels/Level_Startup.umap
  15. +31
    -0
      Source/MediocreMapAssistant2/BPFileIO.cpp
  16. +7
    -1
      Source/MediocreMapAssistant2/BPFileIO.h
  17. +1
    -1
      Source/MediocreMapAssistant2/RenderWaveform.cpp

+ 21
- 4
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)
@ -188,9 +185,29 @@ Compiler=VisualStudio2017
bGenerateCrashReportSymbols=True
[CrashReportClient]
CrashReportClientVersion=1.0
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.6.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/BPSG_config.uasset View File


BIN
Content/Blueprints/BP_controller.uasset View File


BIN
Content/Blueprints/BP_event.uasset View File


BIN
Content/Blueprints/BP_event_manager.uasset View File


BIN
Content/Blueprints/BP_lasers.uasset View File


BIN
Content/Blueprints/BP_note.uasset View File


BIN
Content/Blueprints/VarTypes/StructSong.uasset View File


BIN
Content/Blueprints/WidgetEditorMenu.uasset View File


BIN
Content/Blueprints/WidgetExtraFields.uasset View File


BIN
Content/Blueprints/WidgetMapMenu.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);
};

+ 1
- 1
Source/MediocreMapAssistant2/RenderWaveform.cpp View File

@ -220,7 +220,7 @@ void URenderWaveform::BP_RenderWaveform(USoundWave* InSoundWaveRef, UProceduralM
for (size_t j = 0; j < 64; ++j){
float height;
if (valid) height = results[j * 8.f] / 50000.f;
if (valid && results.Num() > (j * 8.f)) height = results[j * 8.f] / 50000.f;
else height = 0;
Vertices[To1D(i, j, SizeX)] = FVector(i, j, height);


Loading…
Cancel
Save