<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.xna.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Samples, Starter Kits, Tutorials</title><link>http://forums.xna.com/forums/59.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 0.0)</generator><item><title>Re: RPG Start Kit: Player Data / Player Save Data</title><link>http://forums.xna.com/forums/thread/86957.aspx</link><pubDate>Tue, 02 Sep 2008 08:42:23 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:86957</guid><dc:creator>bixel</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/86957.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=59&amp;PostID=86957</wfw:commentRss><description>Here is the most important part
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // write the party data&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new XmlSerializer(typeof(PartySaveData)).Serialize(xmlWriter,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new PartySaveData(singleton.party));&lt;/p&gt;
&lt;p&gt;but then its get crazy from then on - check PartySaveData - which is storing some values, the check PlayerSaveData which is storing values from Player, FightingCharacter, CharacterClass, and...maybe one other class file. Yikes! Just trying to track down where the updated Statistics and Exp was painful enough. Which is why I may try to simplify things - like someplace holder - however that would mean constant reading and writing from the harddrive - which we probably want to avoid. Its the wild goosechase of the stored variables that is confusing me.&lt;/p&gt;
&lt;br /&gt;</description></item><item><title>Re: RPG Start Kit: Player Data / Player Save Data</title><link>http://forums.xna.com/forums/thread/86923.aspx</link><pubDate>Tue, 02 Sep 2008 03:02:58 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:86923</guid><dc:creator>Sequence</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/86923.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=59&amp;PostID=86923</wfw:commentRss><description>From what I have noticed, or missed. I noticed that once you overwrite a saved game that it jumps into the xml streamwriter. But if you save for the first time it doesn&amp;#39;t do that. I could be wrong, but for future development, it should allow you to enter a name to save as.</description></item><item><title>Re: RPG Start Kit: Player Data / Player Save Data</title><link>http://forums.xna.com/forums/thread/86916.aspx</link><pubDate>Tue, 02 Sep 2008 02:31:16 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:86916</guid><dc:creator>Sequence</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/86916.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=59&amp;PostID=86916</wfw:commentRss><description>&lt;p&gt;Ok I found it. Use the find command(ctrl+f)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;type in &lt;font size="2"&gt;SaveSessionResult&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Once you find this, you should see alot of code to save to an xml file. It was a lucky guess on my part.&lt;/p&gt;
&lt;/font&gt;</description></item><item><title>Re: RPG Start Kit: Player Data / Player Save Data</title><link>http://forums.xna.com/forums/thread/86914.aspx</link><pubDate>Tue, 02 Sep 2008 02:28:12 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:86914</guid><dc:creator>Sequence</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/86914.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=59&amp;PostID=86914</wfw:commentRss><description>&lt;p&gt;I just started this tutorial and haven&amp;#39;t really looked at much, but I plan on it. I am a database developer and have been programming for almost 4 years now. 3 Years vb, 1yr C#. &lt;/p&gt;
&lt;p&gt;This sounds like a place for XML to take over.&amp;nbsp; At our company we save alot of large file segments to an xml document that has no need to connect. It is in VB which makes it hard to convert. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will look into it more, and hopefully find it, LINE BY LINE :)&lt;/p&gt;</description></item><item><title>RPG Start Kit: Player Data / Player Save Data</title><link>http://forums.xna.com/forums/thread/85388.aspx</link><pubDate>Mon, 25 Aug 2008 23:08:49 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:85388</guid><dc:creator>bixel</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/85388.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=59&amp;PostID=85388</wfw:commentRss><description>&lt;font face="Arial"&gt;&lt;span style="font-size:10pt;font-family:monospace;"&gt;&lt;span style="font-family:monospace;"&gt;
&lt;br /&gt;
I am finding a hard time trying to figure out what is exactly holding and saving the data for the player(s) in the party.&lt;br /&gt;
&lt;br /&gt;
seems to me StatisticsValue.cs seems to create&lt;br /&gt;
HitPoints&lt;br /&gt;
MagicPoints&lt;br /&gt;
Offense&lt;br /&gt;
Defense&lt;br /&gt;
&amp;nbsp;&amp;nbsp; but all of this is arbitrary and not recorded yet&lt;br /&gt;
&lt;br /&gt;
then along comes FightingCharacter.cs, which seems to create&lt;br /&gt;
DamageRange&lt;br /&gt;
DefenseRange&lt;br /&gt;
MagicDefenseRange&lt;br /&gt;
Experience&lt;br /&gt;
and recalculates the StatisticsValue values depending on Equipment equipped&lt;br /&gt;
&lt;br /&gt;
then there is Player.cs which is only used when adding or removing characters to the Party, it seems to record and read&lt;br /&gt;
gold; the amount of gold this player has when it joins the party.&lt;br /&gt;
and thats it&lt;br /&gt;
&lt;br /&gt;
However at CombatEngine.cs, combat ended; it wraps all this together and Arbitrarily saves it - somewhere....&lt;br /&gt;
&lt;br /&gt;
then PartySave.cs seems to save all the data, but how to get the data???&lt;br /&gt;
&lt;br /&gt;
my problem is:&lt;br /&gt;
at any point if I wanted to say retrieve the value of a Player I get so confused because I cannot simply say&lt;br /&gt;
&lt;br /&gt;
int getTotalEXP = player.Nykkas.exp;&lt;br /&gt;
&lt;br /&gt;
depending on where I am (which class I am calling from) I can never rely on a single location for the data to be stored. I am thinking I should create separate classes for the players, and write and save data to them instead. That way where ever I may be asking for data from that player I can get it.&lt;br /&gt;
&lt;br /&gt;
player.Nykkas.expRecent == experience points saved from last battle&lt;br /&gt;
player.Nykkas.exp == experience points saved from last save point&lt;br /&gt;
&lt;br /&gt;
Please give me your thoughts. Also is anybody else finding data tracking difficult??&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;</description></item></channel></rss>