-
Posts
71 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Everything posted by AinzOoalGown
-
Thanks buddy
-
Ah ok thanks for the info, makewebgames is my host 😛 but I use it as my test environment so I can live with it.
-
Hi, Keep on getting this error from time to time, clearing cache fixes it but only for a little bit: There was an error! File: /home/galactic/public_html/system/init.php Line: 14 Error: session_start(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php71) failed: Permission denied (13) Type: E_RECOVERABLE_ERROR Will "Cookie Based Login" mod this fix the permission denied error? I am using the latest version of GL and not sure if "Cookie Based Login" is part of that version? Thanks
-
Awesome thank you that worked 🙂 Really appreciate your reply and help, I was stuck on that for a few hours! Thanks again buddy
-
Hi All, I was wondering if anyone can help me with where I have went wrong with this count: $mobGroup = $this->db->prepare("SELECT COUNT(*) AS total FROM mobs INNER JOIN locations ON MOB_group = L_mobGroup WHERE MOB_group = L_mobGroup"); $mobGroup = $mobGroup->fetch(PDO::FETCH_ASSOC); $groupTotal = $mobGroup["total"]; I am trying to count all rows in a column have have the same value between MOB_group and L_mobGround from "mobs" table and" location" table and pull the count result. So location = 1 Then and rows in mobs column "MOB_groups" = 1 it counts them and returns the value, should be 2 but its not returning any value. Thanks in advance
-
Looks class that Urbanz!
-
I have purchased this version of GL and I am very impressed. It has a lot of new features with very helpful and friendly support from AlizHarb, all questions I have asked have been promptly answered. The new UI on bootstrap 5 is very responsive and gives my game a fresh new look and feel. Would 100% recommend using this version!
-
Health Regen Script Modification Help
AinzOoalGown replied to AinzOoalGown's topic in Gangster Legends
I am using Dayo's Health regen module: So this module allows the regeneration of health over time using timestamps. Originally (from my knowledge) the other stats are regenerated in workout.hooks.php and are defined there as set values. The good thing about Dayo's health regen module is that you can set the values and time in admin panel for health regen. So I wanted to take that idea and expand it for the other stats (will, energy, brave) so they can also be set in the admin panel. However I think my math/logic is wrong. As health stat regen is deduction from US_health (US-health is bascially how much damage the player has, so reducing it to zero means a player has full health), where as other stats (will, energy, brave) is a addition (stat / maxStat (100/100)). -
I am trying to modify Dayo's Health Regen (free) script to include the other stats in game to make it easier to modify on the fly. However I cant seem to get my logic right, I am probs tired and missing something small but thought I would ask if anyone can spot where Ive went wrong. I know the health system works differently to other stats, as it looks up the rank health as max and uses US_health (damage to player) to deduct rank value so I have modified it so energy gains to US_will, unlike original which deducts from US_health. I have removed the regen from workout.hooks.php. $regenEnergy = $settings->loadSetting("regenEnergy", 1, 1); $regenTimeEnergy = $settings->loadSetting("regenTimeEnergy", 1, 1); $timerEnergy = "energyRegen"; $lastEnergy = $user->getTimer($timerEnergy); $timesEnergy = floor((time() - $lastEnergy) / $regenTimeEnergy); if ($timesEnergy) { if ($user->info->US_energy) { $newEnergy = $user->info->US_energy + ($timesEnergy * $regenEnergy); $maxEnergy = $user->info->US_maxEnergy; $user->set("US_energy", $newEnergy); if ($newEnergy > $maxEnergy) $newEnergy = $maxEnergy; $energy = $user->info->US_energy; if ($energy < 0) $energy = 0; $page->addToTemplate('energy', number_format($energy, 2)); } $user->updateTimer($timerEnergy, $lastEnergy + ($timesEnergy * $regenTimeEnergy)); } Any guidance would be great. Thanks
-
@Dayo I have found another bug which I have reported on github regarding Handlebars on usePoints: https://github.com/ChristopherDay/Gangster-Legends-V2/issues/72 Also did you get a chance to look at/fix the 3 column theme? Thanks
-
@Dayo I didnt manage to fix the three column theme, I couldn't figure it out lol
-
Ah cool thanks, I will have a look and see if I can fix it over the weekend. If I do ill send you files.
-
Thanks that worked reverting back to PHP 7.2 @Dayo Will the 3 column theme work with this update? I have installed latest version as well as installed all premium mods, but when I install the 3 column theme it doesnt show all the premium mods and is missing the character stats in top left. Thanks
-
Awesome! Nice work Dayo 😄 @Dayo I am getting an error after installing. I created a new issue on github with error: https://github.com/ChristopherDay/Gangster-Legends-V2/issues/71
-
Will this version have a premium? And if so will previous purchase of a premium version still count for this new premium version? Edit: Cant believe I said premium and versions 3 times lol😛
-
Awesome. Thanks for confirming :)
-
When this is fully released will previous mods still be compatible or need changed in anyway? Such as will all the mods that were for V2 work in this version? I got the V2 Premium previously, so just want to know if installing the "extra" mods that came with it will work. Just so I can prepare, as I am going to do a full fresh install and start a new with what I have learned 😛 Thanks
-
Awesome 🙂 This is a cool community with very helpful people. Engine is worth every penny as well. Thanks URBANZ but didn't work. Tried to replace file with a fresh copy and upgrade PHP to version 8. After upgrading PHP I get a new error: There was an error! File: /home/galactic/public_html/class/pageElement.php Line: 64 Error: Uncaught Error: Class "Handlebars\Handlebars" not found in /home/galactic/public_html/class/pageElement.php:64 Stack trace: #0 /home/galactic/public_html/class/pageElement.php(141): pageElement->templateToHTML('\n ...', Array) #1 /home/galactic/public_html/class/page.php(343): pageElement->parse() #2 /home/galactic/public_html/modules/installed/login/login.inc.php(21): page->buildElement('loginForm') #3 /home/galactic/public_html/class/module.php(30): login->constructModule() #4 /home/galactic/public_html/class/page.php(144): module->__construct() #5 /home/galactic/public_html/class/page.php(58): page->load('login') #6 /home/galactic/public_html/init.php(93): page->loadPage('login') #7 /home/galactic/public_html/index.php(5): require('/home/galactic/...') #8 {main} thrown Type: E_RECOVERABLE_ERROR EDIT: Seen your fix above for "Handlebars\Handlebars" and after doing that looks like everything is working 😄 thanks. Will do more testing and report any bugs.
-
PHP Version: 7.2.34 I am using makeweb.games hosting for my game.
-
Thought I would test out 2.4.0 so did a fresh install but for some reason I am getting a syntax error: There was an error! File: /home/galactic/public_html/class/nbbc.php Line: 801 Error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) Type: E_RECOVERABLE_ERROR
-
Some mods come zipped inside a folder, you have to unzip the mod and add the mod files directly to a zip so its not in a folder, then install that.
-
Small Bug found in GangPermissions [Solved]
AinzOoalGown replied to AinzOoalGown's topic in Gangster Legends
Haha no problem, any issue I find I will post about it 🙂 -
Notification on MoneyRank Up or Down
AinzOoalGown replied to AinzOoalGown's topic in Gangster Legends
Ah ok no problem, thanks for the heads up. I was actually going to use it for my new Alignment system that which is a copy of the MoneyRank system to display a pic based on alignment. But it acts the same as the MoneyRank system, just doesnt happen as often, takes longer to get to "Rank Up or Down" in the alignment. -
Hi, I am trying to learn a bit more about the notifications. I was wondering what is the best way to call a notification when a player ranks up or down "MoneyRank"? Thanks
-
@Sim has done some work for me and I vouch for him. Also @URBANZ has helped me fix some issues and understand a lot. Both good guys and very helpful 🙂