Skip to content

[BUG] Custom NPC relationships and scheduled deals reset after save reload #260

Description

@jabalbinot

Summary

Using any mod for adding custom NPC and dealers, we have the following behaviors when quiting the game or reloads, Those issues happens:

  • all the friendship bar goes back to scratch;
  • All scheduled deals with the new NPCs are cancelled;

What is still working:

  • Addicted level, it keeps as before;
  • Unlocking the NPC. Once you unlock them using free samples, they keep as unlocked;

Game Version

Other (specify in Additional Context)

S1API Version

3.1.14

MelonLoader Version

0.7.3 Open-Beta

Runtime Environment

IL2CPP (Regular)

Steps to Reproduce

Friendship:

  1. Sell a drug to a custom NPC;
  2. Friendship raises;
  3. Quit the game or reloads;
  4. Friendship is reseted to default;

Deal:

  1. Scheudle a deal with a custom NPC;
  2. Quit the game or reloads;
  3. Deal is deleted;

Expected vs Actual Behavior

Fiendship:
Expected: Selling and interacting with custom NPC should raise friendship and keep as it when closing or reloading the game.
Behavior: Friendship is reseted to zero.

Deal:
Expected: Scheduling a deal should keep in the log until it is completed;
Behavior: Deal is deleted when reloading or closing the game;

MelonLoader Log

Latest.log

What Have You Tried?

No response

Additional Context

Game running at last official update v0.4.6f12

Pre-submission Checklist

  • I have read the installation guide
  • I am using the latest version of S1API
  • I have verified this issue is related to S1API (not general modding support)
  • I am using MelonLoader 0.7.0 or have noted compatibility issues with 0.7.1+
  • I have included my MelonLoader log or relevant excerpts

Metadata

Metadata

Assignees

Labels

HighAPI features not working, or minor gameplay hinderancebugSomething isn't workingnpcssaveables

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions