Page 2 of 2

Re: Fabula Ultima

Posted: Mon Jul 28, 2025 1:00 am
by Senkusha
Ah! Yeah, the age old problem that afflicts all forums, the extension mod and the developer who moves on...

This is a shame that there seems to be nothing currently up to version phpBB 3.3, however, I did find a mod that was upgraded to 3.2, unfortunately, that developer was Banned from the main site. He did leave a forwarding address, which I peeked at. I'm not sure how much an upgrade would cost, and I've never worked with phpBB before, otherwise, I'd be tempted to build a mod, but it wouldn't be very pretty.

I do know the basic bits of PHP code that would be needed:
mt_rand(int $min, int $max): int

Code: Select all

RollDice (5,20); // Rolls 5d20.


function RollDice ($numDice = 1, $numSides = 6, )
{
$rollResults = new array();

for ($dieRoll = 0; $dieRoll < $numDice; $diRoll ++)
  $rollResult[] = mt_rand(0, $dieMax);
  
echo 'You Rolled:  ' .  implode ('$rollResults, ', ');
return 0;
}
That's a really basic function, but note that I haven't built anything in PHP in like a year, so I'm a tad rusty, this probably won't work out of the box. But, this is to demonstrate the core of a dice roller function. Now how to get this function to work with a BBCode within phpBB, I don't know. If this was SMF, I could figure it out in like a week (or actually, just send you the Dice Roller code that works for 2.1.4). I might be able to use something like DeepSeek and cheat a bit, however, I'd take anything that AI generates with a bag of salt, because well, it has a nasty habit of hallucination and spewing just random crap.

Re: Fabula Ultima

Posted: Mon Jul 28, 2025 8:14 pm
by Ravenfreak
Thank you for attempting this, I don't know any php myself. And yeah you're right about AI, it could theoretically write the code but it'd probably be a glitchy mess that needs to be optimized. I am somewhat decent at modifying existing code, but if I don't know the language I can't get too far. (If I wasn't busy with my websites and a Youtube channel I would probably find the time to learn php though lol.)

Re: Fabula Ultima

Posted: Mon Jul 28, 2025 11:57 pm
by Senkusha
There is always the option of attempting a test using the 3.2 version. Noting any errors that occur and then maybe tweaking those.

Re: Fabula Ultima

Posted: Sun Aug 03, 2025 8:28 am
by 1stop
You can browse GitHub to find mods you can download and that are available for free or request to create one.