[#bugs] **Feature request (modding):** some means of telling `XRL.CharacterBuilds.Embark...

Issue #8954 new
Freehold Games Bot Account created an issue

Marked for crossposting by: books

Message (jump):

<kernelmethod> Feature request (modding): some means of telling XRL.CharacterBuilds.EmbarkBuilder not to save a new character build code to lastcharacter.txt in EmbarkBuilder.exitWithInfo.

There isn't any way to tell EmbarkBuilder not to overwrite the last character build code when starting a new game. IIUC it's not even possible to patch out this method with Harmony, as it requires access to protected class attributes. This is problematic for game modes that are modded in since the generated build code may be incompatible with Qud's regular game modes (and the concept of a build code may not even make sense in these cases).

At least for modding purposes this could be as simple as just moving the line File.WriteAllText(DataManager.SavePath("lastcharacter.txt"), generateCode()); into a bespoke function, so that it can be prefix-patched with Harmony.

Comments (1)

  1. Log in to comment