-
Notifications
You must be signed in to change notification settings - Fork 828
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
Unreal Example #2217
Comments
Changing the title to "Unreal Example", as we've been talking about having one for a long time, see #927 The biggest issue (as I understand it) is that it's hard to make a small example with Unreal without having a full blown project. If there is a specific error you are encountering with the current Unreal SDK, please provide full reproduction steps, engine version and OS, and error logs. There are several people using it in production, so they will likely be to help you. |
Thanks for reply my project name is "tt2mobile 4.26" i copy the folder edit as follow using UnrealBuildTool; public class tt2mobileServerTarget : TargetRules
} try to generate VS file project Running G:/EpicGames/UnrealEngine-4.26/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project="K:/Epic Games/project/tt2mobile 4.26/tt2mobile.uproject" -game -engine -progress -log="K:\Epic Games\project\tt2mobile 4.26/Saved/Logs/UnrealVersionSelector-2021.08.18-21.45.15.log" i don't know what i missed. |
the another thing i have tried is to use TSharedRef to call "http://localhost:9358/health" TSharedRef<IHttpRequest, ESPMode::ThreadSafe> Request = Http->CreateRequest(); It still keep status scheduled. above method should be work or not? |
@domgreen @highlyunavailable - any chance you can help out here? This is above my pay grade 😄 |
You don't add the dependency to your Target file, you add the dependency to your Build file. You build file will be at |
Also, the health request is handled by the Plugin. You simply need to create an instance of Agones with AgonesSDK = CreateDefaultSubobject<UAgonesComponent>(TEXT("AgonesSDK")); As outlined in the documentation. It is recommended to do so within your GameMode class on initialization. Then, by default when the component is initialized, it will establish a connection with the sidecar automatically. If you're curious how the requests are made, you can review the UAgonesComponent::BuildAgonesRequest which initializes a request for Agones. |
Thanks your reply i did what you suggest and got it work now. |
If you are able / willing to provide a lightweight Unreal example, would also be appreciative! (I know zilch about Unreal, so I'm not sure if this is possible?) |
I've been extremely busy but I'll get one as light weight as possible. The problem with an example is it really doesn't do anything the documentation doesn't illustrate and the implementation is hidden behind code that isn't relevant to Agones. However, it seems it's helpful for people for their personal reasons so I can get those done relatively fast |
'This issue is marked as Stale due to inactivity for more than 30 days. To avoid being marked as 'stale' please add 'awaiting-maintainer' label or add a comment. Thank you for your contributions ' |
We actually have this now (https://github.com/googleforgames/global-multiplayer-demo), and we have a link to it in our documentation section, so I'm going to close this ticket. |
is there example for unreal?
just try to follow
https://agones.dev/site/docs/guides/client-sdks/unreal/
but ERROR: Unable to compile source files.
The text was updated successfully, but these errors were encountered: