Jump to content
MakeWebGames

Dayo

Administrators
  • Posts

    2,491
  • Joined

  • Last visited

  • Days Won

    196

Everything posted by Dayo

  1. Dayo

    Gl v2.0.1

    Features New template - Fully responsive (uses bootstrap 3) Bank User Profiles Leader Board Users Online Timers now count down Robbery (just making the finishing touches) Code Improvements Timers are now stored separate from the userStats table and have several functions remade to deal with them i.e. $user = new user($id); $user->setTimer('timerName', $time); $user->checkTimer('timerName'); $user->getTimer('timerName'); Same as above but with settings, the save and load functions can be passed a php array (stored as JSON) or a single value When making a module the construct function would always be ran automatically after any methods have run, you can now choose if or not to run the construct module Removed all occurrences of $this->db->query with prepared statements Errors on login/Register page are better displayed I was planning on getting the admin panel and gang/family system sorted for this version but i plan to start them for 2.0.2
  2. Dayo

    Gl v2.0.1

    Yea i am going to commit it all this week (bad practice i know) ill make a list now
  3. I plan to release V2.0.1 on Wednesday, is there any features/modules you would like adding?
  4. whats your favorite type of game play for mafia/gangster games. Im asking as im at the point with GL where i can start making the main features and want to know what direction to go. Also i plan to release v2.0.1 sometime next week with a nice addition!
  5. Where did the thread about MTG and IBRAMI go?
  6. /message is too short
  7. ind im guessing you are using something like md5(mt_rand(1, 1000)) to generate the string, this would be mega easy to crack, yo can do a simple str_shuffle to make it alot harder ;)
  8. Dayo

    Email verification

    To stop a pissed off user you can just set a session after the user has registered, and when processing a new registration check for this session, if it exists say they cant register another account
  9. QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key, status) VALUES('', 'dayo', 'e4da3b7fbbce2345d7772b0674a318d5', '0')' at line 1 Query was INSERT INTO email_verification (id, playername, key, status) VALUES('', 'dayo', 'e4da3b7fbbce2345d7772b0674a318d5', '0') Also input boxes on register need work as do the login input boxes/submit button.
  10. as soon as i see a site hit counter i close the tab ...
  11. i link may help :P
  12. Dayo

    Paint!

    maybe rather then that cursor maybe have one of the size and color of what you will be painting you could have php make the image then just update the bgimage to the php file e.g. cursor.php?size=large&color=#ff0000
  13. If you have access on your server it is probably a good idea to remove the crons from your http folder and move then to the directory under it. This way users cant mess with your crons without server access (and if they have this crons are the least of your worries :P)
  14. I had a similar idea for buildings when i was building my army based game, you could build several types of buildings for your base. Defensive and attacking ones, Research ones (makes building cheaper and unlocks diffrent types of buildings), factorys (generates income) etc ... this would add a nice dimension to the game ;)
  15. when you try to manualy run the cron what HTTP code is being returned 500?
  16. are the usernames/user levels always passed via JavaScript, if so this could be a bad idea, people could impersonate yourself with little effort. as for colors https://developers.goinstant.com/v1/widgets/guides/colors.html, cant find any documentation on links
  17. By the sounds of it you would be better off asking for a new system to be developed or use another engine already out there.
  18. file.php $query = $db->prepare("some query"); $query->execute(); echo json_encode($query->fetchAll(PDO::FETCH_ASSOC)); someJsFile.js $.post('file.php', function (data) { var jsArray = $.parseJSON(data); // Any data returned in file.php in a JS array }); Links: http://en.wikipedia.org/wiki/JSON http://www.json.org/
  19. After leaving my laptop at home thursday and going to the pub friday i now have time to do some more work on GL V2 tasks for today are: 1) Look at a branching model for Github as its currently non existent - Done 2) Finish error handeling - Done 3) Make a menu system so modules can have a menu link without the user having to edit html code 4) Move the demo to a decent domain - done (http://gangsterlegends.co.uk/) 5) Start work on the back end of the admin panel (I have left all the GUI at work)
  20. Dayo

    People.....

    Im Chris Day - Im a web application developer employed at Tensor PLC but working on a product called Heatingsave. I work on both front and back end althogh im not much of a designer :P
  21. Last commit i made i added a basic error handler displaying errors can be turned off/on from config.php, all errors have two possible severities minor (wont affect the page load) and major (breaks php completely) the error is then logged as JSON array in a .txt file that will be viewable at a later date in the admin panel :)
  22. You are correct, i have been working on getting other areas working, i shall work on this next and will hopefuly have something today. As for the indentation, im not sure why it is messed up as locally the indentation is fine, i shall go through it again and re-do it it may be due to me using diffrent versions of brackets on different computers :)
  23. Thanks, your suggestions have been top notch so far :D btw i implemented the methodData and method_{actionName}, makes the code much neater rather then having a load of global variables everywhere :P I still have to implement the validation on the moduleData, not sure how i am going to handle it when it doesn't validate maybe show an error and kill the module from running
  24. I have got gangster legends V2 to the point where people can start testing what i have made so far. I have made a repository on github for the script and it can be found here. Over the past few days i have made several changes to the script so if you have an old copy re-download it ;) If you have any suggestions/criticisms feel free to post them below, PM me or email me.
  25. I have just committed what i have done so far, PLEASE NOTE this is not ready for you to make a game from, it has not gone through full testing for bugs/exploits. There is still sections of the script that code wise is very ugly (the template system is an example (im currently re-working it so you don't have to have an include for each module)) i am working on improving the core files, if you have any thoughts feel free to PM me, Post below or email me at [email protected]!
×
×
  • Create New...