Skip to content

V0.3.0

Choose a tag to compare

@Kxteel Kxteel released this 07 Nov 20:21
· 23 commits to main since this release
fcfa0a8

Compass, alerts and arrows in the game world!

Compass. "Point compass here" points the compass at the NPC of the current step of a quest or mission. The list of NPCs chosen with the search and the pins of the Tracker also show in it. When you get within 20 yalms of an NPC (kept up to 30) that starts a quest you can start, or that has a quest of yours in progress, the NPC is added to the compass by itself (at most 3 automatic ones, and the compass opens if it was closed); its quests are listed under it and a click opens them in the Journal.
brujula 2

Alerts. "Quest Nearby" (near an NPC) lists the quests you can start there. "Quest In Progress" (when you enter a zone) lists the quests you have in progress that belong to that zone, stays a little longer, and its quests open in the Journal with a click. A quest can be started when your main job has the level it needs and the quests it follows are completed; this is read from the requirements and from the text of the first step. Fame, skill, job, mission and expansion pack requirements are not checked.

Arrows in the game world (prototype). /journal mark [on|off|debug] (or the checkbox in Settings > Compass) draws arrows over the NPCs of the compass in the game, found with the camera of Direct3D. It is off by default.
brujula4

  • Yellow down arrow: the NPC has a quest you can start, or it is the target of the compass.
  • Grey: every quest the NPC starts waits for a quest you have not completed.
  • No arrow: every quest the NPC starts needs a level your main job has not reached (and quests not implemented on the server).
  • Green circular arrow, turning: the NPC has a quest of yours in progress. NPCs that are not in the compass list get it only within 45 yalms (kept up to 50).
brujula7
  • An arrow at the edge of the screen points to an NPC that is out of view or behind the camera.
  • Settings > Compass: arrow over the compass NPC, arrows over all the NPCs of the compass, green arrow over the NPC of each quest in progress, and arrow at the edge of the screen.
  • /journal mark debug prints what the addon read from Direct3D, the combination of axes it chose, and how many arrows it draws. Positions of NPCs are the fixed ones of data/npc_positions.lua, so an NPC without a known position has no arrow.

FFXI Journal is an independent project and is not affiliated with Square Enix.

Status

Alpha — the addon is actively being developed and tested.

Versioning

Versions follow 0.MINOR.PATCH. From 0.1.6 on, every release is listed in the changelog below, newest first, and the version in journal.lua (addon.version) matches the latest entry.

Changelog

0.3.0

First release of the 0.3 series. It brings together the work of 0.2.17 to 0.2.39: routes between zones, pins and NPCs in the compass, the global search, clickable NPCs, alerts for nearby quests and for quests in progress, the automatic compass, and the arrows over the NPCs in the game world (see "Compass, alerts and arrows in the game world" above). No change in the code beyond the version number.
brujula1

0.2.39

Alerts and compass

  • Changed: the "Quest In Progress" alert (when you enter a zone) stays 3 seconds longer, and a click on the name of a quest opens it in the Journal (a shaded box and a line under the name show it, and the alert goes away).
  • Changed: the arrow over the NPC of a quest in progress that is not in the compass list appears only when you are within 45 yalms of the NPC (it stays until 50 so it does not blink at the limit). Before, it showed from the moment you entered the zone. The NPCs that are in the compass list, or are the target of the compass, keep their arrows.

0.2.38

Alerts

  • Changed: the alert when you enter a zone now lists the quests you have in progress that belong to that zone (the quest is from that zone, or its NPC is in it), and its title is "Quest In Progress" ("Quest en curso..." in Spanish). Before it listed the quests not started. The alert when you get close to an NPC is still "Quest Nearby" and lists the quests you can start.
  • New: "Test: Quest In Progress" button in the alert tests of the Settings; the checkbox is now "Alert when entering a zone: quests in progress there". Both alerts share the look chosen for "Quest nearby alerts".

0.2.37

Alerts

  • Changed: the "Quest nearby" alerts (when you enter a zone, and when you get close to an NPC) now warn only about quests you can start: your main job has the level they need and the quests they follow are completed. Before, they warned about every quest not started. The level and the previous quests are read from the requirements and from the text of the first step of the quest; fame, skill, job, mission and expansion pack requirements are not checked. Quests marked as not implemented on the server are never announced.
  • The same rule applies to the NPCs the automatic compass adds when you get close, and to the arrows (no arrow for a quest that needs a level you do not have, grey while it waits for another quest).
  • The Settings text is now "Quest nearby alert (quests you can start in the zone)".

