View Full Version : Resource names?
jadaytime
19th Jul 2009, 07:53 PM
I am currently attempting to create a new T.V. channel. I successfully exported a video file, edited it, and managed to re-import it back into a package file. I changed the instance to a unique ID. At this point, I got a little stuck. I noticed the XML lines pointing to what video file to use (eg. <Video_File_Names>Sims3TV_HomeDeco</Video_File_Names>). I also noticed that the name (Sims3TV_HomeDeco) is the same as the resource name. Does the XML file point to which file to use based on the resource name, or is it coded to point to a certain instance?
TigerM
20th Jul 2009, 01:58 AM
I'd imagine the instance ID has to be the FNV64 hash of the video file name. It doesn't generally use the key name map to look up strings, since most of them the key is just a hash of the string.
jadaytime
20th Jul 2009, 11:33 PM
I'd imagine the instance ID has to be the FNV64 hash of the video file name. It doesn't generally use the key name map to look up strings, since most of them the key is just a hash of the string.
So no, it doesn't point to the resource name then? Is there (whoa I just had deja-vu) any way to add a new (not replace) a video file. I can import them but wouldn't it take a core mod for the game to recognize the file?
TigerM
21st Jul 2009, 12:07 AM
Reread what I said. It does point to the resource name.
In your example "Sims3TV_HomeDeco" is the resource name. It just hashes it to get e53a81631f939e3b for the actual resource. If you named a video file "MyTV_Pr0n" then you would create a video file instance 533498375eb9a234.
There are plenty of tools around here now to find the hash to go with a name.
Srikandi
21st Jul 2009, 12:35 AM
like http://www.modthesims.info/showthread.php?t=355292 :)
jadaytime
21st Jul 2009, 01:46 AM
I made a new hash. I imported the video file, I gave it the hash. Now how do I tell the XML to read that video file?
TigerM
21st Jul 2009, 01:54 AM
Your first post seemed to indicate you knew where to put the name. I have not looked at those XML files so you know better than I where the name goes.
vBulletin v3.0.14, Copyright ©2000-2013, Jelsoft Enterprises Ltd.