<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   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/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">
<channel>
    <title>Maugrim The Reaper's Blog - Astrum Futura</title>
    <link>http://blog.astrumfutura.com/</link>
    <description>Pádraic Brady on PHP, PHP Game Development and More</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.1 - http://www.s9y.org/</generator>
    <pubDate>Sat, 08 Dec 2007 13:04:00 GMT</pubDate>

    <image>
        <url>http://blog.astrumfutura.com/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Maugrim The Reaper's Blog - Astrum Futura - Pádraic Brady on PHP, PHP Game Development and More</title>
        <link>http://blog.astrumfutura.com/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Astrum Futura Redux</title>
    <link>http://blog.astrumfutura.com/archives/324-Astrum-Futura-Redux.html</link>
            <category>Astrum Futura</category>
            <category>PHP Game Development</category>
            <category>PHP General</category>
            <category>PHP Security</category>
    
    <comments>http://blog.astrumfutura.com/archives/324-Astrum-Futura-Redux.html#comments</comments>
    <wfw:comment>http://blog.astrumfutura.com/wfwcomment.php?cid=324</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://blog.astrumfutura.com/rss.php?version=2.0&amp;type=comments&amp;cid=324</wfw:commentRss>
    

    <author>nospam@example.com (Pádraic Brady)</author>
    <content:encoded>
    For the cool folk who have followed the Solar Empire legacy through thick and thin since 1999, those cute .php3 file suffixes, Moriarty&#039;s continuing denegration of all other developers, the revolution that open source brought, the sudden push towards OOP, and the...err...security and bug population... Working on anything hitting it&#039;s 9th anniversary in PHP is really interesting - 9 times the fun and games &lt;img src=&quot;http://blog.astrumfutura.com/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;.&lt;br /&gt;
&lt;br /&gt;
Astrum Futura was envisaged as a desperately needed update to the long running open source Solar Empire franchise, where players engage each other across a galaxy of 500+ star systems mining resources, building colonies, and generally screaming bloody murder at each other. It&#039;s not the most impressive or ambitious of online games, but it&#039;s always been tenacious and attracted roaming users who like a quick dash of destruction in their daily diet.&lt;br /&gt;
&lt;br /&gt;
In January 2008, the oft delayed development process will once again creak into action. The current tracer code was built originally using the Zend Framework 0.2-0.6 and famously led that Spring to my long running &quot;Complex Views With The Zend Framework&quot; blog series that gave birth to the Zend_View Enhanced proposal, and maybe gave Ralph Schindler a few headaches &lt;img src=&quot;http://blog.astrumfutura.com/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;. Building anything more complex than a login page was pure heart ache previously.&lt;br /&gt;
&lt;br /&gt;
Now that time is available, the Zend Framework significantly more mature, and we have a lot of legwork carried over from 2006 in the Quantum Game Library (thanks to Jacob Santos), it&#039;s about time we got something concrete done. The usual suspects, if interest levels are high enough, can report to the shiny updated phpBB3 forums at &lt;a href=&quot;http://forums.astrumfutura.com&quot; &gt;http://forums.astrumfutura.com&lt;/a&gt; - same domain as this blog you&#039;re reading.&lt;br /&gt;
&lt;br /&gt;
And we will be applying XP this time - the random running process that usually prevails just doesn&#039;t work out well. So get your Selenium gear in place.  
    </content:encoded>
    <dc:creator>P&#225;draic Brady</dc:creator>

    <pubDate>Fri, 07 Dec 2007 17:01:10 +0000</pubDate>
    <guid isPermaLink="false">http://blog.astrumfutura.com/archives/324-guid.html</guid>
    <category>astrum futura</category>
