Adoxa's "Territory" and "Zone" plugins
-
It works
Thanxalot for the Nth time man :lol:
-
@ Adoxa: how âdoableâ would it be for you to create a plugin that would display the name of a zone (if it has one) when you enter it?
Maybe that would have to make use of the same mechanism the game uses when you reach the end of a tradelane, rather than the one that is used when entering a system â if these are seperate mechanisms in the first place. Maybe itâs just the same mechanism in both cases anyway? In which case the doability of such a plugin would âsimplyâ (I have absolutely no idea about how difficult and/or labor-intensive those plugins youâve made sofar, have been) depend on whether there is some identifiable âtriggerâ when the player enters an asteroid field or a nebula.
-
Zone.
It will display âEntered a zone.â when you enter and âLeft a zone.â when you leave, at the same location as the system/tradelane message. You will need a resource editor to change them (or maybe just a hex editor will do). Entering a system within a zone will show the system message first, then the zone. If zones overlap, it will show either the more âinterestingâ one, or the closest (according to your distance from the center). The interesting order is (most to least): damage, interference, drag_modifier, spacedust. Entering a more interesting zone will show an entered message, but no left for the less interesting; exiting one will show both. For example, I just happened to test Hokkaido via the Chugoku jump hole (because I knew Okamura was a system-wide zone). So youâll get the system message, then âEntered the Kayo Cloud.â. Go down aways and youâll get âEntered the Kyofu.â. Now if you go back, youâll get âLeft the Kyofu.â followed by âEntered the Kayo Cloud.â.
-
For the reason of beautiness, could there be an additional %s to display the system name in those two resource strings?
-
Thanks, adoxa the wizard
-
Wow man, this is great!!!
Iâm at my job now, so no huge time to test it out already. I did change the thread title for easy reference.
-
impressive. another excellent addition. works very well
Edit: one odd thing - any zone which has ids_name is being displayed, which is fine. But Zone_Br04_Tradelane_1 has ids_name = 60245, which is âtrade lane ringâ fair enough its a leftover bit of code which can be safely deleted, but, its not displaying âentered trade ring lane.â as expected, just âentered .â is the ids_name out of range or something?
-
Tested. Excellent, as Thaddeus says.
-
Thaddeus wrote:
Edit: one odd thing - any zone which has ids_name is being displayed, which is fine. But Zone_Br04_Tradelane_1 has ids_name = 60245, which is âtrade lane ringâ fair enough its a leftover bit of code which can be safely deleted, but, its not displaying âentered trade ring lane.â as expected, just âentered .â is the ids_name out of range or something?Quote from Zone.cpp:
The messages can be customised by editing the resources within the DLL; they use the same format as OfferBribeResources, i.e. â%Zâ (or â%Zv0â) is name (e.g. âBadlandsâ); â%Zv1â is noun (e.g. âthe Badlandsâ).
If there is no related resource (as you can add them with adoxas Names plugin) then it doesnât has anything to display.
-
The issue Thaddeus describes more looks like the ids_name at 60245 is blocked from being displayed, like the faction names of The Order, the Nomads etc.
-
Yeah, Skottys right, came to me as I was flying about. Zones have to have the extra entries in OfferBribeResources. Now, why doesnt the Islay Ice Cloud show up?
Would it be possible for hazard zones to flash up in red - with a strobeâŚ
-
Download again (still calling it v1.00).
Zones have to have the extra entries in OfferBribeResources.
Thatâs not quite true. %Zv_n_ uses OfferBribeResources, but %Z uses ids_name (same goes for other types).
Now, why doesnt the Islay Ice Cloud show up?
You have to leave a zone in order for a new zone to show up, but I didnât consider entering a new system as leaving a zone.
Would it be possible for hazard zones to flash up in red - with a strobeâŚ
NoâŚbut zones marked as dangerous (typically minefields and gas pockets) will display as red (high; e.g. Newgate), orange (medium; e.g. Tau-29 oxygen pockets) or yellow (low; e.g. LD-14).
-
Thatâs well trick fair do Adoxa, finishes off territory nicely. I have to be honest though, just a personal opinion, but it feels a bit silly when it says âleft zoneâ, I canât help but say to myself âno Sh*t!â so thatâs why all those rocks or clouds disappeared
Might be cleaner if it was just the same as territory, you enter jersey debris field and it just says âJersey debris fieldâ and no message to say youâve left.
Feel like a right wanker knocking a piece of your magic!
-
Timmy51m wrote:
Thatâs well trick fair do Adoxa, finishes off territory nicely. I have to be honest though, just a personal opinion, but it feels a bit silly when it says âleft zoneâ, I canât help but say to myself âno Sh*t!â so thatâs why all those rocks or clouds disappearedMight be cleaner if it was just the same as territory, you enter jersey debris field and it just says âJersey debris fieldâ and no message to say youâve left.
Feel like a right wanker knocking a piece of your magic!
With Resource Hacker (or Hex Workshop, but ResHack works much better in this case) you can customize both (entering and leaving) texts.
I sorta agree with you, and am contemplating whether itâd be a good idea to change the âleftâ text into just âS%â (just the name of the System). You can also make it entirely empty I suppose.
-
It can be done quite simply from the command line, using FRC (but you have to download again for this to work, otherwise an empty message stops new zones from showing up).
rem Assuming you're in the EXE directory (where Zone.dll is) rem and FRC is on the PATH. >copy con Zone.frc S 0 %Z S 1 ^Z (that's Ctrl+Z) >frc Zone
-
I have absolutely no idea what you just said, but it sounds good Adoxa! I feel like a monkey in a space capsule, thereâs all these buttons but Iâve no idea which one to press, so Iâll just start bashing the keyboard until something happens
-
I got it, did what Moonhead suggested and used Res hacker, changed first line to just %Z and removed second line completely, works a charm. Many thanks guys and awesome sauce Adoxa!
-
adoxa wrote:
Another update, to recognise missing %Zv_n_ ids, using the name instead.Could you elaborate a bit on that? (As in: I donât understand what you mean. Whatâs the %Zvn for?)