Your mod conflicts with an other mod named "Jump to XYZ" (link to Steam). Or vice versa

Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Code: Select all
<diff>
<replace sel="//cue[@name='SectionHandler_Nav']/actions//open_conversation_menu[@menu='MapMenu']">
<do_all>
<do_if value="@event.param3 != null and (not event.param3.{1})">
<set_value name="$hasMode" exact="@event.param3.{7} != null" />
</do_if>
<do_else>
<set_value name="$hasMode" exact="@event.param2.{7} != null" />
</do_else>
<!-- <debug_text text="'Opening map - has mode = ' + $hasMode" filter="general" /> -->
<do_if value="$hasMode">
<open_conversation_menu menu="MapMenu" param="event.param2" param2="event.param3" />
</do_if>
<do_else>
<open_conversation_menu menu="MeJ_TacticalMapMenu" param="event.param2" param2="event.param3" />
</do_else>
</do_all>
</replace>
<replace sel="//cue[@name='SectorMapStarted']/actions/do_if/open_conversation_menu[@menu='MapMenu']/@menu">MeJ_TacticalMapMenu</replace>
<replace sel="//cue[@name='SectorMapStarted']/actions/do_else/do_if/open_conversation_menu[@menu='MapMenu']/@menu">MeJ_TacticalMapMenu</replace>
<replace sel="//cue[@name='SectorMapStarted']/actions/do_else/do_else/open_conversation_menu[@menu='MapMenu']/@menu">MeJ_TacticalMapMenu</replace>
<replace sel="//cue[@name='ZoneMapStarted']/actions/do_if/open_conversation_menu[@menu='MapMenu']/@menu">MeJ_TacticalMapMenu</replace>
<replace sel="//cue[@name='ZoneMapStarted']/actions/do_else/do_if/open_conversation_menu[@menu='MapMenu']/@menu">MeJ_TacticalMapMenu</replace>
<replace sel="//cue[@name='ZoneMapStarted']/actions/do_else/do_else/open_conversation_menu[@menu='MapMenu']/@menu">MeJ_TacticalMapMenu</replace>
</diff>
Code: Select all
<diff>
<replace sel="/mdscript/cues/cue[@name='SectionHandler_Nav']/actions/do_elseif/open_conversation_menu[@menu='MapMenu']">
<open_conversation_menu menu="MapMenu1" param="event.param2" param2="event.param3" />
</replace>
<replace sel="/mdscript/cues/cue[@name='SectorMapStarted']/actions/do_if/open_conversation_menu[@menu='MapMenu']">
<open_conversation_menu menu="MapMenu1" param="event.param2" param2="event.param3" />
</replace>
<replace sel="/mdscript/cues/cue[@name='SectorMapStarted']/actions/do_else/do_if[@value='player.primaryship.sector.exists']/open_conversation_menu[@menu='MapMenu']">
<open_conversation_menu menu="MapMenu1" param="[0, 0, 'sector', player.primaryship.sector, null, player.primaryship.zone]" />
</replace>
<replace sel="/mdscript/cues/cue[@name='SectorMapStarted']/actions/do_else/do_else/open_conversation_menu[@menu='MapMenu']">
<open_conversation_menu menu="MapMenu1" param="[0, 0, 'cluster', player.primaryship.cluster]" />
</replace>
<replace sel="/mdscript/cues/cue[@name='ZoneMapStarted']/actions/do_if/open_conversation_menu[@menu='MapMenu']">
<open_conversation_menu menu="MapMenu1" param="event.param2" param2="event.param3" />
</replace>
<replace sel="/mdscript/cues/cue[@name='ZoneMapStarted']/actions/do_else/do_if[@value='player.primaryship.sector.exists']/open_conversation_menu[@menu='MapMenu']">
<open_conversation_menu menu="MapMenu1" param="[0, 0, 'zone', player.primaryship.zone]" />
</replace>
<replace sel="/mdscript/cues/cue[@name='ZoneMapStarted']/actions/do_else/do_else/open_conversation_menu[@menu='MapMenu']">
<open_conversation_menu menu="MapMenu1" param="[0, 0, 'cluster', player.primaryship.cluster]" />
</replace>
<add sel="/mdscript/cues/cue[@name='SectionHandler_Nav']/actions/do_if" > <!--pos="after"-->
<add_player_choice_sub text="{1005,227}" position="right" section="gAMB_JD_XYZ" choiceparam="[0, 0]" tooltip="{98981,6227}" comment="Вызвать cue name AMB_MainMenu_JD_Button"/>
</add>
</diff>
Code: Select all
local destination = "XYZ"
local menuAddon2 = {
entry = {
section = "gAMB_JD_XYZ", -- Your section
icon = "mm_ic_navig_zonemap",
name = ReadText(1001, 3218), -- Your text
sectionparam = {
0,
0
},
info = string.format(ReadText(1015, 156), destination), -- Your text
}
}
local function createSetupJD_XYZ(menu) -- new function name = MeJ_TacticalMapMenu(menu)
for _, subMenu in ipairs(menu.setup.top) do
if subMenu.icon == "mm_ic_navig" then
table.insert(subMenu.list, menuAddon2.entry)
end
end
end
local function createSetupWrapper()
menuAddon2.origCreateSetup()
createSetupJD_XYZ(menuAddon2.menu)
end
local function init()
if Menus then
for _, menu in ipairs(Menus) do
if menu.name == "MainMenu" then
menuAddon2.menu = menu
menuAddon2.origCreateSetup = menu.createSetup
menu.createSetup = createSetupWrapper
break
end
end
end
end
init()
It was the first thing I missed when I tried out the mod. I'm a newbie and I don't remember all the zone names so I use the search for that. It's also fairly handy to find specific stations you're looking for.MegaJohnny wrote:To gauge interest - how many people like the search box on the vanilla map, and want it to return in the tactical map?
I have been experimenting with edit boxes, and I have an idea for a nifty feature that might make navigation easier. But I thought I'd ask before spending too much time on it.
Everythink is ok, im just blind, CWIR shows the owner in a different place with logo togheter .MegaJohnny wrote:Sorry for the delay, I didn't notice there was a new post. That sounds quite odd, if you look at this image it should show the zone owner above "Zoom In", on the bottom right of the holomap. Is that not what it does on your end?
Yeah, sorry about that - it's not a feature I used much, so I lazily omitted it. But I will try to get it in for the next release (which is mostly finished).Greg_G wrote:I'm uncertain if I'm making a mistake or have installed the mod incorrectly (I did install both components), but I cannot expand station subsystems like I can with the vanilla zone map. Is this expected behavior? Thank you.
I'll have a look at this for the next release, too. For now, you could do a kind of hybrid setup by going to your MainMenu.xml and deleting the following lines:Greg_G wrote:Edit: Furthermore, is there a way to one-shot bring up the vanilla maps (without fully reverting to vanilla via removing MainMenu.xml). The documentation referring to one or the other as default leads me to believe it's possible, but I couldn't find mention of how in the readme.
Code: Select all
<replace sel="//cue[@name='SectorMapStarted']/actions/do_if/open_conversation_menu[@menu='MapMenu']/@menu">MeJ_TacticalMapMenu</replace>
<replace sel="//cue[@name='SectorMapStarted']/actions/do_else/do_if/open_conversation_menu[@menu='MapMenu']/@menu">MeJ_TacticalMapMenu</replace>
<replace sel="//cue[@name='SectorMapStarted']/actions/do_else/do_else/open_conversation_menu[@menu='MapMenu']/@menu">MeJ_TacticalMapMenu</replace>
You rock, thanks.MegaJohnny wrote:But if you hang on for a couple of days, I can hack together a little addon for this
Awesome! Yeah the vanilla modification is easy to use on our own and it works 100% so I'm super happy. Looking forward to the updateMegaJohnny wrote: ↑Mon, 15. Oct 18, 15:09 Hey thanks, guys!
I won't bother updating the vanilla addon right now, if you're happy with the workaround. I have some spicy updates I've been sitting on for a while, and I will try to get them out very soon.