« first day (3932 days earlier)      last day (1078 days later) » 

1:25 AM
I have a question. Is holding in stress bad for your mental health? Probably not the best place to ask, but just need some opinions.
 
Yes
Very much so.
 
Oof. Looks like I might not have the best mental health then. 😅
 
yeet the stress
 
I am trying.
But someday I will yeet it!
 
probably not.
 
1:37 AM
Double oof. Thanks for bringing me back to reality though.
 
You have to learn to process it and prepare for the next wave
It's about how you manage it. Not how you escape it.
 
Unfortunately I hold it in. Along with any other emotion. I’m often called “Stonewall” or “Computer.”
Because those don’t show feelings.
 
That's sorta what I mean. That doesn't sound like managing it at all.
It's tough to learn though. A therapist can probably help.
Good Luck
 
Thanks. Always good to hear what you folks have to say.
 
Yeah; a way this could end up is you being angry and not being able to tell why. And maybe you'll eventually have to live with someone and if you can't express your feelings, you'll be in for a bad ride.
 
1:50 AM
I already have that first symptom.
 
Yeah. Sorry to hear that.
 
Don’t worry. I’ll figure out this eventually.
 
It can be tough.
 
I suppose that living with one's parents does not allow one to decide much about how things are done. You get more freedom when you move out, but since one did not learn to "take their place", this learning still needs to be done, and life can be hard until it is.
 
It took me a long time to learn to accept my own emotions.
 
1:55 AM
Yes, and the people around could "hinder" the process, I suppose.
That's a shit part about growing up, and it never really ends completely, I think.
 
It certainly didnt for me.
 
@Vaillancourt Not for me. They’re trying to tell me to let go, but I don’t really know how.
 
People can tell you that they want you to be yourself but still actively be part of the reason why you don't feel comfortable doing that.
That is part of what a therapist can help you explore.
why you can't let go.
 
I guess that is true. As a kid, I was very emotional and got in trouble for it. Then I came to the conclusion that no emotion means no trouble from it. Thus, my downfall.
And although I know that isn’t the case anymore, it’s like built in to me.
Also, I was taunted for it quite a bit.
 
That is known as toxic masculinity.
 
2:04 AM
That's super annoying. I mean. If your parent contributed to this, they probably only wanted to help you, back then.
The pattern is probably "fixing" an issue by creating another issue. /shrug (I don't know about your case, and I'm not blaming anyone, as it does not really help anything.)
Teaching emotions and emotions management to kids is not easy..
 
Ohh gawd it really is a struggle.
I really hope I don't fuck up my kids
 
Heh same for me.
I believe when they're 35 or so they'll realize that I did the best I possibly could.
 
2:23 AM
I hope so.
 
 
11 hours later…
1:37 PM
@Tyyppi_77 You suggested an update to the API using structs because function templates can't be partially specialized, is that the reason?
 
i'm back
confused another channel for this one
 
Still, you're back and it's great news!
 
hehhe :)
 
hi folks, I want to have a screen in a meeting room. The screen shows a presentation in PDF format. Do you have any idea how to display the pdf in Unreal Engine?
 
google "unity display PDF" this comes up assetstore.unity.com/packages/tools/gui/pdf-renderer-32815
 
1:50 PM
@Almo: Thank you . I thought UE has such a feature without purchasing any other add-ons. :-)
Hm... it is for unity, not for unreal engine.
 
Could you convert the PDF to JPG/PNG and display that instead?
 
@Vaillancourt: It is the last resort. The pdf presentation contains overlays and animations created with LaTeX.
 
That doesn't seem like a typical use case for most game frame works - I would kinda be surprised if UE supported that out of the box.
 
Yeah, okay; I don't know, unfortunately.
No; but I could see a reason to do this for a kind of VR meeting app.
Looks like you might have a business opportunity where you could sell a plugin for UE :P
 
@KimJongUn sooo google "unreal engine display pdf"
 
1:59 PM
Hadn't considered the VR app angle - that reasonable.
 
this is why I explained how I found it :)
so if it wasn't quite right, you could go looking for what suits your needs
 
