« first day (4184 days earlier)      last day (837 days later) » 

1:56 AM
Ha! Well at least I'm in good company :)
 
 
10 hours later…
11:38 AM
0
Q: Size of an object based on a variable

entertainment animationsThe code shown below is meant to change the size of a bullet based on a changing variable. But the size of the bullet stays the same, regardless of the variable's value. image_xscale = global.Pwr; image_yscale = global.Pwr;

I posted the wrong close vote at first and retracted it, but this could maybe be closed for having no MVCCE, even if it's now solved and answered by OP.
 
nwp
This problem is very difficult to search for. I see huge value in someone having that problem and stumbling on the solution, but that seems extremely unlikely. Ideally the question would be fleshed out with that minimal example and better keywords so it can be found, but I don't know what those are. Closing the question has no merit in my opinion. It doesn't make the question go away and doesn't improve it.
Actually all that closing the question does as far as I know is prevent more answers and I don't think there is any danger of that happening. Even if it does happen I would not expect that to be a problem.
I had the question "QML resets my variable for some reason, why?" a week or two ago and it was equally impossible to search for. Arguably because that question cannot be answered.
 
 
3 hours later…
2:38 PM
@doppelgreener Based on the description of the answer, it might be tougher to make a reasonable MVCCE. Game Maker Studio is a more visually oriented dev system (i.e. put this code in this tab rather than that tab, click here to add physics, etc), so it might more complex than just sharing a block of code.
Which seems a bit ironic: visually IDEs seemed to be pitched at new comers to programming / software development. Why not make it easier for them to ask questions about their projects?
 
3:31 PM
I edited the question, inferring from the answer that the problem was that the code was in the "create" tab, not the "step", so now that problem could have been diagnosed from the question text.
 
Makes sense. How's your AI class been so far?
 
3:48 PM
Really dull, I'll confess. 😅
It's basically a live reading of the slide notes version of Knowledge Representation and Reasoning, which we were already assigned to read from the textbook. So... not really getting anything from the course so far that I couldn't get from the book.
A little awkwardness with one of the examples in today's chapter. I had to point out that an interpretation that includes my household would not satisfy the sentence ∀x[ Adult(x) ⊃ Man(x) ∨ Woman (x) ] 😉
Also some baked-in heteronormativity like Marriage(m) ∧ husband(m)=x ∧ wife(m)=y
 
nwp
They should really make up better examples.
 
4:03 PM
^ yes.
I'd amend the first by swapping a ∃ in for the ∀.
 
nwp
Eh, you don't want to change the math, only the words.
 
Depends on what one is trying to express.
 
nwp
You could say marriage is between humans, but then the polygamists immediately break it and whenever aliens land the example will once again be outdated.
 
Marriage(m) ∧ spouse(m)=x ∧ spouse(m)=y ∧ x≠y
 
nwp
It's really not easy to come up with examples. Or I'm just in the wrong mindset.
 
4:08 PM
First-Order Logic won't give us multi-valued functions, so you'd need something like BinaryMarriage(m) ∧ spouseOne(m)=x ∧ spouseTwo(m)=y ∧ x≠y
 
It can be. It's hard to appreciate the assumptions that we bake into things.
 
nwp
D(6) = D(2) + D(3) where D(x) means that some number n is divisible by x.
 
And even then it's still tough - math has axioms because at some point, you have to make some assumptions .
 
nwp
Math tends to be the only field where you have definitive proof without opinions getting in the way and it won't get outdated, ignoring sentences like "we don't currently know if".
 
@DMGregory Well, I hope it levels out into something more meaningful / educational.
 
4:26 PM
I think it will get there, once we get through the foundational stuff.
 
In the meantime, it might be worth reaching out to the authors / textbook publisher about the examples. I've rarely seen an academic publisher that wasn't looking for any excuse at all to push out a new edition.
 
Hahaha. Good point!
 
 
5 hours later…
9:35 PM
The "paradigm" pointed there can be so confusing, but that's the way to go...
In our code, we have "event listeners"; when an instance of Class A registers to listen to Event X, an object is returned that should be stored in the instance of Class A; when the instance is destroyed, the object returned is destroyed too and it automatically deregisters the instance of Class A from listening to Event X.
 
9:52 PM
I'm wondering if the problem might be how the lingering objects were created/instantiated?
 
In the context of the question? Yes, that could be helpful to diagnose the issue.
I know for our app (c++), when we run in debug through Visual studio, the debug console gets spammed for some time, but it's just listing all the memory leaks that we have.
 
Yeah, I meant WRT the original question. When I've run into app doesn't seem to quit problems, it's usually because I had manually made something w/out realizing that doing so meant I was on the hook for making sure it got wound down at some later point.
 
Yeah; maybe Unity has some internal processes that checks if the main app is down, and waits for some time before killing everything /shrug
If they want to have it insta-killed, maybe the way to go is to handle those async functions manually.
 
10:37 PM
I wonder if most "custom game engines' editors" are "internal" or "external". I see folks using DearImGUI for stuff, but I've also seen custom external tools that run the game in a pre-defined context setup by another app.
 

« first day (4184 days earlier)      last day (837 days later) »