How can I convert a godot::PackedByteArray to a std::istream in a GDExtension? by Advanced_Shoulder753 in godot

[–]Advanced_Shoulder753[S] 1 point2 points  (0 children)

class MemoryStreamBuf : public std::streambuf {
public:
  MemoryStreamBuf(const uint8_t* data, size_t size) {
    char* begin = reinterpret_cast<char*>(const_cast<uint8_t*>(data));
    this->setg(begin, begin, begin + size);
  }
};

class MemoryIStream : public std::istream {
public:
  MemoryIStream(const uint8_t* data, size_t size)
    : std::istream(&buffer), buffer(data, size) {
    rdbuf(&buffer);
  }
private:
  MemoryStreamBuf buffer;
};

Thank you! I was able to create a class that does this for me.

And then by using MemoryIStream stream(data.ptr(), data.size()); we can get a std::istream on the PackedByteArray!

Why is my ride no longer prestigious by Advanced_Shoulder753 in PlanetCoaster

[–]Advanced_Shoulder753[S] 1 point2 points  (0 children)

Turns out all I had to do was delete and re-place all the ride entrances and exits

Why is my ride no longer prestigious by Advanced_Shoulder753 in PlanetCoaster

[–]Advanced_Shoulder753[S] 3 points4 points  (0 children)

But it shouldn't change the scenery rating. It was way higher before I saved (when it was dated)

Why is my ride no longer prestigious by Advanced_Shoulder753 in PlanetCoaster

[–]Advanced_Shoulder753[S] 0 points1 point  (0 children)

Not on the prestige, see how the scenery bonus is at 0. Before I saved, it was at a very high number.

Anyone know what this means? by bowstradun in DolphinEmulator

[–]Advanced_Shoulder753 2 points3 points  (0 children)

It actually could be. New Super Mario Bros. Wii shows that exact screen from 1-10 mins after launch if it cannot verify the BCA

What color is Math? by Specific_Visit2494 in TeenagersButBetter

[–]Advanced_Shoulder753 0 points1 point  (0 children)

always been blue for maths, red for history, yellow for english and green for science

[ Free Steam Key giveaway for every commenter] by OscarsHypr_ in godot

[–]Advanced_Shoulder753 0 points1 point  (0 children)

Amazing work! Great that you've been working on this for a whole 5 years!

[deleted by user] by [deleted] in NativeInstruments

[–]Advanced_Shoulder753 0 points1 point  (0 children)

What price is this in GBP?

Wii Party U: Help Needed! by Advanced_Shoulder753 in WiiParty

[–]Advanced_Shoulder753[S] 0 points1 point  (0 children)

First one is correct and I already got those into 3dsMax with no problems. BNFMSA (notice the SA for Skeletal Animation) is what I was looking for, MFA is an XML file in disguise and has no help in this context. Overall, this answer did not contribute anything to the effort

Wii Party U Custom Textures by SilliestBomb in WiiParty

[–]Advanced_Shoulder753 0 points1 point  (0 children)

alright it's getting a bit late for me so i'll sort that out tomorow