OldTimes Engine 2.0 (WIP)

Place to place any code snippets, completed games, or even uncompleted games for IR users to use.
Post Reply
User avatar
vitinho444
Posts: 2825
Joined: Mon Mar 21, 2011 4:54 pm

OldTimes Engine 2.0 (WIP)

Post 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)
Last edited by vitinho444 on Wed Feb 27, 2013 12:03 pm, edited 4 times in total.
My Company Website: http://www.oryzhon.com

Skype: vpegas1234
User avatar
Jackolantern
Posts: 10893
Joined: Wed Jul 01, 2009 11:00 pm

Re: OldTimes Engine 2.0 (WIP)

Post by Jackolantern »

Looking very good so far :)
The indelible lord of tl;dr
User avatar
vitinho444
Posts: 2825
Joined: Mon Mar 21, 2011 4:54 pm

Re: OldTimes Engine 2.0 (WIP)

Post by vitinho444 »

Thanks, i have big expectations for this "engine".
My Company Website: http://www.oryzhon.com

Skype: vpegas1234
User avatar
vitinho444
Posts: 2825
Joined: Mon Mar 21, 2011 4:54 pm

Re: OldTimes Engine 2.0 (WIP)

Post 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
My Company Website: http://www.oryzhon.com

Skype: vpegas1234
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: OldTimes Engine 2.0 (WIP)

Post by hallsofvallhalla »

good to see you working on this.
User avatar
vitinho444
Posts: 2825
Joined: Mon Mar 21, 2011 4:54 pm

Re: OldTimes Engine 2.0 (WIP)

Post 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.
My Company Website: http://www.oryzhon.com

Skype: vpegas1234
User avatar
vitinho444
Posts: 2825
Joined: Mon Mar 21, 2011 4:54 pm

Re: OldTimes Engine 2.0 (WIP)

Post 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
My Company Website: http://www.oryzhon.com

Skype: vpegas1234
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: OldTimes Engine 2.0 (WIP)

Post 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.
User avatar
vitinho444
Posts: 2825
Joined: Mon Mar 21, 2011 4:54 pm

Re: OldTimes Engine 2.0 (WIP)

Post by vitinho444 »

Thanks, and sorry again :)
My Company Website: http://www.oryzhon.com

Skype: vpegas1234
Post Reply

Return to “Code Sharing”