Resource Numbers (IDs)
Hi all, I'm new to Lancer's Reactor but I've been playing and editing FreeLancer for quite a while. I've been enjoying Lancer's Reactor for a couple of months, now.
I'm working on a GUI based system editor (in C++) that may branch off into something more. I'm still at the stage where I'm interpreting the various INI files into the proper classes of objects.
Loading and interpreting the INI files is straighforward and fairly simple and even loading the various resource DLLs is not a problem. But right now I'm trying to get a handle on the resource IDs. The strid_name tag in files like universe.ini don't seem to make any sense. When I scan through the string tables in the nameresources.dll file I can see the names of the system, bases, jump-gates, etc. But the numbers I find the in the strid_names don't match up to the string ids in the DLL files. For example in universe.ini the strid_name for "Planet Manhattan" is 196766. But in the string table it's 158. Now this is offset by an exact multiple of 65536*3. But I don't know what the 3 signifies unless it's a resource class.
Does anyone know if there is a secondary layer for translating these strings correctly? Or is there a resource class (i.e. the 3)? Or do you just have to "fudge" the numbers? I would prefer to read the resources correctly in order to get the correct labels on everything and make this a proper editor.
Thanks and nice to meet all of you.
I'm working on a GUI based system editor (in C++) that may branch off into something more. I'm still at the stage where I'm interpreting the various INI files into the proper classes of objects.
Loading and interpreting the INI files is straighforward and fairly simple and even loading the various resource DLLs is not a problem. But right now I'm trying to get a handle on the resource IDs. The strid_name tag in files like universe.ini don't seem to make any sense. When I scan through the string tables in the nameresources.dll file I can see the names of the system, bases, jump-gates, etc. But the numbers I find the in the strid_names don't match up to the string ids in the DLL files. For example in universe.ini the strid_name for "Planet Manhattan" is 196766. But in the string table it's 158. Now this is offset by an exact multiple of 65536*3. But I don't know what the 3 signifies unless it's a resource class.
Does anyone know if there is a secondary layer for translating these strings correctly? Or is there a resource class (i.e. the 3)? Or do you just have to "fudge" the numbers? I would prefer to read the resources correctly in order to get the correct labels on everything and make this a proper editor.
Thanks and nice to meet all of you.