MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "RealSprites",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "69": {
                "pageid": 69,
                "ns": 0,
                "title": "ReadingOtherGRFParameters",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "==Introduction==\n\nSince TTDPatch 2.0.1 alpha 16, it has been possible to use action D to read the parameters of other GRF files. With this, you can try to use the settings for another related GRF before falling back to a hard coded default.\n\n== Format ==\n\n<pre> &lt;Sprite-number&gt; * &lt;Length&gt; 0D &lt;target&gt; 00 &lt;param&gt; FE &lt;GRFID&gt;</pre>\n\n{| class=\"wikitable\"\n|-\n!'''Element'''\n![[GRFActionsDetailed|'''Size''']]\n!'''Description'''\n|-\n|0D\n|B\n|Defines action 0D\n|-\n|&lt;target&gt;\n|B\n|Target parameter\n|-\n|&lt;param&gt;\n|B\n|Parameter number of the other GRF file that you want to read\n|-\n|FE\n|B\n|Defines a special variable access\n|-\n|&lt;GRFID&gt;\n|D\n|The GRFID whose parameter you want to read\n|}\n\nThis will store parameter &lt;param&gt; of the GRF file with GRFID &lt;GRFID&gt; into the &lt;target&gt;\n\nWith parameter FE you can read the action 14 NewGRF version of another NewGRF in OpenTTD. It returns 0 if no NewGRF version has been set by an action 14.\n\nIf the GRFID cannot be found, or if the parameter is not defined, a value of 0 is used instead (no matter whether bit 7 of the operation is set or not)."
                    }
                ]
            },
            "70": {
                "pageid": 70,
                "ns": 0,
                "title": "ReadingPatchVariables",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "== Introduction ==\n\n\nSince TTDPatch 2.0.1 alpha 48, it has been possible to use action D to read various special Patch variables. These are usually switch values, but there are also a few other useful values.\n\n== Syntax ==\n\n <Sprite-number> * <Length> 0D <target> <operation> <variable> FE FF FF 00 00\n\n{|\n!Element!![[GRFActionsDetailed|Size]]!!Description\n\n|-\n|0D||B||Defines action 0D\n\n|-\n|<target>||B||Target parameter\n\n|-\n|<operation>||B||As for ActionD, but only assignment is valid.\n\n|-\n|<variable>||B||Patch variable number to read. See below.\n\n|-\n|FE||B||Defines a special variable access\n\n|-\n|FF FF 00 00||D||Indicates that a patch variable is being read\n|}\n\n== variable ==\n\nThe following patch variables are defined:\n\n{|\n!variable!!Switch!!Version!!Value\n|-\n|00||miscmods/-Yo||{{ottdp|no|2.5}}||Bit switch\n|-\n|01||experimentalfeatures/-XF||{{ottdp|no|2.5}}||Bit switch\n|-\n|02||morevehicles/-x||{{ottdp|no|2.5}}||Vehicle array multiplier\n|-\n|03||mountains and curves/-mc||{{ottdp|no|2.5}}||Two bytes with four sets of two bits\n|-\n|04||planecrashcontrol/-Xc||{{ottdp|no|2.5}}||Bit switch\n|-\n|05||autorenew/-Xa||{{ottdp|no|2.5}}||Signed value\n|-\n|06||multihead/-M||{{ottdp|no|2.5}}||Speed increase, in percent\n|-\n|07||disasters/-XD||{{ottdp|no|2.5}}||Bit switch\n|-\n|08||unifiedmaglev/-XM||{{ottdp|no|2.5}}||Unified maglev mode\n|-\n|09||bridgespeedlimits/-XX||{{ottdp|no|2.5}}||Speed fraction, in percent\n|-\n|0A||---||{{ottdp|no|2.5}}||TTD Language, see the \"new scheme\" for [[Action4#language id|action 4]]\n|-\n|0B||startyear/-XY||{{ottdp|0.6|2.5}}||Year-1920\n|-\n|0C||morebuildoptions/-YB||{{ottdp|no|2.5}}||Bit switch\n|-\n|0D||moresteam/-YM||{{ottdp|no|2.5}}||value=LF (two hex digits), L=length, F=frequency\n|-\n|0E||freighttrains/-Yf||{{ottdp|0.6|2.5}}||weight factor\n|-\n|0F||wagonspeedlimits/-YL||{{ottdp|0.6|2.5}}||Speed increase for empty wagons\n|-\n|10||planespeed/-YP||{{ottdp|0.6|2.5}}||speed factor\n|-\n|11||dual company colors||{{ottdp|0.6|2.5|ttdprev=r1404}}||2CC colormap base sprite\n|-\n|12||miscmods2/-Zm||{{ottdp|no|2.6|ttdprev=r1738}}||Bit switch\n|-\n|13||map size information||{{ottdp|0.6|2.6|ottdrev=r11961|ttdprev=r1817}}||Format = -MABXYSS\n{| |-\n| M  || the type of map\n* bit 0 set: squared map. Clear : rectangular map\n* bit 1 set: Y is the bigger edge(bit 0 is clear).Clear : X is the bigger edge.\n|-\n|A  || minimum edge(log2) of the map\n|-\n|B  || maximum edge(log2) of the map\n|-\n|XY || edges(log2) of each side of the map.\n|-\n|SS || combination of both X and Y, thus giving the size(log2) of the map\n|-\n|}\nAll map sizes will be substracted by 6, as to keep the size 64 the smallest one, thus zero based\n|-\n|14||maximum height level||{{ottdp|1.2|no|ottdrev=r23158}}||Maximal possible height level of a tile. {{ottdp|1.5|no|ottdrev=r27010}}Any value between 1 and 255. In earlier versions fixed at 15.\n|-\n|15||extra foundations||{{ottdp|1.4|no|ottdrev=r25230}}||Extra foundation sprites as set via [[Action5|Action 5 type 06]]. This sprite block does only contain the extra foundations from Action 5, it does not contain the default foundations of Action A sprites 990 to 1003.\n|-\n|16||coast sprites||{{ottdp|1.4|no|ottdrev=r25230}}||All coast sprites in the order of the 16 sprites version of [[Action5#In_NewGRFs|Action 5 type 0D]]. Note that, it does not matter in which way the sprites were originally defined (whether via Action 5 with 10 or 16 sprites, or via Action A), the sprite block returned by this variable has always all sprites in the same order.\n|-\n|17||map seed||{{ottdp|13.0|no|ottdrev=g08a5478a9}}||Map generation seed.\n|}\n\nIf experimentalfeatures, miscmods, or miscmods2 are off, the corresponding value will be zero. For all other switches, the value is unspecified if the switch is off, so [[TTDPatchFlags|action 7 variable 85]] should be checked first."
                    }
                ]
            }
        }
    }
}