changed emptymap & tempmap paths + tempmap removed after exporting + minor changes

This commit is contained in:
Manish 2019-05-02 15:35:07 +02:00
parent 57e34021c7
commit 644e30c0f0
5 changed files with 11 additions and 13 deletions

View File

@ -117,7 +117,7 @@ void UCarlaBlueprintRegistry::AddToCarlaBlueprintRegistry(const TArray<FPropPara
}
void UCarlaBlueprintRegistry::LoadPropDefinitions(TArray<FActorDefinition> &Definitions)
void UCarlaBlueprintRegistry::LoadPropDefinitions(TArray<FPropParameters> &PropParametersArray)
{
// Loads prop registry json files
const FString WildCard = FString("*").Append(PropAttributes::REGISTRY_FORMAT);
@ -148,7 +148,6 @@ void UCarlaBlueprintRegistry::LoadPropDefinitions(TArray<FActorDefinition> &Defi
// Read all registry files and overwrite default registry values with user
// registry files
TArray<FPropParameters> PropParametersArray;
TMap<FString, int> PropIndexes;
for (auto i = 0u; i < PropFileNames.Num(); ++i)
@ -190,6 +189,4 @@ void UCarlaBlueprintRegistry::LoadPropDefinitions(TArray<FActorDefinition> &Defi
}
}
}
UActorBlueprintFunctionLibrary::MakePropDefinitions(PropParametersArray, Definitions);
}

View File

@ -24,9 +24,9 @@ private:
public:
UFUNCTION(Category = "Carla Blueprint Registry", BlueprintCallable)
void AddToCarlaBlueprintRegistry(const TArray<FPropParameters> &PropParametersArray);
static void AddToCarlaBlueprintRegistry(const TArray<FPropParameters> &PropParametersArray);
UFUNCTION(Category = "Carla Blueprint Registry", BlueprintCallable)
void LoadPropDefinitions(TArray<FActorDefinition> &Definitions);
static void LoadPropDefinitions(TArray<FPropParameters> &PropParametersArray);
};

View File

@ -11,6 +11,7 @@ TArray<FString> UCarlaStatics::GetAllMapNames()
{
TArray<FString> TmpStrList, MapNameList;
IFileManager::Get().FindFilesRecursive(MapNameList, *FPaths::ProjectContentDir(), TEXT("*.umap"), true, false, false);
MapNameList.RemoveAll( [](const FString &Name) { return Name.Contains("TestMaps");});
for (int i = 0; i < MapNameList.Num(); i++) {
MapNameList[i].ParseIntoArray(TmpStrList, TEXT("Content/"), true);
MapNameList[i] = TmpStrList[1];

View File

@ -96,11 +96,11 @@ log "Packaging build."
#rm -Rf ./Engine
rm -Rf ./CarlaUE4/Metadata
rm -Rf ./CarlaUE4/Plugins
#@TODO: Instead of this hardcoded path, we need to pick the ${MAPS_TO_COOK} path
#rm -Rf ./CarlaUE4/${MAPS_TO_COOK_But_instead_of_"game"_the_folder_is_content}.uexp
#rm -Rf ./CarlaUE4/${MAPS_TO_COOK_But_instead_of_"game"_the_folder_is_content}.umap
#rm -Rf ./CarlaUE4/Content/Carla/Maps/BaseMap/TEMPMAP.uexp
#rm -Rf ./CarlaUE4/Content/Carla/Maps/BaseMap/TEMPMAP.umap
# Remove TEMPMAP.umap and TEMPMAP.uexp
TEMPMAP_BASE_PATH="$CARLAUE4_ROOT_FOLDER${MAP_TO_COOK/Game/"Content"}"
rm -f $TEMPMAP_BASE_PATH.uexp
rm $TEMPMAP_BASE_PATH.umap
rm ./CarlaUE4/AssetRegistry.bin

View File

@ -50,11 +50,11 @@ def import_all_fbx_in_folder(fbx_folder, folder_list):
final_list = final_list[:-1]
print(final_list)
#Destination map (the one that will be cooked)
dest_map_path = "/Game/Carla/Maps/BaseMap"
dest_map_path = "/Game/Carla/Maps/TestMaps"
dest_map_name = "TEMPMAP"
# This should be a folder, because the commandlet will take anything inside.
# It is better if there is only one map inside
src_map_folder = "/Game/Carla/Maps/EmptyMap"
src_map_folder = "/Game/Carla/Maps/TestMaps"
prepare_cook_commandlet(final_list, src_map_folder, dest_map_path, dest_map_name)
launch_bash_script("BuildTools/ExportFBX.sh", "--maps=%s/%s" % (dest_map_path, dest_map_name))