Member Controls

Developers > Gender mismatch in MetaData enum?
vonLeebLink to postposted: Thu May 31, 2007 11:12 pm

Member since:
 2007-05-11
Posts:
 19

Quaxi will hate me :), but I believe I found another bug in SimPe code.

In MetaData class there is Gender enum.

It says Male = 0x00, Female = 0x01.

According to sims2wiki actual genders should be:

0x01 - Female
0x02 - Male
0x03 - Both

I checked several Maxis GZPS and never found gender of 0x00, so I believe wiki is correct.

I will email patch to Quaxi :).

 

vl 

 

AnonymousLink to postposted: Fri Jun 01, 2007 10:05 pm

Member since:
 1999-11-30
Posts:
 0

I am not a developer (on this project) and I did not know there was anywhere which enumerated these values, but while categorising my cc into subdirectories I worked it out for myself by a combination of trial and error and looking at known clothing.

 

I would agree that...

0x01 - Female
0x02 - Male
0x03 - Both

 

It also makes sence for them to be this from a binary viewpoint. Starting with the least significant bit the first bit is an on or off for female and the second bit is an on or off for male. So in binary...

00 - Neither 

01 - Female 
10 - Male 
11 - Both

quaxiLink to postposted: Sat Jun 30, 2007 12:41 pm
Avator for quaxi

Member since:
 2006-04-28
Posts:
 3154
vonLeeb wrote:

Quaxi will hate me :)...



Lol, quite the opposite! :D
quaxiLink to postposted: Sat Jun 30, 2007 12:42 pm
Avator for quaxi

Member since:
 2006-04-28
Posts:
 3154
I belive the Gender Atrtribute in MetaData refers to the Gender Flag in the SDSC, not in the GZPS resources. I'll have to check that.
vonLeebLink to postposted: Mon Jul 02, 2007 9:20 pm

Member since:
 2007-05-11
Posts:
 19
I'd be surprised if Maxis used different coding for various resources, but.... you never know with them as I already realised.
quaxiLink to postposted: Wed Jul 04, 2007 12:29 pm
Avator for quaxi

Member since:
 2006-04-28
Posts:
 3154
Yes, MetaData.gender is used in the SDSC Wrapper for the Gender Field. And as far as I remember, the Sim gender is displayed correct. So Maxis is (once more) using a different encoding here.
vonLeebLink to postposted: Wed Jul 04, 2007 7:09 pm

Member since:
 2007-05-11
Posts:
 19
OK. So I will use my own enum. BTW, it would be good to comment in a code.
quaxiLink to postposted: Sat Jul 07, 2007 10:43 am
Avator for quaxi

Member since:
 2006-04-28
Posts:
 3154
Belive me, i know!!!


viewthread, 0, 0, Gender-mismatch-in-MetaData-enum