Page 1 of 1

OldTimes Engine 2.0 (WIP)

Posted: Mon Feb 11, 2013 5:39 pm
by vitinho444
Hello indie-resource. As some of you may know, i'm revamping the Old Times Engine, actually is my most developed browser based game that i would like to share my code with you all.

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 :cry:


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)

Re: OldTimes Engine 2.0 (WIP)

Posted: Mon Feb 11, 2013 6:26 pm
by Jackolantern
Looking very good so far :)

Re: OldTimes Engine 2.0 (WIP)

Posted: Mon Feb 11, 2013 7:30 pm
by vitinho444
Thanks, i have big expectations for this "engine".

Re: OldTimes Engine 2.0 (WIP)

Posted: Wed Feb 20, 2013 5:10 pm
by vitinho444
Update:
The report page is done, it will have good use to people reporting bugs and users (scripters and bots)
Countdown timer added (thanks to alexander and callan)

Now doing:
Runcron system (the resources, attacks, etc)
Admin Panel start
PvP start

Re: OldTimes Engine 2.0 (WIP)

Posted: Thu Feb 21, 2013 2:31 pm
by hallsofvallhalla
good to see you working on this.

Re: OldTimes Engine 2.0 (WIP)

Posted: Thu Feb 21, 2013 3:25 pm
by vitinho444
Yeah, i want to make things right for a change.. the other version was so bugged jesus.. and ugly coding.. its impressive how much i can learn in 1 year.

Re: OldTimes Engine 2.0 (WIP)

Posted: Wed Feb 27, 2013 12:04 pm
by vitinho444
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

Re: OldTimes Engine 2.0 (WIP)

Posted: Fri Mar 01, 2013 12:41 am
by hallsofvallhalla
no need to apologize. Take care of what you need to. We all have real life things to take care of first. Thanks for your contributions so far.

Re: OldTimes Engine 2.0 (WIP)

Posted: Fri Mar 01, 2013 8:47 am
by vitinho444
Thanks, and sorry again :)