More Awesome Than You!

The Bowels of Trogdor => The Small Intestines of Trogdor => Topic started by: dizzy on 2007 October 08, 14:10:49



Title: Family IDs
Post by: dizzy on 2007 October 08, 14:10:49
This used to be fairly simple, but with BV there's some weirdness in familyId values. Firstly, the labeled IDs:

Code:
Service NPCs = 32767 (0x7FFF)
Townies = 32766 (0x7FFE)
Orphans = 32765 (0x7FFD)
DownTownies = 32764 (0x7FFC)
Reserved ID Min = 32750 (0x7FEE)
Bob the Builder = 32763 (0x7FFB)
Strays = 32762 (0x7FFA)
Orphan Pets = 32761 (0x7FF9)
Display Pets - Available = 32760 (0x7FF8)
Display Pets - In Use = 32759 (0x7FF7)
Garden Club = 32758 (0x7FF6)
Tourists = 32756 (0x7FF4)
Asia = 32755 (0x7FF3)
Mountains = 32754 (0x7FF2)
Tropics = 32753 (0x7FF1)

Going through the code, I notice some unlabeled IDs being used:

Code:
Actual Tourists = 32741 (0x7FE5) to 32752 (0x7FF0)

I don't think that "Tourists" is actually used, and they've gone beneath the "minimum" in order to make 12 sets of Tourist NPC families. (So, if you were using the minimum before, that code will need to change for BV.)


Title: Re: Family IDs
Post by: Inge on 2007 October 08, 17:05:27
Extending the tourist families could be as simple as editing 0x5F2


Title: Re: Family IDs
Post by: J. M. Pescado on 2007 October 08, 17:37:53
I don't think that "Tourists" is actually used, and they've gone beneath the "minimum" in order to make 12 sets of Tourist NPC families. (So, if you were using the minimum before, that code will need to change for BV.)
If you were referencing the "minimum" value by the constant, the constant was altered to lower the minimum, so these changes will be automatically reflected. If you were using raw literal 7FEE, then you will have to update.


Title: Re: Family IDs
Post by: dizzy on 2007 October 08, 21:13:04
I was being silly and thinking that "Reserved ID Min" in the Lua would reflect the BCON, but maybe it's just a dream that one day EA will crank out code that agrees with itself.


Title: Re: Family IDs
Post by: syberspunk on 2008 January 02, 07:55:18
Ok, so for the family IDs, the BCON is global 0x13A.  This is what I have for my notes:


Line  Hex Type
0x0  7FFF NPC
0x1  7FFE Townie (and Dormies)
0x2  7FFD Adoption Pool
0x3  7FFC Downtownie
0x4  7FEE ? ? ? Reserved ID Min
0x5  7FFB ? ? ? Bob the Builder
0x6  7FFA pets strays
0x7  7FF9 pets orphans
0x8  7FF8 pets display pets - available
0x9  7FF7 pets display pets - in use
0xA  7FF6 seasons - garden club
0XB  7FF5 ? ? ? Goopy
0XC  7FF4 bon voyage - tourists
0XD  7FF3 bon voyage - asia
0XE  7FF2 bon voyage - mountains
0XF  7FF1 bon voyage - tropics

What is the BCON for the "Actual Tourists"?  Has it been confirmed that this family isn't being used?

ETA:  Btw, does anyone know what 7FF5 is?

Thanks Inge. :)

Ste


Title: Re: Family IDs
Post by: Inge on 2008 January 02, 08:55:45
ETA:  Btw, does anyone know what 7FF5 is?

In my game, the family name is "Goopy" and it contains no members.

BTW, what on earth is "Bob the builder" in the context of a Sims family?


Title: Re: Family IDs
Post by: dizzy on 2008 January 02, 22:45:02
For "actual tourists" you should look at:

BCON 0x13A:0x1B=32741 (0x7FE5)
BCON 0x13A:0x10=32752 (0x7FF0)

This is the range of familyId values they will use to populate the tourist pools.


Title: Re: Family IDs
Post by: J. M. Pescado on 2008 January 03, 04:14:57
BTW, what on earth is "Bob the builder" in the context of a Sims family?
My guess is that it's some unused or recycled space, and "Bob the Builder" is some wonky working label EAxis used.


Title: Re: Family IDs
Post by: Inge on 2008 January 03, 08:25:48
Aw shame!  I thought EA were going to introduce a feature where we could import a photo or floorplans of a house we liked and get an NPC to build the lot for us :D


Title: Re: Family IDs
Post by: syberspunk on 2008 January 08, 20:56:54
For "actual tourists" you should look at:

