Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

Relations between resource IDs and INI IDs

The general place to discuss MOD''ing Freelancer!

Post Wed Mar 12, 2003 1:17 pm

Relations between resource IDs and INI IDs

Hi there,

i just dumped all resources and texts from the dlls in a sql database. now i created a import tool for the bini files. the only problem i have is: how the bini ids fit to the resource ids?

for example: i got the entry of the titan fighter.
the resource id from the names.dll is: 40413
the shiparch id is (in this case the ids_name field): 237020

also the ids_info tags are all above 65000, the resouces just go to 65000. any idea how to calculate a base id?

PS: the resource ids are stored in a topfolder named "23", but i cant find a relation. also to substract simple 196607 from the name_id as a numeric convertert doesnt seem to fit.

thanks

Edited by - __kreischweide on 12-03-2003 13:22:18

Post Wed Mar 12, 2003 1:29 pm

change the INI file ID from decimal to hex: you'll get a 5 digit hex number
first digit of the hex number corresponds to which DLL file you're looking in (ordered by where they appear in freelancer.ini - i.e. 1st digit of 1 = first DLL under [resources, 1st digit of 2 = 2nd DLL listed there)
next 3 digits: convert those back to decimal, add one, and you've got yourself which string table you're looking in.
last digit: convert to decimal, add one, you've got which string in that table you're looking at.

I dunno much about SQL databases, if it didn't retain the string table numbers, it's possible you could do some math involving the last four digits combined to come up with the resource ID you're looking for.

Post Wed Mar 12, 2003 1:40 pm

holy cow! couldnt they just include a simple "look exactly here"? damn... thanks for the info, this is exactly what im looking for!

well that screwes the whole export and id stuff. back from start again :/

thanks again!

Return to Freelancer General Editing Forum