Jump to content

Water layer corruption in PVRZ+TIS file


Recommended Posts

Hello,

I am trying to introduce a new area graphic for one of the old mod. I have prepared all files for classic engine (files were created for oBG2 in mind). And after installation those files (ARE, TIS, WED, BMPs, etc.) in WeiDU installer it works well in oBG2, but broken on EE games. When I exported the TIS file as a PVRZ-based TIS file for that location, I've got weird corruption of the water layer. I really don't know about internals of ARE related files. So could anyone help me to figure out what is going on here?

Expected (oBG2) :

image.png.1e7091f3dfa1c4df635ff71b77a93ef1.png

TIS on EE:

image.thumb.png.cca3cd27b74b83a0de4063966f5f8508.png

TIS+PVRZ on EE:

image.thumb.png.ff305ddafbb41daebd729bf0364c133d.png

Thanks!

Edited by Roberciiik
Link to comment

This is awesome! The issue is terrifying, and the solution provided by @argent77 is truly wonderful!

Here is the PVRZ result:

image.thumb.png.219fcc5d802a12d961b7dbdd2be81a13.png

Although there are 1-pixel artifacts related to zooming, but as I understand these are because of the EE engine issue. :)

Thank you both for help!

Link to comment

I did the conversion only once. I simply took the TIS and WED files for oBG, then run tis2ovl with WED parameter (it produces updated TIS+WED file) and I opened it in NI, next I exported it as PVRZ-based TIS.

@Gorionar How I can convert the texture overlay TIS to PVRZ? And what file exactly is the texture overlay: I have only one TIS file and I think it is converted to PVRZ with above steps.

Link to comment

Yup, you are right - it is Region of Terror, and here are my changes so far.

So you are saying that I should generate PVRZ for all WT*.TIS files? I thought that they are from the base game and do not require modifications. I can see that new RoT area adds only WTPOOLNR.TIS for oBG2, so should I try with this one or with all of them? And you are referring to running the tis2ovl tool or generating PVRZ or something else?

 

Link to comment

OK, I've tried this solution, in fact with no difference. First of all, there is no WED files for WTPOOl.TIS etc, so I can't use tis2ovl tool (but it seems to be redundant because these TIS are very simple). I generated PVRZ however, but the line corruptions are still present on BG2EE. Thanks anyway, it was good idea to check it, unfortunately with no luck.

Link to comment

Hello all. I had exactly the same problem with the lines at BGGO. The problem is that the system that reassembles the map from the PVRZ snippets has a bug. The lines occur with the overlays. In the code is somewhere an error that just here is assembled offset by 1 pixel. Beamdog already had this problem, because they made the 64x64 tiles a bit bigger. At the edge 64x66 or 66x64 and in the middle of the PVRZ file 66x66. I had to correct all that by hand with BGGO and that's why I've been sitting with it for over 4 months.
If you have any questions about how the Wed file works with its overlays and doors, you can ask me.

@Roberciiik

You don't have to convert the wt*.tis files for the overlays to pvrz format. The v1 files are sufficient.

Link to comment

Unfortunately, it is not that simple either. Otherwise I would have finished months ago.
1. is the PVRZ 1024x1024 of a continuous card => no problems with the 64x64 tiles
2. if one of the border parts on the left or right side of the map is smaller than 1024 width or height => for the corresponding part you have to add +1 pixel on each side that is smaller than 1024.
3. doors, waters: if the pvrz is only 64 wide, then the heights must be 66 pixels per part or vice versa.
3.1 If the PVRZ is larger than 64, then all parts are 66x66
4. accordingly, the coordinates must also be adjusted in the tiv v2, there are the x, y coordinates of the individual tiles in the PVRZ image.

The whole thing is wild as a bird. It will certainly be hard to automate this. That's why it takes so long for me, because I have to copy all the overlay parts (doors+waters) in by hand.
 

Edited by Weigo
Link to comment

I did as written here ;), it doesn't quite work (tested in BG2EE and PSTEE). 

Tis2ovl and tis > pvrz works, but the water has the same "rhythm" on the surface - the squares just bobble the same way.

Some test:

sNTILdD.jpg

Help!

Edited by szef
Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...