Jump to content
MakeWebGames

Gangster Legends V2 - New Pre-Release


Dayo

Recommended Posts

I have finally finished work on the pre-release of GL 2.3.0, if people can download it and test it that would help alot. After a week or two ill release it as a full release.

More info can be found here: https://github.com/ChristopherDay/Gangster-Legends-V2/releases/tag/2.3.0

If you have GL Premium you can find the new module bundle in the MWG download area, the new installation process is 

1) Download GL v2
2) Install GL as you normally would
3) Download GLPremium.zip from MWG
4) Go to your game > ACP > Module Manager > Install Module
5) Upload GLPremium.zip
6) Deactivate old modules
7) Extract all modules
😎 Install all modules

Done.

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

6 hours ago, Dayo said:
  • new menus as well as support for more menu item detail

Can more information be provided? Are there new hooks?

Regarding various bug fixes, is there a list anywhere.

This would help me and other developers update our modules quicker. I know i had to include a few GL fixes in at least one of my modules regarding a typo, and some bad variables in a few hooks(login was one of top of my head).

 

Link to comment
Share on other sites

I have to work out what I have changed so I can just upload your files lol. Of the premium mods you include what of those have been updated? I can update the core easily enough but the ones not on the github is a bit of a guess and having to go through line by line.

Link to comment
Share on other sites

3 hours ago, Sim said:

Can more information be provided? Are there new hooks?

Regarding various bug fixes, is there a list anywhere.

This would help me and other developers update our modules quicker. I know i had to include a few GL fixes in at least one of my modules regarding a typo, and some bad variables in a few hooks(login was one of top of my head).

 

The new menu hooks are loginMenu, casinoMenu and moneyMenu. They work just like the locationMenu/accountMenu etc ... 

I have also added support to the default template to add timers within menu links as well as an "extra" field that can be any html element. an example of these would be crimes (timers) and jail (extra).

Ill update the documentation later this weekend

Link to comment
Share on other sites

Any major changes that will effect modules released?

 

9 hours ago, Uridium said:

I may have to start learning this engine code make some mods

You should. Its very easy to work with and not outdated code. You might need to learn a few minor things about classes if you dont already know, but if your serious about being a developer your have to learn this type of stuff sooner or later.

Link to comment
Share on other sites

3 hours ago, Sim said:

A hook for when New/Edit/Deleted content from ACP. With the data from form? 

In the next version of GL i will be adding proper foreign key to the MySQL table, maybe this is something for you to look into for now? This would work for the delete/update

Link to comment
Share on other sites

It looks like you missed a few errors i reported in 1.2.

login.inc.php line 46 should be:

 

                    $action = array(
                        "user" => $user->info->U_id, 
                        "module" => "login", 
                        "id" => $user->info->U_id, 
                        "success" => true, 
                        "reward" => 0
                    );

NOT

                    $action = array(
                        "user" => $this->user->id, 
                        "module" => "login", 
                        "id" => $this->user->id, 
                        "success" => true, 
                        "reward" => 0
                    );

$this->user is still NULL at line 46.

AND the new default ACP template created issues with EVERYONE of my mods in the ACP. With that being said, is it safe to assume every 1.2 mod created will need to be updated?

Edit:

Screenshot_20210321-150602.thumb.png.364f2c4bab49a6859d23f4052776edd4.png

 

Happens more frequently then before. @Dave could this be a PHP version issue? Happens mostly on MWG hosting. I have not had this issue on other servers.

Edited by Sim
Link to comment
Share on other sites

Create a directory in `/home/your-username` and name it php-sessions (or something equally obvious)
And add

session_save_path('/path/to/php-sessions');

above any call to

session_start()


Also recommend you set the filepath as a variable or constant for ease of future dev (example below)
 

// in a config file
define('MY_SESSION_FILEPATH', '/preferrably-absolute/path/to/php-sessions');

// at the session start calls
session_save_path(MY_SESSION_FILEPATH);
session_start();

 

  • Thanks 1
Link to comment
Share on other sites

On 3/21/2021 at 6:50 PM, Sim said:

AND the new default ACP template created issues with EVERYONE of my mods in the ACP. With that being said, is it safe to assume every 1.2 mod created will need to be updated?

What issues are you having with the new ACP theme?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...