Heya, I understand this is a pretty bland question, I’m simply looking for links; videos/reading material about this. I guess the problem is I don’t actaully know the question or readings materials I’m looking for. An aspect I’m looking to learn about is something along the lines of a single player online game yet there’s a “world boss” and each player does there single battles and everyone contributes to that etc. I know this is very vague but that also helps, if you can link me anything to do with any of the multiple steps of this process that would be great. (It doesn’t have to be that exact criteria also, I simply don’t know much about server side multiplayer and such and am looking to learn, just don’t know where to look.) I need a/starting points to learn, thanks!
Hey there @Burntid! So let me confirm your use case before getting into detail about execution. Are all users going to be always singleplayer, but the only multiplayer is just the data that of the world bosses health? For example the dragon at the end of Dragons Dogma?
Haven’t played that but sounds correct, nobody would actaully being playing together, any links or material about that or things surrounded that would be great, “multiplayer” is pretty vague to search for
No need to go into a full rundown yourself or anything, I’m not currently implementing it, just looking for material to learn with so I have a better idea of what I’m working with if/when I decide to add it in.
so if all players play their single player battles which somehow contributes to defeating world boss? Here there are few aspects to focus on:
- Even if players do single player battles, their data have to be stored somewhere and so you can use aws, playfab, or custom login systems and databases for this.
- If even at the end, all these individual players who were playing their player battles solo will have to play together against this boss, you have to design your code following replication
- The code should follow server-client model
- With these terms, you can search more in chat gpt for having more info
- and i think you will be good to go
Generally you’d probably just want to use something like a REST API connected to a database that houses all of the boss information that can be modified, then when players initiate their version of the fight they make a request for the current boss HP, then that is set and their fight begins. The Dragon’s Dogma fight of the same type had a timer in which you’d do the damage you could and at 8 minutes the dragon would fly off and your damage was sent to the database to be recorded. Depending how worried you about cheating, you may need to have some countermeasures, like validating the fight, score, etc before accepting the score. Alternatively if you need more control, you’d actually have the player in a networked environment solo and control the fight with server authority there so the client couldn’t attempt to spoof scores easily, but since it’s singleplayer that’s mostly futile.
Ok this gives me a better idea of what to search for for learning materials, thanks to both of you! (If you have any links you could provide that would be great also)
I’ve compiled a handful of resources for what you’ll need on Unreal’s side, however setting up a database and an API are another portion of this not gone over below.
If you’re a fan of text based tutorials, this community article is good for getting started:
Alternatively you can learn how to make HTTPS requests to a server from this article about calling to an API and taking an image and some data sent back and applying it in game materials:
If you’re more of a video learner, this might be a bit better for the same use:
And as always, the documentation area you’ll be using to make those requests:
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.
This is great! Thanks again!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.