0.2.36

Compass (prototype)

  • Changed: the arrow over the NPC of a quest in progress is no longer a green down arrow: it is now a green circular arrow turning over the NPC's head. Out of view it is still a green arrow at the edge of the screen.
  • New: the automatic compass (NPCs within 20 yalms, kept up to 30) now also adds the NPCs of the quests you have in progress, not only the ones that start a quest you have not started. Their quests are listed under the NPC, the ones in progress first and in green; a click opens the quest in the Journal. The alert banner of nearby quests is unchanged (it is only for quests not started).

0.2.35

Compass (prototype)

  • New: a green arrow over the NPC that starts each quest you have in progress, when that NPC is in the zone you are in (known position), even if it is not in the compass list. It is a checkbox in Settings > Compass ("Green arrow over the NPC of each quest in progress"), on by default; the arrows need /journal mark on.

0.2.34

Compass (prototype)

  • Fixed: the grey arrow and the level rule only read the fields req and prereq of the quests, but many quests keep their requirements in the text of the first step. Now that text is read too: "You need to be level 15 or higher" (no arrow until then), and "This quest follows X", "You need to have finished X", "X must be completed before you are offered this quest", "Wait one day after X" (grey until X is completed). Sentences that talk about quests that clash ("if", "while", "cannot", "active", "zone first") are ignored. Example, Selbina: Abelard (level 15) and Isacio (level 18) have no arrow below those levels; Zaldon is grey until The Real Gift is completed, and Oswald until The Sand Charm is completed.
  • Not read from the text: fame, skill, job, mission and expansion pack requirements.

0.2.33

Compass (prototype)

  • New: the arrow is green over an NPC that has a quest in progress (a quest of that NPC that is active), and over the NPC of the current step of the quest you pointed the compass at or pinned in the Tracker, when that quest is in progress. A quest in progress wins over grey and over the level rule.

0.2.32

Compass (prototype)

  • New: no arrow over an NPC (nor at the edge of the screen) while every quest it starts that you have not started needs a level (Lv.N in the requirements) above the level of your main job. The arrow appears once you reach it, grey if the quest still waits for another quest, yellow if it can be started. /journal mark debug shows how many NPCs are hidden and your level. Job, rank and key item requirements are not checked.

0.2.31

Compass (prototype)

  • New: the arrow over an NPC (and the one at the edge of the screen) is grey when every quest the NPC starts that you have not started yet cannot be started, because each one names a quest in its prereq that is not completed. If the NPC has a quest that can be started or that is active, or no quest at all, the arrow stays yellow. Rank, level or key item requirements written in the prereq are not checked, only the quests named in it.

0.2.30

Compass (prototype)

  • New: the arrow over the NPC in the game now also marks all the NPCs of the compass (the list chosen with the search and the pins of the Tracker) that are in the zone you are in, a little smaller than the one of the target.
  • New: arrow at the edge of the screen pointing to the NPC when it is out of view (to the sides, above, or behind the camera).
  • New: Settings > Compass has three checkboxes: arrow over the compass NPC, arrows over all the NPCs of the compass, and arrow at the edge of the screen. The last two are on by default; the first is still off until you turn it on (also with /journal mark).
  • /journal mark debug shows how many NPCs have a position, how many arrows are over the NPC and how many are at the edge.

0.2.29

Compass (prototype)

  • Changed: the calibration of the arrow over the NPC (/journal mark) no longer assumes how the game orders its axes or that a higher height goes up on the screen. It tries all 48 orders and signs of (x, y, height), keeps the one that puts the player closest to the middle of the screen and also moves a point above the player straight up or down, and learns which way the height goes. The size of the 3D scene is read from the Direct3D viewport (the size of the ImGui screen is the fallback).
  • /journal mark debug now also shows the screen sizes, the chosen combination with its score, and the next best ones.

0.2.28

