a_bertrand Posted December 7, 2009 Share Posted December 7, 2009 You will find here the progress of this project. Everyone contributing to it should add a little post here too to notify about the change: - The base library is mainly ready (more will be added as we need it of course) - Modules are split in different categories: for admin, interface, locations - You will find some modules in all those categories already - Register / login should work - The work module contains an auto installer and shows how modules could install the required tables by just running the module itself. That's certainly something which may help new people to use modules created by others. - Localization of the engine is possible directly from the admin menu (which means you can as well change texts to fit your theme better, without editing the files). - Template and skins are nearly complete, and will just require a work on it to produce more than one basic template. - Player stats are game dependent and can be set via the database - Modules have full access to the stat without requiring to execute any query Currently the engine package is composed of 72 files, which is not bad for a little simple engine which just started, isn't it? Now I wait at least on your feedback if not your contributions! Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted December 8, 2009 Author Share Posted December 8, 2009 Added installer: it checks if the needed directory can be written to, ask for info about the game setup, writes the config file and creates the needed tables. Installing this engine should be really easy now. Next step is the handling of the "turns" or "time" which allows some stats to grow back after a while (like energy) Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted December 8, 2009 Author Share Posted December 8, 2009 Events are now coded (you will need to add manually a new table if you already installed the engine). Events works as any other "module" and will be loaded automatically as well. Code for a single event like increasing the energy every 30 sec is done with a complete code like the following: <?php $evt=player_event("energy",30); if($evt > 0) set_stat("energy",get_stat("energy")+$evt); ?> set_stat ensures also that the stat doesn't goes above the limit defined (either fixed, or by a function). The number 30 you fin on the second line is to define how frequently the stat need to be increased. Other things can be triggered by the same mechanism. This ensures a full working game, with background events without any cron. Quote Link to comment Share on other sites More sharing options...
shaved92bravada Posted December 9, 2009 Share Posted December 9, 2009 This is going to be awesome. Something other than mcc base to work with. I am planning to work on making or converting a template and hopefully all works well. edit* I have actually already converted a template for it, just did some changing around with main.php in the default folder, now my next task at hand is leave the default alone and create different templates to choose from and install like the modules, is that already implemented or is that something I need to work on?? I know there was talk about it just haven't done much looking around to find out. But it would be so much simpler to be able to just install a new template/theme. Once I get all of the bugs etc worked out with the current template I will post a screenshot of it if thats ok with everyone. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted December 9, 2009 Author Share Posted December 9, 2009 I will work on the engine to support multiple templates then, you will need simply to create a new directory for your template, inside the templates directory and put your files there. The two mandatory files are main.php and skin_functions.php, beside those you can have as many files as you want there (like images or whatever else). On my side, I will modify the engine such that you will be able to define the default template to use (by choosing the name in the config file), and also letting the player choose his/her template (so player will be able to customize their environment). Quote Link to comment Share on other sites More sharing options...
shaved92bravada Posted December 9, 2009 Share Posted December 9, 2009 sounds great to me, I am going to continue working on some more templates so I can put this advancement to use. Thanks for all of your hard work. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted December 9, 2009 Author Share Posted December 9, 2009 Posted a new version: - Rewrote the admin panel for the works, templar (nickson) posted a version which allows editing, and I make it compacter as well as adding the edit icon to it. - Changed the players table to add the template information: [mysql] ALTER TABLE PLAYERS ADD TEMPLATE VARCHAR(40) [/mysql] - Created an initial preference panel such that people can choose the wished template - Changed the default template to use a very small CSS - Created a new template called "blue" with guess what? A blue scheme. The menu appears on the right side, just to show that you can do whatever you want with the placement of the things. - Changed the world.php to load the chosen template or the default template as specified in the config.php - Changed the tags with <SPAN> and some class such that you customize how those feedback messages look like. - Changed the install and the config to contain the default template. - Reworked the site http://www.zapengine.com/ now it has a look, and more than a single page, even if it's still quiet empty. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted December 10, 2009 Author Share Posted December 10, 2009 Private messaging implemented (with auto installer): - You can see the message you received - You can send messages - You can delete a message - When you have a new message it's displayed in bold and the menu title shows how many new messages you have. Quote Link to comment Share on other sites More sharing options...
shaved92bravada Posted December 12, 2009 Share Posted December 12, 2009 I re downloaded it again like I do everytime there is an update rather than just editing it, anywho I think something is missing from the installer or hell maybe I did something wrong.... anyway this is what I am getting. - Work Fatal error: Call to a member function Close() on a non-object in /home/cheese/public_html/modules/locations/messaging/menu_title.php on line 4 I just tried re installing it twice more dropping all tables, etc and I still get the same error so for now I am going back with the previous installation until someone tells me what I am doing wrong. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted December 12, 2009 Author Share Posted December 12, 2009 Fixed the issue. Sorry for it. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted December 12, 2009 Author Share Posted December 12, 2009 Initial documentation may be found here: http://zapengine.com/documentation.php This should already explain why there is so many directories, and what's their purpose, as well as how to create a first module for the engine. Quote Link to comment Share on other sites More sharing options...
shaved92bravada Posted December 12, 2009 Share Posted December 12, 2009 sweet thanks for all of your hard work you have been doing, I know I'm not much help as I don't know a whole lot about php etc, but I am doing everything I can with making some templates for it. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted December 17, 2009 Author Share Posted December 17, 2009 Status update: - Currently working on an inventory / shop / object code. Where you will be able to purchase items, and wear them. The items will then be used during the calculation of the battle system. As a first quick shot the battle system will be completely automated, and you will just need to say "battle" and you will know if you win or loose. This is just to create a first game, in future more complex battles system can be built in. Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted December 17, 2009 Share Posted December 17, 2009 If yours looks anything like mine (even thought you ain't seen my code) ill have you done for stealing my work psychically. We all know yours will be great just not as great as mine (i love myself) 8| Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted December 17, 2009 Author Share Posted December 17, 2009 Hahaha /me copy Zero code and puts into /dev/null Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted December 18, 2009 Author Share Posted December 18, 2009 - Object, Object type, slot type, stats editors are there. Basically a new core feature allow you to create a table editor with a single line of code. - You can equip or unwear items - You can purchase items from the shop Remains the checks for the wearing of an item, an item viewer, and... the combats. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.