Binding of Isaac: Rebirth Wiki
Register
Advertisement
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Module:dlc

Hello ! This is probably a shot in the dark, but could you tell me more about the Module:dlc ? Did you import it from another wiki or did you make it yourself ? If so, could you link me to it ? I've been looking for something of the sort and I could only remember the TBOI wiki having this feature.

Thank you in advance !

Hepad.

Hello. ^^ It was made for this wiki. This module is part of a DLC template set, some functions have been written in LUA, but that's only for performance reasons with very specific tasks. If there is a particular system you are interested in, don't hesitate to ask, I'll try to develop further, many templates and modules are not documented yet.
For a quick overview of this module functions:
  • {{#invoke: dlc | parse }} takes a string corresponding to a specific game version filter (e.g. base game only = na, Afterbirth+ and later = a+, Afterbirth and Afterbirth+ only = anr) and returns a DLC bitmask. Each bit corresponds to a game version: the most significant bits correspond to the most recent versions and the least significant bits correspond to the oldest versions (e.g. na corresponds to 0001, a+ corresponds to 1100, and anr corresponds to 0110). For a full list of accepted values, see {{#invoke: dlc/data | values }}. This function is used by {{dlc}} and its associated templates.
  • {{#invoke: dlc | test }} is an binary operation on DLC bitmasks, rather complicated, I'm not sure how to explain it directly. Internally, all DLC values are represented by bitmasks on the wiki, because unlike strings, one can easily and quickly do operations on them. This function is used by the templates associated with {{context}}.
  • {{#invoke: dlc | find }} takes an encoded DLC dictionary and returns the value associated with the most recent game version in the current context. DLC dictionaries are used internally to encode a value that changes between game versions. For example, if a value is X in the base game and Y with *Afterbirth* and latter, we use X, a: Y, which is encoded by {{dlc parse}} and becomes 1►X▼14►Y. Then, {{#invoke: dlc | find|1►X▼14►Y }} gives Y by default.
Derugon (talk) 17:36, 21 January 2023 (UTC)
Hello ! Sorry for the late reply.
Are you French by the way ? I've seen in the history you've been contributing in French too. If you are, we can continue this discussion in French, as I am too.
I'm looking for a way to port the DLC functionality to another wiki. I'm no software guy so it's all pretty hard to understand for me. Since this is your contribution, do you see a easy way to do it ? Would you agree to me porting it ? Thanks in advance.
Hepad

Admin+

Hey there! I’m reaching out to introduce the Admin+ program (if you haven’t heard about it already!) & let you know I’m here if you have any questions about it. Take a look at the details here & feel free to send over any questions you have. pikushi ✧.* 19:33, 17 August 2023 (UTC)

Advertisement