# Steam User Cloud not saving

**URL:** <https://forums.unrealengine.com/t/steam-user-cloud-not-saving/314395>\
**Category:** Platform & Builds\
**Tags:** Steam, unreal-engine, question, CPP\
**Created:** [April 9, 2015, 8:43am UTC](https://forums.unrealengine.com/t/steam-user-cloud-not-saving/314395 "2015-04-09T08:43:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fervensmiber](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fervensmiber](https://forums.unrealengine.com/u/Fervensmiber)\
**Post date:** [April 9, 2015, 8:43am UTC](https://forums.unrealengine.com/t/steam-user-cloud-not-saving/314395/1 "2015-04-09T08:43:22Z")

</div>

I’m trying to save SaveGames to Steam User Cloud, but the file isn’t saved.

I tried to simply save a text file first. I’m creating a test text file to make sure that it exists.  
The UserCloud-\>WriteUserFile(\*UniqueNetId, saveName, FileContents) returns true but when I check the log I have these lines:

LogOnline:Warning: STEAM: Failed to write file to Steam cloud “test.txt”.  
LogOnline:Warning: Async task ‘FOnlineAsyncTaskSteamWriteUserFile bWasSuccessful:0 UserId:_MySteamUserName_ [0x11000023141321] FileName:test.txt’ completed in 0.018661 seconds with 0

The steam implementation works as I get my steam username and we also use other steam features which work.  
Am I missing something?

Thanks!

My function:

```
 bool SaveFileToUserCloud(FString saveName, APlayerController* Controller)
    {
    	IOnlineSubsystem* OnlineSub = IOnlineSubsystem::Get();
    	if (OnlineSub)
    	{
    		IOnlineUserCloudPtr UserCloud = OnlineSub->GetUserCloudInterface();
    		if (UserCloud.IsValid())
    		{
    			FString path = TEXT("SaveGames/" + saveName);
    			FString savePath = FPaths::GameSavedDir();
    			FString fullSavePath = FPaths::Combine(*(FPaths::GameSavedDir()), *path);
    			FFileHelper::SaveStringToFile(TEXT("testi"), *fullSavePath);
    			if (FFileHelper::LoadFileToArray(FileContents, *fullSavePath))
    			{
    				ULocalPlayer* LocalPlayer = Controller->GetWorld()->GetFirstLocalPlayerFromController();
    				TSharedPtr<FUniqueNetId> UniqueNetId = LocalPlayer->GetPreferredUniqueNetId();
    				UserCloud->AddOnWriteUserFileCompleteDelegate(OnWriteUserFileCompleteDelegate);
    				return UserCloud->WriteUserFile(*UniqueNetId, saveName, FileContents);
    				
    			}
    			else
    			{
    				//log error
    			}
    		}
    
    	}
    	//log error
    	return false;
    }
```

---

<div class="post-metadata">

**Author:** ![Crzyhomer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Crzyhomer](https://forums.unrealengine.com/u/Crzyhomer)\
**Post date:** [May 27, 2015, 9:27pm UTC](https://forums.unrealengine.com/t/steam-user-cloud-not-saving/314395/2 "2015-05-27T21:27:33Z")

</div>

Is it possible you haven’t enabled cloud saves for your game with the Steam service? On their admin/landing page you have to enable that.

Do you know which line of code caused the error? Something with engine validation or an actual Steam call that is failing?

[Steamworks](https://partner.steamgames.com/apps/cloud/) “your id”

 ![44344-cloud.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/f/97f58c4f8c65636ae608b9c5f976cec7dd65ebff.png)

---

<div class="post-metadata">

**Author:** ![Fervensmiber](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fervensmiber](https://forums.unrealengine.com/u/Fervensmiber)\
**Post date:** [May 28, 2015, 8:02am UTC](https://forums.unrealengine.com/t/steam-user-cloud-not-saving/314395/3 "2015-05-28T08:02:39Z")

</div>

Hi Josh,  
I have enabled cloud saves from Steam, as shown in the screenshot, so that’s not the cause.

I traced the error coming from (line 143 in OnlineUserCloudInterfaceSteam.cpp)

```
bool FOnlineAsyncTaskSteamWriteUserFile::WriteUserFile(const FUniqueNetId& UserId, const FString& FileToWrite, const TArray<uint8>& Contents)

```

Specifically this line returns false and logs the error:

```
if (SteamRemoteStorage()->FileWrite(TCHAR_TO_UTF8(*FileToWrite), Contents.GetData(), Contents.Num()))

```

From my understanding that’s the Steam call causing the error.  
When I’m trying to write to file using

```
UserCloud->WriteUserFile(*UniqueNetId, saveName, FileContents);

```

the parameters are just as they should be.

Hopefully this helps with tracking down the issue. I’ll be happy to provide more details.

---

<div class="post-metadata">

**Author:** ![Fervensmiber](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fervensmiber](https://forums.unrealengine.com/u/Fervensmiber)\
**Post date:** [May 28, 2015, 8:20am UTC](https://forums.unrealengine.com/t/steam-user-cloud-not-saving/314395/4 "2015-05-28T08:20:19Z")

</div>

OK my issue was that I was giving only the filename to WriteUserFile instead of path. So giving “/MyDir/Myfile.sav” instead of “Myfile.sav” fixed the issue.

Thanks for looking into this.

---

<div class="post-metadata">

**Author:** ![Crzyhomer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Crzyhomer](https://forums.unrealengine.com/u/Crzyhomer)\
**Post date:** [May 28, 2015, 7:04pm UTC](https://forums.unrealengine.com/t/steam-user-cloud-not-saving/314395/5 "2015-05-28T19:04:59Z")

</div>

Have you validated all the inputs? The filename, the amount of content and size all match?

I’m just running through a checklist. Are you logged in? Write permissions in the directory Valve stores the data locally?

Unfortunately Valve’s true/false doesn’t tell you much about why it failed. There is a cloud\_log.txt file in the Steam\logs directory of your Steam client. It may have some clues as to why the write failed.

There are also some debug console commands in the Steam client for cloud. It’s been a while since I used it, but you can search for it on Valve’s site although I recall it being hard to find.

C:\SteamDev\Steam.exe -console +set\_spew cloud 3 4 +log\_ipc verbose remotestorage

It was such an easy API to implement that we must be missing a setting or something simple here.

Sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![Crzyhomer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Crzyhomer](https://forums.unrealengine.com/u/Crzyhomer)\
**Post date:** [May 28, 2015, 7:05pm UTC](https://forums.unrealengine.com/t/steam-user-cloud-not-saving/314395/6 "2015-05-28T19:05:24Z")

</div>

Ha, I see it was something simple 🙂 I didn’t think of that. Well keep the debugging cmdlines around for future use as well.

---

<div class="post-metadata">

**Author:** ![rexy729](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rexy729](https://forums.unrealengine.com/u/rexy729)\
**Post date:** [November 30, 2022, 5:47pm UTC](https://forums.unrealengine.com/t/steam-user-cloud-not-saving/314395/7 "2022-11-30T17:47:00Z")

</div>

Should I pay to be a steam developer then I can enable thise feature ?

---

<div class="post-metadata">

**Author:** ![FenrisianViking](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FenrisianViking](https://forums.unrealengine.com/u/FenrisianViking)\
**Post date:** [December 21, 2023, 10:45pm UTC](https://forums.unrealengine.com/t/steam-user-cloud-not-saving/314395/8 "2023-12-21T22:45:27Z")

</div>

Question concerning  
`return UserCloud->WriteUserFile(*UniqueNetId, saveName, FileContents);`  
When looking at the documentation and your code I am assuming “SaveName” is the path and the “.sav” file or just the “.sav” file? Also FileContents appears to be a uint8…where are you getting the file contents?

---

<div class="post-metadata">

**Author:** ![FenrisianViking](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FenrisianViking](https://forums.unrealengine.com/u/FenrisianViking)\
**Post date:** [December 22, 2023, 3:23pm UTC](https://forums.unrealengine.com/t/steam-user-cloud-not-saving/314395/9 "2023-12-22T15:23:28Z")

</div>

Never mind I kinda found the answer. you are using Write to memory prior to sending it through the cloud im guessing

---

<div class="post-metadata">

**Author:** ![HashemShepard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hashemshepard/32/1201564_2.png) [@HashemShepard](https://forums.unrealengine.com/u/HashemShepard)\
**Post date:** [January 25, 2026, 9:47pm UTC](https://forums.unrealengine.com/t/steam-user-cloud-not-saving/314395/10 "2026-01-25T21:47:48Z")

</div>

did you try t

i think you might want to take a look at this one here [Save System / Cloud Save / Encryption / Slot management | Fab](https://www.fab.com/listings/1268f6a9-7ba8-4f30-91b8-73618d593252)

---

<div class="post-metadata">

**Author:** ![ShadowBr0kerz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shadowbr0kerz/32/1201558_2.png) [@ShadowBr0kerz](https://forums.unrealengine.com/u/ShadowBr0kerz)\
**Post date:** [September 6, 2026, 12:11pm UTC](https://forums.unrealengine.com/t/steam-user-cloud-not-saving/314395/11 "2026-09-06T12:11:06Z")

</div>

that log Failed to write file to Steam cloud usually means steamworks cloud not configured or quota hit - WriteUserFile can return true locally but async task fails server side

check steam partner Cloud tab is enabled, Byte quota set, and file size under quota. also make sure UniqueNetId is valid at call time (wait for login complete) and you are not writing every tick

advanced save system from fab [Save System / Cloud Save / Encryption / Slot management | Fab](https://www.fab.com/listings/1268f6a9-7ba8-4f30-91b8-73618d593252) wraps this so you dont debug raw WriteUserFile - it does Steam Cloud + EOS with auto detection, does the byte serialize and retry for you, still works local if cloud not set up
