Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
70 user(s) are online (39 user(s) are browsing Forum)

Members: 0
Guests: 70

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +70€

Current balance: 85€
(last updated 02/2020)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 93 users playing Freelancer on 44 servers.
February. 24, 2020

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



Upper limit for additional Ids_Names and Ids_Infos - is there one / what is it?
Home away from home
Joined:
2010/2/22 0:47
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 928
Offline
Does anyone whether (and, if so, what) the game has an upper limit beyond which it will no longer be able to read ids_infos and ids_names?

In my old Mod, I had done some major renaming of Factions, to enable more space. Now that Adoxa released his Names plugin, there's no need for this anymore. But rather than just re-edit all the stuff back to how it was (I did stuff other than Factions too so I can't just resort to the unmodded .dll) I figured I might as well use Adoxa's system for all Factions, including the about 50 vanilla ones. (Not sure about this though)

In addition I hope to add a whole lot of Star Systems, which will require quite a lot of ids_names and ids_infos.

So, if there's some known limit, please let me know!

Thanks in advance B-)

Posted on: 2014/2/25 11:18
Top
Re: Upper limit for additional Ids_Names and Ids_Infos - is there one / what is it?
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1921
Offline
I think the only limit in this case is that imposed by resource files and the way Freelancer reads them (and the amount of memory you have). Resource files are capable of containing 65536 names and 65536 cards. However, Freelancer mostly prefers cards over names, so let's just say 65536 combined. The DLLs under [Resources] are assigned a 16-bit number, so you can have 65536 of those, less the seven used by FL itself (resources.dll is fixed at 0). So 65529 DLLs times 65536 names/cards per DLL = 4,294,508,544 total. You should be safe.

The way I've structured the ids for Names means that an individual DLL is capable of holding 6552 factions (or 6553 if you don't need v6 or higher).

Posted on: 2014/2/25 13:49
Top
Re: Upper limit for additional Ids_Names and Ids_Infos - is there one / what is it?
Home away from home
Joined:
2010/2/22 0:47
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 928
Offline
Quote:

adoxa wrote:
I think the only limit in this case is that imposed by resource files and the way Freelancer reads them (and the amount of memory you have). Resource files are capable of containing 65536 names and 65536 cards. However, Freelancer mostly prefers cards over names, so let's just say 65536 combined. The DLLs under [Resources] are assigned a 16-bit number, so you can have 65536 of those, less the seven used by FL itself (resources.dll is fixed at 0). So 65529 DLLs times 65536 names/cards per DLL = 4,294,508,544 total. You should be safe.

Thanks for the math — and for the good news

Quote:

adoxa wrote:
The way I've structured the ids for Names means that an individual DLL is capable of holding 6552 factions (or 6553 if you don't need v6 or higher).


I was already thinking whether it would be necessary to maintain the interval of 10, as the entire set for one faction would only take up 6 'slots'.

Btw: is there some handy 'xml to dll' method, so that I can just convert a text document into a dll that Freelancer can read?

Posted on: 2014/2/25 16:27
Top
Re: Upper limit for additional Ids_Names and Ids_Infos - is there one / what is it?
Home away from home
Joined:
2008/6/2 10:17
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 1847
Offline
That's not good news, Moonie - get busy, you've a lot to write! lol

Next you'll need an auto-dll-naming-and-auto-resource-creation tool

Posted on: 2014/2/25 19:23
"C" for "Caterpillar"... "Cool"... "Cheesey"!
Top
Re: Upper limit for additional Ids_Names and Ids_Infos - is there one / what is it?
Home away from home
Joined:
2010/2/22 0:47
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 928
Offline
Quote:

StarTrader wrote:
That's not good news, Moonie - get busy, you've a lot to write! lol




Preferably some alien intelligence comes visiting me and writes my entire mod in a day, as I envisioned it, but without me knowing the ins and outs, so that I can enjoy as if it were a new game.


Quote:

StarTrader wrote:
Next you'll need an auto-dll-naming-and-auto-resource-creation tool

Up to this point I create all ids_names and ids_infos with FLMM (I use the, for reasons unknown to me, widely dreaded 1.4 version, which does exactly what I want)

But for the factions I can't use it, as it won't create double entries (it uses the same ids_names and ids_infos, which is usually very great — but not in the factions' and zones' case.)

Posted on: 2014/2/25 19:35
Top
Re: Upper limit for additional Ids_Names and Ids_Infos - is there one / what is it?
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1921
Offline
Quote:
Moonhead wrote:
Btw: is there some handy 'xml to dll' method, so that I can just convert a text document into a dll that Freelancer can read?

If you don't mind the command line, FRC might fit the bill. It can go both ways, so you can convert your existing DLLs to FRC, edit them, then can convert them back. FRC's format is a lot nicer than raw XML (having FLMM use it was the last thing I was going to do...). As a quick example, the FRC info string Battleship \i{Osiris}. will generate the XML (separate lines only for clarity):

Code:
<RDL><PUSH/>
<TEXT>Battleship </TEXT>
<TRA italic="true"/><TEXT>Osiris</TEXT><TRA italic="false"/>
<TEXT>.</TEXT><PARA/>
<POP/></RDL>

Posted on: 2014/2/26 14:43
Top