OK guys. Thank you for your time. It is time to google. :-)
 
@Pikalek: Thank you!
 
sometimes i forget this isnt a unity developer site. Unreal questions seem so rare compared to unity questions
 
2:10 PM
yeah
higher barrier to entry
 
i spent about 6 months in unreal. I dont miss it
 
heh
 
the one question i asked on unreal, which i think is a relatively simple one, still doesnt have a good answer. (In C++, how do you apply force to an object?)
https://gamedev.stackexchange.com/questions/100576/how-do-i-rigidbody-addforcevector3-in-unreal-engine
 
It really boggles me, when I search for Unreal info to help users here, how few hits I get in official documentation. Do they keep most of that info on a private developer site, or is it just not well indexed by the search engines, or...?
 
they are blueprints. If you want to write C++, they support it, but you have to figure it out on your own
the blueprints docs are pretty good
at least as of a few years ago. Ive been out of the unreal loop
nevermind. no it doesnt look good. Good luck finding what you are looking for. And if you use search bar, you just get blueprints results
 
2:16 PM
Ooof. I know we complain a fair bit about Unity docs, but I'm glad they're better than that!
Though speaking of Unity docs, there's a Chrome extension that adds user comments to doc pages, filling in some of the gaps in the official doc.
 
interesting. ill chec k it out
 
[unity] is to GD.SE as [dnd-5e] is to RPG.SE
 
user92578
@Vaillancourt Exactly
 
user92578
Or the function approach of template <typename T> void serialize(const Json& json, T& value); because that uses overloading instead of template specialization
 
2:34 PM
Yes, I think I tried that one and "it did not work" with how I did things.
The struct approach did work.
 
nwp
You should be able to replace function template specialization with if constexpr(std::is_same_v<T, U>) nowadays.
 
I'd need to see this in action, I guess!
 
user92578
It's the partial specialization that we're kinda after here though, so if constexpr doesn't quite help
 
I have this so far. And unfortunately I need to table it because it's taking for too long and I need to "produce features we can sell".
 
user92578
There you can just remove Dummy and it also works: coliru.stacked-crooked.com/a/65105916ef1fe327
 
nwp
2:45 PM
Dunno. It's a lot of complicated stuff, too much to understand at a glance for me.
I also don't understand the goal. Are you trying to add type-safety to settings saved in Json?
 
@nwp The idea is just to "deserialize" JSON into an object. The overhead only being to add description of the content of the object in the object itself.
@Tyyppi_77 Hey that's nice and super odd! Why didn't it work when I had it with "putValue"?! I'll need to try and see the difference.
 
nwp
So you want to describe the structure of a Json object in a C++ object and then load the object from a Json file, assuming they match?
 
@nwp Yep, something like that!
 
This solution linkedin.com/posts/… is promising!
 
nwp
I think I could cook up an x-macro approach for it.
It also bothers me that the variable name and property name are just barely different enough that you have to duplicate them.
 
2:58 PM
Yes, that's thanks to our naming convention :P
And it bothers me too that I have to repeat all of this. but as I said, I need to table this, unfortunately... I'll add a note to look into an X-macro for this, and if I'm to use a macro somewhere anyway, maybe we could change a bit the way we name our things.
 
nwp
On second thought I don't think x-macros help. It'll have to be regular macros.
//definition
#define SETTINGS_FIELDS \
    SETTINGS_FIELD(int, Volume, 100) \
    SETTINGS_FIELD(std::string, Version, "") \
    SETTINGS_FIELD(bool, Fullscreen, true)

//usage
std::cout << Settings::getVolume();
Settings::setFullscreen(false);
 
What do you have in mind?
 
nwp
Ninja'd
The issue with this approach is that it doesn't handle nesting.
 
I'm sure this could be done by making all of this more ugly!
I'll take a note about this.
 
nwp
The implementation magic happens in here:
    //getters
