-
Notifications
You must be signed in to change notification settings - Fork 817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UrealSDK] Creating requests should work in all versions of UE4 #1944
Conversation
Build Failed 😱 Build Id: 605939e3-5c9f-4e62-9b3b-270f0dd44006 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
^ had a look at build log seems like the tests failed ... nothing jumped out at me apart from website failing to build:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change seems reasonable to me.
Thanks @aLekSer will wait for confirmation of it working wtih |
good news and bad news - the good news is that the version of the plugin from Dom compiled just fine, the bad news is that so did the previous version. This is either due to the fact that we use a customised version of the engine or it is because we only have limited usage of the plugin so far (the end game state change is not yet wired up for example). Seems like I am a poor tester for this one for now. |
Thanks for trying @comerford 👍 As @gamedevix is the original reporter might be best to see if they can see it being fixed with this fork. |
As mentioned on #1940 by @Gamedevix , this is due to our return type still being:
This explains why it compiles for me and not in |
@domgreen Does specifying the ESPMode explicitly rather than using auto break older versions?
|
So the issue is that in
Meaning that the signature of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just kicking this to "request changes" so it doesn't get accidentally merged until we can work out a good fix 👍
@Gamedevix @comerford @mbc-audiovisuales would you mind checking this wiht |
Build Succeeded 👏 Build Id: 7be2a2b2-8f83-4054-9393-d9de6897fa07 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
This is a required change for me to use Agones with 4.26 - it compiles fine on 4.26.1 and I had to manually patch the Agones SDK with these changes to get it to compile. What is blocking a merge of this? I can help test it on 4.25 and 4.26 if needed. |
@domgreen to confirm, but I'm pretty sure that testing on a variety of versions is the blocking issue. If we can confirm the fix works across versions, I'm good to merge 👍 |
If we just need a variety of versions I can provide that, given the matrix you need tested. I have 4.25.3 and 4.26.1 are immediately available, but I can try to get more if needed. Apologies if you already know this as well, but the other method (rather than using
And then wrap the signature or variable assignments in the code: #if ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION >= 26 && ENGINE_PATCH_VERSION >= 0
FHttpRequestRef BuildAgonesRequest(FString Path = "", const FHttpVerb Verb = FHttpVerb::Post, const FString Content = "{}");
#else
TSharedRef<IHttpRequest> BuildAgonesRequest(FString Path = "", const FHttpVerb Verb = FHttpVerb::Post, const FString Content = "{}");
#endif It's a little messier looking but it removes the need for |
@markmandel yeah just waiting on confirmation that it works on 4.26.1 I have it working with 4.25.4 and UDN says this should work with all versions just haven't had confirmation till now👍 @highlyunavailable thank you so much for testing and recommendations |
@markmandel i think with this confirmation we are good to merge 👯 |
Yep it absolutely does. If you ever need Unreal testing feel free to @ me, I'm an Unreal jockey at the moment and happy to wrangle the CPP. |
Sweet. I'll hit that approve button! |
New changes are detected. LGTM label has been removed. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aLekSer, domgreen, markmandel The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aLekSer, domgreen, markmandel The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Build Succeeded 👏 Build Id: 70286345-d156-4efb-bac3-f017e2dd3f14 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
What type of PR is this?
/kind hotfix
What this PR does / Why we need it:
We are replacing the usage if
TSharedRef<IHttpRequest>
withFHttpRequestRef
to allow it to work across versions.It seems that this basically a typedef under the hood to make this work nicely for the current versions.
Which issue(s) this PR fixes:
Closes #1940
Special notes for your reviewer:
4.25.1
4.26
prior to merging.