Hmm I am attempting to test out VaRest with UE 4.17 Preview-2 with no luck compiling the plugin so far.
Any advice? Getting some compile errors in VS:
"
Error C2039 ‘bIsArray’: is not a member of ‘FEdGraphPinType’ Game H:\Unreal Projects\Game\Plugins\VaRest-develop\Source\VaRestEditorPlugin\Private\VaRest_BreakJson.cpp 72
"
"
Warning C4996 ‘UEdGraphSchema_K2::SetPinDefaultValueBasedOnType’: SetPinDefaultValueBasedOnType is deprecated due to confusing name, call SetPinAutogeneratedDefaultValue Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. Game H:\Unreal Projects\Game\Plugins\VaRest-develop\Source\VaRestEditorPlugin\Private\VaRest_BreakJson.cpp 184
Warning C4996 ‘UEngine::GetWorldFromContextObject’: GetWorldFromContextObject(Object) and GetWorldFromContextObject(Object, boolean) are replaced by GetWorldFromContextObject(Object, Enum) or GetWorldFromContextObjectChecked(Object) Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. Game H:\Unreal Projects\Game\Plugins\VaRest-develop\Source\VaRestPlugin\Private\VaRestLibrary.cpp 73
Warning C4996 ‘UEngine::GetWorldFromContextObject’: GetWorldFromContextObject(Object) and GetWorldFromContextObject(Object, boolean) are replaced by GetWorldFromContextObject(Object, Enum) or GetWorldFromContextObjectChecked(Object) Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. Game H:\Unreal Projects\Game\Plugins\VaRest-develop\Source\VaRestPlugin\Private\VaRestRequestJSON.cpp 228
"
Basicly there are a lot of deprecated variables in struct FEdGraphPinType :
private:
/** DEPRECATED(4.17) Whether or not this pin represents a map of keys to values */
UPROPERTY()
uint8 bIsMap_DEPRECATED:1;
/** DEPRECATED(4.17) Whether or not this pin represents a set of (unique) values */
UPROPERTY()
uint8 bIsSet_DEPRECATED:1;
/** DEPRECATED(4.17) Whether or not this pin represents an array of values */
UPROPERTY()
uint8 bIsArray_DEPRECATED:1;
" DEPRECATED(4.17, “Use version that takes PinContainerType instead of separate booleans for array, set, and map”)"
Solution:
In VaRest_BreakJson.cpp (72)
Change:
bool bIsArray = Pin->PinType.bIsArray;
To:
bool bIsArray = Pin->PinType.IsArray();
This seems to work. Still has a warning tho:
Warning C4996 ‘UEdGraphSchema_K2::SetPinDefaultValueBasedOnType’: SetPinDefaultValueBasedOnType is deprecated due to confusing name, call SetPinAutogeneratedDefaultValue Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. \VaRest-develop\Source\VaRestEditorPlugin\Private\VaRest_BreakJson.cpp 184