How To Save And Load Player's Location - Unreal Engine 4 Tutorial

  Рет қаралды 11,248

Matt Aspland

Matt Aspland

Күн бұрын

Hey guys, in today's video, I'm going to be showing you how to save and load the player's location in your game.
#Ue4 #UnrealEngine4 #Ue4Tutorial
___________________________________________________________________________
00:00 - Intro
00:15 - Overview
00:49 - Tutorial
07:59 - Final Overview
08:10 - Outro
___________________________________________________________________________
Unreal Engine 4 Tutorials Playlist: • Unreal Engine 4 Tutorials
The Basics Of Nodes Playlist: • The Basics Of Nodes In...
Blender Tutorials Playlist: • Blender Tutorials
___________________________________________________________________________
If you enjoy make sure to subscribe: / @mattaspland
Join My Discord Server: / discord
Follow Me On Instagram: / matt_aspland_
___________________________________________________________________________
If you want to support me, you can PayPal me at "matt.aspland.1@gmail.com". This is by no means expected or required. It is just a nice support :)
Link to PayPal: www.paypal.com/
You can also support me on Ko-Fi following this link: ko-fi.com/mattaspland
Thank you :)
___________________________________________________________________________
♫Music By♫
●Kronicle - Chill Noons
●Soundcloud - / the-chemist-10

