Perchik71 / Creation-Kit-Platform-Extended

A collection of modifications, enhancements, and reverse engineered resources for Creation Kit by Bethesda.
GNU General Public License v3.0
38 stars 4 forks source link

Recalc Bounds option is broken, when it cannot find the model. #4

Closed robertgk2017 closed 4 months ago

robertgk2017 commented 6 months ago

running the recalc bounds on base records spits out the same data for all records regardless of the bounds of the object in question.

Running it en bulk on skyrim.esm spits out

x1 = -117 y1 = -28 z1 = -117 x2 = 117 y2 = 28 z2 = 117

For all records that have OBND - Object Bounds.

Edit: Wait hang on that was on build 525, let me update to 530 and double check.

Edit2: Still an issue on build 530.

Perchik71 commented 6 months ago

Rather, it is a bug of the new version of CK.

robertgk2017 commented 6 months ago

No it works just fine in the vanilla CK. Without CKPE active running Recalc Bounds on the entirety of skyrim.esm outputs correct bounds.

I've been working on a re-save of the original masters, for decoding purposes, and one of the things i been looking at is recalc bounds of everything as quite a lot of records in skyrim.esm are wrong anyway in vanilla.

Perchik71 commented 6 months ago

hmm, it's interesting, then we need to search for the guilty module. I don't remember what it was in the fixes, I'll look for it.

Perchik71 commented 6 months ago

Could you describe the procedure, I don't know all the possibilities of CK so well.

robertgk2017 commented 6 months ago

in the object window, right click any object, and select Recalc Bounds. Object Types that don't have that field won't have that option.

STAT MSTT DOOR ARMO ARMA theres a whole list that do have that field.

in xEdit it's towards the top of the record under OBND as a list of 6 Integars in the format i put up in the OP

Perchik71 commented 6 months ago

I made a recalculation, but in order to save it, I changed the shape beforehand. I can't say anything yet. 2023-12-28_22-27-15

I tried to do it en masse, but noticed that I didn't even have a label about changing the mod...

robertgk2017 commented 6 months ago

hmmm interesting. Im working on an update to SREX and it consistently outputs the following for the base records we have. image

The bounds on the left are the correct bounds that it should be generating for this. This couldn't be something i've screwed up has it?

Perchik71 commented 6 months ago

So far, all I can say is that I click on "Recalc Bounds" and nothing happens, not even a "*" is placed above the form and file. Something's wrong, I'm going to get into the debugger.

Perchik71 commented 6 months ago

Well, I looked at it, he recalculated it, looked at it and I even decided not to save it 2023-12-28_23-33-13 2023-12-28_23-38-05 You may have experienced errors by type: "Bound for object '%s' (%08X) exceeds 32000 unit limits (%.0f,%.0f,%.0f),(%.0f,%.0f,%.0f)."

I will try brazenly to skip this check now and force him to change the file.

Perchik71 commented 6 months ago

It works fine, it refused to change twice, because the values turned out to be the same. And when I saved them, they didn't change. See the log, what's going on there with all this.

robertgk2017 commented 6 months ago

Hmmm i wonder if just the meshes i'm using are screwy. I'll close this for now until i can find out more/narrow it down.

robertgk2017 commented 6 months ago

Ah i figured it out, I had some file paths setup wrong. By default the CK should set the bounds to all 0s when it can't find the .nif that is used by the object, which is correct. With build 530 installed it does the -117, -28, -117, 117, 28, 117 for some reason.

Perchik71 commented 6 months ago

I'll look at this at my leisure while I sort out other versions of CK.

Perchik71 commented 4 months ago

In general, if the path to .nif is empty, everything is always empty. If there is a path, then we get into the recalculation function. When .nif was not found, there is a model of the exclamation mark. And it turns out that this is his data.