CiaccoDavide / Alchemy-Circles-Generator

A simple procedural generator of alchemy circles
MIT License
384 stars 45 forks source link

website isn't working, also couldn't run locally because of php version deprecated functionality #11

Open VictorJulianiR opened 1 year ago

VictorJulianiR commented 1 year ago

Please if you could fix the webpage,

or alternatively, add in the readme instructions with correct php version and so on.

When I try to run i get 1000's of errors like this

D:\Documentos\dev\Alchemy-Circles-Generator\src_PHP\alchemy.php on line 18 [Mon Jun 5 16:09:30 2023] PHP Deprecated: Implicit conversion from float 400.00000000000006 to int loses precision in

and the circles don't render image

i'm running php -S localhost:8000

after

composer install

(with ini configured for openssl=1, ext-gd=1, and to ignore errors and warnings, still no luck)

CiaccoDavide commented 1 year ago

Have you tried casting the results of the implicit conversions? https://stackoverflow.com/a/71534708/2104882

Hope this helps, if you manage to fix it and want to open a PR you are welcome to do so! I don't think I'll be able to find the time to do it for the next two weeks 😔