Skip to main content
0 votes
0 answers
31 views

I'm making a small, simple game where the player catches butterflies. How could I make the butterflies move around somewhat randomly but try to avoid the player (and avoid getting stuck)? I am making ...
THESILLYELECTRIC's user avatar
0 votes
1 answer
95 views

I'm trying to convert a construct.Struct object with nested Container objects to a serialized JSON. Can someone help me? Converting the object to a dict will also work I tried to develop a recursive ...
Omri Brandes's user avatar
0 votes
0 answers
82 views

I'm building a parser for a (slightly bizzare) format that defines the tag of a data field after the value record. It is guaranteed that the value field would always be 4 bytes interpreted depending ...
qdot's user avatar
  • 6,565
0 votes
0 answers
60 views

I using Python Construct module for build\parse binary objects. Is it possible to swap Enum somehow? Because I have wrong order of my "Configuration" Enum, also, "Side" Enum works ...
Pupa's user avatar
  • 1
0 votes
1 answer
80 views

I would like to implement a SPARQL construct query which constructs only triples that are not already in the graph. Consider the following example graph: @prefix crm: <http://www.cidoc-crm.org/...
lupl's user avatar
  • 974
0 votes
1 answer
67 views

PascalString() missing 1 required positional argument: 'encoding' I am trying to run constructs.py but it just shows an error and I don't know how to fix it This isn't my script constructs.py from ...
MadDemon's user avatar
-1 votes
2 answers
193 views

I have a struct like: constexpr char defaultName[6] = "Hello"; struct MyStruct{ char name[6]; int val; }; Now I want to initialize the struct using initializer list as following: ...
Dev G's user avatar
  • 5
2 votes
1 answer
126 views

#include <map> #include <string> class A_comparator { public: template <typename T> bool operator()(const T& lhs, const T& rhs) const { // Defines a ...
Ayoub Ben Hamouu's user avatar
-2 votes
1 answer
303 views

I created an exception like this in my header_file run.h struct invalid_assignment : std::runtime_error { using std::runtime_error::runtime_error; }; I dont understand the using std::...
awwd's user avatar
  • 31
0 votes
1 answer
306 views

Using Construct 3 to build a game. I want to change this function in the code below (which just randomly assigns a frame count in an array) to something that isn't random, but instead loops in order ...
Michael Teller's user avatar
0 votes
1 answer
125 views

Let's say I have: numResults (Int16ul) resultItems[numResults] where the resultItems is constructed like: ID (does not always increase) strLen my_str[strLen] Now I understand, that I have to use ...
Startin Mohanzl's user avatar
2 votes
3 answers
79 views

I don't really know the Python language, so I'm asking for help from experts. I have a simple script and I need to add a construct to it try: except: this is necessary so that the script ignores that ...
Dew Debra's user avatar
1 vote
2 answers
2k views

What are the ramifications of assigning a class variable when defining the class versus in the class constructor? Is the variable assigned in the class definition accessible by all class instances? ...
Carter Canedy's user avatar
0 votes
0 answers
1k views

Is there no __constructor() to run on an entity class i doctrine (symfony 5)? I'm trying to initialize some default values for my entity, and then override them with parameters from the services.yaml ...
Matt Welander's user avatar
0 votes
1 answer
889 views

I would like to ask what could be the problem with my code. The situation is that I would like to read some data from a config.json file, and I have to use it in a class. My idea is to use a ...
smate's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
16