• 26 Posts
  • 391 Comments
Joined 1 year ago
cake
Cake day: July 14th, 2023

help-circle
  • The issue is this line in your lists editor:

    s = [mob.selectOne]
    

    This means that every time you use s it’ll select a new random item from mob. The reason for that is because you’ve made s equal to [mob.selectOne] instead of mob.selectOne. The square brackets around it effectively make it “dynamically fetched” each time you access s.

    You need to add [s = mob.selectOne, ""] in a place where it’ll get “executed” with every “generate” button click, so a new s is generated with each click, but it stays the same when executing all of the other square blocks that come after it.

    So you could add this line before [output] in your HTML editor:

    [s = mob.selectOne, ""]
    

    Each time your “Generate” button is clicked, the update() function is called, and that causes all the square blocks in the HTML code to be executed from top to bottom. So it ensures that we’ve randomly selected a mob item and put it in the s variable before the output list is executed (which uses the s variable).

    Here’s a fixed example: https://perchance.org/ylx7fmwpql#edit

    (This issue has unfortunately been the source of a lot of problems for newbies learning Perchance, so you’re not alone in being confused by this!)




  • I’d need more info, since I can’t reproduce it. If you can send a share/save link (or save file via google drive or whatever), then I would probably be able to fix it instantly. Or you can give me exact steps to reproduce it. E.g. “start a new rpg, go continue until summary happens, …” Please make sure you test the reproduction instructions to confirm that you can reproduce the issue (i.e. don’t just guess that it’ll happen again, please actually start from scratch and test it). Again though, easiest way is if you have an existing game that you can share, and just generate a share link using the button at the bottom. You can DM me or share it in this thread.



  • Hi, sorry about this, seems like quite a few users are having the same problem, but I’m not sure what the cause is yet. The more info you can give here, the faster I’ll be able to solve it. Some questions that should allow me to narrow down the cause:

    • Can you please screenshot what’s shown when the page won’t load, and share it here?
    • Do you remember the last time it worked (approximate day+time), and the first time you noticed that it wasn’t working (again, approx day+time)?
    • Can you test on multiple browsers, and ideally multiple devices (e.g. phone + laptop), and ideally multiple internet connections (e.g. phone data + wifi)? This will help narrow down whether it’s a browser issue, device issue, or network connection issue.
    • If it works in one browser, but not the other, please also test in “incognito” / “private browsing” mode, or “guest mode” of the non-working browser.
    • Are you using normal wifi at home? Or is there anything unusual about the internet you’re using (e.g. school network, or special “firewall”, etc.)
    • Can you try visiting these two links and letting me know if they work? This will let me know if there’s a specific “part” of the server that’s causing the error.

  • The Perchance site itself doesn’t block people¹, so it’s likely some sort of network issue. It could be something to do with the network you’re using, or with Cloudflare, or with a network-level firewall, or some combination. Questions:

    1. What error message does it show? Can you screenshot it?
    2. Are you using an unusual/uncommon web browser? The fact that you’ve tested ipad and pc makes me think no.
    3. Do you have another network/connection that you can test with? E.g. hotspot on phone? To see if your computer/ipad loads it fine on a different connection.
    4. This shouldn’t be relevant anyway, but out of curiosity, if you visit https://ip-api.com/ and scroll down to the mobile and proxy and hosting values, do they say true or false?
    5. Is the network a school/workplace/university/etc.? Some schools have block-lists for game/entertainment related websites, and it’s possible perchance has been blocked by that.

    ¹ Note: You can get blocked from e.g. participating in comments sections (and VPNs are blocked from commenting by default due to spam and block-evasion), but you can never be blocked from simply viewing/using a generator.



  • I’d been putting this off for quite a while because I thought it’d require a database restructuring, but I realized just now that there’s an easy way to do it, so it’s done. Thanks for nudging me again on this! (IIRC you [and several others] asked for this feature quite a while ago)

    Currently it just allows you to change the channel and submit again. It’s a bit annoying imo - ideally you’d be able to have a list of pinned channels names and just tap the channel name to send it there. But less annoying than before, for sure. Please bug me to improve this at your leisure.

    Also, side note: I really need to finally get around to upgrading the image models themselves. This is very high on my priority list, and it should result in a pretty substantial improvement in image quality and prompt comprehension. I’m always a bit too optimistic, but I’m hoping to finally get this done within the next few weeks - fingers crossed.




  • Yep you summarized it well, thanks! The only thing I’d mention, is about this dot point:

    Later on (as long as the local storage is not cleared) you can navigate again to that newly created page (while still not logged in into an account) then enter the edit password after clicking save to return back/apply your changes to the generator.

    The “as long as the local storage is not cleared” part can be removed - as long as you have the password, you can edit it. So e.g. you can share the edit password with a friend and they will be able to edit the generator too. But note, if you’re editing at the same time as your friend, you’ll overwrite one another’s work. Once I get the upgrade to CodeMirror 6 done, I’d like to add real-time collaborative editing (like a google doc, via a simple link you can share with your collaborators) so this won’t be an issue.

    Also @wthit56@lemmy.world the signup issues should hopefully be fixed for real this time, but do let me know if you hear of any more reports about this.



  • Hmm, this error is related to your device’s storage limits - since chats are stored on your device rather than on a server. Is your device’s storage nearly full? Or is your chat massive (i.e. multiple novels worth of text in the chat logs)? If you could paste chat logs into a character counter, and let me know, and also let me know the device/OS and browser you’re using (e.g. Samsung A50 + Chrome, or iPhone + Safari), that would be helpful so I can try to replicate this error on my end.







  • Hmm. I just tested with a gmail address, and it works, but it took a while, and it went to the spam folder.

    Since temp-mail.org has always worked, and has been fast, I’m 95% sure that it’s due to some residual ‘blocking’/filtering that gmail is doing, due to the spammer issue that perchance was hit by a while back. I think it’s only a problem with gmail addresses, but only some of them, for some weird reason.

    I’ll add a note on the verification screen to tell them to use temp mail for now (and switch email later) if it’s not working. Another solution is probably to send an email to the email address that the verification email gets sent from (or manually add it to contacts list). That should mark that email address as not-spam, which would hopefully make it easier for the verification email to get through. I’ll add a note about that too.


  • Yeah so I did end up upgrading the whole stack (as I mentioned in the other thread), thinking that that would surely fix this gibberish problem once and for all, but it didn’t. It should happen a lot less now though, since I have added detection code which catches a decent percentage of the machines that get into the broken state. I’ll keep improving the detection code so it should happen less and less over the next week or two.

    If you have links to bug reports that you’re talking about, please do share them - I want to be sure that it’s the same issue that I’m talking about here. If there are issues that are still quite common, then it’s possible there are other issues that I’m not aware of.