I'm not that experienced in lua or memory stuff, so it was trial and error until it worked. It's 'risky' because it just takes whatever you have in the clipboard and attempts to use it, but I'm not sure if there's actually any risk involved. I've never experienced any issues or crashing when accidentally pasting nonsense. There's some kind of internal system in place to validate DNA since if you post gibberish like a URL, it doesn't change the character's DNA. You can't paste that same gibberish string into the portrait editor, either.tfigment wrote: ↑Fri Mar 19, 2021 7:15 pmIf I gather what you are doing is basically removing the length validation check. Previously was checking lengths to make sure no garbage and this just trusts that its correct? Fair, I'm not sure I know where to validate the length used previously. Also now curious how one adds more genes without breaking the game but I guess I never dived that deep into the underlying files.orbguy25 wrote: ↑Fri Mar 19, 2021 6:12 pmFYI they changed how hair and beard DNA works in 1.3.0, where instead of picking from a list (hairstyles and beards genes), it now works from a cultural list and a genetic hair type (hair_type gene). I don't see the new gene listed in the DNA section in cheat engine, but it does appear to be working anyway.
I haven't managed to make a corresponding Copy that works with modded DNA. The ones in the table as is only generate a DNA key with the standard genes, and any modded genes ignored.
Example DNA strings
Just as an example, these are the lengths of the two strings I can generate.
Code: Select all
This is a (I assume) vanilla DNA key, from the standard Copy script. This works in both the standard and 'risky' Paste scripts.
S6p3+z91WoyDmxb0AXQAdAGIAIgAcgFyAIwBjAGMAYwBjAGMAYAAgAGEAIQAjACMAYwAjAGMAIwBcgByAYAAgACGAYYAgAGAAYABgAGGAYYAdgB2AYwBjAByAXIBcwBzAHIBcgByAHIBiQGJAYwAjAGHAYcBgwCDAYwAjAGMAYwBcgFyAXcBdwFyAXIBKwAVAQ8BMQAMAGQBLAFsAGYAAAEfAVIBQQESAFQAJwB2AEAAPAAOABoBgQBZAS8AogEJAB0BFAEAAQoAZwBDAScBLgEzAUMAVgAmAV4BSAAlAVgAaAAXAAAAfwFuAAkAKgEVABAAKAGYAA8AEwBBAQwAiQABATgAHwEBATsBAQAYAB0AJACFAHEBOwF7ATcAnQEdARMBBQEbAXQBDwAzAMMAkQFhABACDQIAAQABCAAAAPsAKgAAARECRgAAAgMBqAARAAYAWwAhAMEAAAIAAAAAAgAAAAACAAJ/B3oHsAGZAWYAcgByBxIHAAYaBWMEAAT/BP8I/wP/BP8D/wQAAH8AfwB/AH8AjACMAAAAAAIeAR8=
This is the same key as above from the Copy script after I added a few modded genes in the portrait editor and copied it from there. It only works in the 'risky' paste script.
S6p3+z91WoyDmxb0AXQAdAGIAIgAcgFyAIwBjAGMAYwBjAGMAYAAgAGEAIQAjACMAYwAjAGMAIwBcgByAYAAgACGAYYAgAGAAYABgAGGAYYAdgB2AYwBjAByAXIBcwBzAHIBcgByAHIBiQGJAYwAjAGHAYcBgwCDAYwAjAGMAYwBcgFyAXcBdwFyAXIBKwAVAQ8BMQAMAGQBLAFsAGYAAAEfAVIBQQESAFQAJwB2AEAAPAAOABoBgQBZAS8AogEJAB0BFAEAAQoAZwBDAScBLgEzAUMAVgAmAV4BSAAlAVgAaAAXAAAAfwFuAAkAKgEVABAAKAGYAA8AEwBBAQwAiQABATgAHwEBATsBAQAYAB0AJACFAHEBOwF7ATcAnQEdARMBBQEbAXQBDwAzAMMAkQFhABACDQIAAQABCAAAAPsAKgAAARECRgAAAgMBqAARAAYAWwAhAMEAAAIAAAAAAgAAAAACAAJ/B3oHsAGZAWYAcgByBxIHAAYaBWMEAAT/BP8I/wP/BP8D/wQAAH8AfwB/AH8AjACMAAAAAAIeAR8B/wB/Af8AfwD/AH8AfwB/
How to use this cheat table?
- Install Cheat Engine
- Double-click the .CT file in order to open it.
- Click the PC icon in Cheat Engine in order to select the game process.
- Keep the list.
- Activate the trainer options by checking boxes or setting values from 0 to 1