Thread: TRViewer update
View Single Post
Old 10-05-17, 00:58   #54
DJ Full
Professor
 
DJ Full's Avatar
 
Join Date: Jul 2007
Location: Poland (CET)
Posts: 4,110
Default

For this I use Paolone's WM fixer. It has per-frame collision calculator.
Also it has copy-paste collision from one frame to another, and apply to all.

Can TRViewer change sprite IDs in older data files? EDIT: OK, it can... great!

EDIT: I get "Command -57 unknown in Anim commands list. Aborting TRViewer".
Obviously I messed something up, but how does this "-57" tell me what it was?
EDIT: Now I get the same "Command 1020" though I didn't alter the base at all.
Does it mean more errors but random one reported, or just a random/fake report?

Wait - here's my basefile. I don't know if it will help but maybe it can tell you more.

EDIT2: Oho - I found something. I loaded this file into WadMerger and got reported an error with underwater switch.
The point is it's a regular wall switch of talion/palace set, only WadMerger reads it as "underwater" for some reason.
Anyway, both this and former error report are surely related - I deleted the switch and TRViewer stopped complaining.

Bonus issue is now solved - it was enough to specify original level path in options. Didn't seem sound-affecting but it is.




EDIT3: Now I found a little error in trcatalog.xml. TR2 pickups 5 and 6 are unpickable.
I see normal pickups have "id2" to display alternate pickable sprite on the floor, like:

Code:
<moveable id="197" 	name="Key 1" 			id2="193"	icon="Key"/>
<moveable id="198" 	name="Key 2" 			id2="194"	icon="Key"/>
later in code
<sprite id="193"	name="Key 1"					icon="Key"	type="list"/>
<sprite id="194"	name="Key 2"					icon="Key"	type="list"/>
But the couple of pickup5 and pickup6 is missing the call for those pickup sprites:

Code:
<moveable id="207" 	name="Pickup 5" y_adjust="0.14"			icon="Tool"/>
<moveable id="208" 	name="Pickup 6" 				icon="Tool"/>
later in code
<sprite id="205"	name="Pickup 5"					icon="Tool"	type="list"/>
<sprite id="206"	name="Pickup 6"					icon="Tool"	type="list"/>
Therefore the pickups display on the ground as inventory items, not possible to grab.
I made a custom Xian dagger sprite and added the sprite "pointers" if I can call them so:

Code:
<moveable id="207" 	name="Pickup 5" y_adjust="0.14"	id2="205"	icon="Tool"/>
<moveable id="208" 	name="Pickup 6" 		id2="206"       icon="Tool"/>
later in code
<sprite id="205"	name="Pickup 5"			 	        icon="Tool"	type="list"/>
<sprite id="206"	name="Pickup 6"				        icon="Tool"	type="list"/>
Now I can pick up Xian which was unpickable in TR2, and the Talion, back like it was.
Could you implement the missing code in the download version?


Last edited by DJ Full; 10-05-17 at 13:09. Reason: solving part of the problem
DJ Full is offline   Reply With Quote