Library of Babel 3d (beta)

Home Forums Code, Bugs, Suggestions, Questions Library of Babel 3d (beta)

This topic contains 59 replies, has 3 voices, and was last updated by  Keiwan 5 months ago.

Viewing 15 posts - 16 through 30 (of 60 total)
  • Author
    Posts
  • #3427 Reply

    Keiwan

    Comfortable Mystery (1-4) by Kevin MacLeod
    They’re royalty free and you can find them on incompetech.com

    #3429 Reply

    Tyun

    Oh, boy. I hope I can do this on a Mac.

    #3430 Reply

    Tyun

    I mean I hope I do not run into so many problems.

    #3433 Reply

    Jonathan Basile
    Keymaster

    Hey Keiwan –

    Let me think about what I could send you – would it be easier to just write the game so that requests for books queried the website? you can use POST or GET with the book.cgi page to let people access text, and POST to search.cgi to return results. Would that work?

    #3435 Reply

    Keiwan

    Hey Jonathan,

    that would be great! It should just be specified what the parameters of the functions (the strings) should exactly look like, since my hexagon numbers for example are only stored as base 10 and yours in base 29 (i believe) or whether the book’s position in the room should be concatenated to the hexagonnumber string and things like this 🙂

    Other than that this is probably the easiest way of making the library compatible with this website ^^

    #3436 Reply

    Keiwan

    Hi Tyun,
    you shouldn’t face any problems when using the library on a Mac (I use a Mac myself)

    #3457 Reply

    Tyun

    Guys, what if I wanted the “game” to work offline? Will it just be online-only temporarily?

    #3458 Reply

    Jonathan Basile
    Keymaster

    Once I build the offline library it would be easy to make an offline game. I still hope to get to that early next year.

    To do a search you just need to POST the search phrase and character that specifies the method. ‘x’ is the general search that gives you the first hit for all three methods.

    to interact with the book.cgi you will need parameters that are similar to the ones used on the website. Can you change your hexagons so that their names contain 0-9, a-z? if you just post hex names with 0-9 it will always return text, since all of those hexagons exist. It would just make searching more difficult.

    #3464 Reply

    Keiwan

    Yes, converting the hexagon names to use numbers and letters is no problem at all.

    So for example a valid url for a GET request would be something like https://libraryofbabel.info/book.cgi?12ab-w1-s2-v13:12
    ?

    That should give me page 12 from volume 13 , shelf 2, wall 1 of hexagon 12ab.

    Did I understand this correctly?

    #3465 Reply

    Keiwan

    And I think you need to add a crossdomain.xml file to the site so I get the permission to access book.cgi and search.cgi.

    There is more info about the .xml file on these pages:
    http://docs.unity3d.com/Manual/SecuritySandbox.html
    http://www.gamedev.net/topic/639052-unity-crossdomain-issue/

    #3504 Reply

    Keiwan

    Hey Jonathan,

    while requesting the pages now completely works I am having some issues with the POST request for the search: Every time I send a request it gives throws an error saying :”necessary data rewind wasn’t possible”.
    I couldn’t really find out what this exactly means, I hope it has got something to do with me sending a wrong request or something. Do I need the specific names of the keys for the search phrase and the method name for the POST request?

    #3505 Reply

    Jonathan Basile
    Keymaster

    the text string should have the key of “find” and the method should have key “method” and value “x”

    #3509 Reply

    Keiwan

    Worked perfectly!

    The Update:
    – The 3D Library is now compatible with this website! That means that the page addresses are the same, so everything found on this website can be found in the 3D library in the same position and vice versa (e.g. you can look up all of the findings of other people in the “Browsing the Hexes” part of the forum in the 3D library now).
    – (This also means that for now you will need an internet connection to access the pages)
    – Bug fix which caused the hexagons to break at certain times.
    – small other bug fixes.

    Thank you Jonathan for letting the library access your website!

    Download link (the same link as before):
    https://drive.google.com/open?id=0B1ldi9Ghg68rMFltVXcxNkRZUW8

    #3516 Reply

    Jonathan Basile
    Keymaster

    Sounds great! I’m glad it’s working, and I hope people enjoy having a new way to browse!

    #3542 Reply

    Keiwan

    Unfortunately it seems like when you paste a hexagonnumber into the input field it gets pasted twice, resulting that you end up in a different hexagon and therefore can’t find the page you were looking for. This, however, is a bug in the latest Unity versions, so there’s nothing I could do about it. I will provide an update as soon as the bug gets fixed by the guys at Unity.

    On a different note: Would you like me to send you a Web Player version of the 3D Library that you could integrate somewhere on this site for the people to use directly in their Browser? I thought about putting it onto a different site just on its own at first, but since it uses your algorithm and is compatible with this website I realized it would make a better extension to your site than having a complete website only dedicated to it.
    This is of course only if you want! I obviously don’t know which direction you itend this site to go (in terms of extensions, e.g. the image archives or whether you want to keep the site “clean” like it is right now and make it more about the abstract idea of a library than an actual visual representation) so the last thing I want is to seem like I’d want to urge you to put the 3D Library onto your website 🙂

Viewing 15 posts - 16 through 30 (of 60 total)
Reply To: Library of Babel 3d (beta)
Your information: