@duane is right, you need to autoload to do a global. But curious - why are you needing a global here? Is there another object that uses the value you have?
- Edited
I agree with @cybereality and @duane that you shouldn't be messing with yield/await if you're a beginner, and instead approach it in the way @DaveTheCoder suggested. That being said, making a coroutine that calls your function periodically may be an elegant way to do it because you see an explicit loop in your code, which is neat:
func call_consecutive(method: Callable, delay: float, number_of_calls: int) -> void: while number_of_calls: method.call() await get_tree().create_timer(delay).timeout number_of_calls -= 1 func _ready(): var move_to_next_position = func(): print("MOVING TO NEXT POSITION") call_deferred( "call_consecutive", move_to_next_position, .5, 10 )
It could be particularly useful if you want to do something in irregular intervals, or need to check for some conditions in-between the calls:
var some_condition = false func call_consecutive(method: Callable, delays: Array) -> void: for delay in [0] + delays: await get_tree().create_timer(delay).timeout method.call() if some_condition: break func _ready(): var do_the_thing = func(): print("DOING THE THING") call_deferred( "call_consecutive", do_the_thing, [.5, 1.0, .3])
- Edited
@Erich_L I don't see how a language model can ever "replace" human thought? In its essence it's just a database lookup. GPT, for example, can "say" or "code" only that which humans already said or coded. It can't and never will be able to implement a new algorithm from a textual description that it sees for the first time. It doesn't do programming... or thinking. There's nothing even resembling conceptual thinking there. It's just an intricate statistical analysis of enormous body of existing text, aggregated thanks to the internet and hordes of humans willingly typing all kinds of stuff into it. And as @duane pointed out, all of that text is implicitly tagged. That's the essence of what we currently call ai. Fueled by all the recent hype from companies who want to sell magical ai products to mass consumers, people have shown a strong tendency to project "ghost in the machine" entities into what these software products output. It's a peculiar form of modern superstition. I call it "digital pareidolia". Ok for common folk to think we're in some kind of B sf movie, but software engineers should know better.
Erich_L As far as I know humans labeling data is largely already a thing of that past
I'd disagree here, at least in the case of pixel data for image generators. If you want ai to emulate humans, your best bet is to train it with human tagged data. Ai trained on ai tagged data would only mimic itself. This is suboptimal if your goal is to incrementally improve the emulation.
@duane I don't think we'll even need an AI spotter. By mere power of hyperproduction, synthesized images will become boring and easily recognizable by anyone, losing all of the allure they currently appear to have. Just like lens flare effect did in the 90s
Personally I have to admit I am all for it. Though when I had Wombo.art generate my sewage pipe piece, I started with my own crude drawing done in paint. A few iterations later and I got a shaded image I was happy with. I think the trick here to use such tools more efficiently is to not rely on the text prompt. For us in game dev, we often know what general shape or angle we want for an image so you can save a lot of time by using the option to generate an image based on a pre-existing one. Previously I thought (as I assume many do) that it's all about the text prompt. I beg to differ. I say take a page out of the average artist's playbook and start with an image reference reference.
@duane I like your take, I assume that no, you don't/wouldn't feel any guilt at all even if starting with a "protected" image.
@xyz As far as I know humans labeling data is largely already a thing of that past. "Otherwise the ai system will just grind itself into derivative stagnation." I have not experienced yet this even in the slightest. I think that most of us maybe besides our esteemed futurist cyber are looking at these models in their capacity to replace human thought rather than to aid it.- Edited
@Tomcat
They are talking about the game "Diplomacy", which is a strategy board game invented in the 1950s, as well as an online game of the type turn based strategy.@duane
There's a paper on the subject:
https://www.science.org/doi/10.1126/science.ade9097Edit: Nevermind, interactive doesn't seem to be my thing, I've been on the command line for too long, the link is behind the OP image :-)
@duane I've wanted to say this for a while but I keep forgetting. I listen to a ton of punk, and everytime I see your face on this forum, there's a dude screaming in my speakers and it's not a far stretch to imagine it's you. I wanna let you know that in my world, you have a great voice. <3 (not gay, just masculine admiration(unless all this time you've been a 19-25 year old girl(in which case, whats your number?)))
- Edited
duane Well, you are welcome to put your money(time) where your mouth(keyboard?) is, welcome to the moderation team. Remember that the topic should be formatted as a suggestion and not a demand or rule.
You should now have access to the moderation tag/category so you can create the working topic for it there and get also feedback from the rest of us(mods & admins), I'll split the other comments from it and move it to a more appropriate category later when we are all in agreement that it's in a good state for that. A copy of the WIP post can also occasionally be posted here to gather some feedback more openly.
For reference here is the current/old pinned topic I see this replacing:
https://godotforums.org/d/27022-getting-started-on-the-forumsWhich is to say that, something already exists for this(sort of) actually but the way stickies(pins) and categories(primary tags) work, the stickies are only visible in the landing/latest posts page if you haven't yet read them.
The 'how to ask better questions' or such post could be added to it or you could add other posts to your topic covering the same info from there and your topic could become it's replacement then, because the other topic is from the old forums software days and frankly a bit outdated now. So I'm inclined to favor the latter.
I'll still need to create a top/header link to some central topic/page that would link to all the other important topics/stickies we have later. Cause frankly IMO the sticky/pin system in this forum software doesn't work all that well for the classic purpose. I also still have to get around to re-juggling/reformatting or merging the different primary tags/'categories'...
edit: @duane I should probably clear it up, I'm not trying to force you to actually take this on, but you seem to have put more thought to this recently than I have managed to and probably deem it more important right now than I do, so it's meant to be a formal approval on my part for you to tackle this if you are willing to. But feel free to let me know if you aren't or can't afford the time.
So, I think you might be right, @duane . It seems the OP wants this:
var obj = Factory.create(MyClass)
Which is don't believe is possible, but let me check. However, if you already know the class name, you can do this, which is less code and more clear:
var obj = MyClass.new()
- Edited
@cybereality said:
I've noticed the the length of an argument on the internet is inversely proportional to the validity. If you know what you are talking about, you can say it succinctly in one or two sentences. This is why I think those 1 hour videos are mostly bogus, which could be explained simply in 15 minutes.I believe this is true 99.999% of the time… but 0.001% of those requiring detailed answers exist.
@duane said:
I suspect that effective teaching is only a part of the equation. It's more important to get people interested in the subject. If you're interested, you will learn one way or another. If a video can do that, it doesn't have to be a particularly efficient teacher.Children need to be interested in learning. If an adult wants to learn something, he is already interested in learning. This is the difference between teaching adults and teaching children.
- Edited
@duane said:
My linux "desktop" is pretty much non-existent -- no taskbar, no icons, etc. I figure any time you spend looking at the desktop could be better spent looking at an actual program. I use key-chords to start my favorite programs, and generally start anything else from a shell. I'm sure I could find something similar for windows, but it probably wouldn't be included in the installation.It's a standard option in the shortcut properties, probably starting with XP or even earlier. Sorry, it's in Russian.
But there are free programs for this.
…you can almost always count on windows drivers.
Exactly, it is. "Try it, maybe it'll work."
But I think that the best thing about linux is just the feeling that I get when I realize that 99%* of the software I'm using was made by people who didn't worry about making a profit. They just had an itch to create new software, and were happy to share with everyone.
I'm working with completely free software right now — that's what I need for my project. And it seems to be working. And Windows itself… well, it came with the tablet.
@cybereality said:
Optimize your life, not your computer.By optimizing my computer I make my life more comfortable.
__I have plans to try Linux, but not before I build a desktop computer.
- Edited
@duane said:
I used to tell everyone that I didn't need to play games -- when you use linux, the operating system is a game.From my point of view this is a disadvantage of the operating system. I expect the OS to simply run a program or a game. I can no longer name the year in which I installed my Win 7. It has survived installing service-packs, removing telemetry, 2 moves via cloning: HDD 2Tb -> HDD 4Tb -> SSD 960Mb and works fine.
Is it suggested to install a new system every 10 years?!!!
Pardon mi…
Maybe I'll try Linux in the future, but there's a pretty big psychological barrier to overcome.
@cybereality said:
Making games is another type of game.Creating games is probably the most fascinating type of game. Unfortunately underrated. Not everyone can create games from scratch, but a significant number of people can refine games they like to create additional content to them. Very few games allow players to expand on them. NWN has an add-on coming out 20 (twenty!) years after the game's release!!
- Edited
@duane said:
Of course, if all you ever do on your windows 7 machine is play games, it's not so much of an issue.Our whole life is a game. Creating games and programming is also a game.
@cybereality said:
Windows […] has several pretty huge security holes that make your PC wide open. It's honestly reckless to run it (some can be injected by malicious ads, without you even clicking anything, or remotely). It's like going to a party where everyone has COVID and not wearing a mask, or doing something else that's inappropriate to talk about on the forum.This can be said about any version of Windows. =)