Category talk:Pages with script errors

From Caves of Qud Wiki
Jump to navigation Jump to search

It looks like a lot of these script errors are caused by the IDs for the Dark Vision and Night Vision mutations being swapped. For example, on the baboon page, the mutations parameter in the character template is {{creature mutation|{{MutationID to name|DarkVision}}|3|12}} which generates this error: [edited to remove reference to error message that no longer appears]. If I replace "DarkVision" with "NightVision" it generates correctly. I didn't save this change, though, because it seems better to solve the underlying issue by correcting the IDs on the mutation pages, but I realized that some editors had manually fixed this issue on various individual creature pages as can be seen by the list of over 100 creatures on the Dark Vision page, and if I updated the 2 mutation pages, it would cause these 100+ creature pages to now be in error. So, essentially, what I am hoping for is that someone can use a bot to handle these changes. --Casaphescence (talk) 22:53, 18 September 2024 (UTC)

The data is correct, the creatures do have the DarkVision mutation, which is the "Night Vision" mutation. Librarianmage (talk) 00:08, 19 September 2024 (UTC)

Oh, really? Huh. So, the DarkVision mutation using the "Night Vision" ID and the NightVision mutation using the "Dark Vision" ID is how it is supposed to be despite the names being mismatched? While the NightVision implant using the "Night Vision" ID *does* have matching names?
Regardless of underlying code quirks, I see you made some edits to Module:Creature Mutation Query, which got rid of a lot of the script error messages. However, looking at baboon again, under Mutations, it shows Night Vision (?? 1 3) instead of Dark Vision, so it needs a bit more tweaking. I do appreciate you responding and working on it, and hope it won't take too much more effort to have the mutation appear properly. (I edited my initial comment since the error message no linger appears with the changes you made.) --Casaphescence (talk) 04:06, 19 September 2024 (UTC)

Yes, that was quick debug test. We are discussing on the Discord how it should ultimately work. (edited to add: It should show "Night Vision", baboons have Night Vision and not Dark Vision) Librarianmage (talk) 04:13, 19 September 2024 (UTC)

Oh, I see! Since Dark Vision is an NPC-only mutation, I thought that meant that Night Vision was player-only. Glad to hear that there are a group of you figuring this out, and thanks again for looking into it. --Casaphescence (talk) 04:19, 19 September 2024 (UTC)