VOGONS

Common searches


First post, by Gambit37

User metadata
Rank Oldbie
Rank
Oldbie

While playing JCs combined Peru & Rome packs, I noticed that on some later levels, there is a tendency for the passport textures to be 'forgotten'.

For example, when I die in St. Francis Folly and the menu ring pops up, I see the new red passport cover appear, but just before the passport opens and the save games are shown, the red cover vanishes and the old black passport is shown.

I tried this with my own equiv file which is currently mapping the passport to all levels and the same thing happened.

Is this a problem texture memory? The Equiv file? Duplicates (of which there aren't any in both these cases)?

I noticed in the changes.txt file for version 1.31 this comment:

Improve texture caching, making it less prone to drop textures and making it handle badly defined texture-space rectangles. Befo […]
Show full quote

Improve texture caching, making it less prone
to drop textures and making it handle badly
defined texture-space rectangles. Before this
change Descent II sometimes crashed or
took minutes to print the menues under
Windows 98.

Is it related?

Reply 1 of 17, by Glidos

User metadata
Rank l33t
Rank
l33t

It not connected with that change. That change is a feature used only in DII.

I don't think texture could be the cause either, unless you have loads of duplicates. Did you test the pack for duplicates using the tool?

Not sure what might be the cause

Reply 2 of 17, by Gambit37

User metadata
Rank Oldbie
Rank
Oldbie

I didn't test for duplicates using the tool, just did it by eye on my own stuff. I'll have a look at this tonight when I'm home from work.

Reply 3 of 17, by Gambit37

User metadata
Rank Oldbie
Rank
Oldbie

OK, this is JCs repeats:

Repeat analysis for F:\Projects\Tomb Raider Xtra\Override Folders\John Capon\Textures\JC

2F99F828C626A88A649C0E14BC53ECBD\(24--48)(248--256)
-> F:\Projects\Tomb Raider Xtra\Override Folders\John Capon\Textures\JC\JC2\_Rome\key\key-10.png
-> F:\Projects\Tomb Raider Xtra\Override Folders\John Capon\Textures\JC\JC2\_Rome\key\key-33.png

4DC46C679B59C314D5D31C7D05303E1A\(144--208)(0--64)
-> F:\Projects\Tomb Raider Xtra\Override Folders\John Capon\Textures\JC\JC2\_Rome\masonry\masonry-036.png
-> F:\Projects\Tomb Raider Xtra\Override Folders\John Capon\Textures\JC\JC2\_Rome\masonry\masonry-059.png

9CB0A60D5FA94C63769331E7385EA927\(192--256)(192--256)
-> F:\Projects\Tomb Raider Xtra\Override Folders\John Capon\Textures\JC\JC2\_Rome\masonry\masonry-059.png
-> F:\Projects\Tomb Raider Xtra\Override Folders\John Capon\Textures\JC\JC2\_Rome\masonry\masonry-036.png

F9EA57824BF447DB79FDBC1BA6975EDF\(128--152)(184--192)
-> F:\Projects\Tomb Raider Xtra\Override Folders\John Capon\Textures\JC\JC2\_Rome\key\key-33.png
-> F:\Projects\Tomb Raider Xtra\Override Folders\John Capon\Textures\JC\JC2\_Rome\key\key-10.png

My own repeats file is quite large as I still haven't removed a lot of the sprites and icons from the second level, but none of the repeats are the passport. Would any repeats AT ALL affect this texture 'forgetting'?

Also, I'm a bit confused by the format of this repeats.log file -- it doesn't seem too useful as is. Wouldn't it be better to avoid the manual cross referencing and pump out all the relationships for a given texture together?

For example, the first and last entries in JCs above. These are clearly the duplicates. I think a more useful format would be:

2F99F828C626A88A649C0E14BC53ECBD\(24--48)(248--256)
= F9EA57824BF447DB79FDBC1BA6975EDF\(128--152)(184--192)
= OTHER DUPLICATE
= OTHER DUPLICATE
-> F:\Projects\Tomb Raider Xtra\Override Folders\John Capon\Textures\JC\JC2\_Rome\key\key-10.png
-> F:\Projects\Tomb Raider Xtra\Override Folders\John Capon\Textures\JC\JC2\_Rome\key\key-33.png

EDIT: Somethings wrong with this as those two graphis are completely different! Either one replaces the other without JC realising, or JC has in fact edited the equiv.txt file to handle it but the changes aren't picked up by the tool?

Reply 4 of 17, by Glidos

User metadata
Rank l33t
Rank
l33t
Gambit37 wrote:

My own repeats file is quite large as I still haven't removed a lot of the sprites and icons from the second level, but none of the repeats are the passport. Would any repeats AT ALL affect this texture 'forgetting'?

I think there are two issues.

  • If repeats give paths to two distinct texture files, then the choice between the two may alternate through a sceen.

    If there are a great many repeats then you can run out of graphics memory. I wouldn't expect this latter issue to cause problems with just a single texture.
Gambit37 wrote:

Also, I'm a bit confused by the format of this repeats.log file -- it doesn't seem too useful as is. Wouldn't it be better to avoid the manual cross referencing and pump out all the relationships for a given texture together?

Yeah, I was aware that the presentation informs you of repeats but gives little help in tracking them down. This feature of the tool was just what was possible via my existing interfaces. It may be quite a difficult task to improve it.

Gambit37 wrote:
For example, the first and last entries in JCs above. These are clearly the duplicates. I think a more useful format would be: […]
Show full quote

For example, the first and last entries in JCs above. These are clearly the duplicates. I think a more useful format would be:

2F99F828C626A88A649C0E14BC53ECBD\(24--48)(248--256)
= F9EA57824BF447DB79FDBC1BA6975EDF\(128--152)(184--192)
= OTHER DUPLICATE
= OTHER DUPLICATE
-> F:\Projects\Tomb Raider Xtra\Override Folders\John Capon\Textures\JC\JC2\_Rome\key\key-10.png
-> F:\Projects\Tomb Raider Xtra\Override Folders\John Capon\Textures\JC\JC2\_Rome\key\key-33.png

Sorry, I'm feeling a bit thick today: how should I read that?

Gambit37 wrote:

EDIT: Somethings wrong with this as those two graphis are completely different! Either one replaces the other without JC realising, or JC has in fact edited the equiv.txt file to handle it but the changes aren't picked up by the tool?

The tool would not miss the changes. It has no built in knowledge of the equiv files.

Reply 5 of 17, by Gambit37

User metadata
Rank Oldbie
Rank
Oldbie
Glidos wrote:
Gambit37 wrote:
For example, the first and last entries in JCs above. These are clearly the duplicates. I think a more useful format would be: […]
Show full quote

For example, the first and last entries in JCs above. These are clearly the duplicates. I think a more useful format would be:

2F99F828C626A88A649C0E14BC53ECBD\(24--48)(248--256)
= F9EA57824BF447DB79FDBC1BA6975EDF\(128--152)(184--192)
= OTHER DUPLICATE
= OTHER DUPLICATE
-> F:\Projects\Tomb Raider Xtra\Override Folders\John Capon\Textures\JC\JC2\_Rome\key\key-10.png
-> F:\Projects\Tomb Raider Xtra\Override Folders\John Capon\Textures\JC\JC2\_Rome\key\key-33.png

Sorry, I'm feeling a bit thick today: how should I read that?

I have no idea! I'll think about it some more... 😉

Reply 7 of 17, by Gambit37

User metadata
Rank Oldbie
Rank
Oldbie

The weird thing is that they are different images for different locks, so you must have had the intention of making them unique. Guess there's a mixup in the equiv file somewhere?

Reply 8 of 17, by Gambit37

User metadata
Rank Oldbie
Rank
Oldbie
Glidos wrote:
Gambit37 wrote:

EDIT: Somethings wrong with this as those two graphis are completely different! Either one replaces the other without JC realising, or JC has in fact edited the equiv.txt file to handle it but the changes aren't picked up by the tool?

The tool would not miss the changes. It has no built in knowledge of the equiv files.

Based on the output, it's clear the tool reads the equiv file and any mapping files to work out the duplicates. Is there anything else I should know about how it works?

Reply 9 of 17, by Gambit37

User metadata
Rank Oldbie
Rank
Oldbie

After resolving JCs duplicates, this problem still exists.

It's weird because you see the new passport initially, then the old one appears -- and when you escape out and the passport closes, the new one comes back again!

It concerns me that this could affect other textures and compromise our ability to re-texture the entire game. Anyt thoughts on what's going on?

Reply 11 of 17, by Gambit37

User metadata
Rank Oldbie
Rank
Oldbie

I don't believe it! Noooooooooooooooooooo! Not a bug in Glidos! It's my favourite thing ever and I thought it was perfect. You have shattered the illusion.

😉 😉 😉 🤣

Reply 14 of 17, by Gambit37

User metadata
Rank Oldbie
Rank
Oldbie

Woot! I discovered the problem and fixed it. 😁 😁 😁

In some of the levels, there is 1 PIXEL different on the passport cover. Took me a while to discover it, but boosting the brightness in Photoshop and setting the difference on the two versions of the image revealed it.

To fix it in an equiv file for game version 1 (PHD files dated 25/10/1996) do this:

Find this block in the equiv file and cut it to the clipboard:

BeginEquiv
784A660713A514E8962531BB00199AB1\(128--200)(0--96)
2ABC577425F24115842D9228B9FA18AA\(0--72)(0--96)
D18304C9097376209CFF2F8E26288C22\(64--136)(0--96)
7CA502BF24FF36AE4BA3280955768322\(0--72)(0--96)
AFBA022AD4696FE41D9B0E488CED5B18\(0--72)(0--96)
F11F5D8BB37BA66744037A22B4F1FF4C\(0--72)(160--256)
8CC22AAA7DBC6F28B3473517DE5BB446\(64--136)(0--96)
BD3BBCAAC1743848331C500384DC4626\(128--200)(0--96)
66562D1E7F1C6C0E7821900D8EC38DEB\(128--200)(0--96)
EndEquiv

Now find this block:

BeginEquiv
01E61BCD39E5DDC9F388E9E80E635BB3\(0--72)(0--96)
8B4825478FAB43844E3D4CB077E97613\(128--200)(96--192)
99A9ECC11E164D754899E5F069ADA6AC\(152--224)(96--192)
6374D96404C7A58754EFD0E7683320E8\(128--200)(0--96)
254A33F673C61075798CEFB512F5B4FA\(72--144)(0--96)
3F792A91CFE4648E8F27C55D48CB5845\(0--72)(0--96)
D567BDDB4027A1932F2B1DE209129038\(128--200)(64--160)
D8E4373C2735E1BCB135257961F3BDED\(144--216)(0--96)
4DC46C679B59C314D5D31C7D05303E1A\(72--144)(0--96)
ED7AF930ABC90231649819C5A77BB3CB\(0--72)(96--192)
B361FEFD000A1042AAC7F88562126ACF\(72--144)(0--96)
F7590E1E7A1B342A0226D0C49758B589\(72--144)(0--96)
E67BB360AC246FFCB7253DB0939C9266\(144--216)(96--192)
0E1DA2CE74E83D5CD69CAAD6E841DCA9\(0--72)(96--192)
046A802238552F7592545C5E5154F954\(144--216)(0--96)
5564D5A2BFD736964A791151589BF74A\(144--216)(0--96)
6018E6431FA65017D0F703FC8E60D589\(80--152)(0--96)
EndEquiv

...and paste the bit you cut into it, to get this:

BeginEquiv
784A660713A514E8962531BB00199AB1\(128--200)(0--96)
2ABC577425F24115842D9228B9FA18AA\(0--72)(0--96)
D18304C9097376209CFF2F8E26288C22\(64--136)(0--96)
7CA502BF24FF36AE4BA3280955768322\(0--72)(0--96)
AFBA022AD4696FE41D9B0E488CED5B18\(0--72)(0--96)
F11F5D8BB37BA66744037A22B4F1FF4C\(0--72)(160--256)
8CC22AAA7DBC6F28B3473517DE5BB446\(64--136)(0--96)
BD3BBCAAC1743848331C500384DC4626\(128--200)(0--96)
66562D1E7F1C6C0E7821900D8EC38DEB\(128--200)(0--96)
01E61BCD39E5DDC9F388E9E80E635BB3\(0--72)(0--96)
8B4825478FAB43844E3D4CB077E97613\(128--200)(96--192)
99A9ECC11E164D754899E5F069ADA6AC\(152--224)(96--192)
6374D96404C7A58754EFD0E7683320E8\(128--200)(0--96)
254A33F673C61075798CEFB512F5B4FA\(72--144)(0--96)
3F792A91CFE4648E8F27C55D48CB5845\(0--72)(0--96)
D567BDDB4027A1932F2B1DE209129038\(128--200)(64--160)
D8E4373C2735E1BCB135257961F3BDED\(144--216)(0--96)
4DC46C679B59C314D5D31C7D05303E1A\(72--144)(0--96)
ED7AF930ABC90231649819C5A77BB3CB\(0--72)(96--192)
B361FEFD000A1042AAC7F88562126ACF\(72--144)(0--96)
F7590E1E7A1B342A0226D0C49758B589\(72--144)(0--96)
E67BB360AC246FFCB7253DB0939C9266\(144--216)(96--192)
0E1DA2CE74E83D5CD69CAAD6E841DCA9\(0--72)(96--192)
046A802238552F7592545C5E5154F954\(144--216)(0--96)
5564D5A2BFD736964A791151589BF74A\(144--216)(0--96)
6018E6431FA65017D0F703FC8E60D589\(80--152)(0--96)
EndEquiv

Reply 16 of 17, by Glidos

User metadata
Rank l33t
Rank
l33t
Gambit37 wrote:

Woot! I discovered the problem and fixed it. 😁 😁 😁

In some of the levels, there is 1 PIXEL different on the passport cover. Took me a while to discover it, but boosting the brightness in Photoshop and setting the difference on the two versions of the image revealed it.

Nice one Gambit.

Gambit37 wrote:

Find this block in the equiv file and cut it to the clipboard...

What you describe is exactly what the combining tool does. So you can get the same effect by picking any line from the first group, and any line from the second, e.g.:

BeginEquiv
784A660713A514E8962531BB00199AB1\(128--200)(0--96)
01E61BCD39E5DDC9F388E9E80E635BB3\(0--72)(0--96)
EndEquiv

Then combine that two-line equiv file with your original, and it will locate the blocks and concatenate them for you.

It may be just as easy with an editor in some cases though.