[Crawl] Darshan's full patch (Linux, gcc)

G

Guest

Guest
Archived from groups: rec.games.roguelike.misc (More info?)

I just compiled Darshan's full patch (with gcc 3.3.2, Linux) and from my
first impressions this looks like a lot of fun! Big thanks to Darshan!

There seems something odd with that patch, though (a minor one,
hopefully): every once in a while during a running game (*not* on
saving), strange files appear in my crawldir. Currently I have 3 of
them, all with scrambled content and filenames ( also different size: 4,
174, 353 Byte). They all have the ending .tc (the rest is unreadable).
What can it be... Any ideas?

Rubinstein
 
G

Guest

Guest
Archived from groups: rec.games.roguelike.misc (More info?)

Rubinstein <picommander@t-online.de> wrote:

> I just compiled Darshan's full patch (with gcc 3.3.2, Linux) and
> from my first impressions this looks like a lot of fun! Big thanks
> to Darshan!

Glad you like it. :)

> There seems something odd with that patch, though (a minor one,
> hopefully): every once in a while during a running game (*not* on
> saving), strange files appear in my crawldir. Currently I have 3
> of them, all with scrambled content and filenames ( also different
> size: 4, 174, 353 Byte). They all have the ending .tc (the rest is
> unreadable). What can it be... Any ideas?

Those would be travel cache files - that's where the interlevel travel
code looks to figure out how to move around between levels. They're not
intended to be human-readable, and the smallest you can get is 4 bytes.
The more levels you've explored, the bigger the .tc file.

The .tc file should be created only on saving, though. I don't have
access to a Linux box, so I can't track this one down in a hurry, I'm
afraid.

Darshan
 
G

Guest

Guest
Archived from groups: rec.games.roguelike.misc (More info?)

Darshan Shaligram wrote:
> Rubinstein <picommander@t-online.de> wrote:
>
>> I just compiled Darshan's full patch (with gcc 3.3.2, Linux) and
>> from my first impressions this looks like a lot of fun! Big thanks
>> to Darshan!
>
> Glad you like it. :)

That would be strongly understated: meanwhile I can't imagine how I
could ever play without it! :)
I really would like to see these patch as an official part of the next
Crawl version. Are you in contact with the maintainer of crawl (don't
know who it is currently)? The patch is a *must have* and makes an
already fine game so much better...

Interlevel Travel unfortunately is broken:

>> There seems something odd with that patch, though (a minor one,
>> hopefully): every once in a while during a running game (*not* on
>> saving), strange files appear in my crawldir.
>> [...]
>
> Those would be travel cache files - that's where the interlevel travel
> code looks to figure out how to move around between levels. They're
> not intended to be human-readable, and the smallest you can get is 4
> bytes. The more levels you've explored, the bigger the .tc file.

Fact is, the more levels I explore, the more .tc files are created. I
can understand that the file contents are not human-readable, but are
you sure that also the filenames shouldn't be readable? Perhaps you got
me wrong about the filenames, they are looking like this:

[pi@k7 crawldir]$ ls
°³ø¿P±ø¿?±ø¿bz??.tc ?]n?ÿÿÿÿ.tc #.tc
à?÷¿??÷¿¸?÷¿bz??.tc ?¯ø¿#¨º.tc úÛ??ÿÿÿÿ.tc

I have 8 of them currently. The way I understand what you told above,
the content of _one_ *.tc file should be concatenated. For me it looks
like the scrambled filenames could be the reason why this can't work
(although it doesn't explain why they are created during the game at all
and not, as you expected, just by saving).

> The .tc file should be created only on saving, though. I don't have
> access to a Linux box, so I can't track this one down in a hurry, I'm
> afraid.

If you have any idea, let me know if I can help with some testing.

Rubinstein
 
G

Guest

Guest
Archived from groups: rec.games.roguelike.misc (More info?)

