Jump to content
MakeWebGames

Recommended Posts

Posted

Afternoon all, 

Whilst we are making game engines open source.https://gitlab.com/Magictallguy/grpg-pdo

We have decided to follow the MCCodes v2 and bring the v2 of GRPG v2 to become open source. 

If you do have any issues, I will try my best to patch them and update the repo, how ever I will not be able to do this all the time and if you fix something please do submit a push request

  • Like 8
Posted

I love move to go open source, it should give the engine more exposure, thank for giving the community this opportunity
Will give it a try when i get home this week, would love to play with it a bit
And will keep an eye on the engine so i can help out with issues if there is any

  • Like 1
Posted

Okay so i have downloaded the source code and can see its been updated some more since last time i have looked at it and its throwing some errors on install.

  • Composer Required - There seems to be code in place for checking for a composer but no actual composer installed in the code.
  • Above error stops installation on step 3 once checking database connection.
  • Fatal error: Uncaught Error: Class 'Dotenv\Dotenv' not found in /home/ulrvvdan/domains/utap.x10.mx/public_html/mobstersonline/inc/dbcon.php:17
  • Above error is thrown due to not having Composer as vendor/autoload.php is meant to run before this which is not found.

For anyone who is stuck on installing grpg and don't have a clue what a composer is or where to start, Follow the link below to a doc about Composer which will show u diff ways to install it (local, global) once you download the composer as a zip file upload it to your host where your main game files are so it lands in its own folder like (vendor/etc.php)

I will be installing composer tomorrow and see how far i get before anymore issues pop up and will request a push to grpg unless someone else wanna do it for me 😛 

https://getcomposer.org/doc/00-intro.md

  • Thanks 2
Posted

I decided it's time to blow off the dust and give this project some TLC.
So, a small update list!

  • now comes with a Docker configuration
  • no longer relies on Composer

There will be more updates to come as the longer I look, the more I kick my younger self 😄

  • Like 1
Posted
19 hours ago, Magictallguy said:

I decided it's time to blow off the dust and give this project some TLC.
So, a small update list!

  • now comes with a Docker configuration
  • no longer relies on Composer

There will be more updates to come as the longer I look, the more I kick my younger self 😄

Downloaded the new copy

Stuck at the first Hurdle the install line 22 

line 22 =  private string $configFile {
        set {
            $this->configFile = $value;
        }
    }

 

error is 

 

Parse error: syntax error, unexpected token "{", expecting "," or ";"

PHP version 8.3 tried on 7.4 error still exists

Posted
On 4/4/2025 at 2:14 AM, Magictallguy said:

Back when I was on Windows, I loved mLocati's PowerShell PHP Manager - you may wish to consider looking into it. Its primary purpose is to provide an easy way to install multiple PHP versions and choose whichever one the system considers active.
As for your host, perhaps a request to their support might be fruitful.

i'll wait for you to update the above even after finally gettng the installer to work the apache_setenv became an issue on the pdo.class.php file

 

changed apache_setenv($key, $value); to getenv($key, $value);

still same issue on both 

Fatal error: Uncaught TypeError: getenv(): Argument 
#2 ($local_only) must be of type bool, string given in /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/inc/pdo.class.php:69 Stack trace: 
#0 /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/inc/pdo.class.php(69): getenv() 
#1 /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/inc/pdo.class.php(44): database->setConnDetails() 
#2 /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/inc/pdo.class.php(322): database->__construct() 
#3 /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/inc/pdo.class.php(388): database::getInstance() 
#4 /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/inc/dbcon.php(77): require_once('/home/DOMAINc/...') 
#5 /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/inc/header.php(6): require_once('/home/DOMAINc/...') 
#6 /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/index.php(3): require_once('/home/DOMAINc/...') 
#7 {main} thrown in /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/inc/pdo.class.php on line 69

Finallly got it to install and run had to comment out a few parts on the pdo file but its up and running at last

it now runs on php 8.2 upwards

Posted
1 hour ago, Magictallguy said:

You changed setenv to getenv? Of course that wouldn't work

it wasnt just that.. The registration doesnt work when viewing Tickets the timestamps doesnt work have you actually tried this on a version LESS that 8.2 nobody has 8.4 yet

 

http://www.mtg.wizwych.co.uk

 

Posted

I have not as I wasn't thinking of backwards compatibility. This change is part of a rolling set of changes I intend to make to suit more recent technologies.

As for the claim that "nobody" has PHP 8.4 yet; SiteEU, WebWiz, HawkHost, Kinsta, SwitchWeb, NameCheap, GoDaddy, Google Cloud Hosting and AWS absolutely do support it. Honourable mention to cPanel's EasyApache which added PHP 8.4 support in December just gone.

Again, I will add backward compatibility for PHP 8.0. Might send up a couple of branched releases so people can select their desired version.

  • Like 1
  • 3 weeks later...

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...