Mids' Hero/Villain Designer v1.900


Aibheil

 

Posted

Quote:
Originally Posted by Diellan_ View Post
I was gonna say... We use the DB editor pretty regularly. It works quite well... It's just that it's very easy to break the DB.

Adding a new power is really, really easy, though.
I've never really messed around with the DB editor. Would it be easy for me to add the Rare and Very Rare Alpha boosts after the next update? Or am I going to break stuff?


Playstation 3 - XBox 360 - Wii - PSP

Remember kids, crack is whack!

Samuel_Tow: Your avatar is... I think I like it

 

Posted

One of the major reasons for DB breakage is the fact that Powersets and Powers are stored in arrays and their position in the array is used as the reference number to keep track of them. This "Static Index" is the thing that is recorded when you save a build or export or use Sentinel. If a power has an invalid Static Index or something happens to change a Static Index of an existing power/powerset, then the whole thing goes bonkers.

Up until 1.9, if you made a new power, the Static Index would be 0 until you saved, at which point it would get rewritten to the highest number. There was a bug with this, though, so in certain cases it would wind up with a lower number, causing a re-index of the list and the whole thing would break. In 1.9, I fixed it. I normally don't document fixes to the DB Editor, but there have been a few in 1.9 and 1.91.

Screwing up enhancements is part of this same thing, because Set Bonuses are actually powers, and they get stored in the same array. So while Multistrike might be saying "4th Set Bonus is Power #2342", the number 2342 might suddenly mean something completely different.

It's certainly more stable now than when that post was made (I believe Steiner worked on it, too, before he left), but it's still risky.


Global @Diellan - 5M2M
Mids' Hero/Villain Designer Lead
Virtue Server
Redside: Lorenzo Mondavi
Blueside: Alex Rabinovich

Got a Mids suggestion? Want to report a Mids bug?

 

Posted

Quote:
Originally Posted by bAss_ackwards View Post
I've never really messed around with the DB editor. Would it be easy for me to add the Rare and Very Rare Alpha boosts after the next update? Or am I going to break stuff?
It will be very easy, if a little time consuming since you have to add every single effect one at a time. I'm sure somebody will come up with an unofficial patch or something but because of the issue regarding Static Indices (as listed above), any character saved with the wrong alpha power selected might not load properly (or at all) once an official update is around.


Global @Diellan - 5M2M
Mids' Hero/Villain Designer Lead
Virtue Server
Redside: Lorenzo Mondavi
Blueside: Alex Rabinovich

Got a Mids suggestion? Want to report a Mids bug?