Jump to content
MakeWebGames

Dayo

Administrators
  • Posts

    2,491
  • Joined

  • Last visited

  • Days Won

    196

Everything posted by Dayo

  1. The bundle above is not part of the premium but I am working on releasing several changes for GL premium over the next few days. I am working on a better way to update premium purchasers with new features and updates
  2. For this black friday i have reduced the price of GL Premium to $70 that is a huge 30% OFF!!! I have also released a new module bundle with a 40% discout from retail price with several modules that people have been wanted for a long time! Check it out below This offer is valid until Friday 4th December, tGL Premium will go back to $100 and the bundle will go to $40.
  3. This will be released this Friday along with some other changes to the GL Premium
  4. Dayo

    JS get tr ID

    Yes and no ... it’s part of the default theme but not in the engine. I must admit I need to alter some of the core modules to remove that dependency as you can’t always rely on it being there
  5. Dayo

    ERROR 500

    Yes crons are useful and have their place, i have them running on almost every server i maintain. But you have to look at the use case. If all you want to do is add 1 energy to an account every 60 seconds is a cron the best way to do it? Backing up my filesystem at 2am thats not something i want to do cronless ... I strongly advised against them in this scenario purely for ease of install and to help Sim out in the long run, the less support calls you have to answer the more development you can do and more money you make. Plus it gives the customer a better experience if they can just upload a zip file and everything is done. They don't have to chase the developer but because of time zones/weekends it takes 3/4 days to get it fixed.
  6. Dayo

    ERROR 500

    This isnt the place to ask for help as its a different thread, try making a mew post in the McCodes forum. try here https://makewebgames.io/forum/65-engine-support/
  7. Dayo

    ERROR 500

  8. Dayo

    ERROR 500

    For you it may be simple to set up a cron ... What if the user does not know what a cron is? What if their host does not support crons? What if they don't change the default password? What if they break the code changing that password? The whole point of the module system in GL is to make installing modules seamless, all the tools are there to do it. I don't understand why you would want to do it that way, it just makes installing it a lot harder and when someone buys it and cant install it will you help them set up the cron?
  9. Dayo

    ERROR 500

    I strongly advise against using crons I even made a PHP class to replace them with when I’m up I’ll link it
  10. Dayo

    ERROR 500

    Can I ask why do you need a cron? Also if you have invalid PHP it wont run the script at all we would need more then the first 9 lines to debug
  11. That is true, its handy being able to get the properties off of the images though, especially for things like gradients
  12. I can code them up for GL if you like, if you can send me the PSDs ill fin some time next week to do it
  13. wow this is a very livley graveyard 😛
  14. There will be an upgrade to GL Premium later this week with his bug fix, im just finalizing some changes to the menu structure at the moment In fact i may delay the release as there may be a special black Friday deal involving GLv2 Premium 😉 (existing purchasers get it free)
  15. In its simplest form it’s electricity flowing through a rock and that does something ...
  16. I had a hour to burn this afternoon so I had a go at making a McCodes template, why do people think?
  17. Mind sharing what was wrong so other people know for the future?
  18. If you find generating the module.json difficult i can always make a tool to generate it.
  19. The idea is to add support early on so that when you want it later it's easy to add. Mod developers like yourself can always not use this functionality and hard code strings. But by having the option people can always contribute translation files that then open up the game/engine/mod to other markets. Once multi language support is added mod developers will not have to use it but it's there for those who do. And any modules that are supported i would make a nice UI so that new language files can be added by 3rd parties. At the end of the day you should be able to install a module without ever having to open up a code editor, currently if you want a different language (there are 3 GL games i know of at least that use different languages) you have to go in and edit code directly potentially causing issues for developers in the long run when you want to release a bug fix..
  20. so my idea was to do something like this: { "name": "Crimes", "version": "1.0.0", "description": "This module allows a user to commit crimes.", "author": { "name": "Chris Day", "url": "http:\/\/glscript.cdcoding.com" }, "pageName": "Crimes", "accessInJail": false, "requireLogin": true, "adminGroup": "Game Mechanics", "admin": [ { "text": "View Crimes", "method": "view" }, { "text": "New Crime", "method": "new" }, { "hide": true, "text": "Edit Crime", "method": "edit" }, { "hide": true, "text": "Delete Crime", "method": "delete" } ], "lang": { "en": { "successText": "Success", "faileText": "Failed" }, "de": { "successText": "Erfolg", "failedText": "Gescheitert" } } } I am working on caching all of the module.json files at the moment so all of the language files would be included within the cache.
  21. Is “car” in your allowedMethods? Also on a side note you should look at $this->error(...); and $this->db->select(...);
  22. Both the method I suggested as well as uaktags suggested use language files, but by having them in JSON rather then php any language with a JSON parser can read them.
  23. I’ve only sparingly looked through the code I’m just wondering if this is a overly complex way of doing this, by the looks of it loads JSON files then generates PHP code. I have been thinking how to do this for a while. I planned on adding language translations within the module.json file then adding the translation logic within the page class so you could do something like $this->page->translate(“crime.successText”); or if you was in the tpl.php file {translate crime.successText}
  24. Dayo

    Mobile

    I have a few apps on iOS and Android that I’ve made at work
  25. @Tom V Options is a flat array, it needs to be an array of arrays if that makes sense "options" => array( array( "name" => "Car 1", // ... ), array( "name" => "Car 2", // ... ), ) <?php $locations = $this->db->selectAll("SELECT L_name as 'name', L_id as 'id' FROM locations"); foreach ($locations as $key => $location) { $locations[$key]["options"] = $this->db->selectAll("SELECT * FROM garage WHERE G_location = :loc", array( ":loc" => $location["id"] )); }
×
×
  • Create New...