Why isn't UE 4.8 saving data on Android?

Could you uncheck the “package in an apk file” button, repackage the tappy chicken game, delete the udkgame save folder in device, install the game and send us the results please? (If you take the screenshots of steps I will thank)… I really don’t think it’s solved…

I’ve SOLVED creating a new project in 4.8 from scratch and copying all assets from the converted project into the new.

I am looking into this possibility, but I need to double check it with the Android dev when he is free. In the meantime, directly below Bugbuster77 has posted a potential workaround.

Good luck!

Could you uncheck the “package in an apk file” button, repackage your game, delete the udkgame save folder in device, install the game and send us the results please?

I have just done what Bugbuster77 posted… and the problem continues happening (It doesn’t save the game) :frowning:

Hi all,

It does appear that packaging the obb outside the apk causes the SaveGame folder to not be automatically generated. To this end, I have put this in as an issue for our developers to check on. For reference, the issue is UE-17385. I will update this thread when I have any information as to its status.

Thanks!

Thanks… but I think I can wait 5 more days (I’m trying to publish a game made just in Blueprint … without C++ :wink:

The UE4Game directory wasn’t being created. There is a fix in master branch of GitHub to AndroidFile:
(Engine\Source\Runtime\Core\Private\Android\AndroidFile.cpp)

	// make sure the base path directory exists (UE4Game and UE4Game/ProjectName)
	FString FileBaseDir = GFilePathBase + FString(FILEBASE_DIRECTORY);
	mkdir(TCHAR_TO_UTF8(*FileBaseDir), 0766);
	mkdir(TCHAR_TO_UTF8(*(FileBaseDir + GAndroidProjectName)), 0766);

Add the above to the end of Initialize(IPlatformFile* Inner, const TCHAR* CmdLine) function right before the return true. Here is a link to the GitHub commit for this fix, but it will be in 4.8.2 as well:

https://github.com/EpicGames/UnrealEngine/commit/0b40fd651b712916e95913101e64088d5bc719c7

I also recommend if you use GitHub to also get this important fix for threaded async file reads:

https://github.com/EpicGames/UnrealEngine/commit/8f98bc9a2049667f41a7fa45ee3fd1ecddd9a134

Could you please explain why this issue was not solved in this last release?

For reasons unknown to me it was not included in the 4.8.1 hotfix. There is a prioritization method that support isn’t necessarily privy to. It is fixed, and I’m hoping it is integrated into a subsequent hotfix, but there’s no way that I can ever guarantee what issues will make it into what releases.

If you want to make the case for it to be included (Epic takes feedback from the community pretty seriously), I’d mention it in the forums in either the feedback or the annoucements sections.

There’s always the temp fix that the dev posted above if you are severely blocked by this.

Thank you very much!

Hey, wittlief! Could you please specify where I have to put the code of Chris Babcock? I remind you have posted it, but it seems it was deleted… I’m really sick of waiting for a new release with this issue solved…

hey, he edited the first answer there to provide exact steps of how to apply this fix.

Thank you very much!!! (sorry by bothering you)