<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>XNova:Next-Gen et XNova:Legacies deviennent Wootook! &#187; XNova:Next-Gen</title>
	<atom:link href="http://wootook.org/archives/~category/dev/xnova-next-gen/feed" rel="self" type="application/rss+xml" />
	<link>http://wootook.org</link>
	<description>XNova devient Wootook</description>
	<lastBuildDate>Mon, 17 Oct 2011 16:35:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>XNova:Next-Gen core source code becomes One.Platform</title>
		<link>http://wootook.org/archives/~greg/2011/02/xnovanext-gen-core-source-code-becomes-one-platform-4.html</link>
		<comments>http://wootook.org/archives/~greg/2011/02/xnovanext-gen-core-source-code-becomes-one-platform-4.html#comments</comments>
		<pubDate>Wed, 09 Feb 2011 09:00:10 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[XNova:Legacies]]></category>
		<category><![CDATA[XNova:Next-Gen]]></category>
		<category><![CDATA[backoffice]]></category>
		<category><![CDATA[ogame clone]]></category>
		<category><![CDATA[ogame private server]]></category>
		<category><![CDATA[one]]></category>
		<category><![CDATA[platform]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[version]]></category>

		<guid isPermaLink="false">http://www.xnova-ng.org/?p=647</guid>
		<description><![CDATA[Long time since the last announcement, however lots of things have been done. The core sources of XNova:Next-Gen has been forked into an independent project, designed to bring standard high-level functionalities to various projects, such as User management, Backoffice, CMS functionalities or web applications skelettons. For now this development platform will mainly be used to [...]]]></description>
			<content:encoded><![CDATA[<p>Long time since the last announcement, however lots of things have been done.</p>
<p>The core sources of <strong>XNova:Next-Gen</strong> has been forked into an independent project, designed to bring standard high-level functionalities to various projects, such as <strong>User management</strong>, <strong>Backoffice</strong>, <strong>CMS functionalities</strong> or web applications skelettons. For now this development platform will mainly be used to replace the admin panel of <strong>XNova:Legacies</strong> and will in the end become its core.</p>
<p>This new project is named One.Platform, you will find a public git repository at <a title="Visit the Git repository at Github" href="https://github.com/gplanchat/one.platform" target="_blank">Github</a>. It includes the Core module, the User module, a native CMS pages manager and an administration site engine on which the future version is based. The reason why I decided to cut the project in 2 is that what have been done until now can be reused by another project.</p>
<p><span id="more-647"></span></p>
<p>This project is based upon the Zend Framework and in order to make it work, you will need to install it (version 1.10+ should work fine, I personnaly use the verison 1.11). Installation instructions are availiable in the files <em>INSTALL</em> and <em>INSTALL.textile</em> in the repository. There is a branch named <em>xnova-legacies</em> which contains the development version of XNova:Legacies, it includes a slightly modified 2009.2 version without installer nor admin panel.</p>
<p>The administration panel can be accessed via the file <em>admin.php</em>, it is a <strong>One.Platform</strong> Backoffice, in time I&#8217;m writing this artcile, you will be able to manage users, configuration options, planets and moons. Everything isn&#8217;t finished, but the evolution of this admin panel becomes now easy, taking advantage of the XML configuration files that builds the forms and grids.</p>
]]></content:encoded>
			<wfw:commentRss>http://wootook.org/archives/~greg/2011/02/xnovanext-gen-core-source-code-becomes-one-platform-4.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Le coeur de XNova:Next-Gen devient One.Platform</title>
		<link>http://wootook.org/archives/~greg/2011/02/le-coeur-de-xnovanext-gen-devient-one-platform.html</link>
		<comments>http://wootook.org/archives/~greg/2011/02/le-coeur-de-xnovanext-gen-devient-one-platform.html#comments</comments>
		<pubDate>Wed, 09 Feb 2011 08:30:27 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[francais]]></category>
		<category><![CDATA[XNova:Legacies]]></category>
		<category><![CDATA[XNova:Next-Gen]]></category>
		<category><![CDATA[backoffice]]></category>
		<category><![CDATA[legacies]]></category>
		<category><![CDATA[one]]></category>
		<category><![CDATA[panneau d'administration]]></category>
		<category><![CDATA[platform]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[version]]></category>

		<guid isPermaLink="false">http://www.xnova-ng.org/?p=663</guid>
		<description><![CDATA[Ça faisait longtemps que je n&#8217;avais pas écrit d&#8217;article ici, mais beaucoup de choses ont été faites. Le cœur du code source de XNova:Next-Gen a été déplacé dans un nouveau projet indépendant, créé pour apporter des fonctionnalités standards de haut niveau pour différents projets, comme la gestion d&#8217;utilisateurs, un panneau d&#8217;administration, des fonctions de CMS [...]]]></description>
			<content:encoded><![CDATA[<p>Ça faisait longtemps que je n&#8217;avais pas écrit d&#8217;article ici, mais beaucoup de choses ont été faites.</p>
<p>Le cœur du code source de <strong>XNova:Next-Gen</strong> a été déplacé dans un nouveau projet indépendant, créé pour apporter des fonctionnalités standards de haut niveau pour différents projets, comme la <strong>gestion d&#8217;utilisateurs</strong>, un <strong>panneau d&#8217;administration</strong>, des <strong>fonctions de CMS</strong> ou une architecture d&#8217;application web. Pour le moment, cette plateforme de développement sera principalement utilisée pour remplacer le panneau d&#8217;administration de <strong>XNova:Legacies</strong> pour au final devenir son cœur.</p>
<p>Ce nouveau projet est nommé <strong>One.Platform</strong> vous pourrez le retrouver sur <a title="Visitez le dépôt Git sur Github" href="https://github.com/gplanchat/one.platform" target="_blank">Github</a>. Il inclut le module Core, le module User, un gestionnaire de pages CMS et un gestionnaire de panneau d&#8217;administration de site web sur lequel la future version se basera. La raison pour laquelle j&#8217;ai décidé de découper le projet en 2, c&#8217;est que ce qui a été réalisé jusqu&#8217;à aujourd&#8217;hui peut être réutilisé par un autre projet.<br />
<span id="more-663"></span><br />
Ce nouveau projet est basé sur le <strong>Zend Framework</strong> et pour le faire fonctionner, il sera nécessaire de l&#8217;installer (la version 1.10+ devrait fonctionner sas problème, j&#8217;utilise la version 1.11). Les instructions d&#8217;installation sont disponibles en anglais dans les fichiers <em>INSTALL</em> et <em>INSTALL.textile</em> que vous retoruverez dans le dépôt. Vous y trouverez également une branche nommée <em>xnova-legacies</em> qui contient la version de développement de XNova:Legacies, elle inclut une version 2009.2 légèrement modifiée, sans insallateur, ni panneau d&#8217;administration.</p>
<p>Le panneau d&#8217;administration est maintenant accessible via le fichier <em>admin.php</em>, c&#8217;est un panneau d&#8217;admin généré par <strong>One.Platform</strong>, à l&#8217;heure où j&#8217;écris ce billet, vous serez en mesure de gérer vos utilisateurs, vos options de configuration, vos planètes et vos lunes. Tout n&#8217;est pas terminé,  mais l&#8217;évolution de ce panneau d&#8217;administration devient maintenant plus simple grâce qux fichiers XML de configuration qui créent automatiquement les tableaux et les formulaires.</p>
]]></content:encoded>
			<wfw:commentRss>http://wootook.org/archives/~greg/2011/02/le-coeur-de-xnovanext-gen-devient-one-platform.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>XNova:Next-Gen &#8211; Releasing the &#8220;Core&#8221; module version 1.0-alpha.</title>
		<link>http://wootook.org/archives/~greg/2010/05/xnova-next-gen-releasing-the-core-module-version-1-0-alpha.html</link>
		<comments>http://wootook.org/archives/~greg/2010/05/xnova-next-gen-releasing-the-core-module-version-1-0-alpha.html#comments</comments>
		<pubDate>Tue, 04 May 2010 11:00:29 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[XNova:Next-Gen]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[clone ogame ogame]]></category>
		<category><![CDATA[core]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[legacies]]></category>
		<category><![CDATA[next gen]]></category>
		<category><![CDATA[ogame clone]]></category>
		<category><![CDATA[private server]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[téléchargement]]></category>
		<category><![CDATA[XNova]]></category>

		<guid isPermaLink="false">http://www.xnova-ng.org/?p=592</guid>
		<description><![CDATA[This is it! XNova:Next-Gen is coming, its core module has been released as an alpha, which will enable new development approaches for XNova:Legacies (discussed here). This means that the architecture is frozen and further functionalities won&#8217;t be added since XNova:Legacies 2010-alpha0 won&#8217;t be released. Also, be aware that this is a developer release, there is [...]]]></description>
			<content:encoded><![CDATA[<p>This is it! <em>XNova:Next-Gen</em> is coming, its <em>core</em> module has been released as an alpha, which will enable new development approaches for<em> XNova:Legacies</em> (<a href="http://www.xnova-ng.org/archives/~greg/2010/03/2010-1-the-foundations-of-a-new-architecture.html">discussed here</a>). This means that the architecture is frozen and further functionalities won&#8217;t be added since <em>XNova:Legacies 2010-alpha0</em> won&#8217;t be released. Also, be aware that <strong>this is a developer release</strong>, there is no interface, and it should be considered as a high-level application framework on top of the Zend Framework, <a href="http://www.xnova-legacies.org/doku.php">documentation will be availiable on the wiki</a>.</p>
<p>Next to come, the <strong>user</strong> module, which will be the 2nd part of the <em>XNova:Legacies 2010-alpha0</em> release.</p>
<p>You can now fetch the <em>core</em> module from the SVN trunk :<br />
<code>svn co svn+ssh://svn.xnova-ng.org/svnroot/xnlegacies/public/branches/modules/core/trunk</code></p>
<p>Or from the SVN tag :<br />
<code>svn co svn://svn.xnova-ng.org/svnroot/xnlegacies/public/branches/modules/core/tags/release-1.0-alpha0</code></p>
]]></content:encoded>
			<wfw:commentRss>http://wootook.org/archives/~greg/2010/05/xnova-next-gen-releasing-the-core-module-version-1-0-alpha.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XNova:Next-Gen – Sortie de la version 1.0-alpha0 du module “Core”.</title>
		<link>http://wootook.org/archives/~greg/2010/05/xnova-next-gen%e2%80%93sortie-de-la-version-1-0-alpha0-du-module-core.html</link>
		<comments>http://wootook.org/archives/~greg/2010/05/xnova-next-gen%e2%80%93sortie-de-la-version-1-0-alpha0-du-module-core.html#comments</comments>
		<pubDate>Tue, 04 May 2010 10:55:36 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[francais]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[XNova:Legacies]]></category>
		<category><![CDATA[XNova:Next-Gen]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[clone ogame ogame]]></category>
		<category><![CDATA[core]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[legacies]]></category>
		<category><![CDATA[next gen]]></category>
		<category><![CDATA[ogame clone]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[serveur privé]]></category>
		<category><![CDATA[téléchargement]]></category>
		<category><![CDATA[XNova]]></category>

		<guid isPermaLink="false">http://www.xnova-ng.org/?p=615</guid>
		<description><![CDATA[Ca y est! XNova:Next-Gen arrive, son module core vient de sortir en version alpha, ce qui permettra à partir de maintenant de novelles approches de développement pour XNova:Legacies (annoncées ici). Tout ceci indique que l&#8217;architecture de ce module sera ficgé et de nouvelles fonctionnalités n&#8217;apparaîtront pas tant que XNova:Legacies 2010-alpha0 ne sera pas sorti. N&#8217;oubliez [...]]]></description>
			<content:encoded><![CDATA[<p>Ca y est! <em>XNova:Next-Gen</em> arrive, son module <em>core</em> vient de sortir en version alpha, ce qui permettra à partir de maintenant de novelles approches de développement pour <em> XNova:Legacies</em> (<a href="http://www.xnova-ng.org/archives/~greg/2010/03/2010-1-les-fondements-dune-nouvelle-architecture.html">annoncées ici</a>). Tout ceci indique que l&#8217;architecture de ce module sera ficgé et de nouvelles fonctionnalités n&#8217;apparaîtront pas tant que <em>XNova:Legacies 2010-alpha0</em> ne sera pas sorti. N&#8217;oubliez pas que <strong>c&#8217;est une version développeur</strong>, il n&#8217;y a aucune interface,  et que ce module devrait être considéré comme un framework haut niveau reposant sur le Zend Framework, <a href="http://www.xnova-legacies.org/doku.php">de la documentation sera disponible sur le wiki</a>.</p>
<p>La prochaine étape se concentrera sur le module <strong>user</strong>, qui sera la 2nde tranche de développement de <em>XNova:Legacies 2010-alpha0</em>.</p>
<p>Vous pouvez désormais récupérer le trunk SVN du module <em>core</em> de cette manière:<br />
<code>svn co svn+ssh://svn.xnova-ng.org/svnroot/xnlegacies/public/branches/modules/core/trunk</code></p>
<p>Ou bien depuis son tag :<br />
<code>svn co svn://svn.xnova-ng.org/svnroot/xnlegacies/public/branches/laboratory/gplanchat/modules/core/tags/1.0-alpha0</code></p>
]]></content:encoded>
			<wfw:commentRss>http://wootook.org/archives/~greg/2010/05/xnova-next-gen%e2%80%93sortie-de-la-version-1-0-alpha0-du-module-core.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>2010.1 &#8211; The foundations of a new architecture</title>
		<link>http://wootook.org/archives/~greg/2010/03/2010-1-the-foundations-of-a-new-architecture.html</link>
		<comments>http://wootook.org/archives/~greg/2010/03/2010-1-the-foundations-of-a-new-architecture.html#comments</comments>
		<pubDate>Wed, 24 Mar 2010 13:57:26 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Développement]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[XNova:Legacies]]></category>
		<category><![CDATA[XNova:Next-Gen]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[clone ogame]]></category>
		<category><![CDATA[modèles]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[ogame]]></category>
		<category><![CDATA[ogame clone]]></category>
		<category><![CDATA[private server]]></category>
		<category><![CDATA[xnova legacies]]></category>

		<guid isPermaLink="false">http://www.xnova-ng.org/?p=553</guid>
		<description><![CDATA[Today I&#8217;m writing an entry for the the developers, an opportunity for me to introduce the new architecture for XNova:Legacies and explain its differences with what may have existed so far on the project. It is worth remembering that the biggest evolutions of the upcoming version comes from a brand new source code written in [...]]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;m writing an entry for the the developers, an opportunity for me to introduce the new architecture for XNova:Legacies and explain its differences with what may have existed so far on the project. It is worth remembering that the biggest evolutions of the upcoming version comes from a brand new source code written in PHP 5.2, this version becomes though a dependency to make XNova:Legacies work on your system, but don&#8217;t worry, this PHP verison exists since 2006 and is therefore widely deployed on PHP hosting providers since a long time.</p>
<p>To return to what we are all  here, everything has been redesigned to facilitate simple and rapid modification of the functionnalities of the game without the need of applying neither 1 line of the original source code. Everything is built upon the configuration, if a functionality in the base source code does not work like you wanted : replace it! it is as simple as that.</p>
<p>Accessing to data from the database has never been as simple and safe<span id="more-553"></span> : get an ID, and load your model, woithout any risk of possible <a href="http://board.xnova-ng.org/index.php?showtopic=1317&#038;hl=injection">SQL injection</a>. But how do we update, create or delete a database record? Just a line! For the preview 2010-alpha0, the <em>user</em> module will be the first module launched. It is relatively simple and will therefore serve both standard and benchmark for what will follow: 90% of this new source will be shared by an overwhelming majority of functionality or future refactoring.</p>
<p>But all that makes many words and few examples, so here are some previews (may be subject to modification in the final version):</p>
<h3>Loading and modifying data of a player from the  database:</h3>
<p>To load data from a player which, for example, have the ID 8 in the database, the following is enough:<br />
<code>$user = Nova::getModel('user/user')->load(8);</code></p>
<p>And next? take your newly created variable (here, <em>$user</em>) and use it as like an array, just like you did until now… almost. Yes, because now it is no longer an array, it&#8217;s an object. Whath&#8217;s the difference? well is that my <em>$ user</em> has now gained virtual accessors and mutators and it even knows how to directly save its data by itself in the database!<br />
<code><br />
$user<br />
->setEmail('player@example.com'); // Updating the field 'email'<br />
->setUsername('Player') // Updating the field 'username'<br />
->save();<br />
</code></p>
<h3>Yes, It&#8217;s all well and good, but I like it like it was before!</h3>
<p>No panic! our $user keeps up appearances and can still be used just like we did before:<br />
<code>echo  $user['username'];</code></p>
<h3>But it does not stop with a simple syntax change!</h3>
<p>Yes, rather than having functions everywhere, and asking where a particular feature would be, why not combine everything in one place? Well, we do it now! For example: to manage the connection of a player, why not create an automated mechanism?<br />
<code><br />
$user =  Nova::getModel('user/user');<br />
if  ($user-&gt;login($_POST['username'], $_POST['password'])) {<br />
//  Our user has submitted the good password, he is now logged in<br />
}  else {<br />
// A problem hapened, maybe a passord error?<br />
}<br />
</code></p>
<p>Oh, but how could we retrieve the current user from anywhere now? Simple! Easy! The sessions comes to help us and have also been improved:<br />
<code><br />
$user = Nova::getSingleton('user/session')->getUser();<br />
</code></p>
<p>We now got back our $user, which have logged in in the previous example.</p>
<h3>And it goes  even further!</h3>
<p>Develop  and debug your old mods or develop modules for Legacies by enabling <em>debug</em> mode and <em>Deprecation</em> mode and use the source code profiler, simple tools and methods to optimize your code.</p>
<p>In your .htaccess, add the following to enable the two methods mentioned above:<br />
<code><br />
SetEnv DEBUG On<br />
SetEnv DEPRECATION On<br />
</code></p>
<p>The  source code profiler is used to count the time taken by a particular treatment, it will return the number of times that it was executed, and various statistics of execution time. It is used with both static methods <em>Nova::profilerStart()</em> and <em>Nova::profilerStop(),</em> respectively, to start a counter and stop t. It both take a single argument that identifies the time counter:<br />
<code><br />
Nova::profilerStart('NOVA.EXAMPLE');<br />
// The treatment to analyze starts from here<br />
for ($i = 0; $i &lt; 200000; $i++) {<br />
echo 'Hello world';<br />
}<br />
// and ends here<br />
Nova::profilerStop('NOVA.EXAMPLE');<br />
</code></p>
<p>Note that the profiler results will only appear in debug mode.</p>
]]></content:encoded>
			<wfw:commentRss>http://wootook.org/archives/~greg/2010/03/2010-1-the-foundations-of-a-new-architecture.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>2010.1 &#8211; Les fondements d&#8217;une nouvelle architecture</title>
		<link>http://wootook.org/archives/~greg/2010/03/2010-1-les-fondements-dune-nouvelle-architecture.html</link>
		<comments>http://wootook.org/archives/~greg/2010/03/2010-1-les-fondements-dune-nouvelle-architecture.html#comments</comments>
		<pubDate>Wed, 24 Mar 2010 11:00:25 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Développement]]></category>
		<category><![CDATA[francais]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[XNova:Legacies]]></category>
		<category><![CDATA[XNova:Next-Gen]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[clone ogame]]></category>
		<category><![CDATA[modèles]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[ogame]]></category>
		<category><![CDATA[ogame clone]]></category>
		<category><![CDATA[serveur privé]]></category>
		<category><![CDATA[xnova legacies]]></category>

		<guid isPermaLink="false">http://www.xnova-ng.org/?p=530</guid>
		<description><![CDATA[Aujourd&#8217;hui, c&#8217;est un billet pour les développeurs que je ferais, l&#8217;occasion d&#8217;introduire la nouvelle architecture de XNova:Legacies et expliquer ses différences avec ce qui a pu exister jusqu&#8217;à présent sur le projet. Ce n&#8217;est pas inutile de rappeler que les plus grosses évolutions de la prochaine version reposent sur un tout nouveau code source écrit [...]]]></description>
			<content:encoded><![CDATA[<p>Aujourd&#8217;hui, c&#8217;est un billet pour les développeurs que je ferais, l&#8217;occasion d&#8217;introduire la nouvelle architecture de XNova:Legacies et expliquer ses différences avec ce qui a pu exister jusqu&#8217;à présent sur le projet. Ce n&#8217;est pas inutile de rappeler que les plus grosses évolutions de la prochaine version reposent sur un tout nouveau code source écrit en PHP 5.2, cette version de PHP devient donc désormais un prérequis pour faire fonctionner XNova:Legacies, mais rassurez vous : cette version date de 2006, la très large majorité des hébergeurs PHP la supportent depuis longtemps.</p>
<p>Pour revenir à ce qui nous anime ici, tout a été repensé pour faciliter la modification rapide et simple du fonctionnement du jeu sans toucher 1 seule ligne du code source original. Tout se passe dans la configuration : si une fonctionnalité du code source de base ne nous plait pas : on la remplace, c&#8217;est aussi simple que ca.  </p>
<p>Accéder à des données provenant de la base de données n&#8217;a jamais été aussi simple et aussi sûr :<span id="more-530"></span> on récupère un ID, et on charge notre modèle, et tout ca sans aucun risque <a href="http://board.xnova-ng.org/index.php?showtopic=1317&#038;hl=injection">d&#8217;injection SQL</a>. Mais comment modifier, créer ou supprimer un enregistrement? une ligne suffit! Pour la sortie du preview 2010-alpha0, seul le module <em>User</em> sera terminé. Il est relativement simple et pourra donc servir à la fois d&#8217;étalon et de benchmark pour tout ce qui suivra : 90% de ce nouveau code source sera commun à une très large majorité de fonctionnalités ou de refontes futures.</p>
<p>Mais tout ca fait beaucoup de paroles et peu d&#8217;exemples, donc voici quelques avant-goûts (soumis peut-être à modification dans la version finale) :</p>
<h3>Chargement et modification des données d&#8217;un joueur quelconque depuis la base de données :</h3>
<p>Pour charger les données d&#8217;un joueur ayant, par exemple, l&#8217;ID 8 dans la base de données, le code suivant est suffisant :<br />
<code>$user = Nova::getModel('user/user')-&gt;load(8);</code></p>
<p>La suite? utilisez la variable nouvellement créée (ici, <em>$user</em>) et utilisez la comme un tableau, comme vous le faisiez jusqu&#8217;à présent&#8230; ou presque. Oui, parce qu&#8217;aujourd&#8217;hui ce n&#8217;est plus un tableau, mais un objet. La différence? et bien c&#8217;est qu&#8217;aujourd&#8217;hui, mon <em>$user</em> a gagné des accesseurs et des mutateurs virtuels et il sait même comment aller enregistrer ses données tout seul dans la base de données !<br />
<code><br />
$user<br />
-&gt;setEmail('joueur@example.com'); // modification du champ 'email'<br />
-&gt;setUsername('Joueur') // Modification du champ 'username'<br />
-&gt;save();<br />
</code></p>
<h3>Oui, tout ca, c&#8217;est bien beau, mais j&#8217;aimais bien avant!</h3>
<p>Pas de panique! notre $user garde les apparences et peut toujours être utilisé comme avant :<br />
<code>echo $user['username'];</code></p>
<h3>Mais on ne s&#8217;arrête pas à un simple changement de syntaxe!</h3>
<p>Oui, plutôt que d&#8217;avoir des fonctions un peu partout, de ne plus savoir où se trouvent telle ou telle fonctionnalité, pourquoi ne pas tout regrouper à un seul endroit? eh bien, c&#8217;est que nous faisons dès maintenant! Par exemple : pour gérer la connexion d&#8217;un joueur, pourquoi ne pas créer un mécanisme automatisé?<br />
<code><br />
$user = Nova::getModel('user/user');<br />
if ($user-&gt;login($_POST['username'], $_POST['password'])) {<br />
// Notre utilisateur s'est bien connecté avec le bon mot de passe<br />
} else {<br />
// Un problème est survenu, peut-être une erreur dans le mot de passe?<br />
}<br />
</code></p>
<p>Oh, mais comment récupérer l&#8217;utilisateur courant maintenant? Simple! Les sessions nous viennent en aide et ont elles aussi été améliorées :<br />
<code><br />
$user = Nova::getSingleton('user/session')->getUser();<br />
</code><br />
On retrouve maintenant notre $user, celui qui s&#8217;est connecté dans l&#8217;exemple précédent.</p>
<h3>Et on va encore plus loin!</h3>
<p>Développez et débugguez vos anciens mods ou développez des modules pour Legacies en activant les modes <em>Debug</em> et <em>Deprecation</em> et utilisez le profileur de code source, des outils simples et pratiques pour optimiser votre code.</p>
<p>Dans votre .htaccess, ajoutez les lignes suivantes pour activer les deux modes cités plus haut :<br />
<code><br />
SetEnv DEBUG On<br />
SetEnv DEPRECATION On<br />
</code></p>
<p>Le profileur de code source, lui sert à calculer le temps que prendra un traitement, il vous retournera le nombre de fois que ce traitement est effectué, et différentes statistiques de temps d&#8217;exécution. Il s&#8217;utilise avec les deux méthodes statiques <em>Nova::profilerStart()</em> et <em>Nova::profilerStop()</em>, respectivement pour démarrer un compteur et l&#8217;arrêter. Elles prennent toutes les deux un seul argument qui identifiera le compteur :<br />
<code><br />
Nova::profilerStart('NOVA.EXAMPLE');<br />
// Le traitement à étudier commence ici<br />
for ($i = 0; $i < 200000; $i++) {<br />
    echo 'Hello world';<br />
}<br />
// et se termine là<br />
Nova::profilerStop('NOVA.EXAMPLE');<br />
</code></p>
<p>Notez que le profiler n'apparaîtra qu'en mode debug.</p>
]]></content:encoded>
			<wfw:commentRss>http://wootook.org/archives/~greg/2010/03/2010-1-les-fondements-dune-nouvelle-architecture.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Sortie proche de la verison 2010-alpha0</title>
		<link>http://wootook.org/archives/~greg/2010/03/sortie-proche-de-la-verison-2010-1-alpha0.html</link>
		<comments>http://wootook.org/archives/~greg/2010/03/sortie-proche-de-la-verison-2010-1-alpha0.html#comments</comments>
		<pubDate>Fri, 12 Mar 2010 15:48:51 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Développement]]></category>
		<category><![CDATA[francais]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[XNova:Legacies]]></category>
		<category><![CDATA[XNova:Next-Gen]]></category>
		<category><![CDATA[2009.3]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[2010.1]]></category>
		<category><![CDATA[alpha]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[clone ogame]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[ogame]]></category>
		<category><![CDATA[ogame clone]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[poo]]></category>
		<category><![CDATA[refactoring]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[serveur privé]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.xnova-ng.org/?p=513</guid>
		<description><![CDATA[Salut à tous, il est temps d&#8217;annoncer la venue de la nouvelle version 2010.1 de XNova:Legacies, qui apporte des changements majeurs dans les sources: Elle comprend des parties du Zend Framework 1.9.6. Cette version inclura une API d&#8217;accès aux donnés provenqnt de XNova:Next-Gen, rendant la fonction doquery() obsolète &#8211; elle sera donc supprimée peu à [...]]]></description>
			<content:encoded><![CDATA[<p>Salut à tous, il est temps d&#8217;annoncer la venue de la nouvelle version 2010.1 de XNova:Legacies, qui apporte des changements majeurs dans les sources: Elle comprend des parties du Zend Framework 1.9.6.</p>
<p>Cette version inclura une API d&#8217;accès aux donnés provenqnt de XNova:Next-Gen, rendant la fonction <em>doquery()</em> obsolète &#8211; elle sera donc supprimée peu à peu des sources dans les versions futures. Désormais, plusieurs connexions à la base de données peuvent être mises en place, utilisant les moteurs de bases de données différentes, ce sera utile pour une migration future du code source utilisant le connecteur <em>ext/mysql</em> à un des autres connecteurs <em>ext/pdo_mysql</em> ou <em>ext/mysqli</em>.</p>
<p>D&#8217;autres changements intéressants pour les administrateurs de jeu es la réécriture complète du fichier &#8220;<em>include/vars.php</em>&#8220;, qui sera maintenant beaucoup plus lisible pour tous et la possibilité d&#8217;afficher simplement, grâce à la configuration, des messages de débogage et de dépréciation.</p>
<p>Pendant longtemps, cette version a été annoncé comme étant la version 2009.3, certains ont fait quelques observations et comme il y aura beaucoup de changements dans le code source, le numéro de version majeur sera changé en 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://wootook.org/archives/~greg/2010/03/sortie-proche-de-la-verison-2010-1-alpha0.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Version 2010-alpha0 is coming!</title>
		<link>http://wootook.org/archives/~greg/2010/03/version-2010-1-is-coming.html</link>
		<comments>http://wootook.org/archives/~greg/2010/03/version-2010-1-is-coming.html#comments</comments>
		<pubDate>Thu, 11 Mar 2010 11:00:25 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Développement]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[XNova:Legacies]]></category>
		<category><![CDATA[XNova:Next-Gen]]></category>
		<category><![CDATA[2009.3]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[2010.1]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[clone ogame]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[ogame]]></category>
		<category><![CDATA[ogame clone]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[private server]]></category>
		<category><![CDATA[refactoring]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.xnova-ng.org/?p=504</guid>
		<description><![CDATA[Hi folks, it&#8217;s time to announce the coming of the new version 2010.1 of XNova:Legacies, which brings major changes in the sources : It includes parts of the Zend Framework 1.9.6. This version will include an object-oriented data access API coming from XNova:Next-Gen, making the doquery() function deprecated &#8211; it will therefore be deleted little [...]]]></description>
			<content:encoded><![CDATA[<p>Hi folks, it&#8217;s time to announce the coming of the new version 2010.1 of XNova:Legacies, which brings major changes in the sources : It includes parts of the <em>Zend Framework 1.9.6</em>.</p>
<p>This version will include an object-oriented data access API coming from XNova:Next-Gen, making the <em>doquery()</em> function deprecated &#8211; it will therefore be deleted little by little from the sources in future versions. As a matter of fact, multiple connections to the database can now be set up, using various database engines, this will be useful for a future migration from the deprecated <em>ext/mysql</em> database connector to either <em>ext/pdo_mysql</em> or <em>ext/mysqli</em> connectors.</p>
<p>Some other interesting changes for game administrators are the refactoring of the file &#8220;<em>include/vars.php</em>&#8220;, which will now be much more human-readable and the ability to easily display debug and deprecation messages.</p>
<p>For a long time, this version has been announced as the version 2009.3, some have made some remarks and as long as there are a lot of core changes, changing the main version number may be a good idea, then.</p>
<p>As like the 2009.1, there will be multiple releases before a &#8220;stable&#8221; version comes, a debug server will be launched very soon to launch some &#8220;Bug Hunt Days&#8221; and find more bugs, more bottlenecks to fix in early releases.</p>
]]></content:encoded>
			<wfw:commentRss>http://wootook.org/archives/~greg/2010/03/version-2010-1-is-coming.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Ladies and gentlemen&#8230;the Moon!</title>
		<link>http://wootook.org/archives/~galactus/2009/10/laydies-and-gentlemanthe-moon.html</link>
		<comments>http://wootook.org/archives/~galactus/2009/10/laydies-and-gentlemanthe-moon.html#comments</comments>
		<pubDate>Mon, 19 Oct 2009 13:33:30 +0000</pubDate>
		<dc:creator>galactus</dc:creator>
				<category><![CDATA[Développement]]></category>
		<category><![CDATA[Graphismes]]></category>
		<category><![CDATA[XNova:Next-Gen]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[clone ogame]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[ogame]]></category>
		<category><![CDATA[ogame clone]]></category>

		<guid isPermaLink="false">http://www.xnova-ng.org/?p=454</guid>
		<description><![CDATA[Pendant que certains s&#8217;énervent a rendre une RCx qui marche ^^, d&#8217;autres gribouillent encore&#8230; Comme vous le savez, les lunes sont très utiles dans le cadre d&#8217;attaques ou d&#8217;énergie au sein de la NG (comment ça d&#8217;énergie&#8230; vous voulez dire que l&#8217;on pourra construire une centrale sur la lune qui alimentera la planète?&#8230; chut! répondit [...]]]></description>
			<content:encoded><![CDATA[<p>Pendant que certains s&#8217;énervent a rendre une RCx qui marche ^^, d&#8217;autres gribouillent encore&#8230;</p>
<p>Comme vous le savez, les lunes sont très utiles dans le cadre d&#8217;attaques ou d&#8217;énergie au sein de la NG (comment ça d&#8217;énergie&#8230; vous voulez dire que l&#8217;on pourra construire une centrale sur la lune qui alimentera la planète?&#8230; chut! répondit le hamster gourou)</p>
<p>Sur la lune vous trouverez :</p>
<div id="attachment_455" class="wp-caption alignnone" style="width: 510px"><img class="size-full wp-image-455 " title="Base lunaire" src="http://downloads.tuxfamily.org/xnlegacies/statique/blog/wp-content/uploads/2009/10/moon_base_v2.jpg" alt="moon_base_v2" width="500" height="500" /><p class="wp-caption-text">Une base lunaire, point de départ de votre expansion (MOON BASE)</p></div>
<p><span id="more-454"></span></p>
<div id="attachment_456" class="wp-caption alignnone" style="width: 510px"><img class="size-full wp-image-456  " title="Centrale solaire" src="http://downloads.tuxfamily.org/xnlegacies/statique/blog/wp-content/uploads/2009/10/solar_wing_farm.jpg" alt="solar_wing_farm" width="500" height="500" /><p class="wp-caption-text">Une centrale éléctrique à vent solaire (chutt on a dit ^^) (SOLAR WIND FARM)</p></div>
<div id="attachment_457" class="wp-caption alignnone" style="width: 510px"><img class="size-full wp-image-457 " title="Phalange de capteurs" src="http://downloads.tuxfamily.org/xnlegacies/statique/blog/wp-content/uploads/2009/10/phallange.jpg" alt="phallange" width="500" height="500" /><p class="wp-caption-text">Une petite phalange de capteurs, afin d&#39;espionner certains mouvements de flotte ou plus... (mais tu balance tout... arrêtes enfin! ^^) (SENSOR PHALANX)</p></div>
<div id="attachment_458" class="wp-caption alignnone" style="width: 510px"><img class="size-full wp-image-458  " title="Porte de saut spatial" src="http://downloads.tuxfamily.org/xnlegacies/statique/blog/wp-content/uploads/2009/10/jump_gate_v2.jpg" alt="jump_gate_v2" width="500" height="500" /><p class="wp-caption-text">Et une jolie porte de saut afin de faire... des sauts... (JUMP GATE)</p></div>
<p>Bon visionnage <img src='http://www.xnova-ng.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>PS : désolé, je traine un peu mais</p>
<p>&#8220;A vie chargée, temps étendu &#8221; : Lao Tseu, 3eme siècle avant Jean Claude</p>
]]></content:encoded>
			<wfw:commentRss>http://wootook.org/archives/~galactus/2009/10/laydies-and-gentlemanthe-moon.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

