Aquadrizzt Posted November 21, 2017 Share Posted November 21, 2017 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. Quote Link to comment
lynx Posted November 21, 2017 Share Posted November 21, 2017 What do you mean by scaling? Quote Link to comment
Aquadrizzt Posted November 21, 2017 Author Share Posted November 21, 2017 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. Quote Link to comment
argent77 Posted November 22, 2017 Share Posted November 22, 2017 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.). Quote Link to comment
Aquadrizzt Posted November 22, 2017 Author Share Posted November 22, 2017 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? Quote Link to comment
argent77 Posted November 22, 2017 Share Posted November 22, 2017 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. Quote Link to comment
Aquadrizzt Posted November 22, 2017 Author Share Posted November 22, 2017 That's a shame. It's a purely cosmetic issue too, so if it's way too much trouble then I just won't bother with it for now. Quote Link to comment
Recommended Posts
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.