Hacking [WIP]Guide helper

Quantumcat

Dead and alive
OP
Member
Joined
Nov 23, 2014
Messages
15,144
Trophies
0
Location
Canberra, Australia
Website
boot9strap.com
XP
11,094
Country
Australia
Hi all,

I made a little scraper that turns Plailect's guide into pdf files, for posterity purposes and for speed of use. It also downloads the latest release of all the tools, and downloads any zip files it finds in the guide. The intention is to make it even quicker to install a9lh (saves time going back and forth from the GitHub release pages of the tools), and makes sure you're not using any outdated files.

Some issues though - using the free pdf tool Dompdf seems to get stuck at the same place ("Fatal error: Call to a member function get_cellmap() on null"), so the script shuts down and not all pages are converted. This doesn't seem to be an issue for Pdfcrowd, but unfortunately that's paid, and I burned through all my free tokens before I realised they were limited :-( If they give me more free tokens I will redo it to get more of the pages (hopefully all). Also, the free one makes the pages a little ugly, while Pdfcrowd manages to generate exactly what the page looks like. Oh well. Also, if the source code on a tool's release page is the same file type as the release, it will download the source code too. So the download is a little bigger than it needs to be.

Obviously this might have been more useful before the most recent big revision of the guide (when it used to change significantly every week or so). Now I doubt it'll change much, it's probably the ultimate version right now :-)

Anyway, for the guide download visit quantumc.at, and my repository is at https://github.com/quantumcat1/Guide-Helper. I am new to GitHub so let me know if I need to change a setting or something so people can contribute! You will need to install dompdf (the free pdf conversion tool) into your php www folder for it to run.

This is my first contribution to anything, so please be nice if it's not very good :-) I only learned PHP yesterday (and git only a few weeks ago), so I am pretty pleased with what I worked out so far!
 

Quantumcat

Dead and alive
OP
Member
Joined
Nov 23, 2014
Messages
15,144
Trophies
0
Location
Canberra, Australia
Website
boot9strap.com
XP
11,094
Country
Australia
I found a free-ish html-to-pdf api so now the pages will look pretty, and it doesn't freak out when it tried to convert a table (dompdf couldn't deal with the anonymous table in the part 1 decrypt9 page). I am trying to make it run regularly as a cron job (so it will always be updated with no input from me). However it doesn't seem to want to run despite copying what I saw in tutorials. If anybody knows about cron jobs and can help me make it work I would really appreciate it :-)

And it would be also great, if when you are directing newbies to the guide, you could offer them mine as an alternative if they want to download everything at once and have an offline reference.
 

Sonic Angel Knight

Well-Known Member
Member
Joined
May 27, 2016
Messages
14,404
Trophies
1
Location
New York
XP
12,958
Country
United States
I found a free-ish html-to-pdf api so now the pages will look pretty, and it doesn't freak out when it tried to convert a table (dompdf couldn't deal with the anonymous table in the part 1 decrypt9 page). I am trying to make it run regularly as a cron job (so it will always be updated with no input from me). However it doesn't seem to want to run despite copying what I saw in tutorials. If anybody knows about cron jobs and can help me make it work I would really appreciate it :-)

And it would be also great, if when you are directing newbies to the guide, you could offer them mine as an alternative if they want to download everything at once and have an offline reference.
Why not just add the link to your signature? :)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    It must be the 1st already
  • BakerMan @ BakerMan:
    1st of what?
  • BakerMan @ BakerMan:
    may?
  • K3Nv2 @ K3Nv2:
    Oh yeah it's in September
  • Xdqwerty @ Xdqwerty:
    @BakerMan, yea i think its different
  • BakerMan @ BakerMan:
    ok, because here it's in september, right before the fuckin school year starts
  • Xdqwerty @ Xdqwerty:
    good night
  • BakerMan @ BakerMan:
    as to you
  • K3Nv2 @ K3Nv2:
    How do you know if the night will be good when you're asleep
  • BakerMan @ BakerMan:
    because i didn't say i was asleep
  • BakerMan @ BakerMan:
    i said i was sleeping...
  • BakerMan @ BakerMan:
    sleeping with uremum
  • K3Nv2 @ K3Nv2:
    Even my mum slept on that uremum
  • TwoSpikedHands @ TwoSpikedHands:
    yall im torn... ive been hacking away at tales of phantasia GBA (the USA version) and have so many documents of reverse engineering i've done
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
    TwoSpikedHands @ TwoSpikedHands: I appreciate the insight!