CD95548E

From SimsWiki
Revision as of 20:37, 17 September 2012 by Kiwi tea (Talk | contribs)

Jump to: navigation, search
This article is imported from the old MTS2 wiki. You can help Sims2Wiki by cleaning it up. It's original page with comments can be found at http://old_wiki.modthesims2.com/CD95548E
This article is imported from the old MTS2 wiki. You can help Sims2Wiki by cleaning it up. It's original page with comments can be found at http://old_wiki.modthesims2.com/WFR
CD95548E
Short name: WFR
Long name: Sim wants and fears

Wants and Fears

Format:

4 version (0x1 in the original Sims 2, 0x5 or 0x6 in University)
if (version >= 0x05)
	4 count (current lifetime wants)
	loop
	   want record (see below)
	end loop
end if

if (version >= 0x05)
	    4 max wants count (max # of current wants)
end if

4 count (current wants)
loop
  want record (see below)
end loop

if (version >= 0x05)
	    4 max fears count (max # of current fears)
end if

4 count (current fears)
loop
  want record
end loop

if (version >= 0x05)
	4 unknown
end if
4 unknown (2)
4 unknown (some type of timestamp?)
4 count (previous wants and fears)
loop
  4 want id
  4 count
  loop
	want record
  end loop
end loop


Want record:
4 version (always 7, 8 or 9)
2 instance id of sim
4 want id
1 object type (0,1,2,3,4,5) seen so far
x varies based on object type
  0 =none (0 bytes)
  1 =sim id (If versionis 7 then 0 bytes if version is 8 or 9 then 2 bytes)
  2 =object id (4 bytes)
  3 =catagory id (4 bytes)
  4 =skill id (2 bytes)
  5 =career id (4 bytes)
2 if object id is 3 then this is the price. As in wants a telescope costing more than $500. I'm not sure about other categories.
4 some kind of counter, only non zero in memories (timestamp?)
4 aspiration points (signed dword)
if (version >= 0x09)
	4 influence points (signed dword)
end if
1 flags (0x01=Locked, 0x02=Unknown, 0x04=Unknown)

There is more data at the end of the file sometimes, but I am reasonable sure it is just garbage. It always seems to be a copy of data earlier in the file as if the data was shortened but the file length was left alone. This would seem to mean that memories are discarded, has anyone seen this happen?

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox