<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://modiki.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=Steam.GetCloudSaves_%28Civ5_API%29</id>
	<title>Steam.GetCloudSaves (Civ5 API) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://modiki.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=Steam.GetCloudSaves_%28Civ5_API%29"/>
	<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=Steam.GetCloudSaves_(Civ5_API)&amp;action=history"/>
	<updated>2026-04-20T07:00:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://modiki.civfanatics.com/index.php?title=Steam.GetCloudSaves_(Civ5_API)&amp;diff=12687&amp;oldid=prev</id>
		<title>DonQuich: Bot update</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=Steam.GetCloudSaves_(Civ5_API)&amp;diff=12687&amp;oldid=prev"/>
		<updated>2012-09-20T11:11:27Z</updated>

		<summary type="html">&lt;p&gt;Bot update&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Civ5 API Beta Banner}}&lt;br /&gt;
&amp;#039;&amp;#039;This page is a part of the [[Lua and UI Reference (Civ5)]].&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TypeInfos5|Function.png|This function is a member of {{Type5|Steam}}.&amp;lt;br/&amp;gt;&lt;br /&gt;
This is a static method, invoke it with a dot.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Obtains information about all Steam Cloud saved games&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&amp;lt;code&amp;gt;table({{Type5|SpecialistType}} =&amp;gt; {{Type5|FileHeader}}) Steam.GetCloudSaves&amp;lt;b&amp;gt;(&amp;lt;/b&amp;gt;&amp;lt;b&amp;gt;)&amp;lt;/b&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Returned Value&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:Returns an list of tables where each table is information about a specific save.&lt;br /&gt;
:The table is indexed by the save slot number.&lt;br /&gt;
:NOTE: Empty save slots are nil in the table and thus you should not iterate using ipairs.&lt;br /&gt;
:Each save in the list has the following fields:&lt;br /&gt;
::PlayerCivilization - &amp;#039;&amp;#039;The current player&amp;#039;s Civilizations type.&lt;br /&gt;
::GameSpeed - &amp;#039;&amp;#039;The GameSpeeds type.&lt;br /&gt;
::StartEra - &amp;#039;&amp;#039;The starting Eras type.&lt;br /&gt;
::CurrentEra - &amp;#039;&amp;#039;The current Eras type.&lt;br /&gt;
::TurnNumber - &amp;#039;&amp;#039;The current turn number.&lt;br /&gt;
::Difficulty - &amp;#039;&amp;#039;The HandicapInfos type currently in use.&lt;br /&gt;
::WorldSize - &amp;#039;&amp;#039;The Worlds type currently in use.&lt;br /&gt;
::MapScript- &amp;#039;&amp;#039;The name of the map script or Worldbuilder map used.&lt;br /&gt;
::CivilizationName - &amp;#039;&amp;#039;The user-supplied Civilization Name.&lt;br /&gt;
::LeaderName - &amp;#039;&amp;#039;The user-supplied Leader Name.&lt;br /&gt;
::PlayerColor - &amp;#039;&amp;#039;The PlayerColor Type.&lt;br /&gt;
::ActivatedMods - &amp;#039;&amp;#039;This is an array of tables.&lt;br /&gt;
:Each activated mod entry has the following fields:&lt;br /&gt;
:ModID - &amp;#039;&amp;#039;The GUID of the Mod.&lt;br /&gt;
:Version - &amp;#039;&amp;#039;The Version of the Mod.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Examples=&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; class=&amp;quot;civ5-example&amp;quot;&amp;gt;&lt;br /&gt;
for i, save in pairs(Steam.GetCloudSaves()) do&lt;br /&gt;
local civ_description = GameInfo.Civilizations[saves.PlayerCivilization].Description;&lt;br /&gt;
local localized_civ = Locale.ConvertTextKey(civ_description);&lt;br /&gt;
print(string.format(&amp;quot;Slot %i: %s - Turn %i&amp;quot;, i, localized_civ, save.TurnNumber));&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Source code samples=&lt;br /&gt;
{{PseudoH4|LoadMenu.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/FrontEnd/LoadMenu.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0707}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;g_CloudSaves = Steam.GetCloudSaves();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|SaveMenu.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/Menus/SaveMenu.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0502}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local cloudSaveData = Steam.GetCloudSaves();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Civ5 API Footer}}&lt;br /&gt;
[[Category:Civ5 Methods and Functions|GetCloudSaves]]&lt;/div&gt;</summary>
		<author><name>DonQuich</name></author>
	</entry>
</feed>