Jump to content
MakeWebGames

Recommended Posts

Posted

So its 2025 and we are at PHP 8.4 but whch version of MCCODES will pass the  PHP 8 test..

we have 3 contenders

MCC V2.0.5b From the MCCODES official site

MCC V2.5 REDUX From the MCCODES official site (Which wont be reviewed cos I dont have a copy)

or the now FREE V2 version from Github.....

 

I will be using xampp running php 8.2 for these tests they will comprise of installation, First Login, Adapting older files

First off the MCC V2.0.5b From the MCCODES official site

----------------------------------------------------------------------------------

Straight out of the box it was easy to unzip to a folder on xampp

I went to localhost/mccodes/installer.php (why they couldnt let the index.php file tell if the install had already done is beyond me and if not installed grab the installer.php for you) but you have to type installer.php or MCCODES throws a wombly fit.

 

1.jpg.9437503914bad463405148dabd9cad01.jpg

As you can see above you have no choice but to ask for installer.php

Once you do add the installer.php your met with the installer program which looks ok

so we will start adding all our data on all them lines

all lines filled time to press INSTALL

2.thumb.jpg.8f10cc99a353444a107cbe3f843fa233.jpg

Oh thats not good wheres the confirmation that tells you config file created success to Database and the cronjob links

Well moving on to the next version the FREE github version

FREE GITHUB VERSION i will follow same steps as before

-----------------------------------------------------------------------

INSTALLATION

same situation as the above there is nothing to tell if the config file exists and if not move on the installation

3jpg.jpg.bff955c86c7db4c32c0ab65017291fb8.jpg

on to the installation page

the installer page has shifted to the far left of the page..

4.thumb.jpg.d34dd5d93294772f4da896580beff1d4.jpg
 

It somewhat installed it failed but it nearly got there I checked my Database and the dbdata.sql was inserted and the config.php file was created however no new user was added to the DATABASE and no mention of the cron setups

SO NEITHER ACTUALLY INSTALLED

But why not lets start with the GITHUB version (only cos this is an easy fix)

I will mention that after the install failed I removed all files and folders and sent back a fresh copy of both Engines

so lets start with

GITHUB VERSION (how to fix the issue)

------------------------------------------------------------------------

$db->query(
            "INSERT INTO `users`
             (`username`, `login_name`, `userpass`, `level`, `money`,
             `crystals`, `donatordays`, `user_level`, `energy`, `maxenergy`,
             `will`, `maxwill`, `brave`, `maxbrave`, `hp`, `maxhp`, `location`,
             `gender`, `signedup`, `email`, `bankmoney`, `lastip`,
             `lastip_signup`, `pass_salt`, , `display_pic`, `staffnotes`, `voted`, `user_notepad`)
             VALUES ('{$ins_username}', '{$ins_username}', '{$e_encpsw}', 1,
             100, 0, 0, 2, 12, 12, 100, 100, 5, 5, 100, 100, 1,
             '{$adm_gender}', " . time()
                    . ", '{$ins_email}', -1, '$IP', '$IP',
             '{$e_salt}', '', '', '', '')");

Did you spot it in the code above.

if you didnt go to line 471 which looks like

`lastip_signup`, `pass_salt`, , `display_pic`, `staffnotes`, `voted`, `user_notepad`)

and remove the exta , that has no real reasoning for being there

Now lets see if the installer works

SUCCESS the thing has installed 🙂 and is working on PHP 8.2

5.thumb.jpg.6e28c564d7fa056a59c104d38a916f6f.jpg

And there you are

So what can be done to make it easier well first off get the index script to work out if the config file has been written if its not there then grab the installer no need for people to type installer.php into the url bar

add this to your index.php file before the <?PHP

$install = 'installer.php';

if (file_exists($install)) {
    include('installer.php');
	exit();
}

for the failed installer.php if you cant be bothered altering it use the file beflow

installer.php

 

For the MCCODES mainsite version lets just say there was an extreme amount of editing to make it work more on the function error_php and the mention of MAGIC_QUOTES

  • Like 1
Posted (edited)

Haha i'm on this journey myself with two old games, its been fun but long.

I started one and built it ready to go has more to do lists and suggestions but waiting.

I'm using an mvc approach: TryoWars 

For the other, i'm currently going through each file to update it to PHP8 and above to get it fully working: EuroGangster First release it after beta testing. Then plan to update the entire approach to mvc. 

Maybe OCD 

The site I use to create Mccodes V2 Modules: Mccodes V2.0.5

Edited by Ishraq
First release it after beta testing. Then
  • Like 2
Posted
On 4/19/2025 at 6:13 AM, corruptcity || skalman said:

hey I've got a backup copy of redux if your intrested in it would happily send it you?

I have a copy of redux too thanks. Appreciate it.

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