Quick Links: Gideros Home | Download Gideros | Developer Guide
Gideros online editor
  • hgy29hgy29 +1 -1 (+8 / -0 )
    Maintainer
    Hi all,

    @totebo showed me an online construct code editor and player and thought it would be nice if gideros had something similar, based on google drive storage.

    So I reworked gideros fiddle (http://giderosmobile.com/code), and came up with this:
    http://apps.giderosmobile.com/player/editor.html

    What do you think ?
  • keszegh +1 -1
    Member
    nice, i'd add a link to the reference guide.
  • pie +1 -1
    Member
    super!
    I would feature it on the homepage too!
  • keszegh +1 -1
    Member
    and on main page the 'supported platforms' should include html5 and winstore.
  • grotlygrotly +1 -1 (+1 / -0 )
    Member
    Is it possible to make this editor read/run a normal Gideros project from Google Drive or maybe Dropbox? By normal I mean a Gideros project created in Gideros Studio, with files and folders/subfolders etc.

    Is this editor in github somewhere, can I run it in my server for example? It would be fantastic to be able to code and test without the Gideros Editor, just by using a browser. I am looking for this possibility for a while now, as I can't install Gideros Studio at work and have lots of free time to spend on Gideros projects ;)

    Likes: totebo

  • totebototebo +1 -1
    Member
    I would love that too!
    My Gideros games: www.totebo.com
  • hgy29hgy29 +1 -1 (+1 / -0 )
    Maintainer
    Hi @grotly,

    Currently the online editor doesn't read gideros studio's .gproj file, it just load all lua files found in the project directory. This could be enhanced probably.
    If you want to host it on your own server, just grab editor.html file from http://apps.giderosmobile.com/player/editor.html and put it along official gideros html5 player files. You may need to update gideros.css file too, and register a drive API key for you domain, but all in all there is not much to do.

    Feel free to improve the code, it was just an attempt.

    Likes: SinisterSoft

  • grotlygrotly +1 -1
    Member
    @hgy29 Thanks for clarifications. If I launch the HTML5 player on my computer for example, by opening gideros.html from the HTML5 folder, where should the project be located in order to be launched automatically in the player? I guess it should be in a certain directory in the HTML5 folder?

    EDIT: after some more reading I realized it's not that straightforward, especially for someone without javascript/html5 knowledge. Loading everything from Google Drive every time it is run is not really a good idea if the project is big. Unlike the Android/iOS player, Gideros HTML5 player does not allow loading of a project unless it is done from Gideros Studio. Moreover, HTML5 player does not start in Chrome (version 58.0.3029.110 for Mac) nor Safari nor Opera, I could only run it in Firefox.
  • grotlygrotly +1 -1
    Member
    Can gdrbridge be somehow compiled for linux?
  • grotlygrotly +1 -1 (+1 / -0 )
    Member
    @hgy29 I managed to modify your script to read a Gideros project from a local folder and run it. I am using cloud9 and it works with all the projects I tested so far. The only things missing are that when it reads the .gproj file, it does not read the project properties (most of them can be anyway set in the code) and does not compute dependencies (not sure yet how to tell this to the player), but a way around this is to carrefully set the order of the files in the .gproj file.

    The Run button runs the project without reloading the files. The Reload button reloads the project files (including the .gproj file) and then runs it. Basically Run is just for restarting the game and Reload is for when you make changes in the code. Another limitation is that the project path and name have to be set manually in Gideros_Web_Player.html (I tried to make the place as visible as possible).

    I have attached a zip file containing the player and a test project. Unzip it and launch Gideros_Web_Player.html. You can run it from your computer or better in cloud9, they have a very good online editor (the whole environment is actually very good).

    I have also attached a screenshot of the Cloud9 environment.

    I hope this is useful for people who can't install Gideros on their (e.g. work) computers. They can now use cloud9 for instance to continue working on their projects. It's not maybe the ideal solution and for sure it can be improved, but it works.

    EDIT: Apparently cloud9 changed their registration requirements and now they ask for a credit card even for the free account. If this is a problem for you, you can try codeanywhere.com or codenvy.com
    Gideros_Web_Player.zip
    9M
    Cloud9.png
    1919 x 957 - 263K

    Likes: hgy29

  • keszegh +1 -1
    Member
    is there any alternative to cloud9 which does not need your bank card?
  • grotlygrotly +1 -1
    Member
    @keszegh Try to sign in using your github or bitbucket account, you would need one anyway for versioning your game and this is quite well integrated in cloud9 (Bitbucket allows unlimited private repositories). I used this option quite a while ago but I didn't need a card.
  • keszegh +1 -1
    Member
    @grotly, maybe they changed their registration process, but even if i use github or bitbucket it just wants to connect the account, first you have to make a c9 account.. using a card.
  • grotlygrotly +1 -1
    Member
    @keszegh you are right, they have indeed changed the signup procedure. You can also try codeanywhere.com or codenvy.com hopefully the Gideros player works there too.
  • keszegh +1 -1
    Member
    @grotly, thanks, i will try them out, codeanywhere was easy to register to.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with OpenID

In this Discussion

Top Posters