Question:
I was trying to run The Backwoods (a game by @Reykr ), but instead of running when I opened it, it showed the code. I tried forking it, but it said there was an error with “Secrets”??? What do I do???
Thanks,
Ocean Waves (previous username Unicorn Rainbow)
The repl may be set so that it cannot be forked (look at the credits to IroncladDev), and there are other errors with the repl as well. My guess is that it was not meant to be forked, but Reykr may have not foreseen the Run button being removed.
I believe that such anti-forking measures can be easily circumvented. I will report back soon with a modified version which does not have anti-fork protection.
UPDATE: The problem was that the repl used a defunct graphql endpoint. I have replaced all code pertaining to the api with a filler:
Ah, this error must be due to the new updates. I think a bunch of stuff in the game relied on external things, though it’s been a long time since I went through the mess of code there. Since Replit has changed a lot of things (no run buttons, hosting, etc.), there’s probably a lot of lost functionality.
The anti-fork code never actually worked in the first place, it was definitely forkable and the anti-fork stuff was commented out. @python660’s version appears to work. As far as I know, there’s no extra secrets that need to be configured despite the warning messages.