Compass (prototype)

  • Fixed: the arrow over the NPC (/journal mark) read zeros. The Ashita wrapper of GetTransform takes only the kind of matrix and returns the matrix; the addon was passing a buffer that it ignores.
  • Changed: the camera matrices are now also read during the drawing calls of the 3D pass (the interface is drawn last with flat matrices, which are discarded), and the events are listened to only while the arrow is on (before, the start of the scene was read millions of times even with the arrow off). /journal mark debug shows the events registered and heard, and each set of matrices as flat or perspective.

0.2.27

Compass (prototype)

  • New: /journal mark [on|off|debug] puts a yellow arrow over the NPC the compass points at, in the game world, bobbing up and down. It is off until you turn it on. It needs the camera of the game, which cannot be checked outside the game: the addon reads the view and projection matrices of Direct3D, finds by itself which axes and order of multiplication put the player in front of the camera (a point above the player must go up on the screen), and draws nothing if it cannot. /journal mark debug prints what was read and chosen.
  • Only the target of the compass ("Point compass here") for now, not the rest of the list.

0.2.26

Journal

  • New: in the details of a quest, the NPC that starts it is clickable (the "NPC:" line). A click adds it to the compass list and opens the compass, as the NPC names in the steps do. When the data holds several names ("Waoud/Raubahn"), each one is its own link. The zone of the quest is used to pick the right NPC when the name is in several zones.

0.2.25

Compass / alerts

  • Changed: the quests under an NPC in the compass (from the proximity alert) have a shaded box and a line under the text, brighter with the mouse over it, so they look clickable.
  • Changed: the Spanish title of the "Quest Nearby" alert is now "Quest cerca...".

0.2.24

Compass

  • New: the quests shown under an NPC added by the proximity alert are now one line each and clickable: a click opens the Journal on that quest. Up to 3 lines, then "+N more".

0.2.23

Compass

  • Changed: the NPCs of the proximity alert now go to the compass list when you are within 20 yalms (before 30), and leave it beyond 30. The banner of the alert still uses 30.
  • New: an NPC added this way shows the names of the quests it starts under its name (clickable since 0.2.24).

0.2.22

Compass

  • New: the NPCs of the proximity alert go to the compass list automatically when you are within 30 yalms, and leave it when you are more than 40 yalms away, when their quests are started, or when you change zone. At most 3 are automatic (the closest), so the list keeps room for the ones you pick. The x removes an automatic NPC and it is not added again in that zone. They are not saved. An NPC you add by hand is never removed. The compass window opens by itself when an NPC is added and it was closed (it is not closed again by itself). It can be turned off in Settings.

0.2.21

Alerts

  • New: proximity alert. When you are within 30 yalms of an NPC who starts a quest you have not started, the "Quest Nearby" banner shows the NPC and the quest names. It appears once for each NPC in each visit to a zone. NPCs close to each other go in one banner (one line each, "NPC: first quest (+n)", the closest first, the zone name as the subtitle); one NPC alone shows its name and its quests. It uses the fixed NPC positions (LandSandBoat data), so an NPC that walks around may be a little off. Only the quest's own npc field is used (names separated by / are checked one by one); missions have no start NPC. It can be turned off in Settings, next to the other nearby alert.

0.2.20