Пікірлер: 80
@stevenwynn819
@stevenwynn819 3 жыл бұрын
This is one of those things you just need to know. Thanks for the tutorial.
@MattAspland
@MattAspland 3 жыл бұрын
Absolutely Steve, something so simple yet important! :)
@Sector333
@Sector333 3 жыл бұрын
ooo fantastic, ill be needing this eventually. Thank you.
@MattAspland
@MattAspland 3 жыл бұрын
That's great! Always happy to help :)
@AnimiraniGamer
@AnimiraniGamer 3 жыл бұрын
what great timing i was just searching for this thank you so much
@MattAspland
@MattAspland 3 жыл бұрын
Ha nice, great timing then!! Happy to help :)
@theunicorn4224
@theunicorn4224 3 жыл бұрын
Just a quick question so I don't ruin anything like previous times... how can I delete a save file SAFLEY so I can test this multiple times
@matchstickpro
@matchstickpro 3 жыл бұрын
Thank you! Worked great.
@MattAspland
@MattAspland 3 жыл бұрын
Great to hear, happy to help :)
@Equ1no0x
@Equ1no0x 3 жыл бұрын
Awesome! I was thinking some days ago about how Genshin Impact or MMOs worked with this information. Pretty cool!
@MattAspland
@MattAspland 3 жыл бұрын
Great! That sounds amazing, I always love thinking about how real games make techniques :)
@AsciiSmoke
@AsciiSmoke 10 ай бұрын
Hey Matt. Thanks for the Tutorial, it's really helped me get to grips with the BluePrint editor in general as well as getting me 90% of the way there to saving the location in my project. I'm trying to do this in 5.2 and I keep hitting a wall. I've run through the tutorial several times on fresh instances of the default First Person Game Mode project. However, for some reason the cast to the SaveGameLoc class always fails and I can't find any way of getting any more information about why. Have you had a chance to try these steps out on 5.2?
@UNOsan
@UNOsan 2 жыл бұрын
Awesome tutorial!! Is it possible to save camera rotation for first person (I am pretty new to UE4 still learning the basics)
@abdullahsohail5395
@abdullahsohail5395 3 жыл бұрын
Nice video keep making awesome video
@MattAspland
@MattAspland 3 жыл бұрын
Thank you man! I appreciate it :)
@VeryNotAdamYCT
@VeryNotAdamYCT 2 жыл бұрын
You are the best
@stormr
@stormr 3 жыл бұрын
This works great, I really needed this. thanks Matt. I was wondering though, how could I adapt this to an object, say like a vehicle? What would I use in place of the get player stuff? Any ideas?
@MattAspland
@MattAspland 3 жыл бұрын
Hey, what you could do is "Get Actor Transform" for that blueprint. So either in the cars blueprint itself, or cast to/get a reference to that blueprint and plug that into the target for "Get Actor Transform". Hope this helps :)
@stormr
@stormr 3 жыл бұрын
@@MattAspland thanks. Ill give that a shot tonight. I figured it would just be a different reference. But wasnt sure what to call. Thank you
@MattAspland
@MattAspland 3 жыл бұрын
@@stormr Great work, good luck with it :)
@WendellCamaraferreira6345
@WendellCamaraferreira6345 3 жыл бұрын
Great tutorial, could teach you how to fix a certain "bug" that has in the engine, which is related to the volumetric shadows of the engine, that when I move an object, this volumetric shadow does not move in real time with the object, if you can do it a video teaching this, thank you very much!
@que_scopes5884
@que_scopes5884 3 жыл бұрын
thank you lol from the amount off vids and stuff it will be like your making my game (haha)
@MattAspland
@MattAspland 3 жыл бұрын
Haha always happy to help man!
@alielhefnawey5764
@alielhefnawey5764 3 жыл бұрын
thanks Matt
@MattAspland
@MattAspland 3 жыл бұрын
No problem mate :)
@LDT7Y
@LDT7Y 3 жыл бұрын
Do we still use the third person character if there are more than one saved characters? My game lets you create up to 3 characters, so do I create the save game data commands elsewhere or create 3 different third person character templates that correspond to 3 'slots' on the start menu? I've seen this done in other games, so I know it's doable. Just not sure how to organise it.
@galberger3937
@galberger3937 Жыл бұрын
Hi Can you show how to add health points and stamina in ue5 with the savegame system that you have used in this video?
@Shadowbroker001
@Shadowbroker001 2 жыл бұрын
Hey. First of thanks for the Tutorials. They are great. I've got a question. I've tried to create and load a savegame with world and location infos. Saving works fine but when i'm loading the savegame he loads the correct world but the character spawns at its default location. Can you please help me?
@Aaron_Acker
@Aaron_Acker 2 жыл бұрын
Having Same issue.. did you figure it out?
@stormr
@stormr 3 жыл бұрын
Turns out I'm having some trouble with this after all. it works great as long as I keep playing the game. but when it shut down the computer and come back at another time, i keep loading in under the map and just fall. Happening with my testors too. My map isnt technically at zero on the verticle sense. its actually at 134. But the player loads in at 0 vertically, the x and z are loading in at correct position. Is there a way I can tell it to save the verticle offset of the map as well so it saves true location?
@tyjrthrtg
@tyjrthrtg 2 жыл бұрын
Hey, did you work it out? I'm having the same problem right now..
@lollerkiller900
@lollerkiller900 2 жыл бұрын
yeah, i could use that, but how can i combine it with a Menu?
@xliquid_
@xliquid_ 3 жыл бұрын
Is it possible that you make a tutorial on changing things on runtime? Like laying a stone path on the ground ingame and save it. If you know what I mean :)
@MattAspland
@MattAspland 3 жыл бұрын
Hey man, I think I know what you mean. I can look into that :)
@LetsPatrick
@LetsPatrick 2 жыл бұрын
Please show how these data are not saved on the player pc but on a database (SQL)
@AdireetiVlogs
@AdireetiVlogs 6 ай бұрын
hi i want to save game automatically at background during gaming i donw want any key the saving process run all time atutomatically at background is there any option to do this plz let me know
@andresca1985
@andresca1985 8 ай бұрын
Hi, In Ue5 i cant see the node Set Spawn Transform
@Emarketsarts
@Emarketsarts Жыл бұрын
What if one wanted to save his AI characters location , is there a way to do it like this?
@kumardhruv1723
@kumardhruv1723 2 жыл бұрын
Hey. Thanks for the tuitorial it's works fine but in setting the transform but still my player is spawned at 0,0,0 can you please help me ?
@JoaoVictor-fk8no
@JoaoVictor-fk8no 11 ай бұрын
hey, did you manage to fix this?
@jasonyeo1465
@jasonyeo1465 Жыл бұрын
Is it advisable to save the player's location on event tick? In case there is someone who closed the game by force, like closing the window directly (with the X) or end task in Task Manager. If not, is there a viable way to auto-save the player's location?
@jasonyeo1465
@jasonyeo1465 Жыл бұрын
Solved by doing the auto save under PlayerCharacterBP->EventEndPlay. But idk why EventEndPlay GameMode, PlyaerController or LevelBlueprint can't, but I haven't tried shutting down the PC while the game is playing, and hopefully the auto-save works if there's a blackout.
@ceoexecutivebusinessman7201
@ceoexecutivebusinessman7201 3 жыл бұрын
You should make the type of saving systems like in old school survival horror games like where you need an “ink ribbon” to save
@MattAspland
@MattAspland 3 жыл бұрын
Great idea, I'll add it to my list :)
@chetanamali956
@chetanamali956 Жыл бұрын
how to save & load the rotation Of first-person camera/player??
@Jimmybear06
@Jimmybear06 3 жыл бұрын
the BIGGEST lifesaver in the world..
@MattAspland
@MattAspland 3 жыл бұрын
Always a pleasure to help out!! :)
@anotherdayanotherslay6125
@anotherdayanotherslay6125 3 жыл бұрын
Can you make footstep sounds but without mesh?
@MattAspland
@MattAspland 3 жыл бұрын
Do you still have animations at all? That would be easier. But yeah, you could have it so that when you are walking forwards (i.e. holding W), it will play the footstep sfx every few seconds, and have it stop that loop if you let go of W. Hope that makes sense, let me know if you need extra help with it :)
@LDT7Y
@LDT7Y 2 жыл бұрын
@@MattAspland How do you get it to change the sound based on the terrain (i.e. splash noises for crossing a shallow river, louder footsteps for a stone path, quieter ones for walking on grass, etc)?
@g-dojjo
@g-dojjo 3 жыл бұрын
Thanks bro! this is really great tutorial! But its work when we change level ? ( level name and location save )
@MattAspland
@MattAspland 3 жыл бұрын
Hey, if you save in the new level it should still work perfectly for you I think. I also have a video on choosing which level to load too, hope this helps :) kzbin.info/www/bejne/in6afZaFbJ12mNE
@Anna-ej3xw
@Anna-ej3xw Жыл бұрын
Hi dear Matt. Could you give me a helping hand? It feels like I'm so close to making this work. My code looks literally identical to yours, I've even tried recreating it multiple times. Still, the cast always fails for me when I try to cast to my Save Game. Can you / anyone help me out?
@rttsh1616
@rttsh1616 3 жыл бұрын
I didn’t work for me but still an a amazing tutorial
@MattAspland
@MattAspland 3 жыл бұрын
Hey man, have you double checked that your slot name is spelt the exact same in all references to it, and you have chosen the correct save games you created? If so, you could maybe send some screenshots so I can take a look? All the best, and thank you for your kind words :)
@rttsh1616
@rttsh1616 3 жыл бұрын
Ok how shall I send the screenshots
@MattAspland
@MattAspland 3 жыл бұрын
You could maybe upload them to "imgur.com" and send the link here?
@omarhefnawey1959
@omarhefnawey1959 3 жыл бұрын
Thanks , but how to save when player overlapping an object
@MattAspland
@MattAspland 3 жыл бұрын
Hey, I have a video on checkpoints which save when overlapping an object. Hope this can help, you can use the code you have now, just move it to the same place as in this video :)
@realNoobDog
@realNoobDog 3 жыл бұрын
Nice Video can you make a Tutorial how to make a Dog that follows your Character and if you Press f or e or b you can pet him?
@MattAspland
@MattAspland 3 жыл бұрын
Thanks man, and I can definitely look into that one yeah :)
@realNoobDog
@realNoobDog 3 жыл бұрын
@@MattAspland Thaaaaaanks👍👍
@sakibrahaman6941
@sakibrahaman6941 3 жыл бұрын
Hi Matt, I'm having trouble to package my game on Android platform! It says an "unknown error". Can you fix it? Please 😭😭🙏🙏
@MattAspland
@MattAspland 3 жыл бұрын
Hey, in your error logs, do you have more information, any other errors? Or any compiler errors in any of your blueprints?
@sakibrahaman6941
@sakibrahaman6941 3 жыл бұрын
@@MattAspland noo.. But this error shows on the output log.. not in the error log
@MattAspland
@MattAspland 3 жыл бұрын
@@sakibrahaman6941 Ah okay, does it allow you to see more details for the error?
@sakibrahaman6941
@sakibrahaman6941 3 жыл бұрын
@@MattAspland i don't know, but it only says packaging failed unknown error at the end..
@stormr
@stormr 3 жыл бұрын
@@sakibrahaman6941 watch it as it compiles the package, and look out for any red text as its doing so, that will help you narrow it down, if possible record the compiling of the package as it happens with something free like obs software. so you can pause the video when you see the red text. those are your errors, should help pinpoint you in the right are of whats happening. I had alot of errors to fix in my game when I tried packaging it
@carlosrivadulla8903
@carlosrivadulla8903 3 жыл бұрын
pls, faster
Save And Load If An Actor Is Destroyed - Unreal Engine 4 Tutorial
23:24
Unreal Engine 4 - Save & Load Game EASY Tutorial
9:56
Beardgames
Рет қаралды 41 М.
Super gymnastics 😍🫣
00:15
Lexa_Merin
Рет қаралды 107 МЛН
Save and Load Tutorial - Unreal Engine 5.1+
20:32
Lisowi
Рет қаралды 6 М.
Unreal Engine 4 Сохранение и загрузка в игре
12:57
Cyberstars - Как создать игру
Рет қаралды 16 М.
Recreating Noita's Sand Simulation in C and OpenGL | Game Engineering
10:03
Unreal Engine 4 - Save Your Level & Checkpoints
8:50
Beardgames
Рет қаралды 14 М.
I Optimised My Game Engine Up To 12000 FPS
11:58
Vercidium
Рет қаралды 555 М.
Respawn Checkpoint In Unreal Engine - Tutorial for a Spawning System without Restarting a Level
7:21
Just A Guy Production - Gaming Retro
Рет қаралды 2,9 М.
UE4 Sound Setting Tutorial
15:22
It's Me Bro
Рет қаралды 29 М.