Rewriting XASECO for PHP 7 Compatibility

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

Post Reply
User avatar
YellowberryHN
highway camper
highway camper
Posts: 3
Joined: 31 Oct 2017 20:11
Owned TM-games: TMNF
Location: Utah, USA
Contact:

Rewriting XASECO for PHP 7 Compatibility

Post by YellowberryHN » 31 Oct 2017 20:26

So hi guys, I'm Yellowberry. I'm pretty new in the community. So what I am currently working on is rewriting XASECO to not use the deprecated PHP 5 functions (such as the 'mysql_' functions) and to be PHP 7+ only. Now I understand that not everyone will like that, however I started doing it out of personal need. I have a server that has PHP 7 pre-installed and I was unable to use XASECO unfortunately because it is incompatible with PHP 7.

So, I guess what I am trying to say is stay tuned(?) for more info and a release eventually. Also, make me feel stupid if someone else already did this. I looked everywhere I could think of and couldn't find anything.

Let me know if there are any bugs in XASECO 1.16 that I should fix in the mean time.

Hope to be a big help in the community from now on,
Yellowberry
ALL of my info: https://yello.ooo
Image

weasel
speedy pilot
speedy pilot
Posts: 335
Joined: 11 Mar 2011 23:44
Owned TM-games: TMN, TMU, TMF,TM2all

Re: Rewriting XASECO for PHP 7 Compatibility

Post by weasel » 01 Nov 2017 17:15

Welcome.

Wow , that sounds like a lot of work.
There are already some fix ( patches ) so xaseco will work with php 7 if I'm right.
They should be here on the forum.

Anyway goodluck with coding.

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1309
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: Rewriting XASECO for PHP 7 Compatibility

Post by undef.de » 01 Nov 2017 22:24

viewtopic.php?f=127&t=35817 works also with XAseco.
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

User avatar
YellowberryHN
highway camper
highway camper
Posts: 3
Joined: 31 Oct 2017 20:11
Owned TM-games: TMNF
Location: Utah, USA
Contact:

Re: Rewriting XASECO for PHP 7 Compatibility

Post by YellowberryHN » 02 Nov 2017 12:12

undef.de wrote:
01 Nov 2017 22:24
viewtopic.php?f=127&t=35817 works also with XAseco.
I tried that...

Code: Select all

[11/02,12:01:10] Connection established successfully !
[11/02,12:01:10] [LocalDB] Load config file [localdatabase.xml]
[11/02,12:01:10] [LocalDB] Try to connect to MySQL server on 'localhost' with database 'aseco'
[PHP Warning] mysqli_select_db() expects parameter 2 to be string, object given on line 21 in file /home/tmf/xaseco/includes/modernizer.inc.php
[XASECO Fatal Error] [LocalDB] Could not find MySQL database! on line 82 in file /home/tmf/xaseco/plugins/plugin.localdatabase.php
Didn't work out too swell... Unless I did something wrong, I don't think it's working.
ALL of my info: https://yello.ooo
Image

User avatar
YellowberryHN
highway camper
highway camper
Posts: 3
Joined: 31 Oct 2017 20:11
Owned TM-games: TMNF
Location: Utah, USA
Contact:

Re: Rewriting XASECO for PHP 7 Compatibility

Post by YellowberryHN » 02 Nov 2017 19:39

Alright, I just finished replacing all of the old mysql_ calls with mysqli_ calls in everything, including plugins, lets see if this works...

Will edit post with results.
ALL of my info: https://yello.ooo
Image

Post Reply