Jump to content
Dayo

Gl V2.2.0 - Release Notes

Recommended Posts

Posted (edited)

GL V2.2.0 - Release Notes

Links

New Features

  •  Black Jack (casino game)
    •  Users can own a blackjack table
    •  They can change the min/max bets
  •  Murder
    •  Black Market
      •  You can buy weapons and Armour
      •  Has a bullet calculator to determine how many bullets are needed to kill someone with a certain weapon vs a certain Armour 
    •  Find User
      •  You can hire detectives to find a target
    •  Kill
      •  Once a target is found you can shoot bullets at them
    •  Bounties
      •  Want someone dead? Put a bounty on them
  •  Forums
    •  You can make unlimited forum categories
    •  Users can make topics within the forum
    •  Has BBCode support
    •  Admin controls
      •  Edit topic
      •  Change topic level
        •  Important
        •  Sticky
        •  Normal
      •  Delete Topic
      •  Lock Topic
      •  Mute a user from posting on the forum    
  •  Game Statistics
    •  Shows new and dead users
    •  Total users alive/dead
    •  Total game cash
    •  Total game bullets
    •  Total game points
  •  Bullet Factory
    •  Can now be owned
    •  Now restocks every hour (max stock = 40k)

New Admin Features

  •  Manage game items (create/edit and delete)
    •  Cars
    •  Black Market Items
    •  Locations
    •  Car Theft options
  •  Manage cost to hire detectives
  •  Create new forum categories
  •  Custom staff Roles
    •  Each role can have a different color
    •  Each role can be locked down to certain areas of the admin Panel i.e. forum mods will only have access to the forum admin options
Edited by Dayo
  • Like 5

Share this post


Link to post
Share on other sites

This is great to see! Do you have a demo game anywhere running this version?

Share this post


Link to post
Share on other sites

Whilst I do not 100% agree with the standard and use a slightly modified version. I have to ask - is this going to become anywhere close to PSR-2 standard at any point?

The random indenting of everything inside the php tags burns my eyes - curious, why is it done that way?

  • Like 1

Share this post


Link to post
Share on other sites
9 minutes ago, SRB said:

Whilst I do not 100% agree with the standard and use a slightly modified version. I have to ask - is this going to become anywhere close to PSR-2 standard at any point?

The random indenting of everything inside the php tags burns my eyes - curious, why is it done that way?

I was going to ask the same thing about possibly adopting some PSR-2 standards and going a bit further and adopt PSR-4. I understand that this is more of an engine and not a framework but inheritances and DI can go along way in assuring that things work/run as expected. Hell, you could have your own "service container" and rid the source files of globals and just inject them into the app itself

  • Like 2

Share this post


Link to post
Share on other sites
12 minutes ago, KyleMassacre said:

I was going to ask the same thing about possibly adopting some PSR-2 standards and going a bit further and adopt PSR-4. I understand that this is more of an engine and not a framework but inheritances and DI can go along way in assuring that things work/run as expected. Hell, you could have your own "service container" and rid the source files of globals and just inject them into the app itself

Dang it, I meant to query autoloading too. Well spotted / suggested.

Share this post


Link to post
Share on other sites
7 minutes ago, SRB said:

Dang it, I meant to query autoloading too. Well spotted / suggested.

Maybe all this could be a v3 request haha. I was thinking of forking it and possibly cleaning it up a bit like formatting and class names to match file names. The former also hurts my eyes

  • Like 2

Share this post


Link to post
Share on other sites

The indentation i have no idea what happens, sometimes my IDE decides to use spaces, sometimes tabs 50:50. im in the process of trying new IDEs out)

Ill have a read through the PSR standards and start to implement them. And i will soon be killing global off. When i first started GL v2 thats how i could get it working but now its time to kill that off 😛

  • Like 1

Share this post


Link to post
Share on other sites
1 hour ago, Dayo said:

The indentation i have no idea what happens, sometimes my IDE decides to use spaces, sometimes tabs 50:50. im in the process of trying new IDEs out)

Ill have a read through the PSR standards and start to implement them. And i will soon be killing global off. When i first started GL v2 thats how i could get it working but now its time to kill that off 😛

For the PSR2 you could add an .editorconfig file to the root which works with a lot of IDEs. Some like VSCode you would have to instal a plug-in for it. PSR4 is a hell of a lot of change though.

I forked the repo and in the coming weeks I want to possibly submit some PRs. Hopefully it will help clean up some code as well. Some of the changes I have in mind would probably be breaking code though 😋

Share this post


Link to post
Share on other sites

Just added a .editorconfig file to the project (if im honest i had no idea this existed, gona put it in all my projects now.

 

Also replaced all occurrences of a tab with 4 spaces. I should have never let it get that bad 😐 

  • Like 1

Share this post


Link to post
Share on other sites
9 hours ago, Dayo said:

The indentation i have no idea what happens, sometimes my IDE decides to use spaces, sometimes tabs 50:50. im in the process of trying new IDEs out)

Ill have a read through the PSR standards and start to implement them. And i will soon be killing global off. When i first started GL v2 thats how i could get it working but now its time to kill that off 😛

PHPStorm is an awesome choice if you have a little money to spend, otherwise something like VSCode with some plugins should suffice.

  • Like 1

Share this post


Link to post
Share on other sites

Pfft; real programmers use:

cat > filename.php << EOL

😄

  • Like 2

Share this post


Link to post
Share on other sites
3 hours ago, Alan said:

Pfft; really old programmers use:

cat > filename.php << EOL


cat > filename.php << EOL

😄

You said it.

Share this post


Link to post
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...