<category>php</category>
<category>php game development</category>
<category>php general</category>
<category>php security</category>
<category>quantum star se</category>
<category>solar empire</category>
<creativeCommons:license>http://creativecommons.org/licenses/by/1.0/</creativeCommons:license>
</item>
<item>
    <title>Quantum_Db: The QGL Data Access Object Implementation</title>
    <link>http://blog.astrumfutura.com/archives/267-Quantum_Db-The-QGL-Data-Access-Object-Implementation.html</link>
            <category>Astrum Futura</category>
            <category>PHP Game Development</category>
            <category>PHP General</category>
    
    <comments>http://blog.astrumfutura.com/archives/267-Quantum_Db-The-QGL-Data-Access-Object-Implementation.html#comments</comments>
    <wfw:comment>http://blog.astrumfutura.com/wfwcomment.php?cid=267</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.astrumfutura.com/rss.php?version=2.0&amp;type=comments&amp;cid=267</wfw:commentRss>
    

    <author>nospam@example.com (Pádraic Brady)</author>
    <content:encoded>
    Back in 2005, the Quantum Star SE project caught the Object Relational Mapping (ORM) bug and I took a first stab at implementing something that was simple, fast and easy to use. Until this stage I was a regular user of the Data Mapper pattern (among others) but since switching to PHP and developing open source projects found it to be largely unnecessary. The root problem is akin to hammering nails with a sledgehammer - too much complexity being implemented for a simple underwhelming task.&lt;br /&gt;