#define SETTINGS_FIELD(TYPE, NAME, DEFAULT_VALUE)                                     \
    static auto get##NAME()                                                          \
    {                                                                                 \
        return from_variant<TYPE>(QSETTINGS.value(#NAME, to_variant(DEFAULT_VALUE))); \
    }
    SETTINGS_FIELDS
#undef SETTINGS_FIELD

    //setters
#define SETTINGS_FIELD(TYPE, NAME, DEFAULT_VALUE)     \
    static auto set##NAME(const TYPE &value)         \
 
user92578
3:09 PM
My reflection system contains (among other things) this macro pyramid of chaos & hell:
 
user92578
 
user92578
I did write a Python script to generate all that for me
 
nwp
Replacing QSettings with some Json library should be trivial. I haven't looked into allowing nesting, but it might not even be possible.
 
The JSON lib we use requires us to call explicitly "isDouble" and "asDouble".
 
nwp
Well, you know that you have a double. If people stopped using garbage naming schemes you wouldn't even have a problem.
 
user92578
3:12 PM
That's kinda annoying, you will have to specialize for each integer type etc individually
 
nwp
Yeah, you can do it with a bunch of if constexpr(std::is_same_v(T, double). The circle is complete :D
 
@Tyyppi_77 Yep.
 
user92578
template <typename T>
std::enable_if_t<std::is_arithmetic_v<T>> Serialize(const std::string_view name, T& value)
{
    if (const auto source = FindSource(name))
        value = source->get<T>();
}
 
@Tyyppi_77 That's beautiful ;)
 
user92578
That's all arithmetic types with the nlohmann json library :D
 
3:16 PM
The plan is to "overload" this to allow our own types as "target" like Vector3.
@nwp That's an x-macro, though, right?
 
user92578
yeah
 
:+1:
 
3:42 PM
I think I like this font.
I don't think I prefer this font over the one that was there before, but I think I like this one.
 
@Tyyppi_77 that just looks like there's something wrong with the language.
 
I think there are a lot of things wrong with every language. 😉
 
hahah yeah
 
nwp
4:01 PM
@Vaillancourt yup
 
user92578
@Almo Definitely missing features that would replace this chaos
 
nwp
The lack of reflection is indeed painful.
 
user92578
And it doesn't even seem to be a target for C++23...
 
4:17 PM
@Tyyppi_77 :)
 
user92578
I know of variadic macros, but AFAIK there's no way to do the prefixing with those
 
Hrmmmmmmmm
You're right sorry I missed that!
 
user92578
No worries!
 
ken
9:48 PM
I don’t have a lot of experience with making apps, so I ask this question to someone who has posted at least a few apps on the google play store: what was your lowest amount of downloads/active users, and what was your highest. I just want to get a sense of what to expect. If you prefer not to send this information, have you found a website that tells me, because I have been searching for a long time, and got a lot of different information.
 
$0 is what to expect.
Most games and apps do not make a profit. Yours might be one of the exceptions to that general rule, but we strangers who know nothing about your app cannot speculate about how it would perform.
 
ken
Thanks. How about the amount of downloads? Also 0, or what? I plan on adding ads to it, will that help increase the revenue?
 
10:05 PM
You know the answer to that: you will gain revenue proportionate to the users who view the ads, and lose revenue proportionate to the users who decide not to use your app because of the ads. How those two factors balance out depends on the design of your app and business model.
 
ken
Do you recommend publishing an app, I don’t want to do it if
I won’t make tback that $25 publishing fee.
 
If you cannot afford to spend $25 to try it, then I would recommend not publishing the app.
That's a gamble. Do it only if you can afford to lose the $25 (and then some for incidental expenses you didn't predict).
 
ken
Any ideas about how to get the $25 back? I heard that it would take like 60k - 100k impressions to make back $25. And on that rate, I would need over 1k players (probably 3k+) to watch about 60 ads. On a scale of 1 - 10, how reasonable would it be that I could accomplish this. (10 would be very reasonable) You said before that you didn’t know my game, and couldn’t make a guess about how much revenue I could earn, I would say my game would be about average.
 
10:57 PM
Expect $0 then.
 

« first day (3932 days earlier)      last day (1078 days later) »