Adoxa's "Territory" and "Zone" plugins
-
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?)
-
[Oops wrong thread]
-
@ Adoxa: Do you have any idea why these zones seem to trigger an “entered.” message (without a zone name)? I thought Zones.dll is supposed to ignore zones without an ids_name? And in other instances it does, but not here.
Presumably the first, as it’s only a small area
[zone] nickname = Zone_Li07_to_Li01 pos = 91750, 0, 83750 shape = SPHERE size = 8000 sort = 99.500000 [Object] nickname = Li07_to_Li01 ids_name = 0;GENERATESTRRES("Dakota -> New York") pos = 90000, 0, 86000 rotate = 0, 79, 0 archetype = jumpgate msg_id_prefix = gcs_refer_system_Li01 jump_effect = jump_effect_bretonia ids_info = 66145 reputation = li_n_grp behavior = NOTHING difficulty_level = 10 goto = Li01, Li01_to_Li07, gate_tunnel_bretonia loadout = jumpgate_li_01 pilot = pilot_solar_easy [zone] nickname = zone_Li07_pop_newyork_gate pos = 89000, 0, 85000 shape = SPHERE size = 4800 comment = New York Jumpgate sort = 13 toughness = 10 density = 9 repop_time = 10 max_battle_size = 6 pop_type = li_n_grp, single_base_law, jumpgate relief_time = 20 faction_weight = li_n_grp, 10 faction_weight = br_m_grp, 10 faction_weight = rh_m_grp, 10 faction_weight = gd_im_grp, 10 faction_weight = co_ss_grp, 10 faction_weight = co_me_grp, 10 density_restriction = 4, unlawfuls encounter = area_defend, 10, 0.090000 faction = li_n_grp, 1.000000 encounter = area_trade_freighter, 3, 0.120000 faction = br_m_grp, 0.250000 faction = rh_m_grp, 0.250000 faction = gd_im_grp, 0.250000 faction = co_ss_grp, 0.125000 faction = co_me_grp, 0.125000 encounter = area_trade_transport, 3, 0.100000 faction = br_m_grp, 0.250000 faction = rh_m_grp, 0.250000 faction = gd_im_grp, 0.250000 faction = co_ss_grp, 0.125000 faction = co_be_grp, 0.125000 encounter = area_trade_armored, 3, 0.040000 faction = br_m_grp, 0.333333 faction = rh_m_grp, 0.333333 faction = gd_im_grp, 0.333333
It’s not a biggie; I could give the zone a proper name. But I’m curious as to why Zones.dll wants to mention this zone.
-
Nothing happened when I copied the above into an existing system. Perhaps there’s another zone overlapping?
You’ll still get an empty name if ids_name is present, but its id is not - check the spew for a Failed to load ids warning. It may also only appear empty (such as containing nothing but a space), which you could detect more easily by adding quotes - Entered “%Zv1” (%Z). (may as well test ids_name explicitly, too).
-
adoxa wrote:
Nothing happened when I copied the above into an existing system. Perhaps there’s another zone overlapping?Yep:
[olist]* The entire system is a Nebula and Asteroid fields. so that’s two zones. Both do not have ids_names.
- In the System-wide Asteroid field there are a few great exclusion zones filled with different (what are planned to be mineable) asteroids. These zones do have ids_names.
- The zone in my ‘problem’ is a small exlusion zone where a tradelane ends, and a jump gate and a base are situated. It’s just outside the zones I describe at #2
- The gate and the base both have their own pop_zones, which have no ids_name.[/olist]
adoxa wrote:
You’ll still get an empty name if ids_name is present, but its id is not - check the spew for a Failed to load ids warning. It may also only appear empty (such as containing nothing but a space), which you could detect more easily by adding quotes - Entered “%Zv1” (%Z). (may as well test ids_name explicitly, too).Good ideas, thanks!