&lt;br /&gt;
Here in 2007, with the QGL in development I found myself re-assessing my previous experiences and finding it attractive to develop something less complex and hopefully faster than a full scale ORM solution. Taking some previous work I did, I opened a branch in the QGL subversion repository and set to work. The results are slowly coming to fruition - the DAO, Row and part of the Driver families are shaping up going by the unit tests.&lt;br /&gt;
&lt;br /&gt;
So what is Quantum_Db (in practice)? It will be a family of classes which form a Data Access Object (DAO) Framework when complete. This post is largely a ramble about current progress and intentions - so if looking for a complete solution you&#039;re in the wrong place as the current code is strictly in-progress. For reference though, the source code is under the New BSD License. It&#039;s incomplete, but available from its subversion branch at: &lt;a href=&quot;http://quantumstar.svn.sourceforge.net/viewvc/quantumstar/branches/Quantum_Db/&quot;&gt;http://quantumstar.svn.sourceforge.net/viewvc/quantumstar/branches/Quantum_Db/&lt;/a&gt; and the forums can be found for the QGL in general at &lt;a href=&quot;http://forums.astrumfutura.com/viewforum.php?f=25&quot;&gt;http://forums.astrumfutura.com/viewforum.php?f=25&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
In this specific implementation of Quantum_Db, the DAO class (Quantum_Db_Access) is a Singleton which attempts to offer relatively basic CRUD methods capable of use on any valid database table record. A large part of its responsibility is generating CRUD type SQL. So you could have a User record, which could be saved by passing it to a DAO save() method. It&#039;s not quite as clear cut, since to reduce the mass of code a DAO implementation often needs the &quot;record&quot; is encapsulated in a container called Quantum_Db_Row. This Row class can represent a single table record, but also doubles as a data container for setting up SQL conditions (think of WHERE, IN and INSERT clauses).&lt;br /&gt;
&lt;br /&gt;
One of the goals intentionally targets simplicity, so there is no Propel-style Criteria object to mess about with. There will be in the future, but for simple needs, a simple DAO framework is sufficient as an initial start. A simplistic use case is adding a new User record. Some code showing this task:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;php&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #b1b100;&quot;&gt;require_once&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;Models/User.php&#039;&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// Fields are public properties handled by __get/__set in the&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// Quantum_Db_Row class. The User class is actually a simple&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// subclass defining valid fields and primary key(s).&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// We do not specify an Id value for new Users. The DAO class will&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// assign this assuming Id is an auto-incrementing value for MySQL&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// or a Sequence for PostgreSQL.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$user&lt;/span&gt; = &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; User;&lt;br /&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$user&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;name&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;Pádraic&#039;&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$user&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;email&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;padraic.brady@example.com&#039;&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$user&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;password&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/sha1&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;sha1&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;password&#039;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$user&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;country&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;ie&#039;&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// Call on DAO to save this record to the database. Obviously any&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// database errors will result in Exceptions thrown by the DAO so&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// the database table rules (primary key, unique key, etc.) all apply.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$user&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;save&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
The first thing you can note is that the DAO class (called Quantum_Db_Access is not directly called. Instead all Row objects carry a reference to the Quantum_Db_Access singleton so Quantum_Db_Row::save() proxies to Quantum_Db_Access::save() - we only need one generic DAO object. If one desperately needed the DAO they could just place a call to Quantum_Db_Access::getInstance().&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;php&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$dao&lt;/span&gt; = Quantum_Db_Access::&lt;span style=&quot;color: #006600;&quot;&gt;getInstance&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$dao&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;save&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$user&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
In fact, you can equally access the underlying database extension driver to run queries directly using the following. Of course Singletons have their own evil uses, so ideally you&#039;d pass around the object reference instead of litering source code with static getInstance() calls which explicitly refer to the class name.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;php&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// Example of accessing the driver to drop the User table&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$driver&lt;/span&gt; = Quantum_Db_Access::&lt;span style=&quot;color: #006600;&quot;&gt;getInstance&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;getDriver&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;exec&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;DROP TABLE user&quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Retrieving records is more interesting. It&#039;s relatively simple to extract a record based on a primary key:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;php&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$user&lt;/span&gt; = &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; User;&lt;br /&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$user&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;getByPk&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.php.net/var_dump&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;var_dump&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$user&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;asArray&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// echo array of User (Id=1) data &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
It&#039;s much more complex to fetch rows of a very specific nature. Even worse, without a Criteria object using the MySQL IN clause is a challenge. However for those where the SQL values depend solely on simple field values a neat solution is &quot;named queries&quot;. A Named Query (check the excellent introduction at: &lt;a href=&quot;http://www.tonybibbs.com/article.php/PropelDAO&quot;&gt;http://www.tonybibbs.com/article.php/PropelDAO&lt;/a&gt; regarding something similar for Propel) is an SQL string containing value placeholders (e.g. for use in a PDO::prepare()) stored in some central file. This has a few benefits and disadvantages.&lt;br /&gt;
&lt;br /&gt;
The main benefit is the centralisaton - like OOP, centralising logic (in this case non-generated SQL strings) reduces duplication and encourages reuse. Allowing the named queries to be indexed (for example, within an XML hierarchy) by a name and model allows them to be easily located and prepared by the Data Access Object. The disadvantages are of course that it&#039;s still limited. For example, use of a MySQL &quot;SELECT id, name, email FROM user_table WHERE id IN(1,2,3,4)&quot; isn&#039;t likely a storeable named query since the IN() range of id values is too variable. But for many queries it&#039;s a good fit in the absence of some form of Criteria class.&lt;br /&gt;
&lt;br /&gt;
Enough of the DAO class however. After beating it to death, there are still pieces to be completed when it comes to allowing complex SQL clauses. The main point is that for simple use cases it is a good match - and simple use cases are extremely common in many of my open source endeavors.&lt;br /&gt;
&lt;br /&gt;
To backup the Data Access Class Quantum_Db also implements a Driver and Results class family. Again simplicity is key, so it&#039;s being written under the presumption that PHP5&#039;s PDO extension is available. The Quantum_Db_Driver_Interface file actually mirrors the PDO interface for this reason. Of course we can&#039;t forget mysqli (the most popular PHP5 database extension) or pgsql and the rest. Quantum_Db_Driver defines an interface to enable additional extension type support. Personally I only intend adding a light abstraction over ADOdb-Lite - it&#039;s not worth duplicating Mark&#039;s already existing library.&lt;br /&gt;
&lt;br /&gt;
The Results class, the one part no code exists for yet - don&#039;t be worried I develop using TDD and unit testing so it&#039;s perfectly normal &lt;img src=&quot;http://blog.astrumfutura.com/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;. Quantum_Db_Results will aggregate the results of queries into a class implementing PHP5&#039;s SPL Iterator. To be specific, the Iterator methods will be tied to each underlying Driver&#039;s fetch* methods. This should allow continued use of Lazy Loading during iterations, and allow continued use of foreach() etc.&lt;br /&gt;
&lt;br /&gt;
Here ends my ramble for now. For those working on the QGL or similar code maybe it will provide a few of my thoughts on the topic - assuming you can summarise the rambling of course &lt;img src=&quot;http://blog.astrumfutura.com/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;.  
    </content:encoded>
    <dc:creator>P&#225;draic Brady</dc:creator>

    <pubDate>Tue, 13 Feb 2007 15:25:02 +0000</pubDate>
    <guid isPermaLink="false">http://blog.astrumfutura.com/archives/267-guid.html</guid>
    <category>astrum futura</category>
<category>dao</category>
<category>data access object</category>
<category>design patterns</category>
<category>php</category>
<category>php game development</category>
<category>php general</category>
<category>qgl</category>
<category>quantum game library</category>
<creativeCommons:license>http://creativecommons.org/licenses/by/1.0/</creativeCommons:license>
</item>
<item>
    <title>QGL under the New BSD License</title>
    <link>http://blog.astrumfutura.com/archives/264-QGL-under-the-New-BSD-License.html</link>
            <category>Astrum Futura</category>
            <category>PHP Game Development</category>
    
    <comments>http://blog.astrumfutura.com/archives/264-QGL-under-the-New-BSD-License.html#comments</comments>
    <wfw:comment>http://blog.astrumfutura.com/wfwcomment.php?cid=264</wfw:comment>

    <slash:comments>6</slash:comments>
    <wfw:commentRss>http://blog.astrumfutura.com/rss.php?version=2.0&amp;type=comments&amp;cid=264</wfw:commentRss>
    

    <author>nospam@example.com (Pádraic Brady)</author>
    <content:encoded>
    The Quantum Game Library (&quot;QGL&quot;) is a PHP5 library aimed at creating a bunch of reuseable classes for use in PHP games. We&#039;re still in early days but with two dedicated developers, lots of feedback and suggestions we&#039;ve already put together a few starting solid components and have others in progress.&lt;br /&gt;
&lt;br /&gt;
Over the last few months the QGL has evolved from a minor offshoot of the Astrum Futura project into a fully independent library. I guess everyone on the team saw a generic game library as something really useful; we&#039;re all game developers on varying projects.&lt;br /&gt;
&lt;br /&gt;
To reflect the library status, as well as to widen the net for potential users and developers we have decided to move from the GNU General Public License (which rules Astrum Futura) to the far more liberal &lt;a href=&quot;http://doc.astrumfutura.com/license.html&quot;&gt;New BSD License&lt;/a&gt;. We&#039;ve also provisionally determined that copyrights should be centralised to a degree, this currently is not in operation since the number of contributors remains manageable but may be (pending contributor feedback obviously) in the future.&lt;br /&gt;
&lt;br /&gt;
Given licensing is now decided, file header updates in progress (if gradual), and some useful components are hitting stable, it&#039;s likely we&#039;ll make a public preview release in the near future. Given out focus on doing things right, this will only occur once documentation is completed and our unit tests verified for good measure.&lt;br /&gt;
&lt;br /&gt;
As a summary (feel free to request details on the &lt;a href=&quot;http://forums.astrumfutura.com/index.php?c=7&quot;&gt;QGL Forum Section&lt;/a&gt;) the current near-stable component list includes:&lt;br /&gt;
    - Quantum_Db&lt;br /&gt;
    - Quantum_Coordinate&lt;br /&gt;
    - Ai_Pathfinding&lt;br /&gt;
    - Quantum_Map_Measure&lt;br /&gt;
    - Quantum_Map_Grid&lt;br /&gt;
    - Quantum_Turing&lt;br /&gt;
&lt;br /&gt;
This is far from complete, and there are literally dozens of possible additions. Those in planning are already shaping up to offer some cool second iteration functionality. That&#039;s not even including the planned ext/qgl PHP extension...&lt;img src=&quot;http://blog.astrumfutura.com/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;.  
    </content:encoded>
    <dc:creator>P&#225;draic Brady</dc:creator>

    <pubDate>Fri, 02 Feb 2007 11:47:57 +0000</pubDate>
    <guid isPermaLink="false">http://blog.astrumfutura.com/archives/264-guid.html</guid>
    <category>astrum futura</category>
<category>php game development</category>
<category>qgl</category>
<category>quantum game library</category>
<creativeCommons:license>http://creativecommons.org/licenses/by/1.0/</creativeCommons:license>
</item>
<item>
    <title>Factions: Social Control on Newbie Bashing</title>
    <link>http://blog.astrumfutura.com/archives/263-Factions-Social-Control-on-Newbie-Bashing.html</link>
            <category>Astrum Futura</category>
            <category>PHP Game Development</category>
            <category>Quantum Star SE</category>
    
    <comments>http://blog.astrumfutura.com/archives/263-Factions-Social-Control-on-Newbie-Bashing.html#comments</comments>
    <wfw:comment>http://blog.astrumfutura.com/wfwcomment.php?cid=263</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://blog.astrumfutura.com/rss.php?version=2.0&amp;type=comments&amp;cid=263</wfw:commentRss>
    

    <author>nospam@example.com (Pádraic Brady)</author>
    <content:encoded>
    A recent discussion was sparked on the &lt;a href=&quot;http://forums.astrumfutura.com&quot;&gt;Astrum Futura forums&lt;/a&gt; regarding player retention and new player protection. It was one of those times when the discussion branched to a higher view - a wider look at how players interact on a large scale.&lt;br /&gt;
&lt;br /&gt;
The current suggestions called for players to be penalised for undesireable actions, e.g. attacking a new player who is incapable of defending him/her self. This remains a long standing issue in many online games. AF could resort to enforced levelling - limited who a player can attack, and be attacked by. But this is all artificial - in the real world it&#039;s open season on anyone.&lt;br /&gt;
&lt;br /&gt;
Cyberlot (Richard) raised the question of penalising through a Karma rating. As a player attacked newcomers they would attract negative Karma marking them out to other players. I can see the rank of &quot;Newbie Basher&quot; emerging as an undesireable outcome for many players. But Karma while adding some measure, does not address enforcement. Exactly who enforces what and when? Who set&#039;s the standard for interacting with other players?&lt;br /&gt;
&lt;br /&gt;
From there we hit the subject of Factions. A Faction would be a specific group of players sharing a common interest. This obviously includes Races, but is also extendable to a Merchant Guild or a Pirate Clan. The point is to give players an instant group they are a member of. Now where it gets interesting in how the player and game logic would respond in the presence of Factions.&lt;br /&gt;
&lt;br /&gt;
Say you have a Faction, Earth Humans United (go Terrans!). What happens if a member of this Faction attacks a new player who is joining the Earth Humans United Faction? Can&#039;t have allies killing each other off (even if it might reflect reality &lt;img src=&quot;http://blog.astrumfutura.com/templates/default/img/emoticons/sad.png&quot; alt=&quot;:-(&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;). The answer is in the Karma. Killing a new member of your own faction is stupid, damaged the Faction, and makes other players less likely to join it. That member should sur be paying tax to the Faction, which is needed. Such a player would immediately get negative Karma.&lt;br /&gt;
&lt;br /&gt;
So we have Karma, and we have Factions - how do they relate?&lt;br /&gt;
&lt;br /&gt;
Karma is a measure of one&#039;s standing within a Faction. If your Karma falls below a minimal level you&#039;ll be declared an enemy of the Faction, and then its time to start running before you&#039;re hunted down by your peers. Where do you flee? If you&#039;re lucky, some other Faction still has you as Neutral. &lt;br /&gt;
&lt;br /&gt;
But this is where Newbie Protection get&#039;s interesting. It&#039;s not Faction specific - your bad Karma is classified when killing a new player as a &quot;Stigma&quot;. It decreases Karma for &lt;strong&gt;ALL&lt;/strong&gt; Factions. It&#039;s the ultimate punishment - imagine playing when nearly all the Factions refuse to grant you trade access, when your planets are penalised with &quot;special tax charges&quot;, when other players are unable to maintain an Alliance with you once you become Factionless (Outcast). In short, if you gain a reputation for killing new players, you&#039;ll be kicked, booted and sent to Hell with a one way express ticket. No Admin interference or funny AI fleets required. Society will put you straight or else...&lt;br /&gt;
&lt;br /&gt;
More on this later as details are worked out, but it looks like it&#039;s a feasible and supported suggestion.  
    </content:encoded>
    <dc:creator>P&#225;draic Brady</dc:creator>

    <pubDate>Tue, 30 Jan 2007 17:37:04 +0000</pubDate>
    <guid isPermaLink="false">http://blog.astrumfutura.com/archives/263-guid.html</guid>
    <category>astrum futura</category>
<category>factions</category>
<category>newbie bashing</category>
<category>php game development</category>
<category>qgl</category>
<category>quantum star se</category>
<creativeCommons:license>http://creativecommons.org/licenses/by/1.0/</creativeCommons:license>
</item>

</channel>
</rss>