Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Test Subject
Original Poster
#1 Old 3rd Nov 2022 at 1:41 AM
Default Custom skill journal data
Hi everyone,

I am starting this thread today because I am searching how to create a custom skill journal and add some data to it.
For example, I would like to add the total number of novels my sim has written to the skill journal.

Thanks for your help,

P16
Advertisement
Virtual gardener
staff: administrator
#2 Old 8th Nov 2022 at 11:28 AM
Hrm are you specifically looking for a way to edit the Writing skill here? or simply, as you mentioned, creating a new skill entirely, but just happens to also count for "novels" written?

You can always check the Sewing machine to see how I did the skill for it it also tracks certain skill journal items. Here's the code: https://github.com/Lyralei1/SewingT.../SewingSkill.cs

While Inge's tutorial is super helpful, it's not too "easy-to-follow" friendly, in the sense that most of the C# are snippets and don't quite show you how it all comes together if you're new to TS3 modding. (overall a great tutorial though! Not to throw it under the bus :p)

But it does show you how to get it to show in-game and what needs happening for that http://www.simlogical.com/ContentUp...e/uploads/1915/
Test Subject
Original Poster
#3 Old 6th Dec 2022 at 1:06 AM
I've looked at your code and was wondering what Text to hash words did you used to get your FNV32 of that part of your code?


Code:
public override bool ExportContent(IPropertyStreamWriter writer)
		{
			base.ExportContent(writer);
			writer.WriteBool(0x66B7AD5F, InPatternClub);
			return true;
		}
	
		public override bool ImportContent(IPropertyStreamReader reader)
		{
			base.ImportContent(reader);
			reader.ReadBool(0x66B7AD5F, out InPatternClub, false);
			return true;
		}
	}
Inventor
#4 Old 6th Dec 2022 at 1:59 PM
Quote: Originally posted by P16
Hi everyone,

I am starting this thread today because I am searching how to create a custom skill journal and add some data to it.
For example, I would like to add the total number of novels my sim has written to the skill journal.

Thanks for your help,

P16


Here's another example: https://github.com/Echoweaver/Sims3...FishingSkill.cs

All hail modders who keep their code on github! @Lyralei

Echo Weaver's Simblr: http://echoweaver.tumblr.com/
A portrait in stubbornness - Playing the same legacy since 2009
Sample a Brave Legacy: http://sims3sample.illation.net
Test Subject
Original Poster
#5 Old 8th Dec 2022 at 1:06 AM Last edited by P16 : 10th Dec 2022 at 9:04 PM.
I don't know why, but I tested both of your method, plus some edit multiple times and the only thing I've got is that the string is displayed in the skill journal, but everytime I do the interaction that is linked to the data, nothing changes in the skill journal (even if my stbl have the {0.Number} thing).


Edit:
After several hours and tries I finally got it working! Thank you both for sharing your code!
Test Subject
#6 Old 17th Dec 2022 at 1:07 PM
Thanks for the example.
Back to top