Skip to content
Community
#ask
6
RESOURCES
TheDrone7
Welcome to Replit Community [+ Rules]
TheDrone7
EVENTS
TOP TAGS
#games
93
#apps
23
#python
24.7K
#javascript
8.9K
#html
8.4K
#fun
4.1K
#game
3.6K
#simple
3.3K
#python3
2.6K
#java
2K
#cpp
1.8K
#bash
1.1K
ColoredHue
ColoredHue
published a Post
3 months ago
28
A Funny RPG Game [ALPHA TESTING]
A Funny RPG Game [ALPHA TESTING]A Funny RPG Game WIP Updates -~-~-~-~ 2.0 - Added Home 2.1- Added Yoyo and Apron [Atk and Hp] -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- `
I'm running into a circular import error, but I need to import a variable [FIXED]
I fixed this, now this comment is just a suggestion dump.
ColoredHue
ColoredHue nvm, after I looked more into it, it doesn't seem to be able to read just a variable of a page, only the whole entire page. Which is good if you have a large amount of text you need to print but not for getting data3 months ago
MrVoo
MrVoo @ColoredHue mmmmm ok, but what I was thinking was more of a main.py with something like this: ```py read_a_file() read_another_file() write_new_file( fileOneContent + fileTwoContent ) exec('import newlyCreatedFile') ```3 months ago
ColoredHue
ColoredHue @MrVoo hmmm, I'll need to test that out to see if it works3 months ago
#ask
#help
#python
+2
rickysong
rickysong
published a Post
2 months ago
2
A Talking Ben
My Talking Ben
Made on python and added my friend (to show the project with) I tried hard, have fun!
testbip
testbip
published a Post
2 months ago
1
[QUESTION] is it possible to disable family-friendly DNS?
So I read this article: https://blog.replit.com/family-friendly-dns Which basically says: "How does it work? We did this by enabling the use of Cloudflare's family-friendly DNS resolver by default in all user repls." And it seems like it's turned on by default so I'm wondering if it's possible to opt out of it/disable it?
Highwayman
Highwayman @testbip that seems like a lot of effort for little to no gain. 2 months ago
hankertrix
hankertrix
published a Post
3 months ago
How do I make the run button call a function when the script is done running?
The repl here shows how the green run button in replit fails to call the exitcallback function which prints "Goodbye". However, when running the file using bash, using python3 main.py the exitcallback function is correctly called. You can try it by using runshell() in the console. Also, no, I can't use the runshell() function in place of the main() function, the repl will just fail to run properly. Is there any way to configure the run button so that the exit_callback function is called when the script exits? Or is this a bug I should report?
hankertrix
hankertrix @Highwayman I tinkered with the args and it seems that I can't remove any of the args without the repl process crashing. However, removing all the code related to the interpreter seems to have fixed the issue. I'm guessing it's because of using replit's prybar interface that causes Python to not register any exit handlers, since running it using a normal bash shell seems to work fine. I'm guessing most non-nix repls will use the prybar interface by default unless you configure the run button otherwise in the `.replit` file. Thank you so much for your help! I think this should be reported as a bug for prybar.2 months ago
Highwayman
Highwayman @hankertrix I'm glad to be of assistance :P There is a [feedback form](http://replit.com/support) for replit when you get bugs - thats probably the best place to post it. I've contacted them before I'm pretty sure and they're pretty responsive. :)2 months ago
hankertrix
hankertrix @Highwayman Thanks for the link! I'll send them a bug report in a bit.2 months ago
Eurobertics
Eurobertics
published a Post
2 months ago
Connfetti-DB
Connfetti-DBA PHP SQL library for multiple DB flavors. Inspired by Zend DB.
replit.nix not working when checking out PHP project with Git/Github?
Hello dear Community, as you can see, it is a simple project cloned from Github. If you hit the RUN button it shows simply the PHP verison, which is 7.2 actually. BUT: as you can see, the replit.nix file should install PHP 7.4. But this is not working when I create the project form Github. Empty Replits working as excepted, also this works, when I clone the project manually in an sub directory. Any help? Thanks in advance
Eurobertics
Eurobertics @cftech I updated my replit.nix. Unfortunately no effect. As said, it seems that replit.nix is ignored when you checkout a Git project in the same directory (which is the default when starting a Replit from a Git repository). I'm sorry.2 months ago
cftech
cftech @Eurobertics you can copy the files and format it in a another repl2 months ago
Eurobertics
Eurobertics @cftech Not sure what you mean. The Problem persists regardless I copy the replit.nix file. The main issue is, that the replit.nix file is ignored, as far as a Git project/checkout is in the same directory (which is done when starting from a Git repo). In empty Repl's the replit.nix works as expected and I can change packages. Only in that ones where Git repos are cloned in are not working. As you can see in the Repl here, I changed the replit.nix with yours and still PHP 7.2 instead of the package one 7.4.2 months ago
FlaminHotValdez
FlaminHotValdez
published a Post
3 months ago
How do I change back to the old IDE?
Yeah, exactly what the title says. The new IDE is garbage. Colors are weird, doesn't show errors, auto-indent on newlines is weird, everything is weird/downright buggy. Also, second question: What happened to ask board? It's just grouped into share? We can't ask questions anymore? Before you say "tags," there are a grand total of 6 questions (not including my own) with the ask tag. It just doesn't work. EDIT: This is literally the FOURTH POST I'm making on this SAME DUMMY REPL because I have a question NOT RELATED to any of my repls specifically. Can we please get the ability to ask a FREAKING QUESTION WITHOUT ATTACHING A REPL? Actually why am I yelling, nobody's going to see this anyways, because the ASK BOARD GOT REMOVED! Every single post on the canny asking to revert back to old IDE or have the option to change to old IDE has been responded to by a copy-pasted answer. :/
Highwayman
Highwayman @FlaminHotValdez > ASK BOARD GOT REMOVED! PLEASE CONTINUE TO YELL BECAUSE I AM JUST AS PI55ED OFF. > It just doesn't work your right it literally doesn't. the ask board was actually my favorite part of replit :(2 months ago
Highwayman
Highwayman @Highwayman owo they added a censoring thing to posts. noice.2 months ago
Highwayman
Highwayman @Highwayman huh?? why doesn't markdown work anymore? weird. 2 months ago
BearCoder01
BearCoder01
published a Post
4 weeks ago
Cycles Ecosystem?
What does repl exacly mean with using cycles to build up an ecosystem?
Whacko
Whacko @BearCoder01 I think they mean that the cycles will be exchanged throughout the website, and that cycles will be used as a digital currency.3 weeks ago
BearCoder01
BearCoder01 @Whacko ok, but is there any documantation aboute this?3 weeks ago
Whacko
Whacko @BearCoder01 I'm afraid not anywhere in the blog. The only place they really talk about this is on [cycles.replit.com](https://cycles.replit.com/). I think Replit wants to turn cycles into something like Robux or V-Bucks, for example, which can be used and spent on different things. On the form, I think Replit is asking people what they should use as things you can spend cycles on.3 weeks ago
sudosnugg
sudosnugg
published a Post
2 months ago
OPENSSL not found.
Cannot compile due to reqwest not being able to find OPENSSL. How do I fix this?
sudosnugg
sudosnugg @Highwayman thank you I will try that and get back to you.2 months ago
Scotch101Tape
Scotch101Tape @Highwayman I had this same problem and this solution worked. Thank!2 weeks ago
Highwayman
Highwayman @Scotch101Tape glad to be of assistance :)1 week ago
p1ckl3
p1ckl3
published a Post
3 months ago
Why is there an error?
When you run the program, you will get an error, in file map.py which gives little information. Anyone know what this error is?
MrVoo
MrVoo @p1ckl3 I think you're missing a `)` on line 283 months ago
p1ckl3
p1ckl3 Thanks @MrVoo!3 months ago
KarmaIsKrazy
KarmaIsKrazy
published a Post
2 months ago
How do i make my keypress exit the program
I need to know this program.
JericJanJan
JericJanJan
published a Post
3 months ago
Did ffmpeg get removed from /usr/bin?
Ignore the repl. For as long as I can remember, any repo that I create always had ffmpeg inside /usr/bin. Now there isn't. I have to go through this nix thing that I somehow never encountered before. screenshot The strangest part is I have an older repl that still has ffmpeg inside /usr/bin and it never gets deleted or anything in the countless resets it's had. Guess I should just do it the nix way, which is a little annoying. If anyone else is stuck with the same issue I had, I added a replit.nix file in the root folder (Remember to enable "Show hidden files"). Inside that file, I typed in: { pkgs }: { deps = [ pkgs.ffmpeg.bin ]; } `
9pfs
9pfs @JericJanJan That's strange. Still, the Nix thing is nice because you can have over a terabyte of dependencies with no issues.3 months ago
ZacharyRehg
ZacharyRehg
published a Post
3 months ago
string.compare(string) is returning strange values
This simple repl was only made to demonstrate the compare() function. As you can see, two strings (str1 and str2) are declared and then compared to each other. Given the values of the strings ("baseball" and "basketball"), the correct returned value should be 6, but instead the program returns 1536. When I copy the same code into codeblocks, it returns the value 1. Is there something wrong with my code?
Highwayman
Highwayman @ZacharyRehg when comparing two strings using the `std::string::compare` method, the only time you are guaranteed to get an exact value is if the two strings are equal, in which case you will get a 0. In respect to the compare method, 6, 1, and 1536 are all exactly the same value — more than 0. I suggest reading the standards again: http://cplusplus.com/reference/string/string/compare/3 months ago
Load more