Dayo Posted June 17, 2021 Share Posted June 17, 2021 (edited) Gangster Legends V2.4.1 Release Notes Over the past few months since the previous release of GL I have been working on the next release of Gangster Legends. This release aims to fill a few gaps in the engine and fix some core issues. Below is a full list of the major changes in this version: New Template engine/renderer In the past i built the template engine from scratch using HandleBars.js as a concept. Rather then re-inventing the wheel i have just chosen to replace my engine with the real thing. I have implemented HandleBars PHP into GL. While HandleBars uses double braces ({{variable}}) I have altered HandleBars it so it uses single braces to keep backwards compatibility with 3rd party modules. This fixes several bugs when rendering large templates as well as introducing a lot more functionality you can visit the documentation here to see whats possible with the new engine. New Item System One of the core limitations of Gangster Legends was its lack of an item/inventory system, before you would define several items that the user could equip and that was it. The new system opens up endless possibilities. You now have a inventory of items and you can pick and choose what items to equip/use. Items can have several effects and these can be expanded with 3rd party mods using the hook system. Some of the effects shiped with GL include: Modify Attack Power Modify Defence Power Modify User Health Heal HP Modify timer Give an item Add money Add EXP Add Bullets Premium Membership Out of the box Gangster Legends will ship with a new Premium Membership feature. Users will be able to buy Premium Membership with points, If the user is a Premium Member they will have access to additional features. By default Gangster Legends ships with the following benefits: Reduce crime timers by 25% Increase theft success chance by 10% 75% off of travel costs As with most of GL 3rd party mods can hook into this system to expand on this functionality further. Standardised Money Output By default Gangster Legends output any monetary value in dollars ($x,xxx,xxx) in this version any monetary value is passed through a function, this means if you want to change it from $ to £ or € you just define a new hook with the format. This will only work with modules shipped with the GL Core, but 3rd party modules will need to be updated to follow this. It is very easy to update code from the old way to the new way. //module.inc.php /* old */ $this->error("You need $" . number_format($cost)); /* new */ $this->error("You need " . $this->money($cost)); // module.tpl.php /* old */ Cost: ${number_format cost} /* new */ Cost: {#money cost} Links Download: https://github.com/ChristopherDay/Gangster-Legends-V2/releases/tag/2.4.1 Gangster Legends: https://glscript.net If you like Gangster Legends and want to support us further please consider donating to future development of Gangster Legends Edited June 17, 2021 by Dayo 1 Quote Link to comment Share on other sites More sharing options...
AinzOoalGown Posted June 17, 2021 Share Posted June 17, 2021 (edited) 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 Edited June 17, 2021 by AinzOoalGown Quote Link to comment Share on other sites More sharing options...
Dayo Posted June 17, 2021 Author Share Posted June 17, 2021 I’ll check it out Quote Link to comment Share on other sites More sharing options...
URBANZ Posted June 17, 2021 Share Posted June 17, 2021 1 hour ago, AinzOoalGown said: 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 @AinzOoalGownthis will be due to @Dayo reverting the nbbc version back to PHP7 as that version does not work with PHP8 correctly and even later versions of PHP7 try downgrading PHP or replace the nbbc class with the newer version in the pre-release. Quote Link to comment Share on other sites More sharing options...
Dayo Posted June 17, 2021 Author Share Posted June 17, 2021 1 minute ago, URBANZ said: @AinzOoalGownthis will be due to @Dayo reverting the nbbc version back to PHP7 as that version does not work with PHP8 correctly and even later versions of PHP7 try downgrading PHP or replace the nbbc class with the newer version in the pre-release. This is possible, ill be looking at fixing this next week, i didn't have time this week to set up a php8 server. Quote Link to comment Share on other sites More sharing options...
URBANZ Posted June 17, 2021 Share Posted June 17, 2021 7 minutes ago, Dayo said: This is possible, ill be looking at fixing this next week, i didn't have time this week to set up a php8 server. i have tested the class version i pushed with versions 7.3.28, 7.4.20 and 8.0.7 and it does function on all of them just not sure about earlier versions of PHP7 as i know alot in the newer versions has either been deprecated or totally removed. Edit: @Dayo just to confirm the PHP version is definitely the thing causing the error just made a fresh install PHP8 that error shows and all PHP7 versions the error goes away. Quote Link to comment Share on other sites More sharing options...
Canjucks Posted June 17, 2021 Share Posted June 17, 2021 Are the premium mods updated as well or just core @Dayo? Quote Link to comment Share on other sites More sharing options...
Seridam Posted June 18, 2021 Share Posted June 18, 2021 (edited) 4 hours ago, Canjucks said: Are the premium mods updated as well or just core @Dayo? If you go to the premium GL marketplace page you will see the latest version updated today. Edited June 18, 2021 by Seridam Quote Link to comment Share on other sites More sharing options...
Canjucks Posted June 18, 2021 Share Posted June 18, 2021 1 hour ago, Seridam said: If you go to the premium GL marketplace page you will see the latest version updated today. Last update the mods weren't all updated. When I say mods i mean the ones that are sold with Premium being the difference of free and paid versions. Quote Link to comment Share on other sites More sharing options...
AinzOoalGown Posted June 18, 2021 Share Posted June 18, 2021 11 hours ago, URBANZ said: @AinzOoalGownthis will be due to @Dayo reverting the nbbc version back to PHP7 as that version does not work with PHP8 correctly and even later versions of PHP7 try downgrading PHP or replace the nbbc class with the newer version in the pre-release. 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 Quote Link to comment Share on other sites More sharing options...
Dayo Posted June 18, 2021 Author Share Posted June 18, 2021 58 minutes ago, AinzOoalGown said: 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 I added a few new menus in GL 2.3 and forgot to update that theme. When im home from holiday on monday ill fix it. from memory its missing the casino, money and points menu's 1 Quote Link to comment Share on other sites More sharing options...
AinzOoalGown Posted June 18, 2021 Share Posted June 18, 2021 1 minute ago, Dayo said: I added a few new menus in GL 2.3 and forgot to update that theme. When im home from holiday on monday ill fix it. from memory its missing the casino, money and points menu's 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. Quote Link to comment Share on other sites More sharing options...
endlessGOD Posted June 20, 2021 Share Posted June 20, 2021 When im register a new user, log out and try log in, always get a message: your password is incorrect. I am sure, i use the correct password. What is the problem? Quote Link to comment Share on other sites More sharing options...
AinzOoalGown Posted June 21, 2021 Share Posted June 21, 2021 @Dayo I didnt manage to fix the three column theme, I couldn't figure it out lol Quote Link to comment Share on other sites More sharing options...
AinzOoalGown Posted June 23, 2021 Share Posted June 23, 2021 (edited) @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 Edited June 23, 2021 by AinzOoalGown Quote Link to comment Share on other sites More sharing options...
rednspirited Posted July 14, 2021 Share Posted July 14, 2021 when will the premium version be for sale? Quote Link to comment Share on other sites More sharing options...
Dayo Posted July 14, 2021 Author Share Posted July 14, 2021 1 hour ago, rednspirited said: when will the premium version be for sale? It already is for sale at 1 Quote Link to comment Share on other sites More sharing options...
rednspirited Posted July 14, 2021 Share Posted July 14, 2021 ok will get it next pay day thanks 🙂 Quote Link to comment Share on other sites More sharing options...
rednspirited Posted July 17, 2021 Share Posted July 17, 2021 got the free version to start and get the ball rolling on some things as far as word changes but i can not find where Boss & Underboss are to change them to what i need can anyone help me? Quote Link to comment Share on other sites More sharing options...
CrazyElk Posted July 18, 2021 Share Posted July 18, 2021 5 hours ago, rednspirited said: got the free version to start and get the ball rolling on some things as far as word changes but i can not find where Boss & Underboss are to change them to what i need can anyone help me? Sent you a PM. Quote Link to comment Share on other sites More sharing options...
Dayo Posted July 18, 2021 Author Share Posted July 18, 2021 10 hours ago, rednspirited said: got the free version to start and get the ball rolling on some things as far as word changes but i can not find where Boss & Underboss are to change them to what i need can anyone help me? You would have to change gang.inc.php and gang.tpl.php Quote Link to comment Share on other sites More sharing options...
rednspirited Posted July 18, 2021 Share Posted July 18, 2021 thanks i was told that got it done. i didnt think to check those files Quote Link to comment Share on other sites More sharing options...
Dayo Posted July 18, 2021 Author Share Posted July 18, 2021 No worries, once you are happy with the free version GL Premium installs on top of GL 2.4.1 very easily so you won’t loose any progress you have made Quote Link to comment Share on other sites More sharing options...
rednspirited Posted July 20, 2021 Share Posted July 20, 2021 well i will be getting the premium this week and i love the free version have some old mods and was wondering if they need updating or not? lots are yours but some are not im just waiting to see what doesn't come with premium. Quote Link to comment Share on other sites More sharing options...
Uridium Posted October 19, 2021 Share Posted October 19, 2021 I made a fix for php 5.4 and above that should cure this issue for the nbbc issue Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.