Raised This Month: $12 Target: $400
 3% 

Latest PsychoStats working in PHP 7.x


Post New Thread Reply   
 
Thread Tools Display Modes
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 03-09-2021 , 06:17   Re: Latest PsychoStats working in PHP 7.x
Reply With Quote #11

ok, thank you for mantaining it
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
Drek
Member
Join Date: Mar 2004
Old 03-09-2021 , 09:02   Re: Latest PsychoStats working in PHP 7.x
Reply With Quote #12

There's a lot of work that should be done on it to, especially, make it mobile friendly. I have looked at that, but that may be beyond my limited coding skills.
Drek is offline
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 03-09-2021 , 16:07   Re: Latest PsychoStats working in PHP 7.x
Reply With Quote #13

Quote:
Originally Posted by Drek View Post
There's a lot of work that should be done on it to, especially, make it mobile friendly. I have looked at that, but that may be beyond my limited coding skills.
This shouldn't be such a hurry... it would be better to have a AMXX plugins that substracts details from Psychostats, on the fly stats, and show to player
Like: https://www.dark-arena.com/pstats/index.html
not shure how to achive this
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
Drek
Member
Join Date: Mar 2004
Old 03-09-2021 , 20:24   Re: Latest PsychoStats working in PHP 7.x
Reply With Quote #14

I already added plugins that delete empty columns for unsupported data to PS. Stuff like hit locations or friendly fire, that aren't a part of every mod. I've also customized themes for specific mods, which can be used as a template for people to customize their own themes. You can also configure PS to stream stats so that they are almost live. I believe there is a ten minute delay or something of that nature, so they can't be used to gain intel on other players in a live game.

If you have a mod that supports an html motd, you can also use that to display PS in game. There is also an Adminmod plugin that is supposed to be able to do that.

I have no plans to add any features to PS. All I'm interested in doing is getting what's there working properly, and adding support for games that interest me.

Last edited by Drek; 03-09-2021 at 20:25.
Drek is offline
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 09-26-2022 , 11:06   Re: Latest PsychoStats working in PHP 7.x
Reply With Quote #15

On using only the Blue theme a error appears when viewing a player from the list
Code:
Warning: Smarty error: unable to read resource: "default-blue/player_profile.html" in /usr/share/nginx/w3stats/includes/smarty/Smarty.class.php on line 1099
Tested with PHP 7.3 / 7.4 (on php8.1 doesn't work at all)


SOLVED!
Copy the player_profile.html from the "default" theme folder to "default-blue" and message has gone away.
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers

Last edited by CryWolf; 09-26-2022 at 11:28. Reason: solved.
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
Drek
Member
Join Date: Mar 2004
Old 09-27-2022 , 18:01   Re: Latest PsychoStats working in PHP 7.x
Reply With Quote #16

That error makes no sense because that file isn't a part of the default-blue theme. It should be grabbing it from the default theme. Having said that, the project has officially been abandoned, but I have still done a fair bit of work to get it working on PHP8+. Most of the errors have been fixed, although I suspect there are still some lurking there.

https://github.com/Drek282/PsychoStats
Drek is offline
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 09-28-2022 , 03:52   Re: Latest PsychoStats working in PHP 7.x
Reply With Quote #17

If you want i can show a image but still it;s the same, at least i solved it.
PHP8+?
PHP8.1 full of errors , even a page isn't displayed.

Don't know why im having 3.2.8b when latest on github is 3.2.7b :O i think it's a mistake somewere.

Those beeig said good luck to you.

Quick Q: is there any way of removing "Admin Control Panel" from bottom page ?
Thanks
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
Drek
Member
Join Date: Mar 2004
Old 09-28-2022 , 07:07   Re: Latest PsychoStats working in PHP 7.x
Reply With Quote #18

There is an "official" release that was somewhat stable. That version is 3.2.7b. That version does *not* work with PHP8+. If you want the latest version, the version that mostly works with PHP8+, you need to download from the code section of the repo. The support for games has also been split into separate repos, so you will also need to download the support for the game from a separate repo. It's all in the README.

There's also a permissions setting that allows you to show the Admin link at the top of the page, vs. the bottom of the page.
Drek is offline
Fragenstein
Member
Join Date: Mar 2005
Old 04-15-2023 , 11:49   Re: Latest PsychoStats working in PHP 7.x
Reply With Quote #19

I'm unable to get this installed. Keep getting this error:



I'm running the server and stats on same machine (Windows 11).
Xampp - Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.4.16

Any ideas?
__________________
Fragenstein is offline
Drek
Member
Join Date: Mar 2004
Old 04-15-2023 , 12:24   Re: Latest PsychoStats working in PHP 7.x
Reply With Quote #20

Quote:
Originally Posted by Fragenstein View Post
The last "official" version of PsychoStats is completely broken on PHP7.x. It won't work without completely disabling all PHP error reporting, and maybe even then it might not work. I have not worked on PS in a couple of years now, other than fixing some PHP8 errors. My repository should be considered a dead project.

Having said that, if you are using the versions available on my repository, either the last release package, or the version available if you download the code, you should not be getting that particular error. Those versions are available here.

But you may well encounter other errors. If you submit an issue on GitHub, I will at least read your message, if you encounter an error with those versions, but please take the time to at least read the README and INSTALL documents before you submit an issue.

Last edited by Drek; 04-15-2023 at 12:39.
Drek is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode