House Name after System Name: Let's Solve this Basterd
-
adoxa wrote:
Use the [Systems] section rather than the [Houses], which also enables you to put the territory before the system, if youâd prefer, or even rename the system altogether (well, in space, anyway).[Systems] format = %s System, Solarian Empire. systems = <first_solar_system>, <second_solar_system>... ; or shorthand if they're consecutive: <solar_system_ids>= Solarian Empire - %s System.</solar_system_ids></second_solar_system></first_solar_system> ```I should be able to make it use system nicknames, too (so instead of "196643-196648" you could use "Iw01-6", also demonstrating a simplified range), but I'll wait a bit and see if there's any other problems/suggestionsâŚ
Thanks buddy⌠That did the trick and now it looks exactly as I wished it to!
-
I have attached an improved version, the main updates being able to specify systems by nickname and placing houses on the Nav Map. Iâve also dropped support for the single-line/shorthand definitions. Hereâs the description of the new file format:
[Settings] caps = false ; don't force the message to upper case ; Define a house and the systems that use it. [Houses] ; Change the message, either specifying it directly, or by its resource ; number. The first %s will be replaced with the system, the second ; with the house. Maximum length of 63 characters. format = %s System, %s Territory. format_id = number ; No need to create a resource, the house can be named directly. house = name ; The first number is the resource id of the house; the second allows a ; separate name for the Nav Map. The Nav Map has to be a resource ; number, so the first number is optional if you use the house value. house_id = [number][, number] ; The system(s) that belong to the house. This value can be repeated. systems = system[-system][, ...] ; Add the house to the Nav Map. The coordinates are the same as the ; pos value for the systems. Font will default to SubHeader; see ; DATA\FONTS\fonts.ini for the list, or to add your own. NavMap = X, Y[, font] ; Repeat for each house you want to add. ; Define a general format for systems, where the %s is replaced by the ; system name (it's optional, allowing the system to have a different ; name in space). Maximum length of 63 characters. [Systems] format = %s System, Independent. format_id = number systems = system[-system][, ...] ; Repeat for each format you want to add. ```And here's the sample file:
;[Settings]
;caps = false[Houses]
;house_id = 1249 ; LIBERTY
;systems = Li01-5
;NavMap = 5.66, 10.7;house_id = 1250 ; BRETONIA
;systems = Br01-6
;NavMap = -1.32, 11.91;house_id = 1251 ; KUSARI
;systems = Ku01-7
;NavMap = 7.87, 2.94;house_id = 1252 ; RHEINLAND
;systems = Rh01-5
;NavMap = 10.07, 12.9house_id = 328908 ; Outcast
systems = Ew02, Hi01 ; Omicron Beta, Omicron Alpha
NavMap = 9, 0house_id = 328906 ; Corsair
systems = Hi02 ; Omicron Gamma
NavMap = 13, 15format = %s System, %s Worlds.
house = Border
systems = Bw01-10house = Edge
systems = Ew01, Ew03-4[Systems]
format = %s System, Independent.
systems = Iw01-6Edit: final version is available [here](http://adoxa.110mb.com/freelancer/territory.zip).
-
adoxa wrote:
; Add the house to the Nav Map. The coordinates are the same as the
; pos value for the systems. Font will default to SubHeader; see
; DATA\FONTS\fonts.ini for the list, or to add your own.
NavMap = X, Y[, font]Amazing! So we are now finnaly able to add new names to the nav map? Or is it something else?
Anyway great work adoxa.
-
-
Now the next thing that could be done (maybe?) would be even more costumized arrival text such as this:
Solarian Empire
Solar System
Orion Constellation
x Region (which region are we living in yeah!? lol)Would something like this or similar be possible adoxa?
-
Have you tried just putting a new line character in your âspaceâ name for it to appear on multiple lines?
-
Is anyone having problems with ctdâs with this new version? As soon as i add the line
[Houses]
house_id = 462100
systems = SL01-10
NavMap = 9, 9 <â----------- Offending line (Position of system in Universe.ini)to the house section so i can get it to display on the navmap and click on it in game, i get an instant ctd, remove it and it its fine. What am i doing wrong?
-
Nav Map
Yes, it can add any text (in a resource) to the Universe Map. It also allows the removal/modification of the existing names. Just to demonstrate, the attached screenshot removes the normal houses (by using a space for the name) and adds Outcast and Corsair houses (from the bribe resource strings).
Multiple Lines
Unfortunately, Freelancer doesnât process newline characters, so youâll miss out on that. Donât be greedy.
CTD
Sorry, I mustâve changed a couple of things around after testing and neglected to test them again.
Attached is a new version, which also has two other changes: moved the ini file to the Universe directory; and added a codepage setting, making the Windows ANSI code page the new default.
Edit: final version is available here.
-
@adoxa: I beg to differ. All NPC names on base/planet sequences use newline characters so that it can list the name and rank on two separate lines, so it definitely processes them. The thing to see now is where it does and where it does not.
-
Youâre right, I was too hasty. I simply tested using the âWelcome to the <base> <trader>â message and saw the box where the newline should be. Further investigation shows I can simply change the flag so it does process the newlines. Youâll have to wait, though, 'cos itâs time I got to bedâŚ</trader>
-
I think one thing thatâs frustrating the hell out of me is how i have to change the code everytime to make it display properly between each new version. Can we decide on a format and stick to it please?
With the âlatestâ version i canât display space name at all and still havenât managed to get anything up on the navmap. The code below should work but it doesnât. Did before minus the navmap entry
[Houses]
house_id = 462100 <â- House name
systems = SL01-10
NavMap = 9, 9[Systems]
format = %s System, SOL SPACE
systems = SL01-10 -
Multiple lines
Well, I spoke too soon. If there is a simple flag, it eluded me. Sorry, youâll have to stick to a single line.
Gibbon
It works for me - sure youâve replaced the DLL and moved your ini file? Happening to have Evolutions 1.30 active, I tried with a random system. Hereâs the territory.ini file:
[Houses]
house_id = 525330
systems = fw01-06
NavMap = 9, 9[Systems]
format = %s System, SOL SPACE
systems = fw01-06and attached is a screenshot demonstrating it. BTW, you should really only define house or system, not both. Removing the [Systems] section gave me âFrontier Sector System, Admin World Space.â.
-
Thereâs no problem having both [Houses] and [Systems] entries, but if you define a systems line for both, the one that comes last will take effect. In your example, you should either remove the systems line from the [Houses] section (thus using the explicit âSOL SPACEâ message in [Systems]) or remove the entire [Systems] section (thus using the âSOLâ house with the normal message). In other words, you donât need a systems line for the [Houses] section if you just want to put a name on the map; the [Systems] section is intended more for individual systems, rather than those as part of a house. Hm, Iâm not sure thatâs any clearerâŚ