Live data from Hacker News

Show HN: Doom (1993) in a PDF

doompdf.pages.dev

61–70 of 78 posts

Re: Show HN: Doom (1993) in a PDF

#61
post #25

Earlier quoted context omitted.

:-) I'll never quite appreciate why people say things like this. Having some kind of embedded scripting is useful for all sorts of things, often form validation. A sufficiently complex validation system becomes Turing complete, so you might as well skip the hassle of a custom language and go right to JavaScript. Once you have JavaScript, input, and some way of updating a graphical pixel grid, you're at Doom-completen…

We had that language, it was postscript. Then pdf came along and said: no this is too dangerous the only thing in a document should be layout information not arbitrary code. And here we are two decades later. My hatred of pdf has no end. It killed postscript for dynamic pages and djvu for static pages.

> My hatred of pdf has no end. It killed postscript for dynamic pages and djvu for static pages.

Interesting to see someone evoke DjVu.

With the exception of IW44 wavelet compression, basically everything the DjVu file format supports has a PDF equivalent. I built a tool to convert DjVu to PDF that preserves the image layers and file structure with nearly equivalent compression.

My tool did expose some edge cases in the PDF standard which was frustrating. For instance, PDF supports applying a bitonal mask to an image, but it does not specify how to apply it if the two images have different resolution (DPI). It took many years to get Apple to bring their implementation into consistency.

Re: Show HN: Doom (1993) in a PDF

#62
post #51

Stop restricting yourself to a shareware episode. Use the full legal replacement from https://freedoom.github.io

You actually can use FreeDoom if you want by loading it as a custom IWAD. If you visit the site's landing page (https://doompdf.pages.dev/) you can upload the IWAD file, and then it'll generate a new PDF file (that can even be saved and redistributed).

However, I chose the shareware version since the file size is a lot smaller and it's more recognizable to people.

Re: Show HN: Doom (1993) in a PDF

#63

Earlier quoted context omitted.

That’s the only way we know how to go

This. I'm eagerly awaiting the replicators that will explore the cosmos and spread the knowledge of our existence. If we can get them done before we poison ourselves.

And they'll be able to run Doom too.

Re: Show HN: Doom (1993) in a PDF

#64
post #25

Earlier quoted context omitted.

:-) I'll never quite appreciate why people say things like this. Having some kind of embedded scripting is useful for all sorts of things, often form validation. A sufficiently complex validation system becomes Turing complete, so you might as well skip the hassle of a custom language and go right to JavaScript. Once you have JavaScript, input, and some way of updating a graphical pixel grid, you're at Doom-completen…

We had that language, it was postscript. Then pdf came along and said: no this is too dangerous the only thing in a document should be layout information not arbitrary code. And here we are two decades later. My hatred of pdf has no end. It killed postscript for dynamic pages and djvu for static pages.

> And here we are two decades later.

The conclusion to draw from this is that the hypothesis "the only thing in a document should be layout information not arbitrary code." is wrong and misguided, since whatever the format is, in the end "nature" (us) will make it evolve in a way that has some amount of arbitrary scriptability ; if it's not JS in PDFs it will be ActiveX controls, a government-mandated proprietary app, having to do a trip to the city hall to have the clerk play an algorithm step-by-step by hand, or something else, but something will always eventually come up to fill that void and you will have to use it whether you like it or not.

Re: Show HN: Doom (1993) in a PDF

#65
post #37

am I the only dummy missing an instruction? the game takes off w/o my input, moving and blasting away. surely I'm just OOTL w/ PDF gameplay, which I blame myself for

You are using higher-dpi laptop, probably. Unless you zoom out, the page only fits on generic full displays.

Re: Show HN: Doom (1993) in a PDF

#66
post #31

Now how do I add another WAD file to this. Someone needs to play sigil on this.

I just added this as a feature. You can launch the game with custom WADs at the site's landing page ( https://doompdf.pages.dev/ ). It'll open a new PDF file as a blob URL (and you can even save and redistribute the PDF it generates). A disclaimer though - I don't have any experience with Doom modding. I don't know if the behavior of this feature is correct. All it does is it loads the PWAD by passing the "-file" arg…

Cool. This is a great project!

I've been playing around with the version that was up yesterday. I managed to get my DOOM Resume running in the PDF https://github.com/adamrmelnyk/thisResumeRunsDoom.

Is it playable.... eh? that's another matter. I think I'd need to modify it a bunch. Right now the doors don't seem to open when playing the PDF. I could just remove them all though.

Re: Show HN: Doom (1993) in a PDF

#67

Author of "PDF Tetris" here. Great work! We had the same idea at the same time, here's my version of PDF Doom: Source: https://github.com/thomasRinsma/pdfdoom Playable here: https://th0mas.nl/downloads/doom.pdf Yours is neater in many ways though!

This is pretty fascinating stuff*

Re: Show HN: Doom (1993) in a PDF

#69

As PDF supports DEFLATE compression, it should be possible to shrink the size of the PDF document considerably.

Yes, that would be better for faster transfer of the PDF over the network, and a smaller file size for caching.

Can you get it as small as the DOOM1.WAD file? (4 MB)

Re: Show HN: Doom (1993) in a PDF

#70
post #57

Earlier quoted context omitted.

This. I'm eagerly awaiting the replicators that will explore the cosmos and spread the knowledge of our existence. If we can get them done before we poison ourselves.

You assume that we are the thing being replicated. Nature is crafty. It could be the case that we humans are the replicators, not the main show.

"A chicken is an egg's way of making another egg."
Post reply on HN