@Matthew,
I'm looking forward to the new FLMM! I heard that it might feature the functionality to add rumors by using script. That would be really appriciated.
There is another issue that, I think, would be useful: would it be possible somehow to have FLMM put the same dll referer in two files? I don't mean a duplicate with the same contents, but the exact ids_info entry number. That would make it possible to add bases by script exclusively, without the need to add a custom dll (and thus would it make possible to create Bases and/or StarSystem addons that wouldn't necessarily conflct with other, similar scripted Bases and StarSystems, at least not with regards to the dll resources.).
This is because a base has 2 ids_info dll entries:
1. one that contains the 'outside' data: what type of planet or base it is, how much inhabitants, etc.
2. one that contains a detailed description of the base, usually with some background info about the local faction, the history of that part of Sirius etc.
Only the first of this is mentioned in the base's section in the StarSystem's ini-file:
[Object
nickname = Li01_01
ids_name = 196766
pos = -33270, 0, -33039
rotate = 0, -10, -10
ambient_color = 255, 0, 0
Archetype = planet_earthgrncld_4000
ids_info = 65759 <----------------
spin = 0, 0.001000, 0
atmosphere_range = 4200
burn_color = 160, 222, 245
base = Li01_01_Base
reputation = li_p_grp
visit = 1
The second one does not show up until after the player has visited the base. The two dll entries are tied together in
data\Interface\InfocardMap.ini :
Map = 65759, 65760
To enable the game to display this second part after the player visited the base, the ids_info refer number needs to be the same in the StarSystem's ini-file and in InfocardMap.ini, otherwise the game would have no clue there even is a sceond part...
Now, it is of course possible to just write the contents of your custom bases into one dll. You will then see the entire ids_info dll if you have been near to it, instead of only after you have actually been there. That would be much of a loss, I think.
But there is more to this dual ids_info construct: in between the contents of this paired set info_cards, the game displays that base's Market info: ships for sale, commodities selling and buying, and equipment for sale. So, by using just one InfoCard entry and not using InfoCardMap.ini, you will lose that feature. Which would make the game less cool
So, that's why I wondered if there's a way to add this functionality to FLMM? It probably should be a variety of the regular GENERATEXMLRES, say GENERATEXMLSET, being followed by two xml entries instead of one (I replaced the < and > with { and } because I'm not sure the < and > will show up):
[Object
nickname = Li01_01
ids_name = 0; GENERATESTRRES("Planet Manhattan" )
pos = -33270, 0, -33039
rotate = 0, -10, -10
ambient_color = 255, 0, 0
Archetype = planet_earthgrncld_4000
ids_info = 0; GENERATEXMLSET("{xml}{RDL}{PUSH/}{TEXT}DIAMETER: 12,753 km.{/TEXT}{PARA/}{TEXT}MASS: 5.98 x 10e24 kg.{/TEXT}{PARA/}{TEXT}TERRAIN: Terrestrial{/TEXT}{PARA/}{TEXT}TEMPERATURE: -46°C to 43°C{/TEXT}{PARA/}{TEXT}ESCAPE VELOCITY: 11.27 km/sec{/TEXT}{PARA/}{POP/}{/RDL}{/xml},{xml}{RDL}{PUSH/}{TEXT}Founded in the year 1 AS, Manhattan was the first human colony established in the Sirius Sector. And so on... {/TEXT}{PARA/}{POP/}{/RDL}{/xml}" )
spin = 0, 0.001000, 0
atmosphere_range = 4200
burn_color = 160, 222, 245
base = Li01_01_Base
reputation = li_p_grp
visit = 1
Now, the GENERATEXMLSET would, apart from creating the dll entries, also have to automatically write the corresponding InfoCardMap entry:
[InfocardMapTable
...
...
Map = 465881, 465882
Would it be possible to realize this? Maybe it doesn't seem that interesting at first sight, but I think it would prove useful.
Edited by - Moonhead on 4/12/2006 3:36:37 AM