BCON 0x13A:0x1B=32741 (0x7FE5)
BCON 0x13A:0x10=32752 (0x7FF0)

This is the range of familyId values they will use to populate the tourist pools.

"will" use?  As in... currently not being used?

I are confused.  I can has clarification?

i.e. should I bother testing for this group to make sure that I also include this group as potential "townie"/NPC types?

What is the difference between "actual tourists" and tourists (0x7FF4)?
And why are there two groups (ox7FE5 and 0x7FF0)?  Is there any difference between them?



Ste


Title: Re: Family IDs
Post by: dizzy on 2008 January 09, 00:54:55
"will" use?  As in...

"Will" as in "when tourists are populated" (i.e. when you create a neighborhood).

i.e. should I bother testing for this group to make sure that I also include this group as potential "townie"/NPC types?

What is the difference between "actual tourists" and tourists (0x7FF4)?
And why are there two groups (ox7FE5 and 0x7FF0)?  Is there any difference between them?

0x7FE5 is the first group, and 0x7FF0 is the last group. As I said, this is a range. In other words, them and every Id between them is used for Tourists.

It's currently unknown what use the 0x7FF4 Id has. I suspect it was "pre-deprecated" (as Microsoft is wont to do). In other words, they suddenly decided to stop using it.

Tourists are essentially the same as townies. The only real difference is that they only appear in "Vacation" sub-hoods, and that they generally appear as a group. There are always 4 sims per familyId, all with the same family name, etc.

Whether you should test for them really depends on the purpose of your code.


Title: Re: Family IDs
Post by: syberspunk on 2008 January 09, 20:57:55
0x7FE5 is the first group, and 0x7FF0 is the last group. As I said, this is a range. In other words, them and every Id between them is used for Tourists.

A ha!  I got it!  There was a misunderstanding on my part...

It's currently unknown what use the 0x7FF4 Id has. I suspect it was "pre-deprecated" (as Microsoft is wont to do). In other words, they suddenly decided to stop using it.

I see now.  The problem was, in my haste, upon reading your original post, when you said that "Tourists" wasn't being used, I thought you were referring to the last set of numbers you mentioned (which were the "Actual Tourists").  But with this current reply, and re-reading your original, I see my mistake. :P


Tourists are essentially the same as townies. The only real difference is that they only appear in "Vacation" sub-hoods, and that they generally appear as a group. There are always 4 sims per familyId, all with the same family name, etc.

Whether you should test for them really depends on the purpose of your code.

Well, to explain a bit... in my growuptownies mod, I was specifically testing to see if the sim was in the 7FFE family.  Hence the name of the mod. :P  But, after play testing, and some requests (I think), I ended up adding downtownies as well.  This seemed all well and good, until someone noticed that the options were not showing up for these tourist and local type "npc" sims.  So, if I want to enable the option for these types of sims, then I assume I will have to test for asia, mountains, tropics, and all 12 of those "actual tourists" families in that range.  Right?

Thanks for the clarification.  Looks like I'll have to make another update then. :)


Ste


Title: Re: Family IDs
Post by: dizzy on 2008 January 10, 00:04:48
Well, to explain a bit... in my growuptownies mod, I was specifically testing to see if the sim was in the 7FFE family.  Hence the name of the mod. :P  But, after play testing, and some requests (I think), I ended up adding downtownies as well.  This seemed all well and good, until someone noticed that the options were not showing up for these tourist and local type "npc" sims.  So, if I want to enable the option for these types of sims, then I assume I will have to test for asia, mountains, tropics, and all 12 of those "actual tourists" families in that range.  Right?

That's right. And the Garden Club as well (if you want to grow them up from Adult to Elder or Elder to dead).


Title: Re: Family IDs
Post by: J. M. Pescado on 2008 January 10, 01:23:19
I'd suggest using the constant value which formerly used to correspond to 7FEE, but now is a lower value in BV, first, then excluding the family classes that SHOULDN'T be used, like the NPC family.


Title: Re: Family IDs
Post by: Gwill on 2008 September 24, 18:54:03
0x00007FE4   Hobby Mavens
0x00007FE3   Roomies
0x00007FE2   More roomies?

Can anyone shed light on these three?
0x00007FDF   ?
0x00007FE0   ?
0x00007FE1   ?


Title: Re: Family IDs
Post by: J. M. Pescado on 2008 September 24, 19:32:44
From FT:
7FE4 = Hobby Mavens

AL Social Groups:
7FE3 = Gearheads
7FE2 = Bohemians
7FE1 = Jocks
7FE0 = Techies
7FDF = Socialites