<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Building Browsergames - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-a830839b" type="application/json"/><link>http://bbgames.disqus.com/</link><description></description><language>en</language><lastBuildDate>Wed, 01 Jul 2009 15:20:25 -0000</lastBuildDate><item><title>Re: Building Browsergames: a simple combat system (PHP)</title><link>http://buildingbrowsergames.com/2008/06/11/building-browsergames-a-simple-combat-system/#comment-11992082</link><description>I get errors like this: &lt;br&gt;"Notice: Use of undefined constant attacker - assumed 'attacker' in /Users/Niels/Sites/bg/smarty/bg/forest.php on line 53"&lt;br&gt;&lt;br&gt;Caused by the arrays:&lt;br&gt;$combat[$turns] = array(&lt;br&gt;				attacker	=&amp;gt;	$attacker['name'],&lt;br&gt;				defender	=&amp;gt;	$defender['name'],&lt;br&gt;				damage		=&amp;gt;	$damage&lt;br&gt;			);&lt;br&gt;&lt;br&gt;I fixed it this way:&lt;br&gt;$combat[$turns] = array(&lt;br&gt;				'attacker'	=&amp;gt;	$attacker['name'],&lt;br&gt;				'defender'	=&amp;gt;	$defender['name'],&lt;br&gt;				'damage'		=&amp;gt;	$damage&lt;br&gt;			);&lt;br&gt;&lt;br&gt;PS: I realy like this tutorial, i was searching a long time for something like this :) .</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Xenon</dc:creator><pubDate>Wed, 01 Jul 2009 15:20:25 -0000</pubDate></item><item><title>Re: We&amp;#8217;re Finished!</title><link>http://buildingbrowsergames.com/2009/02/19/were-finished/#comment-11703575</link><description>I read this tutorial and it help me get in the mindset I needed to be in to start my first big project. Nice job on the tut and I look forward to reading more from you. If you want to check out my game hit me up and I'll pass a link.&lt;br&gt;&lt;br&gt;-M-</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mystic</dc:creator><pubDate>Wed, 24 Jun 2009 18:23:21 -0000</pubDate></item><item><title>Re: Building Browsergames: Implementing a flexible stats system (PHP)</title><link>http://buildingbrowsergames.com/2008/05/06/building-browsergames-implementing-a-flexible-stats-system-php/#comment-10709041</link><description>You're missing the string formatting that puts arguments into your SQL&lt;br&gt;statement - add that, and you should be good to go.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbgames</dc:creator><pubDate>Wed, 10 Jun 2009 15:06:16 -0000</pubDate></item><item><title>Re: Building Browsergames: Implementing a flexible stats system (PHP)</title><link>http://buildingbrowsergames.com/2008/05/06/building-browsergames-implementing-a-flexible-stats-system-php/#comment-10704845</link><description>"SELECT value FROM user_stats WHERE stat_id = (SELECT id FROM stats WHERE display_name = &amp;lt;foo&amp;gt; OR short_name = &amp;lt;foo&amp;gt;) AND user_id = &amp;lt;bar&amp;gt;"&lt;br&gt;&lt;br&gt;i have inserted this into sql query.. however, the error message came out as below:&lt;br&gt;&lt;br&gt;"MySQL said: &lt;br&gt;&lt;br&gt;#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '&amp;lt;foo&amp;gt; OR short_name = &amp;lt;foo&amp;gt;) AND user_id = &amp;lt;bar&amp;gt;&lt;br&gt;LIMIT 0, 30' at line 1"&lt;br&gt;&lt;br&gt;what should I do now?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sHyuAn</dc:creator><pubDate>Wed, 10 Jun 2009 13:26:02 -0000</pubDate></item><item><title>Re: We&amp;#8217;re Finished!</title><link>http://buildingbrowsergames.com/2009/02/19/were-finished/#comment-10557807</link><description>The source is definitely all still there - take a look at&lt;br&gt;&lt;a href="http://code.google.com/p/building-browsergames-tutorial/" rel="nofollow"&gt;http://code.google.com/p/building-browsergames-...&lt;/a&gt;, and click on the&lt;br&gt;'Source' tab.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbgames</dc:creator><pubDate>Sat, 06 Jun 2009 01:28:07 -0000</pubDate></item><item><title>Re: We&amp;#8217;re Finished!</title><link>http://buildingbrowsergames.com/2009/02/19/were-finished/#comment-10553193</link><description>This was all a great help. I've noticed that the source codes aren't on google anymore. Could you please repost them  somewhere or could someone who already has them send them to me via email ?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vlad</dc:creator><pubDate>Fri, 05 Jun 2009 20:15:44 -0000</pubDate></item><item><title>Re: Building Browsergames: Adding Stats (PHP)</title><link>http://buildingbrowsergames.com/2008/06/03/building-browsergames-adding-stats-php/#comment-9720108</link><description>Ive got the same problem, when register it just say it couldnt connect to mysql db, altough it adds the user in the db, it wont add the stats. Oh, and the confirmation mail wont work either.&lt;br&gt;The problem only happen when i tried to add:&lt;br&gt;			$userID = mysql_insert_id($conn);&lt;br&gt;			require_once 'stats.php';&lt;br&gt;			setStat('atk',$userID,'5');&lt;br&gt;			setStat('def',$userID,'5');			&lt;br&gt;			setStat('mag',$userID,'5');&lt;br&gt;&lt;br&gt;anyone can help me out? thanks in advance</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mariano</dc:creator><pubDate>Thu, 21 May 2009 05:39:09 -0000</pubDate></item><item><title>Re: Hosting Review: Slicehost</title><link>http://buildingbrowsergames.com/2008/07/30/hosting-review-slicehost/#comment-9183084</link><description>I've been a customer for over a year now. My review - good support, best bonus features on the market, and with the low price it is even better! A+</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">web hosting reviews</dc:creator><pubDate>Sun, 10 May 2009 12:23:53 -0000</pubDate></item><item><title>Re: Putting It All Together (Ruby on Rails)</title><link>http://buildingbrowsergames.com/2008/09/05/putting-it-all-together-ruby-on-rails/#comment-9106320</link><description>thank a lot&lt;br&gt;I am going to try it myself now, hopefully my expieriance with html will help, lol&lt;br&gt;regards</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">freelance_web_designer</dc:creator><pubDate>Thu, 07 May 2009 16:34:40 -0000</pubDate></item><item><title>Re: Building Browsergames: Putting it all together (PHP)</title><link>http://buildingbrowsergames.com/2008/05/30/building-browsergames-putting-it-all-together-php/#comment-8923348</link><description>no it puts ur session into an array</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">a`a</dc:creator><pubDate>Sat, 02 May 2009 07:51:25 -0000</pubDate></item><item><title>Re: Building Browsergames: Implementing an e-mail confirmation system (PHP)</title><link>http://buildingbrowsergames.com/2008/05/09/building-browsergames-implementing-an-e-mail-confirmation-system-php/#comment-8922585</link><description>Hey Shade, which variable was wrong? I've been trying to follow your code and I can't find the bug.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tem</dc:creator><pubDate>Sat, 02 May 2009 05:43:20 -0000</pubDate></item><item><title>Re: Make your game known: an Open Approach</title><link>http://buildingbrowsergames.com/2008/10/07/make-your-game-known-an-open-approach/#comment-8858524</link><description>Tks a lot for the share Thijs. I've been playing to dolumar and the game is really nice. The map with ajax calls in the background to reload it is really well done. I know you guys are a small team of programmers but clearly you guys have a real passion for games. I will try your code on my site. Tks!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">playgames</dc:creator><pubDate>Thu, 30 Apr 2009 07:02:08 -0000</pubDate></item><item><title>Re: Stop Using MD5</title><link>http://buildingbrowsergames.com/2009/04/14/stop-using-md5/#comment-8826560</link><description>Bah... the guy bashing security through obscurity is a moron or simply approaching the subject way too narrowly.  First, no one is suggesting that you EVER use ONLY security by obscurity, but that you use it in addition to all other best practices as well. Not only that, but obscurity isn't limited by simply changing your database names from the generic 'password' name to something like 'pWord'.  There are lots of things you can do:&lt;br&gt;&lt;br&gt;- Use Post instead of Get&lt;br&gt;- Don't use common file names like admin.php, config.php, etc.&lt;br&gt;- Hide your files by starting your directories with a period&lt;br&gt;- Generate random field names for each users request.&lt;br&gt;&lt;br&gt;These methods aren't the end-all-be-all of security, but when used in conjunction with other best practices, they make it that much more difficult for a would-be villain to nab your stuff.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bob Dole</dc:creator><pubDate>Wed, 29 Apr 2009 17:18:08 -0000</pubDate></item><item><title>Re: Designing Browsergames: a flexible stats system</title><link>http://buildingbrowsergames.com/2008/05/05/designing-browsergames-a-flexible-stats-system/#comment-8694595</link><description>It would actually be just as fast to do it this way as in 1 table... for example:&lt;br&gt;&lt;br&gt;3 tables, users, stats, user_stats (to use the example tables)&lt;br&gt;&lt;br&gt;I want to grab the stat "Attack" for the user with ID 1. &lt;br&gt;&lt;br&gt;Attack's ID = 1, User ID = 1. SO&lt;br&gt;&lt;br&gt;SELECT `user_stats`.`value` FROM `user_stats`,`stats`,`users` WHERE `user_stats`.`userid` = `users`.`id` AND `user_stats`.`statid` = `stats`.`id` WHERE `users`.`id`=1 AND `stats`.`id`=1 LIMIT 1;&lt;br&gt;&lt;br&gt;And there you have it.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anubis</dc:creator><pubDate>Sat, 25 Apr 2009 21:26:19 -0000</pubDate></item><item><title>Re: Building Browsergames: The Registration Page (PHP)</title><link>http://buildingbrowsergames.com/2008/04/17/building-browsergames-the-registration-page-php/#comment-8635779</link><description>If you're getting that error, it means that something is wrong with your&lt;br&gt;connection to MySQL - double check the values that you passed to&lt;br&gt;mysql_connect.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbgames</dc:creator><pubDate>Thu, 23 Apr 2009 22:23:24 -0000</pubDate></item><item><title>Re: Building Browsergames: The Registration Page (PHP)</title><link>http://buildingbrowsergames.com/2008/04/17/building-browsergames-the-registration-page-php/#comment-8634424</link><description>Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/a8891953/public_html/register.php on line 15&lt;br&gt;&lt;br&gt;That is what I get when trying to register.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gradient</dc:creator><pubDate>Thu, 23 Apr 2009 21:25:08 -0000</pubDate></item><item><title>Re: Building Browsergames: Healing your players (PHP)</title><link>http://buildingbrowsergames.com/2008/06/17/building-browsergames-healing-your-players-php/#comment-8486408</link><description>That'd definitely be better for the sake of minimizing database hits - while&lt;br&gt;I was building these scripts, I'm afraid they sort of grew organically, so&lt;br&gt;optimizations that should have been made sometimes didn't.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbgames</dc:creator><pubDate>Tue, 21 Apr 2009 11:14:01 -0000</pubDate></item><item><title>Re: Building Browsergames: Healing your players (PHP)</title><link>http://buildingbrowsergames.com/2008/06/17/building-browsergames-healing-your-players-php/#comment-8480583</link><description>Hi! Firstly, I'd just like to say thank you for putting this site together. Its truly awesome and has given me a bit of a kick to actually stop thinking about doing something, and actually doing something!&lt;br&gt;&lt;br&gt;Secondly, on line 28, you poll the database to get the current gold count, yet on line 20 you've already done this and not changed it. Wouldn't it be more efficient to insert a line above 28 such as:&lt;br&gt;$gold = $gold - $amount;&lt;br&gt;and then change the setStat to:&lt;br&gt;setStat( 'gc', $userID, $gold);&lt;br&gt;&lt;br&gt;You could do the same with the actual healing value as well. Avoid two calls to getStat('curhp',$userID) as you've already got that value.&lt;br&gt;&lt;br&gt;From a performance point of view wouldn't this be better?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rick</dc:creator><pubDate>Tue, 21 Apr 2009 05:07:41 -0000</pubDate></item><item><title>Re: Building Browsergames: DRYing out our database connections (PHP)</title><link>http://buildingbrowsergames.com/2008/07/09/drying-out-our-database-connections-php/#comment-8464721</link><description>I don't think you really should do this. Later there will be much more values in it and you dont want to connect to mysql always when you include the file. Also I would start searching in the config for the mysql config and not in the database file</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">BBBB</dc:creator><pubDate>Mon, 20 Apr 2009 15:47:07 -0000</pubDate></item><item><title>Re: Stop Using MD5</title><link>http://buildingbrowsergames.com/2009/04/14/stop-using-md5/#comment-8201550</link><description>I use static salt, dinamic salt and sha1. A very good article about this can be found on CodeIgniter's Portal : &lt;a href="http://codeigniter.com/news/codeigniter_community_voice_mathew_davies/" rel="nofollow"&gt;http://codeigniter.com/news/codeigniter_communi...&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">George Olah</dc:creator><pubDate>Tue, 14 Apr 2009 13:37:59 -0000</pubDate></item><item><title>Re: Building Browsergames: Implementing an e-mail confirmation system (PHP)</title><link>http://buildingbrowsergames.com/2008/05/09/building-browsergames-implementing-an-e-mail-confirmation-system-php/#comment-7952298</link><description>I got it now...it was just a wrong variable. ;)&lt;br&gt;But the "confirmation_token" is free of errors.&lt;br&gt;&lt;br&gt;Anyway, thanks for answering!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Shade</dc:creator><pubDate>Tue, 07 Apr 2009 16:16:24 -0000</pubDate></item><item><title>Re: Building Browsergames: Implementing an e-mail confirmation system (PHP)</title><link>http://buildingbrowsergames.com/2008/05/09/building-browsergames-implementing-an-e-mail-confirmation-system-php/#comment-7938547</link><description>If you're not getting an e-mail after registering, chances are your SMTP&lt;br&gt;settings aren't configured properly in your php.ini. You'll probably need to&lt;br&gt;talk to your webhost to see what they should be.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbgames</dc:creator><pubDate>Tue, 07 Apr 2009 11:21:26 -0000</pubDate></item><item><title>Re: Building Browsergames: Implementing an e-mail confirmation system (PHP)</title><link>http://buildingbrowsergames.com/2008/05/09/building-browsergames-implementing-an-e-mail-confirmation-system-php/#comment-7937710</link><description>Hi!&lt;br&gt;&lt;br&gt;I added this "confirmation_token". Have a look at this: &lt;a href="http://pastebin.com/fd19ea57" rel="nofollow"&gt;http://pastebin.com/fd19ea57&lt;/a&gt;&lt;br&gt;&lt;br&gt;Oh and btw... i dont get any email after registering. :( But the the account is generated in the Databse.&lt;br&gt;This is my register.php:&lt;br&gt;&lt;a href="http://pastebin.com/f3b82f8bb" rel="nofollow"&gt;http://pastebin.com/f3b82f8bb&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Shade</dc:creator><pubDate>Tue, 07 Apr 2009 10:45:00 -0000</pubDate></item><item><title>Re: Battle Machines (Robotechnik) Design Document</title><link>http://buildingbrowsergames.com/?p=808#comment-7890780</link><description>Long time reader... first time poster, I think. Great work, can't wait to see this in action. BTW, I was wondering if knew of any good resources for more tutorials or how-to's for developing PBBG's. This is the best place I've found but you can only do so much at one time.&lt;br&gt;&lt;br&gt;I like &lt;a href="http://PBBGDev.com" rel="nofollow"&gt;PBBGDev.com&lt;/a&gt; forums but that's still a bit limited. Anyway, if you have any suggestions: thekarnedge AT gmail DOT com.&lt;br&gt;&lt;br&gt;Keep up the great work!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">KarnEdge</dc:creator><pubDate>Sun, 05 Apr 2009 20:47:25 -0000</pubDate></item><item><title>Re: Building Browsergames: Using Configuration Files (PHP)</title><link>http://buildingbrowsergames.com/2008/04/22/building-browsergames-using-configuration-files-php/#comment-7681758</link><description>Hi Sean,&lt;br&gt;What do you mean by 'fails'? As long as you've written an .htaccess rule to&lt;br&gt;disallow users to view config.php, it should be virtually impossible for a&lt;br&gt;user who doesn't have access to the web server to read your configuration&lt;br&gt;file.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbgames</dc:creator><pubDate>Tue, 31 Mar 2009 14:08:30 -0000</pubDate></item></channel></rss>