Relinking Sims without character file or restoring a character file

<< < (2/2)

Theo:
Maybe it's meant to be used on playables only, but I'm not sure. Anyway, "relinking" in SimPe will give them the same value.

Inge:
What is interesting is that there is no completely infallible way to tell if a sim is dead, programmatically.

Theo:
My previous statements were not entirely correct. Relinking is done by the stated method, but the 'Unlinked' setting is actually read from a field in the SDESC.

That field is declared as:
Quote from: SDescWrapper.cs@1448

/// True if this Sim is only available for Memory Reasons
public ushort Unlinked



The code that fetches that value can be found further down:
Quote from: SDescWrapper.cs@2167

reader.BaseStream.Seek(startpos + 0x156, System.IO.SeekOrigin.Begin);
unlinked = reader.ReadUInt16();

In SimPe, the sim's icon will have a blue background if 'Unlinked' is not zero.


Quote from: Inge on 2008 December 10, 17:04:10

What is interesting is that there is no completely infallible way to tell if a sim is dead, programmatically.

I think the game only needs the 'Ghost flag' set, without any consideration for the 'I am dead' memory token.

Inge:
Is the ghost flag actually set though, if they have no grave to haunt from?

Navigation

[0] Message Index

[*] Previous page