[DiscordArchive] and it's still not working with the same AcquireMethod?
[DiscordArchive] and it's still not working with the same AcquireMethod?
Archived author: ACHERAX • Posted: 2023-04-10T12:41:01.150000+00:00
Original source
and it's still not working with the same AcquireMethod?
Archived author: ACHERAX • Posted: 2023-04-10T12:41:22.630000+00:00
Original source
If that's the case, there's probably some other file or something that needs modified, which has a reference to your dbc row.
Archived author: brimstone • Posted: 2023-04-10T12:42:20.159000+00:00
Original source
I've tried method 0, 1 and 2, none of them work
Archived author: brimstone • Posted: 2023-04-10T12:42:59.366000+00:00
Original source
I managed to get custom runeforges to work and show up in the runeforging tab a while back but I forgot to write down a step by step guide when I was done troubleshooting
Archived author: ACHERAX • Posted: 2023-04-10T13:06:25.379000+00:00
Original source
I think I may have got it, with the help of AI (after many different promptings):
```double MagicNumber() {
return std::log(2) / std::log(1.5);
}
double findTotalStatModifiedValue(double targetItemSlotValue, double MagicNumber) {
double targetItemValue = targetItemSlotValue * 0.8;
double sum = 0;
std::vector<double> percentages = {0.3, 0.5, 0.2};
for (double percentage : percentages) {
sum += std::pow(targetItemValue * percentage, MagicNumber);
}
return sum;
}
double calculateStatValue(double percentage, double totalStatModifiedValue, double StatMod, double MagicNumber) {
double targetStatModifiedValue = totalStatModifiedValue * percentage;
double statValue = std::pow(targetStatModifiedValue, 1 / MagicNumber) / StatMod;
return statValue;
}
int main() {
const double ItemValue = 65;
const double SlotMod = 0.8;
const double QualityMultiplier = 1.2;
const double targetItemSlotValue = (ItemValue - 26) / QualityMultiplier;
const std::vector<double> percentages = {0.3, 0.5, 0.2};
const std::vector<double> StatMods = {0.5, 1.0, 0.6667};
double magicNumber = MagicNumber();
double totalStatModifiedValue = findTotalStatModifiedValue(targetItemSlotValue, magicNumber);
std::vector<double> StatValues;
for (size_t i = 0; i < percentages.size(); ++i) {
StatValues.push_back(calculateStatValue(percentages[i], totalStatModifiedValue, StatMods[i], magicNumber));
}```output for epic item of ilvl 65 with 30% weight into AP (StatMod 0.5), 50% weight into INT (StatMod 1.0), and 20% weight into STA (StatMod 0.66...):
`StatValues: 17.087 (AP) 11.5189 (INT) 10.1088 (STA)`
output for epic item of ilvl 65 with 30% weight into SPI (StatMod 1.0), 50% weight into Intellect (StatMod 1.0), and 20% weight into STA (StatMod 0.66...):
`StatValues: 10.2187 (SPI) 13.7775 (INT) 12.0909 (STA)`