Using branches removed ALL code!



  • I wanted to swap between 2 branches of code (Default and a saved one) and it removed ALL my code.

    Process that resulted in this problem:
    - Saved a branch 5 days ago
    - Coded newly from scratch in the default branch up till today
    - Choose the saved branch as active branch: The branch was completely empty
    - swapped back to the default branch: This one is now also completely empty.

    Screeps are no longer doing their things. Can you please restore my code (preferrably up to 19-8-2015 UTC 5:00 ).

    Regards,

    Avicenna



  • I hope they'll be able to fix this, but please people use an external IDE and sync your code using either Github or http://support.screeps.com/hc/en-us/articles/203022512-Commiting-local-scripts-using-Grunt.



  • code API is still messed up for me.

    curl --insecure -u "me@mailserver.com:<my password>" https://screeps.com/api/user/code?branch=sim > sim.json

    This works fine but then

    curl --insecure -u "me@mailserver.com:<my password>" -X "POST" -H "Content-Type: application/json" --data @sim.json

    returns

    {"error":"TypeError: Cannot read property 'length' of undefined"}



  • And of course now that I test it again, it's working.



  • Ran into the same issue today. All my codes are gone. I hope they restore them soon.