Can I.....

  • Philip153
    3rd Feb 2015 Member 1 Permalink

    Can you make It so that you can acess the forum and the wiki directly from the game?

     

    I think that that would not be hard coding since twitter and facebook apps work the same way.

  • FeynmanLogomaker
    3rd Feb 2015 Member 0 Permalink

    Sadly, TPT is neither facebook nor Twitter, and those apps were designed with that as their sole purpose, while TPT already has other uses.

  • Philip153
    3rd Feb 2015 Member 0 Permalink

    BUT you can just implement the website displaying code. No Sadlys :D

  • jacob1
    3rd Feb 2015 Developer 0 Permalink
    @Philip153 (View Post)
    the website is all in html, it can't be displayed in tpt at all ):

    Maybe someone could make a lua script to fetch info from the website and display it in a nice format (most pages have a json api). The wiki is a lot harder to display since that uses it's own format (markup), and wiki pages can look like anything ...
    Edited 2 times by jacob1. Last: 3rd Feb 2015
  • Fast-Driver
    3rd Feb 2015 Member 2 Permalink

    @Philip153 (View Post)

     yes please! +1

    @jacob1 (View Post)

     pls implementate this cause it's hard 2 open a browser too :(((

  • boxmein
    3rd Feb 2015 Former Staff 0 Permalink
    Twitter and Facebook feed their clients neat Javascripty objects of the data they represent. The apps just take the received objects, convert them into a data structure and use the text as is.

    ...The forums can create Javascripty data too, just replace the ".html" in your address bar with ".json" to see that. Won't be too hard, only the fact that bolds and italics and all other kinds of text decorations will be forever lost, or they need to be converted into something TPT understands (buttons/blue text, etc)

    The wiki, though, cannot. There's no publicly available API that I've found so the only thing you can do is load the entire webpage (text, plus styling, buttons, sidebar links, all sorts of unnecessary details we don't need for a wiki page), then cut apart the webpage's markup (which is already a nightmare to do) to find the wiki text.

    It's a bit of a bother, which is why the wiki isn't available offline.
  • jacksonmj
    3rd Feb 2015 Developer 0 Permalink

    @boxmein (View Post)

    Raw page text can be obtained from https://powdertoy.co.uk/Wiki/W/Element:FILT.json?action=raw , but may contain HTML in addition to wiki markup, so that doesn't help enormously.

    Edited once by jacksonmj. Last: 3rd Feb 2015