princed.org (phpBB forum + webpages)

Prince of Persia related subjects that do not have their own boards.

Moderator: English Moderator Team

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 3016
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: princed.org (phpBB forum + webpages)

Postby Norbert » February 14th, 2017, 6:47 pm

Last backup I have should still include all the old stuff, in case you don't have it and want to study it.

Falcury
Wise Scribe
Wise Scribe
Posts: 300
Joined: June 25th, 2009, 10:01 pm

Re: princed.org (phpBB forum + webpages)

Postby Falcury » February 14th, 2017, 8:29 pm

Norbert wrote:Last backup I have should still include all the old stuff, in case you don't have it and want to study it.

It should be back to normal now.
I'm keeping track of changes that I make in a local Git repository, so if necessary it should (hopefully) be relatively easy to restore to an older version, or to figure out where an regression occurred. However, I am very glad that you have the backups as well :)

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 3016
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: princed.org (phpBB forum + webpages)

Postby Norbert » February 15th, 2017, 12:31 am

Falcury wrote:However, I am very glad that you have the backups as well :)


From when I still touched it. :)

Sorry to keep you busy, but when I click "Get the file" at...
http://www.princed.org/cuspop/
...I get this error:
Spoiler: show
Fatal error: Uncaught Error: Call to undefined function ereg() in /home6/cloodiec/public_html/princed-org/cuspop/cuspop/parsecommands.php:11 Stack trace: #0 /home6/cloodiec/public_html/princed-org/cuspop/cuspop/parsecommands.php(6): run_command('multiply(12)', '59.92') #1 /home6/cloodiec/public_html/princed-org/cuspop/cuspop/gethack.php(101): parse_commands('multiply(12);fl...', '59.92') #2 /home6/cloodiec/public_html/princed-org/cuspop/cuspop/gethack.php(176): perform_actions(Array, 'u0') #3 {main} thrown in /home6/cloodiec/public_html/princed-org/cuspop/cuspop/parsecommands.php on line 11


Also, when I click "Example (loose tiles in level 12)" at...
http://www.princed.org/cusasm/
...I get this error:
Spoiler: show
Fatal error: Uncaught Error: Call to undefined function ereg() in /home6/cloodiec/public_html/princed-org/cusasm/cusasm.php:299 Stack trace: #0 /home6/cloodiec/public_html/princed-org/cusasm/index.php(48): GetCusasmOutput() #1 {main} thrown in /home6/cloodiec/public_html/princed-org/cusasm/cusasm.php on line 299


Maybe - I'm not sure - this has some useful info about the ereg() changes.

Perhaps at
http://www.princed.org/downloads/
add SDLPoP 1.17, and for MININIM something similar and/or point to https://github.com/oitofelix/mininim/releases

Falcury
Wise Scribe
Wise Scribe
Posts: 300
Joined: June 25th, 2009, 10:01 pm

Re: princed.org (phpBB forum + webpages)

Postby Falcury » February 15th, 2017, 12:39 am

Thanks for reporting it! Apparently the ereg() function was removed from PHP7...
Edit: Ah, I see you already tracked down some useful info. Yeah, you're right, I should do something about the Downloads page. Maybe add the new releases as downloads as well. Although that may be a bit redundant because popot.org is probably the best place to go to for downloading packages right now.

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 3016
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: princed.org (phpBB forum + webpages)

Postby Norbert » February 15th, 2017, 12:56 am

Falcury wrote:Apparently the ereg() function was removed from PHP7...


Yes.
http://php.net/manual/en/function.ereg.php
"This function was DEPRECATED in PHP 5.3.0, and REMOVED in PHP 7.0.0."

http://php.net/manual/en/function.preg-match.php
This may be a drop-in replacement.

If it fixes the issue, can you let me know.
Then I'll also apply the change at popot.org (which still has PHP 5, it seems).
And I'll release and provide new CusPop (and CusAsm) package(s) here.

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 3016
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: princed.org (phpBB forum + webpages)

Postby Norbert » February 16th, 2017, 6:13 pm

Norbert wrote:I'm attaching a ZIP that contains large versions of the Princed logo to this post.


A more complete package attached to this post.

Back in the day, this logo was created by "seekvisum" (Alexander).
Not a forum user here, as far as I can tell.
Attachments
Princed_logo.zip
Princed logo
(642.43 KiB) Downloaded 7 times

Falcury
Wise Scribe
Wise Scribe
Posts: 300
Joined: June 25th, 2009, 10:01 pm

Re: princed.org (phpBB forum + webpages)

Postby Falcury » February 17th, 2017, 12:14 am

Nice! By the way, I hadn't noticed that the logos for the forum and website were actually different... Now that I see the text reads "Community Forum" here, and "Princed Project" on the website.

Falcury
Wise Scribe
Wise Scribe
Posts: 300
Joined: June 25th, 2009, 10:01 pm

Re: princed.org (phpBB forum + webpages)

Postby Falcury » February 25th, 2017, 12:01 pm