Rubinstein <picommander@t-online.de> wrote:
> I really would like to see these patch as an official part of the
> next Crawl version. Are you in contact with the maintainer of
> crawl (don't know who it is currently)?

Brent Ross is the maintainer.

> The patch is a *must have*
> and makes an already fine game so much better...

Glad you like it, it just needs more work so it can be included with
the official Crawl, and I've had little time to work on it.

> Fact is, the more levels I explore, the more .tc files are
> created. I can understand that the file contents are not
> human-readable, but are you sure that also the filenames shouldn't
> be readable?

That's definitely wrong.

> I have 8 of them currently. The way I understand what you told
> above, the content of _one_ *.tc file should be concatenated.

Yes, that's the idea.

> it looks like the scrambled filenames could be the reason why
> this can't work (although it doesn't explain why they are created
> during the game at all and not, as you expected, just by saving).

Mystifying. Do you see any other weird files around, such as .kil or
..st files, or are the .tc files the only problem?

Darshan
 
G

Guest

Guest
Archived from groups: rec.games.roguelike.misc (More info?)

Darshan Shaligram wrote:
> Rubinstein <picommander@t-online.de> wrote:
>
>> [snip strange filenames in crawldir]
>
> Mystifying. Do you see any other weird files around, such as .kil or
> .st files, or are the .tc files the only problem?

No, the .tc files (and, obviously, non-working interlevel travel) are
the only problem.

A bit more specific: every level change to a *new* level (I'm not yet
sure about branches) seems to create a new .tc file. Additionally, when
I save on level 1 without ever using stairs before, then exactly one .tc
file is created.

Rubinstein
 
G

Guest

Guest
Archived from groups: rec.games.roguelike.misc (More info?)

Rubinstein <picommander@t-online.de> wrote:
> Darshan Shaligram wrote:
>> Rubinstein <picommander@t-online.de> wrote:

>>> [snip strange filenames in crawldir]

>> Mystifying. Do you see any other weird files around, such as .kil
>> or .st files, or are the .tc files the only problem?

> No, the .tc files (and, obviously, non-working interlevel travel)
> are the only problem.

Well, I was wrong about it being mystifying. The bug was very simple
and very silly. Should be fixed now. The fixed patch is up at the same
place:

http://www.angelfire.com/trek/mazewest/crawl/crawl-patches.diff

Could you let me know if the problem goes away?

Darshan
 
G

Guest

Guest
Archived from groups: rec.games.roguelike.misc (More info?)

Darshan Shaligram wrote:
> Rubinstein <picommander@t-online.de> wrote:
>> Darshan Shaligram wrote:
>>> Rubinstein <picommander@t-online.de> wrote:
>
>>>> [snip strange filenames in crawldir]
>
> Well, I was wrong about it being mystifying. The bug was very simple
> and very silly. Should be fixed now. The fixed patch is up at the same
> place:
>
> http://www.angelfire.com/trek/mazewest/crawl/crawl-patches.diff
>
> Could you let me know if the problem goes away?

Works now! :)

But now I'm curious: where did you hide the *.tc file(s)? I couldn't
find a single one anymore. Let me guess: it's merged with the save file
now (and hold in memory during the game)?
BTW, since no one posted something about this bug: am I the only one who
is using this patch with the Linux version? I can't believe it...

Anyway, thanks a lot! Not only for the patches, also for taking your
sparse time to solve this problem. Excellent!

Rubinstein
 
G

Guest

Guest
Archived from groups: rec.games.roguelike.misc (More info?)

Rubinstein <picommander@t-online.de> wrote:
> Darshan Shaligram wrote:
[strange filenames in crawldir]
>> Well, I was wrong about it being mystifying. The bug was very
>> simple and very silly. Should be fixed now.

> Works now! :)

Great!

> But now I'm curious: where did you hide the *.tc file(s)? I
> couldn't find a single one anymore. Let me guess: it's merged with
> the save file now (and hold in memory during the game)?

Right, that's what's happening now.

> Anyway, thanks a lot! Not only for the patches, also for taking
> your sparse time to solve this problem.

You're welcome.

Darshan