User talk:Syntaxaire

From Caves of Qud Wiki
Jump to navigation Jump to search

renderstr lacks color

It's a little unintuitive, but renderstr also requires ColorString concatenated before the RenderString to properly color the char. Is it better if I just add a new colorstr value to the template? Teamtoto (talk) 14:37, 7 July 2019 (UTC)

  • I have added colorstr to the template, so just set it to ColorString. Teamtoto (talk) 15:56, 7 July 2019 (UTC)
  • Done Syntaxaire (talk) 02:06, 11 July 2019 (UTC)

wiki image naming conventions do not follow in game image names

In game the same sprites are used for different objects but look the same because of ingame shaders that can change the base color and the detail color. See: On the Origins and Nature of the Dark Calculus and Across Moghra'yi, Vol. I: The Sunderlies that use the same sw_book2.png but are different colors due to their ColorString.

That function is unable to be replicated in the wiki(for now), so current wiki image naming conventions are their display name with all lowercase and the color codes and punctuation removed. There are still some sprites with unconventional naming styles that are not their page title due to being reused for multiple items (see: File:Across moghrayi.png). I currently have no idea how to deal with this issue, but in the meantime excluding these corner cases, changing image names in the template to the display title with all lower case, no color codes, no punctuation should fit properly into the wiki.

Teamtoto (talk) 14:50, 7 July 2019 (UTC)

new values for template item

just a reminder that:

  • chargeperdram is a new attribute and should be used for liquid cells.
  • charge is renamed to chargeuse
  • wornon is a list that is separated by , and is based on the WornOn attribute. dont use wikilinks
  • usesslots is a list that is separated by , and is based on the UsesSlots attribute. dont use wikilinks

will edit this section if I add more. Teamtoto (talk) 17:55, 7 July 2019 (UTC)

  • reputationbonus now added. it takes a list of Template:Reputation bonus with the syntax
    | reputationbonus = {{Reputation bonus|(faction in plaintext)|(bonus)|(optional 3rd argument of string that contains the owner. can be left alone 98% of the time as it defaults to the page name it's called)}}
    {{Reputation bonus|(faction in plaintext2)|(bonus2)|(optional 3rd argument)}} etc...
    Teamtoto (talk) 16:07, 11 July 2019 (UTC)
  • More rows related to food are added and have a row in Template:Item/doc. still not done but the ones i'm not done yet are slightly harder to implement:Teamtoto (talk) 20:25, 13 July 2019 (UTC)
    • healing is what stuff like witchwood heals. is a string so can take dice rolls
    • butcheredinto is what a corpse is butchered into. it takes Wikitext links to the item, and is stored as a list separated by , for corpses with multiple butcher items.
    • harvestedinto is what you harvest from the item. takes a wikilink to the item.
    • preservedinto is what you expect. wikilink to item.
    • preservedquantity is the number of preserved items. integer
    • exoticfood is a boolean that lets cargo know if you need to specifically choose this food to preserve it. yes/no
  • the last of cooking related attributes are added (for now). the values are:
    • ismeat, isplant, isfungus which should be explanatory. takes yes/no
    • cookeffect can be found on part Name="PreparedCookingIngredient" type ="___". takes string.
    • oneat is what happens on eat. this can be found on the ___OnEat parts. may be difficult to parse, so it's ok if explorer doesnt get this.
    • in addition reflect that takes an integer that represents the % of damage reflected. this can be found on ModGlassArmor tier="_".
    • sort of bug, but the current build of qud explorer only returns cold resistance and none of the other types. see: chrome mantle and quartzfur cloak. Teamtoto (talk) 00:59, 22 July 2019 (UTC)
  • one tiny addition, empsensitive is a boolean (yes/no) that is based off of the value IsEMPSensitive="_". defaults to no Teamtoto (talk) 15:15, 24 July 2019 (UTC)

new values for template character

still a massive work in progress, but here are some changes:

  • gender (just plaintext as specified in the xml) is an optional parameter. pronouns can also be specified but optional.
  • inventory is a bulleted list of all inventoryobjectblueprints for a character that must call Template:Inventory for each item for cargo to be able to handle holding a list of items that contain more than just their name. its usage is
| inventory = {{Inventory|(item)|(quantity, defaults to 1)|(character name, defaults to pagename)}}
{{Inventory|(item2)|(quantity2, defaults to 1)|(optional pagename)}}
{{Inventory|(item3)|(quantity3, defaults to 1)|(optional pagename)}} etc...}}

Teamtoto (talk) 14:58, 9 July 2019 (UTC)

    • edited the inventory template so it takes unnamed arguments. It's much easier to read and type now Teamtoto (talk) 16:10, 11 July 2019 (UTC)
      • inventory template has been edited to take equip status. it defaults to yes, so it should check for noequip/ if its not considered equipment to set to no. the usage is now:
        | inventory = {{Inventory|(item)|(quantity, defaults to 1)|(if equipped,yes/no)}}
        {{Inventory|(item2)|(quantity2, defaults to 1)|(yes/no)}}
        {{Inventory|(item3)|(quantity3, defaults to 1)|(yes/no)}} etc...}}
        not sure if there are cases where creatures have multiple of the same equipment, where one is equipped and one is not. please let me know if you find such cases! Specifically, this is for checking AV/DV granted by equipment. After including the base AV,DV, I plan on letting a cargo query determine the bonus av and dv granted by equipment and skills. Teamtoto (talk) 01:20, 22 July 2019 (UTC)
  • new: not sure if it's the way to do it, but there are new values for each attribute: egodice, egotierdice for example. attributedice is NdM, and tierdice is (t-1)dM. the base attribute value is the same and takes the base integer value. Right now, these will not show up on the infobox because i'm mulling over how to present this information in a digestible format. Teamtoto (talk) 23:10, 10 July 2019 (UTC)

Notes to self

  • real line breaks in long descriptions

Syntaxaire (talk) 17:35, 8 July 2019 (UTC)

The Great Item Template Rehaul (and related templates)

Due to the giant column bloat, I separated more niche attributes to their own template. As such:

  • the regular Item template will no longer take food related attributes except preservedinto/preservedquantity (although I am tempted to make tonics their own template as well).
  • I also combined several of the boolean values (twohanded etc) to all be stored in the Extra attribute, but this won't effect how this data is being inputted.
  • New template for foodstuffs, Template:Food. uses all the attribute names that Item used to have, just in a different template
  • Template:Corpse is not an infobox, but a row similar to Template:Cybernetic that will be located in Corpse. This also means that this is the only template that stores butchersinto now.
    • All attributes are the same except disassemblesinto,which takes the bits of a robot corpse.
    • Corpse template is only for objects with "corpse" in the name, not just because it inherits from Corpse! Teamtoto (talk) 18:13, 28 July 2019 (UTC)

I have to finish setting up Corpses and related tables before I am able to make some pushes to qbe myself, but I plan on getting these eventually if you're not on them. Let me know if there are any issues or questions you have! - Teamtoto (talk) 16:31, 28 July 2019 (UTC)