Talk:The 7th Guest

From XentaxWiki
Revision as of 12:56, 31 May 2005 by imported>DenizOezmen
Jump to navigation Jump to search

Algorithm and such ...

OK, I have added some information about the VDX format, but I'm not sure whether the pseudo code is appropriate here: LZSS is a fairly well known compression routine which has been used quite in bit especially in older games, but unfortunately it has been implemented in many different variantions. You need at least the parameters N, F, Threshold, Start Position and Void Byte as well as the information on how the offset is calculated (relative or absolute) to properly decompress LZSS-compressed data.

So ... should we instead write something about this algorithm in a centralized place and just point there with the right parameters or keep it to each game entry?

Someone might want to take a look at the code -- I think it's not very readable yet ...
--Deniz Oezmen 07:57, 31 May 2005 (EDT)

Good question

Let me try to understand. If I'm reading this correctly, your question has two parts:

  • How to improve readability of the pseudo code?
    I've looked at it and I agree the pseudo code isn't very readable at this point. I think the kind of visitor we get is pretty capable of reading proper, 'real' code, like for instance java or C snippets. I would like the other guys imput on this though.
  • If there are more games using a similar technique, should a separate page be created?
    The team has pretty much agreed that in such cases, a separate page should be created, that the game pages can link to. This prevents certain maintenance problems down the road.

-Captain 08:30, 31 May 2005 (EDT)

Yes ... =

... you got that correct so far. ;-)

  • I'd agree that real code snippets are usually better readable than pseudo code (as long as the snippets are not comprised of "compressed C style" that seasoned C programmers are often prone to produce). On the other hand, this special algorithm looks much more frightening in a fully implemented variant (due to the buffer management overhead). For example, a fully-fledged Object Pascal implementation of said algorithm might take around 50 lines (not counting comments, declarations and empty lines), which is a bit too much to show the idea behind it.
    C or Java code would of course be a bit shorter, but nonetheless ...
    Maybe there's something "in between"?
  • Creating a single page sounds good. Where should it belong?

--Deniz Oezmen 08:56, 31 May 2005 (EDT)