Norbert wrote:Sorry to keep you busy, but when I click "Get the file" at...
http://www.princed.org/cuspop/
...I get this error:
Spoiler: show
Fatal error: Uncaught Error: Call to undefined function ereg() in /home6/cloodiec/public_html/princed-org/cuspop/cuspop/parsecommands.php:11 Stack trace: #0 /home6/cloodiec/public_html/princed-org/cuspop/cuspop/parsecommands.php(6): run_command('multiply(12)', '59.92') #1 /home6/cloodiec/public_html/princed-org/cuspop/cuspop/gethack.php(101): parse_commands('multiply(12);fl...', '59.92') #2 /home6/cloodiec/public_html/princed-org/cuspop/cuspop/gethack.php(176): perform_actions(Array, 'u0') #3 {main} thrown in /home6/cloodiec/public_html/princed-org/cuspop/cuspop/parsecommands.php on line 11


Also, when I click "Example (loose tiles in level 12)" at...
http://www.princed.org/cusasm/
...I get this error:
Spoiler: show
Fatal error: Uncaught Error: Call to undefined function ereg() in /home6/cloodiec/public_html/princed-org/cusasm/cusasm.php:299 Stack trace: #0 /home6/cloodiec/public_html/princed-org/cusasm/index.php(48): GetCusasmOutput() #1 {main} thrown in /home6/cloodiec/public_html/princed-org/cusasm/cusasm.php on line 299


It should be fixed now!
It seems preg_match is indeed a drop-in replacement for ereg, except for one problem that occurred, described here:
http://stackoverflow.com/questions/5589 ... n-modifier

It seems that preg_match requires the pattern to be enclosed in delimiter characters.
http://php.net/manual/en/regexp.referen ... miters.php

To make it work again, I had to change the code like so:

Code: Select all

/* original code */
if (ereg("([a-z]*)\((.*)\)",$cmd,$reg)) {

/* fixed code */
if (preg_match("#([a-z]*)\((.*)\)#",$cmd,$reg)) {

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 3016
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: princed.org (phpBB forum + webpages)

Postby Norbert » February 25th, 2017, 3:17 pm

Yes, it works again!

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 3016
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: princed.org (phpBB forum + webpages)

Postby Norbert » March 1st, 2017, 5:09 pm

Maybe some time after February 21st the Princed e-mail functionality broke. I already had a hunch users no longer get e-mail notifications. And now someone on popot.org writes they didn't get an e-mail after registering.

[Edit: Never mind, I just got an e-mail about a new private message. By the way, the person who has trouble registering is "malvivio".]

Falcury
Wise Scribe
Wise Scribe
Posts: 300
Joined: June 25th, 2009, 10:01 pm

Re: princed.org (phpBB forum + webpages)

Postby Falcury » March 1st, 2017, 6:51 pm

Norbert wrote:Maybe some time after February 21st the Princed e-mail functionality broke. I already had a hunch users no longer get e-mail notifications. And now someone on popot.org writes they didn't get an e-mail after registering.

[Edit: Never mind, I just got an e-mail about a new private message. By the way, the person who has trouble registering is "malvivio".]

Yes, for me the email notifications are also working normally.
I've contacted malvivio to sort it out!
And I just found out that the activation e-mails can be resent for inactive users, so I did that as well.

VGA
Scholar Scribe
Scholar Scribe
Posts: 2
Joined: March 2nd, 2017, 5:27 am

Re: princed.org (phpBB forum + webpages)

Postby VGA » March 2nd, 2017, 6:21 am

I registered and activated just now fine.

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 3016
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: princed.org (phpBB forum + webpages)

Postby Norbert » March 6th, 2017, 5:40 pm

I do frequently login and see there are private messages even though I got no e-mail about them.
Maybe that's on my end then.

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 3016
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: princed.org (phpBB forum + webpages)

Postby Norbert » March 7th, 2017, 6:56 pm

Falcury wrote:Yeah, you're right, I should do something about the Downloads page. Maybe add the new releases as downloads as well. Although that may be a bit redundant because popot.org is probably the best place to go to for downloading packages right now.


Everything will slowly become outdated.
The Total Packs section, for instance, is now also outdated.
RoomShaker also had an update, MININIM, etc.
If you want to make it easy for yourself, you could add a "New here" link and then "Old:" followed by the rest.
For all the stuff that is or may get outdated.

Two similar things are the first posts here:
viewtopic.php?f=126&t=3512
viewtopic.php?f=123&t=3374
The former, the "here" link could point to popot.org.
The latter, I dunno, but it's a sticky thread with outdated links.

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 3016
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: princed.org (phpBB forum + webpages)

Postby Norbert » April 4th, 2017, 11:27 pm

The AJAX Chat at the top of this forum is taking up a lot of space.
Yet it hasn't been used by anyone since August 2015.
We could replace the iframe with
http://webchat.freenode.net/?channels=princed (registered by poirot)
or
http://webchat.freenode.net/?channels=princeofpersia (free)
or
http://webchat.freenode.net/?channels=popmodding (free)

And then under the iframe where it currently just says "chat history", it could briefly explain how to register a nick at Freenode.
And maybe how to connect with a regular IRC client, so people interested don't need to hang around on this forum just to chat.

Of course, I don't know how many people would actually be interested in using any kind of chat.
Plus, it's a fleeting medium. Forums and wikis store information, IRC channels don't.
In theory a bot could log the chat and provide a web log, but setting that up might be more trouble than it is worth.


Return to “General Stuff”

Who is online

Users browsing this forum: No registered users and 2 guests