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": "Savva_Osipov",
        "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": {
            "11042": {
                "pageid": 11042,
                "ns": 0,
                "title": "Rendering Text and Graphics",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "To put text and/or graphics on a cubelet screen, you put code in the ON_Render() routine.\n\nThis code would put some text on screen 0 on the cubelet where the code is running, displaying the cubelet # and the screen #, and a small blue circle.\n\n GFX_setRenderTarget(0);\n GFX_drawText([ 120,180 ], TEXT_SIZE, 0, 0, TEXT_ALIGN_CENTER, 0xFF0000FF, \"md: %d sn:%d\", SELF_ID,0);\n GFX_drawSolidCircleXY(80,80,10,0xFF0000FF);\n GFX_render();\n\n* Once you call GFX_setRenderTarget, everything currently on that screen is erased\n* Once you call GFX_Render, all of the calls after the previous GFX_setRenderTarget will \"take effect\"\n* <span id=\"AllAtOnce\"></span>The upshot of this is that anything you want to appear on the screen has to all be executed between those two statements.  You can render some text in one place and add more text or circles in another place.   Therefore you may have a lot of logic in ON_Render to determine what should be drawn at any given time."
                    }
                ]
            },
            "4": {
                "pageid": 4,
                "ns": 0,
                "title": "SDK",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "SDK/Framework\n\n*[[pawn]]\n\n==WOWCube Emulator installation==\n\n===Windows===\nLaunch the wowcube-sdk.exe installer and follow the steps of the installer.\n\nInstalling Dependencies (for Pawn Application Developers) \nTo run scripts written in the Pawn language, you need to install Python 3, Pip, IntelHex, and Pillow.\n\n\n'''Installing Python'''\n\nGo to the site https://www.python.org/downloads/windows/, click on the \"Latest Python 3 Release\" link, wait for the download to complete.\n[[File:Highlight_Latest_Python_3_Release_link.png]]\n\nRun the downloaded Python installer, select the \"Add Python to PATH\" checkbox (without it, the path to Python will need to be specified in full), and then click \"Install Now\".\n[[File:Python_installation_configuration.png]]\n\nPython 3 will be installed in \"%LOCALAPPDATA%\\Programs\\Python\". After installation, it will offer to remove the 260-character limit on the PATH length. Click. We complete the installation. Some Python libraries may not work or work incorrectly due to the standard 260 character limit.\n[[File:Python_disable_path_length_limit.png]]\n\n\n'''Installing libraries'''\n\nTo install the dependencies, you need to start the terminal. Go to Start menu (or press Windows key + X) and select Windows PowerShell.\n\n[[File:Start_menu_with_PowerShell.png]]\n\nType command \"pip install intelhex pillow\" and press enter. \n[[File:Intelhex_and_pillow_installation.png]]\n\nThis command will download and install the IntelHex and Pillow dependencies. If the installation is successful, a corresponding message will be displayed. \n\nIf your company uses a proxy, then you need to add the --proxy option to the command above. The option has the following format:\n\n[user: password @] proxy.server: port\n\nFor example:\n\n''pip install --proxy = http: //proxy.jf.intel.com: 911 intelhex pillow''\n\n===macOS===\n\nOpen the .dmg file, drag the WOWCube Emulator application into the Applications folder. \n[[File:Installation_on_macOS.png]]\n\nIf the .dmg file was downloaded not in the App Store, then an error will pop up when starting the application.\n[[File:Error_message_macOS_emulator_installation.png]]\n\nTo fix this error, you need to open the Terminal application. It can be opened in a number of ways: with Siri, or through Launchpad, or through the Finder, or by pressing Command + Space bar and pressing the Enter.\n\n[[File:Terminal_window_in_macOS.png]]\n\nIn the terminal, write the command ''/ Applications / WOWCube \\ Emulator.app/Contents/MacOS/bin/wowcube'' and press enter.\n\nIf the following error occurs\n\n''/ usr / bin / env: bad interpreter: Operation not permitted, or zsh: operation not permitted: / Applications / WOWCube Emulator.app/Contents/MacOS/bin/wowcube''\n\nThen run the following command ''xattr -rd com.apple.quarantine / Applications / WOWCube \\ Emulator.app/''. It will output errors Permission Denied, but they are expected.\n\n\n'''Installing Python'''\n\nFor macOS version below Catalina open a terminal, install and download Homebrew\n\n''/ bin / bash -c \"$ (curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"''\n\nHomebrew is a package manager that lets you install Open Source applications.\n\nNext, install Python 3 and Pip\n\n''brew install python3''\n\n''brew cask install python3''\n\n\nFor macOS by Catalina. First you need to make sure that python is installed and that it is the correct version.\n\n''python3 -V''\n\nThis command should print \u201cPython 3.x.x\u201d. If the command did not display anything, or was not found, try to execute\n\n''python -V''\n\nIf it displays \u201cPython 2.x.x\u201d, then Python 3 is not installed.\n\n\nInstall pip:\n\n''curl -fsSL https://bootstrap.pypa.io/get-pip.py | python3''\n\n[[File:Check_for_python_and_installing_pip.png]]\n\n\n'''Installing labraries'''\n\nInstall IntelHex and Pillow libraries.\n\n''pip3 install pillow intelhex''\n\n==Starting WOWCube Emulator==\n\n===Windows===\n\nLaunch WOWCube Emulator by clicking on shortcut on desktop.\n\n[[File:WOWCube_Emulator_shortcut_windows.png]]\n\nOn first launch, a warning from the firewall will appear.\n\n[[File:Windows_security_alert_first_emulator_launch.png]]\n\nAllow access. WOWCube Emulator uses local ports for communication between the processes it creates, as well as for projector mode.\n\n===macOS===\n\nOpen terminal and enter ''WOWCube Emulator'' then and press Enter.\n\n==WOWCube Emulator interface==\n\n===General view===\n\nThere are 4 main groups of widgets in the WOWCube Emulator interface.\n\n[[File:WOWCube_Emulator_UI.png]]\n\n===Cube model interactions===\n\nContains links for interacting with the cube module. Buttons from left to right:\n\n* simulates the shaking of a cube\n* returns the cube module to its original state (restoring rotations and position)\n* open code editor (does not work in version 2.2.0 and below)\n* rotates a random side of the cube\n\n===Emulation progress control===\n\nServes to interact with the progress of the script. Buttons from left to right:\n\n* start emulation of the selected pawn script. \u0410fter startup is replaced by the emulation restart button\n* stops pawn script emulation\n* loading a script to a physical cube using the BT protocol (does not work in version 2.2.0 and below)\n\n===General settings===\n\n====Project tab====\n\nIn this tab you can choose one of two modes of operation:\n\n* Pawn;\n* Projector.\n \n''Projector mode''\n\nThe projector is used to transfer images from a computer or mobile device to the WOWCube via the BT protocol.\n\nThe projector in the WOWCube Emulator is used for prototyping and faster development of web-projector applications.\n\n''Pawn Mode''\n\nIn this mode, you can:\n\n* select the path to the projects folder\n* select a startup project\n* view additional data for a running project\n\n====View tab====\n\nThe Sound adjusts the overall volume.\n\n[[File:WOWCube_Emulator_view_tab_sound.png]]\n\nIn the Emulation, the transparency of the overlay is adjusted. The overlay displays on each module its current number, screen and adjacent modules.\n\nThe Limit FPS slider allows you to limit the frame rate in the application running on the emulator.\n\nIf necessary, it is possible to configure the simulation of lost packets during transmission.\n\n[[File:WOWCube_Emulator_view_tab_emulation.png]]\n \nIn the CubeNet, the transparency and the size of the cube unfolding are configured.\n\n[[File:WOWCube_Emulator_view_tab_CubeNet.png]]\n\nIn the Scene, the removal of the camera, the field of view, the backdrop are configured.\n\nABI calls - displays abi function calls to the console.\n\nConsole follows mouse click - if you click on one of the modules of the virtual cube model, it opens the console tab corresponding to the module number.\n\n[[File:WOWCube_Emulator_view_tab_scene.png]]\n\n====Settings Tab====\n\nThis is where the PAWN compiler path and python path are selected. \n\n[[File:WOWCube_Emulator_settings_tab.png]]\n\n===Console and logs===\n\nContains tabs for displaying script assembly logs and tabs with the console of each module separately.\n\n===Controls===\n\nLMB on a cube - rotation of the sides.\n\nRMB (or Ctrl + LMB) on a cube - tilt the cube.\n\nRMB (or Ctrl + LMB) past the cube - rotate the camera.\n\nMouse wheel - zoom out / zoom in the camera.\n\n==Quick start==\n\nGo to https://github.com/wowcube/WOWCube_apps_examples\n\nClone or download to the necessary folder.\n\nLaunch WOWCube Emulator.\n\nIn ''Project'' tab switch Pawn mode.\n\nSpecify ''Project path'' to the folder with examples.\n\n[[File:WOWCube_emulator_path_to_examples.png]]\n\nUnder ''Run configuration'' choose example project.\n\n[[File:WOWCube_emulator_choose_example.png]]\n\nYou can press 'i' button to watch what resources loaded for each script\n\n[[File:WOWCube_emulator_resources_for_scripts.png]]\n\nPress ''Start button'' to launch emulation\n\n[[File:WOWCube_emulator_launched_first_example.png]]\n\nIn order to make changes in examples you need:\n\n* Go to folder where your WOWCube examples located\n* Open file 'example1.pwn' with any text editor\n* make what changes you need"
                    }
                ]
            }
        }
    }
}