Invalid Price Data Added to Database #1

Closed
opened 2023-07-12 00:17:43 -04:00 by DanW · 1 comment

I found that when loading this mod (version 1.1.0), a lot of records were added to the templates.prices dictionary that don't have valid data (null, undefined, or NaN). I attached an excerpt from one of my server logs that has the hashes of all affected items in base SPT-AKI 3.5.8 and the values this mod generated for each.

Could you please update your mod to only add records to the templates.prices dictionary if they contain valid data?

Currently, I'm testing for this by doing: if ((price == null) || isNaN(price))

Thanks!

I found that when loading this mod (version 1.1.0), a lot of records were added to the *templates.prices* dictionary that don't have valid data (null, undefined, or NaN). I attached an excerpt from one of my server logs that has the hashes of all affected items in base SPT-AKI 3.5.8 and the values this mod generated for each. Could you please update your mod to only add records to the *templates.prices* dictionary if they contain valid data? Currently, I'm testing for this by doing: `if ((price == null) || isNaN(price))` Thanks!
Owner

Sorry, I just saw this. I did a big overhaul of the code for this mod. Since this is quite an old issue I'm going to close it for now, feel free to re-open if you still observe the same issue with the latest changes and SPT 3.8.0.

Sorry, I just saw this. I did a big overhaul of the code for this mod. Since this is quite an old issue I'm going to close it for now, feel free to re-open if you still observe the same issue with the latest changes and SPT 3.8.0.
Sign in to join this conversation.
No Label
No Milestone
No project
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Platinum/the-blacklist#1
No description provided.