<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Building Browsergames - Latest Comments in Designing your game&amp;#8217;s database</title><link>http://bbgames.disqus.com/</link><description></description><atom:link href="https://bbgames.disqus.com/designing_your_game8217s_database/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 17 Nov 2013 07:00:10 -0000</lastBuildDate><item><title>Re: Designing your game&amp;#8217;s database</title><link>http://buildingbrowsergames.com/2008/04/15/designing-your-database/#comment-1126791195</link><description>&lt;p&gt;Hi there !&lt;/p&gt;&lt;p&gt;If you don't want your tables to large, you also can use  `varchar(200)` except of `Char(200)`. But because it's variable, it's better top put it on the end of the field list. So the non variable lengths are first. If you want to speed op the finding and indexing change the varchar to fixed size char. Disks capacity is very cheap this days, also with hosting. And if you have data that isn't relational, just put it in a file. You don't need a database for all your data. Only a relational database for relational data, or special databases for reporting, transactions or other special stuff. But most of the time a file like XML will do.&lt;/p&gt;&lt;p&gt;Like:&lt;/p&gt;&lt;p&gt;&amp;lt;parseinbrowser&amp;gt;&lt;br&gt;  &amp;lt;classes&amp;gt;&lt;br&gt;      &amp;lt;thisuser_isalive&amp;gt;$FromScriptResult()&amp;lt;/thisuser_isalive&amp;gt;&lt;br&gt;&amp;lt;thisuser_monney&amp;gt;$FromDatabase()&amp;lt;/thisuser_monney&amp;gt;&lt;br&gt;$FromFile&lt;br&gt;&amp;lt;/classes&amp;gt;&lt;br&gt;&amp;lt;/parseinbrowser&amp;gt;&lt;/p&gt;&lt;p&gt;$FromFile =&amp;gt; &amp;lt;thisuser_info&amp;gt;....&amp;lt;/thisuser_info&amp;gt; (Not really changing, like name, age, sex, location or other game stuff, like he is a dragon or what ever...)&lt;/p&gt;&lt;p&gt;Html example with language !&lt;br&gt;&amp;lt;div&amp;gt;&lt;/p&gt;&lt;p&gt;You have[span class="thisuser_monney"][/span]Credit's on you account&lt;/p&gt;&lt;p&gt;&amp;lt;div&amp;gt;&amp;lt;script&amp;gt;parseXML("MyGame.php?info")&amp;lt;/script&amp;gt;&lt;/p&gt;&lt;p&gt;And without:&lt;/p&gt;&lt;p&gt;&amp;lt;div&amp;gt;[p class="language_credits"][/p]&amp;lt;div&amp;gt;&lt;br&gt;&amp;lt;script&amp;gt;parseXML("MyGame.php?Language=Eng&amp;amp;info")&amp;lt;/script&amp;gt;&lt;/p&gt;&lt;p&gt;Happy hacking.&lt;/p&gt;&lt;p&gt;Sorry to hear, that you stoped with your site. Maybe i have to create my own or start a browsergame +Page on google.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roger Keulen</dc:creator><pubDate>Sun, 17 Nov 2013 07:00:10 -0000</pubDate></item><item><title>Re: Designing your game&amp;#8217;s database</title><link>http://buildingbrowsergames.com/2008/04/15/designing-your-database/#comment-159704191</link><description>&lt;p&gt;Thanks～&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tiwafic</dc:creator><pubDate>Thu, 03 Mar 2011 02:48:52 -0000</pubDate></item><item><title>Re: Designing your game&amp;#8217;s database</title><link>http://buildingbrowsergames.com/2008/04/15/designing-your-database/#comment-45946369</link><description>&lt;p&gt;in your database! this is what the article is discussing&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SparK</dc:creator><pubDate>Thu, 22 Apr 2010 02:33:20 -0000</pubDate></item><item><title>Re: Designing your game&amp;#8217;s database</title><link>http://buildingbrowsergames.com/2008/04/15/designing-your-database/#comment-38742998</link><description>&lt;p&gt;Very good meaningful article about database normalization and its benefits. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Said Bakr</dc:creator><pubDate>Tue, 09 Mar 2010 17:12:40 -0000</pubDate></item><item><title>Re: Designing your game&amp;#8217;s database</title><link>http://buildingbrowsergames.com/2008/04/15/designing-your-database/#comment-38463046</link><description>&lt;p&gt;where do i write all this things!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nikolas</dc:creator><pubDate>Sun, 07 Mar 2010 16:05:53 -0000</pubDate></item><item><title>Re: Designing your game&amp;#8217;s database</title><link>http://buildingbrowsergames.com/2008/04/15/designing-your-database/#comment-26745904</link><description>&lt;p&gt;The reason that items got done this way(as opposed to user accounts)&lt;br&gt;isn't really because of OOP at all, so much as flexibility - this&lt;br&gt;tutorial started out without much of a plan for where it would go, and&lt;br&gt;I wanted as much flexibility as possible when it came to adding new&lt;br&gt;items.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Luke</dc:creator><pubDate>Sun, 20 Dec 2009 17:59:35 -0000</pubDate></item><item><title>Re: Designing your game&amp;#8217;s database</title><link>http://buildingbrowsergames.com/2008/04/15/designing-your-database/#comment-25998064</link><description>&lt;p&gt;I have just started learning PHP/mySQL in the last couple weeks, and I am trying to follow along with your awesome tutorials.  I noticed something, which I am hoping you could help me understand a little better.&lt;br&gt;&lt;br&gt;I noticed that you are taking an OOP approach to the items, stats, etc, but you didn't do this for user accounts.  Is this a standard practice for databases, or was it just something that wasn't really thought about at the time you wrote this tutorial?&lt;br&gt;&lt;br&gt;As an example, if we followed the OOP approach, we would have two tables for user accounts.  One would define what an account was, the other would be the list of accounts.&lt;br&gt;&lt;br&gt;Could you or anyone else tell me, if this would be a good or bad design architecture?  I plan to have one account, with three character slots, which will be tied to the user account.  I also plan to have a few other options, such as 'get_news', 'user_address', etc.&lt;br&gt;&lt;br&gt;Please bare with me and keep in mind the first time I have looked at this stuff was about a week ago when I was lucky enough to find your tutorials.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">BUnzaga</dc:creator><pubDate>Wed, 16 Dec 2009 22:01:24 -0000</pubDate></item><item><title>Re: Designing your game&amp;#8217;s database</title><link>http://buildingbrowsergames.com/2008/04/15/designing-your-database/#comment-15309314</link><description>&lt;p&gt;This is a very good introduction, it's down to earth and makes sense, thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">daglees</dc:creator><pubDate>Mon, 24 Aug 2009 11:13:16 -0000</pubDate></item></channel></rss>