Journal

  • New: in the steps of a quest or mission (the details panel and the sheet window) the NPC names are clickable, as in the Tracker. A click adds the NPC to the compass list and opens the compass window; the name is underlined while the mouse is over it. With the list full (5) a message in the chat asks you to remove one first.
  • Fixed: the zone chosen for the NPC. An NPC that is in several zones (Miageau is in an Abyssea zone and in Northern San d'Oria in the game data) went to the first zone of the table. Now it goes to the zone you are in if it is there; otherwise to the zone that the text of the step names ("... in Northern San d'Oria"); otherwise to the first of the table. This also applies to the click in the Tracker.

0.2.19

Journal

  • Changed: the search box now searches the whole Journal. With a text in the box, the list is replaced by the results: every mission and every quest that has the text, from all the areas and categories, whatever the filters of the lists (completed, not started, favorites, repeatable). It looks in the name, the NPC, the places, the reward, the requirements, the type and the text of the steps. The words do not need to be together: "glenne ointment" finds the quest that has both. Under each result it says where it is and what matched (NPC, Place, Reward, Step 2...). The results come in two groups, Missions and Quests, with the best matches first (up to 200 of each; the count shows the total). It ignores capital letters, punctuation and accents ("mision" finds "misión"), and in Spanish it also looks in the Spanish steps.
  • One click on a result opens it in the Journal (the box keeps the text, so you can go back to the results); a double click opens its sheet. To go back to the lists, clear the box with its x.
  • Because of this, the search no longer hides rows in the normal lists.

Compass

  • New: the item you point the compass at with "Point compass here" has a small x to stop pointing at it. If the item is pinned in the Tracker it does not come back as a row either; the pin stays in the Tracker.
  • Fixed: unpinning an item and pinning it again shows it in the compass again, even if the compass window was closed in between.

0.2.18

Journal

  • New: the items pinned in the Tracker now show in the compass by themselves, quests and missions alike. Each one gets a row with the NPC named in its current step, how far away it is (or the zone it is in, with the next zone on foot), and the name of the quest or mission under it. The row follows the step of the pin: when you move to another step the NPC changes, and a step that names no NPC has no row. The item you pointed the compass at with "Point compass here" is not repeated.
  • New: a small x on each of those rows takes it off the compass. It does not unpin it from the Tracker. It stays off while the item stays pinned (it is remembered when you restart); if you unpin the item and pin it again, it shows again.

0.2.17

Journal

  • New: the compass shows the next zone on foot when the NPC is in another zone. Under "In another zone:" a line says "Next: Valkurm Dunes" (for the NPC of a step and for each NPC of the search list). It updates when you change zone. The route follows the zone exits only: boats and airships are not included, so when the only way is by sea or air (or there is no way) the line does not appear. Data: data/zone_links.lua (484 links between 198 zones), built from the zonelines of LandSandBoat; the script that builds it is not part of the addon.

0.2.16

Journal

  • New: click an NPC name in the Tracker to add it to the compass. The compass window opens, and the NPC joins the list (up to 5; with a full list a message in the chat asks you to remove one first). The name is underlined while the mouse is over it. The NPC goes in the zone you are in if it is there; otherwise in the first zone where the game data places it; an NPC without game data gets your current zone (it is found if it is close).

0.2.15

Journal

  • Changed: the resize corner of the compass window is invisible until the mouse is over it (and lights up while you drag it).

0.2.14

Journal

  • New: in the settings, section Compass, a Text size for the compass window (60% to 160%). The window fits its content again when you change it.
  • New: in the same section, the option Show the NPC search. Turn it off to remove the search box from the compass window. The NPCs already in the list stay, and you can still remove them; the compass keeps following the quest or mission you point it at.

0.2.13

Journal

  • Changed: the texts of the compass window have a soft black shadow, like the Tracker, so they read better over the game.
  • Changed: with the background opacity of the compass at 0%, the window has no border and no frame lines at all, only the texts.

0.2.12

Journal

  • Changed: the background opacity of the compass window can go down to 0% (a fully transparent background; the text stays visible).
  • Changed: the compass window has no title bar and no close button now. Move it by dragging it anywhere, resize it from its corner, and show or hide it with the compass button of the Journal or /journal compass.
  • Changed: the button that removes an NPC from the compass is a small, dim gray x (lighter when the mouse is over it).

0.2.11

Journal

  • Changed: the names of the NPCs in the compass window (the one of the quest step and the ones of the search list) use the same olive green as the NPC names in the Journal.

0.2.10

Journal

  • Fixed: the compass window could not be resized with the mouse. It now fits its content when it opens and then leaves its size alone, so you can drag the corner. The size is saved when it changes. If you add NPCs and they do not fit, the window grows once to fit them (it never shrinks a window you made bigger).

0.2.9

Journal

  • New: a compass button in the top bar of the Journal, next to the new adventurer guide and the camps. It shows or hides the compass window (it is lit while the window is open). Same as /journal compass.

0.2.8

Journal

  • New: the compass window can be resized by dragging its corner. The size is saved with your settings. Until you resize it, it still fits its content by itself. If you make it smaller than its content, it scrolls. /journal compass reset puts it back to fitting its content.
  • New: the background opacity of the compass window is in the settings, in a new Compass section (35% to 100%, like the Journal and the Tracker). It only fades the background; the text stays sharp.

0.2.7

Journal

  • Changed: the compass shows distances in meters instead of yalms.
  • New: the distance is colored and comes with a message. 0 to 10 meters is green ("It's right here!"), 11 to 25 is yellow ("You're very close.."), 26 to 35 is orange ("You're getting closer.."). Farther than that there is no message. It applies to the quest target and to every NPC of the search list. The old Arrived line is replaced by the green message.

0.2.6

Journal

  • New: the compass window has an NPC search box. Type at least two letters and pick any NPC from the list to point the compass at it, without choosing a quest first. Up to 5 NPCs can be shown at once, each with its distance (or the zone, if it is somewhere else). Names that exist in several zones appear once per zone. Remove an NPC with the x button. The list is saved with your settings.

0.2.5

Journal

  • Fixed: the compass window had a fixed height and, with the real font, the lines under the NPC name (the distance and the map square) were cut off. The width is fixed and the height now follows the content.

0.2.4

Journal

  • Changed: the compass window now shows the distance in yalms at all times, also when the NPC is loaded near you. Under 10 yalms it has one decimal (for example 4.3 yalms), and when you are within 5 yalms it adds Arrived below it. Before, Arrived replaced the number.
  • Changed: the arrow is off and the window is shorter without it. The arrow depends on the heading of the player, which is not confirmed in the game yet. It can be turned on with compass.config.arrow = true; /journal compass debug shows the value.
  • Confirmed in the game with Melyon (Selbina): the ground coordinates are the X and Y of the game (Z is the height), the zone id is read correctly, and the distance of the fixed position matches the live one.

0.2.3

Journal

  • New: the compass now shows the distance to the NPC even when the game has not loaded it. It uses the fixed position of the NPC (new file data/npc_positions.lua, 706 names and 1,090 positions) and your position, and the window says From the game data under the distance. When the NPC is in another zone, it says In another zone and gives the name of the zone. When the NPC is loaded near you, the live position and the arrow are used as before.
  • A name used by NPCs in several zones (Cid, for example) takes the one in the zone you are in, and the closest if there are several there. Some NPCs are not in the data (Gate Guard and others); for them the window says Not in range.
  • /journal compass debug also prints the zone id, the three raw coordinates (X, Y, Z) of you and of the NPC, and the position that the table gives for the NPC, so that the table can be compared with the live position.

Fixes and technical

  • Fixed: the compass read the wrong coordinate as the second one on the ground. The Z of the game is the height; the ground is X and Y. compass.config.second_axis holds this.
  • Fixed: the entity index of the player is read every time, because it changes when you change zone. Before, the compass could read position 0, 0 after a zone change.
  • The fixed positions come from LandSandBoat (https://github.com/LandSandBoat/server, GPLv3, data/zones/*/npcs.yaml). The names kept are the ones in data/npcs.lua. The script that builds the file is not part of the addon.

0.2.2

Journal

  • New: the compass. A small window with an arrow that points at the NPC of the current step of a mission or quest, with the distance in yalms. In the details panel, the button Point compass here (under Pin to Tracker) makes the selected mission or quest the target; Stop compass takes it off. The arrow follows the current step, so it changes when you move on to the next one.
  • New: /journal compass shows or hides the compass window, /journal compass off clears the target and closes it, and /journal compass debug prints the raw numbers (your position and heading, the NPC position, the distance and the angle) in the chat.
  • The window shows the name of the target, the NPC of the step, the arrow, the distance (or Arrived when you are within 5 yalms) and the map square written in the step, such as I-9. It can be moved, it is saved with the other settings, and it is drawn with or without the Journal open.
  • The compass can only follow an NPC that the game has loaded near you (about 50 yalms). The quest data has map squares, not world coordinates, so when the NPC is not loaded the window says Not in range and shows the map square, with no arrow. It also says so when the step names no NPC from the NPC list.
  • All the new texts are translated to Spanish.

Fixes and technical

  • New file: compass.lua (finds the NPC in the step text, reads the entities, computes distance and angle; saves the target, the window state and its position as compass in the settings file). icons.lua draws the arrow.
  • The way the arrow turns depends on conventions of the game that could not be checked outside it (z_sign, yaw_sign and yaw_offset in compass.config). If the arrow points the wrong way, the output of /journal compass debug shows what to change.