UPDATE 27/02/2013
As i'm going through some life changes, i will pause the development of this new version of the game. I will later release the current stage that allows you to have a closer look on the result till now.
I want to apologize halls and the community for stopping the project like this.. I'm sorry
I will be updating this post so you guys can know the current status of the engine development.
Status:
Name: OldTimes Engine
Version: 2.0
Platform: Browser-based RTS / MMORPG (Ready for a village based game, like ogame or tribal wars)
Multi-language: Yes 50% (This means the multi language will be attached to it, but not ready to show. In the end i will put a tutorial for setup the multi lang system)
Engine Dev Status:
Register: 100%
Login: 100%
Message of the day: 100% (So you can post messages to the players each day)
News: 100%
Village Management: 100%
Profile: 100%
Map: 10% (I'm still trying to find a system for the MAP)
Rank: 50%
Premium: 0%
Runcrons: 0%
Admin Panel: 10%
PvP: 0%
PvE: 0%
Report: 100% (Both bugs and users)
What means %% ?
It means i didn't made the system yet, but probably will take it from the old version and tweak a little.
Functions:
Code: Select all
ProtectString($string) : Prevents any SQL Injection by doing the following functions on $string (strip_tags(), mysql_real_escape_string())
Encrypt($string) : MD5's $string
Debug($string) : echo "[DEBUG]" . $string . "[DEBUG]" - Used to debug values
GetPlayer($player) : returns the info of the $player by username
GetPlayer2($player, $password) : returns the info of the $player by username and password (used in auth.php)
GetVillageById($village_id) : returns the info of the village by the id.
GetVillageByOwner($village_owner) : returns $info of the village by the owner's id
SetPlayerEmail($username, $email) : set the $username email to $email
SetPlayerPassword($username, $password) : set the $username password to $password
SetPlayerVillage($username, $village) : set the $username village to $village (used to set the village the player is controlling)
SetPlayerAdmin($username, $admin) : set the $username admin status to $admin (0 or 1)
MessageDay() : returns the message of the day
RetrieveNews() : retrieves news
RegisterPlayer($username, $password, $email) : creates a player account, a village and the troops table for that player.
More news about the engine will be posted in this post. (actual post, the first one)