Jump to content
MakeWebGames

advocaite

Members
  • Posts

    27
  • Joined

  • Last visited

Everything posted by advocaite

  1. If you really wanted to go with today's standards you could go zend2, synfony2 , yii2 or some other mature framework each with a nice learning curve some are steep. I would say Codeignighter too its most likely the easiest but there is issues with Ellis labs not continuing the project in hopes others will so it still has a lot of hope and its documentation is epic. also a good start is the concept and idea of game using normal paper is awesome for doing this. flow charts will help you with structure and organization once there and ready start coding it together.
  2. I have updated footer and will add a read-me of the license in bitbucket. This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. So if you edit it fork it and share it other wise keep moving and dont bother...
  3. Well I have rights to do as I want with it as do others as there is no actual licensing for it. As for a clone that is not what it is its a full script just like the one cris sells he is not only one who got rights to it. So now its open source people can do what they want for it as for bad practices in code the repo will get updated so i wouldn't matter if you want to help msg me on bitbucket. ripping graphics i made the theme using bootstrap 3 as I was planing to make it more responsive to mobiles and the like. and the background image is totally mine i still have psd for it. I do expect other to theme it there own unique way but I'm sure people will just use the theme it has
  4. http://ww3.thecoldwars.net   login details test qwerty123
  5. a few ill fix them up on repo soon at least now everyone can get it free
  6. https://bitbucket.org/advo/kosgame/overview   enjoy it if you want to join development make this script beter hit me up on bitbucket https://bitbucket.org/advo/kosgame/overview
  7. I think I still have his email in my old gmail account not sure if he is actively developing the script anymore after it was hacked sorta went down drain I look into it and pm you it if i find it as i said all his old sites are now either down or no longer in his control. feel free to add me to skype can help you with any issue you have script wise..
  8. http://ww3.thecoldwars.net this is my version Im setting up atm .. Im fixing all the exploits in forum and account managment that cause the scipt to be hacked in first place. also the script used to be deviant war but that site got hacked and ended up loosing player base and then his site was hacked again and domain stolen and is nowpart of some phishing attempt. here is file system you should have if you have the real version not just the hacked version [ATTACH=CONFIG]1160[/ATTACH] just letting you know this script has had some illegal activity i got permision to use mine by the person who owned deviant war a few years back now. just thought id let you know
  9. nice work here is link to psd source and tutorial for anyone wanting to know how he done it http://supercolortuts.com/create-a-shiny-gold-star-coin-in-photoshop/
  10. I cant win with you Ive already stated that its being depreciated we know this, you said thats ok we can suppress those errors. The fact you even show a option to suppress them shows you yourself would do that or at least thats what your teaching others by setting it as an example, some newbie coder would think thats there fix and never learn and cry when there script dies. Also it's not just being depreciated it is being completely removed so yes those out of date website will stop working the day that happens unless they stay with older versions.Dose this make sence to you now.. I hope so.... Your opinion is yours, mine is mine when it come to becoming a industry standard I work in the industry so I like to think I know something about trends there is enough evidence to prove its becoming a industry standard in php to say it isnt or wont is just bull**** they said same thing about OOP and looky now most major frameworks and websites are OOP orentated, they even said that about MVC and look now so many frameworks use this model. so stop kidding your self please. also let me give you a example of why pdo and its driver ability is better, lets say you make a web game or online game with c++ and your using Microsoft SQL Server as database and you have a website and want to show of stats MySqli wont we able to connect to that db but PDO can this is another reason why PDO is the way to go there is many examples of why its better overall I don't want a argument and am not saying you should defenitly choose PDO im just saying that the majority will go with PDO. So I'm just gonna agree to disagree with you and that will be the end of it. unless you can give me something to prove otherwise.
  11. I see your reasoning... To be perfectly frank here this is bad form. You should not do this just cause it throws errors up suppressing errors notices dose not fix them. and how can you suppress fatal errors when its fully removed that is just a quick fix dose not solve anything. teaching people to do this is just bad plain bad. MySQLi is good for somethings but not for everything and it depends on situation. also you can be a gramma nazi all you like shows what a dick you actually are.not everyone is perfect at English Now my reasoning to PDO being the way forward is the fact its already becoming a industry standard, MySQLi is bound only to MySQL where as PDO can connect to many different databases as well as MySQL. So that in itself proves with out shadow of doubt that it better to use more flexible.(although this is not just my opinion there si many who think the same. Just cause its not the only option dose not mean it wont be the best option. the learning curve for MySQLi is not hard at all pretty much same as old MySQL PDO is harder to learn if your not a object orientated programmer. Once learned you start to see how much better it is and why, but again its personal preference. You can say what you like but PDO is the way to go as everyone will most likely use it in end as industry standard. For me to get a job it is also one of the basic requirements for working where I work, now and im guessing would be same in any company similar to the one i work at.
  12. If you want to team use bitbuket or git hub make a repo add developers to it that way you can be in total control developers can see what you have done you can see what they done make mistakes can easily revert them back to revision you want you can branch off and do other things then merge that branch with is master if you lthink its all good. also installing git on a vps mean you can pull dicrectly from your repo to your server saving having to ftp over and over
  13. Ummm mate im not saying you have to use all drivers at all but what dont you understand about depreciation all mysql_query mysql_fetch_array row etc etc will be removed from php making it that you must use the PDO classes built for php or move to mySQli.. this mean any game site that connects to a db unless on older version of php will have to use PDO eventually or mySQLi ethier way for those using ext/mysql will be screwed.. the reason i showed the drivers was to open up that PDO is and will become very versitile. and the drivers are only used like this let me show you some example   private function Connect() { $this->settings = parse_ini_file("connect.ini.php"); //BELOW IS WHERE DRIVER IS USED DEPENDING ON WHAT DB YOU NEED TO CONNECT TO $dsn = 'mysql:dbname='.$this->settings["dbname"].';host='.$this->settings["host"].''; try { // Read settings from INI file $this->pdo = new PDO($dsn, $this->settings["user"], $this->settings["password"]); // We can now log any exceptions on Fatal error. $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // Disable emulation of prepared statements, use REAL prepared statements instead. $this->pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); // Connection succeeded, set the boolean to true. $this->bConnected = true; } catch (PDOException $e) { echo $this->ExceptionLog($e->getMessage()); die(); } }
  14. its made from scratch with no framework
  15. its same script to a tee I check it just its missing all the things that didnt get hacked like the account portals ect ect a few things are missng but its not my issue its his as he has been ripped off I will show a full version when i get a new host or even skype ill show you somethings missing i may even just release it free see how that goes ;)
  16. PDO is the way forward for a few reasons MySQL functions WILL be depreciated as of php5.5 and onwards eventually removed, so its better to get moving towards it now then when your site breaks cause your using old code. PDO can use many drivers list here: PDO_CUBRID Cubrid PDO_DBLIB FreeTDS / Microsoft SQL Server / Sybase PDO_FIREBIRD Firebird PDO_IBM IBM DB2 PDO_INFORMIX IBM Informix Dynamic Server PDO_MYSQL MySQL 3.x/4.x/5.x PDO_OCI Oracle Call Interface PDO_ODBC ODBC v3 (IBM DB2, unixODBC and win32 ODBC) PDO_PGSQL PostgreSQL PDO_SQLITE SQLite 3 and SQLite 2 PDO_SQLSRV Microsoft SQL Server / SQL Azure PDO_4D 4D All round if your afraid to use PDO don't be cause you will love it in end and it will become a part of your coding career. The more you use it the more it will become like second nature.
  17. sure thing I just built this for a client of mine (still working on it atm) http://top10minecraftservers.com/
  18. becarefull what you hold in cookies cause cookies can be modified with ease and should never be trusted as a main source of data
  19. advocaite

    Question

    ok a few things to note here i use PDO so alot of my trouble with injection is no a issue as much as older code like this   function login() { $username = $_POST['username']; $password = $_POST['password']; $query = ("SELECT username, password from people WHERE {$username} = username AND {$password} = password "); $result = mysql_query($query); if(mysql_num_rows($result) < 1) { echo"Doesn't exist"; } } else { $_SESSION['valid'] = 1; $_SESSION['username']; echo $_SESSION['username']; } }   OK first error   } else { $_SESSION['valid'] = 1; $_SESSION['username']; echo $_SESSION['username']; } no function ends with a else ever it just wont work a better way you could do it is like this   //here we will sanitise any POST or GET inputs from script kiddies foreach( $_POST as $key => $value ){ if (is_array($value)) { $value = array_map("mysql_real_escape_string",$value); $value = array_map("strip_tags",$value); } else { $value = mysql_real_escape_string($value); $value = strip_tags($value); } $_POST[$key] = $value; } foreach( $_GET as $key => $value ){ if (is_array($value)) { $value = array_map("mysql_real_escape_string",$value); $value = array_map("strip_tags",$value); } else { $value = mysql_real_escape_string($value); $value = strip_tags($value); } $_GET[$key] = $value; } //now lets do a nice login function for you function login($username, $password){ $username = $_POST['username']; $password = md5($_POST['password']);// you should also md5 password to keep secure or use sha even better add you own salt to it... $query = ("SELECT username, password from people WHERE username = ".$username." AND password = ". $password." LIMIT 1 "); $result = mysql_query($query); if(mysql_num_rows($result) > 0) { $array=mysql_fetch_array($result); $_SESSION['username'] = $array['username']; return true; } else { return false; } } // now this will work alot better for you below ill show example on how to use function say inside a login.php script if( !login($username ,$password) ){ echo "Invalid details you sure your a member."; }else{ //do what ever you like for a logged in member }   I hope this helps explain some things for you. also note the part where i sanitized values need to be before any post data is used so if you had a main include or file you include on all pages, then that's where i would have it. As long as you use post and get vars after that should be fine. there is more to protect from like xss attacks js exploiting and more hackers find ways to do many things but google how to fix these you will get answers..
  20. if you want to code a game by self from scratch you can use many of the frameworks out there. codeigniter is a great one to use easy for newbs or you can create your own framework ( my preferred choice ) also use PDO if you plan to use php/mysql as mysql functions will be depreciated in php5.5 so soon or later all these old scripts will die and be broken till someone comes along and fixes them. google is your best friend dont be afraid to use it.
  21. basicly what he wants is when user comes to game it ask for perms, and any extra perms like posting to wall etc etc, then once added add user allow them to play and never have to click login with facebook button or connect button. This is quite easy to do if you want add me to skype Ive not ever used MCcode before but should not be hard to edit it to do what you want my skype is advocaite lets talk.
  22. sorry must have totally mised that post but now i read it and see the site seems like its the hacked release of deviant wars as its missing account portal, built in forum, the ability to choose your own resources so many things, man he got ripped off bad. Makes me want to give him the full script BTW if your having issues with anything in it let me know i maybe able to help you
  23. the only way to take down a site for good is by taking the person to court. hitting up host dose nothing as they can then hit you with same notice requiring you to goto court and get a judge to say remove it. buy a ioncube license encode your scripts personally to domain of users choice, time limit free version you will be fine then its hard enough to decode ioncube 7 let alone the new version 8. soing above may mean you cant make new mods but with some smarts you can take all the free versions of mods and have them encoded for your site code up paid version yourself and be in total control of the script....
  24. Still i rember working on this engine back when there old forums was up then moved to travian development its a bad game engine hope v2 is better
  25. question did you code this game or rip it cause if you say you coded it I know you talking trash..... reason I know is I have like 4 different version of the same game and have coded complete games like it for like 2-3years now
×
×
  • Create New...