Jump to content

Scaling .pvrz at runtime


Aquadrizzt

Recommended Posts

How would one go about scaling the size of a folder of .pvrz files at run time?

 

I'm quite certain that it will require a rescale.bat file executed via an AT_NOW command, but the specifics of how I would get .pvrz files into an accessible format for .bat to use through Weidu is beyond me.

Link to post

As in reduce both dimensions by 25%?

 

For context, I have script that currently can bring PSTEE areas directly into other EE games. One of the more annoying cosmetic features is that PST creature animations are about 25% larger than other IE games, so all the buildings/tables/etc. are comically large compared to the animations present in other games, so I'm trying to figure out an easy way to scale down the apparent size of the areas to better fit with BG animations.

Link to post

That alone doesn't work, as it would invalidate TIS tile references and WED tile indices. You would also need to rescale polygon structures and position coordinates in ARE and WED files as well as resize search, light and height maps. There is a whole chain of dependencies to update, and not all of it can be automated. And it gets really complicated if the map contains extra tiles (for doors, etc.).

Link to post

I hadn't thought about doors, but for the ARE/WED/TIS coordinates, as long as you maintain the aspect ratio couldn't you just iterate over each coordinate and apply the scaling factor in WeiDu? Granted, iterating over all of those would be quite the task computationally, but it seems pretty doable as long as you are careful with your file structure offsets/size.

 

Similarly, if you can scale the tile art, then scaling the search/light/height maps should also be fine as long as you are consistent. Right?

Link to post

Search maps don't scale well because of their low resolution. It may result it blocked paths or open barriers. You would most likely have to fine-tune it by hand.

Rescaling ARE/WED coordinates isn't too difficult to code. Remapping WED tile indices would be much more complicated though.

I have ported a single map from PST for my Golem Construction mod (Ravel Maze). It was a time-consuming process and required a lot of fine-tuning in the end.

Link to post
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...