Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

CPP Levels Bug Reports

Report the bugs with the new experimental CPP levels. Use the following format:

Level Name:
In-game username:
Description of the bug:
Code: Use triple backticks when entering code
Screenshot of Error:
Console Logs of Error: Use triple backticks when entering logs

PLEASE NOTE: This is not to ask for help for CPP levels! Please only report bugs if you are SURE that it is broken!

1 Like

I know I’ve reported this before, but there’s a new format for reporting CPP bugs, so I’ll use it.
Level Name: Ingredient Identification
In-game username: TheOrbitals
Description of the bug: I can label a bottle, but I can’t assign a value to it (even though I think I have)
Code:

// A variable is a container with a label that holds data.
void main() {
    // This variable is named `someVariableName`
    // It contains the value `"a string"`
    auto someVariableName = "a string";
    // This variable is named `lolol`
    // It contains the number `42`
    auto lolol = 42;
    // Create 2 more variables and assign values to them:
    // You can name them whatever you want, and hold any value in them!
    // Use `=` to assign a value to a variable.
    auto callTheAmbulance = "but not for me";
    auto pressF = "for respect";
}

Screenshot of Error:


Console Logs of Error:

[Warning] 1000 console messages are not shown.
[Info] |Raijin's Ray| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Raijin's Ray| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Raijin's Ray| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Raijin's Ray| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Raijin's Ray| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Raijin's Ray| And it was so: (2.909ms per frame, 22 frames) (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
Simulation   : 64ms 
Serialization: 2ms
Delivery     : 0ms
FPS          : 1031.3
[Log] No frames were changed out of all – 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Error] Beacon API cannot load http://google.com/. too many HTTP redirects
[Error] Failed to load resource: too many HTTP redirects (google.com, line 0)
[Info] |Raijin's Ray| ===== Profile: None collected ===== (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Log] Did-Load-Route (app.js, line 117)
[Warning] no more jquery browser version... (app.js, line 38)
[Log] Saw view load event – "campaign-view" – "campaign-view" (app.js, line 38)
[Debug] PlayLevelView: Create LevelLoader (play-942acc10143e4ca1e355.bundle.js, line 1)
[Log] Did-Load-Route (app.js, line 117)
[Debug] LevelLoader: loading session: – e (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
e
[Debug] LevelLoader: Reason not loaded: – "worldNecessities still loading" (aether-app-1112280dc81993ebc55c.bundle.js, line 221, x3)
[Debug] LevelLoader: Reason not loaded: – "worldNecessities still loading" (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Debug] LevelLoader: Reason not loaded: – "worldNecessities still loading" (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Debug] LevelLoader: Reason not loaded: – "worldNecessities still loading" (aether-app-1112280dc81993ebc55c.bundle.js, line 221, x3)
[Debug] Loading dependencies for session:  – e (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
e
[Log] Modern plugin chosen for: 'cpp' (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Log] PlayLevelView: loaded session – e (play-942acc10143e4ca1e355.bundle.js, line 1)
e
[Debug] LevelLoader: Reason not loaded: – "worldNecessities still loading" (aether-app-1112280dc81993ebc55c.bundle.js, line 221, x2)
[Debug] LevelLoader: Reason not loaded: – "worldNecessities still loading" (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Debug] LevelLoader: Reason not loaded: – "worldNecessities still loading" (aether-app-1112280dc81993ebc55c.bundle.js, line 221, x84)
[Info] |Baldr's Cyril| Modern javascript detected, aw yeah! (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Woodhouse| Modern javascript detected, aw yeah! (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| Worker initialized after 1055ms (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Woodhouse| Worker initialized after 818ms (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Debug] LevelLoader: Reason not loaded: – "worldNecessities still loading" (aether-app-1112280dc81993ebc55c.bundle.js, line 221, x17)
[Debug] World necessities loaded. (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Debug] World has been initialized from level loader. (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Debug] PlayLevelView: world necessities loaded (play-942acc10143e4ca1e355.bundle.js, line 1)
[Warning] Automatically scrolling cursor into view after selection change – "this will be disabled in the next version" – "set editor.$blockScrolling = Infinity to disable this message" (ace-app-cd50f6e5becf7f6619b9.bundle.js, line 1)
[Log] Baldr: Let there be light upon Ingredient Identification! (preload: false) (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| Using modern language plugin: cpp (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| Generated random seed 8139515152 of type submissionCount from sessionIDs 5f5d8581433e6a00284c2b0f submissionCount 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| Turned 36 structural Thangs into 3 dissecting Thangs. (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| VALUES 4 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| The world ended in won on frame 22 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Info] |Baldr's Cyril| ESPER 0 (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Debug] SuperModel for Level loaded in – 3856 – "ms" (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Log] Saw view load event – "level-view" – "level-view" (app.js, line 38)
[Info] |Baldr's Cyril| And it was so: (8.818ms per frame, 22 frames) (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
Simulation   : 194ms 
Serialization: 3ms
Delivery     : 1ms
FPS          : 340.2
[Log] PlayLevelView: level started (play-942acc10143e4ca1e355.bundle.js, line 1)
[Debug] Level unveiled after 3.96s (play-942acc10143e4ca1e355.bundle.js, line 1)
[Error] A server with the specified hostname could not be found.
[Error] XMLHttpRequest cannot load https://metrics.api.drift.com/monitoring/metrics/event2/bulk due to access control checks.
[Error] Failed to load resource: A server with the specified hostname could not be found. (bulk, line 0)
[Warning] Automatically scrolling cursor into view after selection change – "this will be disabled in the next version" – "set editor.$blockScrolling = Infinity to disable this message" (ace-app-cd50f6e5becf7f6619b9.bundle.js, line 1)
[Info] |Baldr's Cyril| ===== Profile: None collected ===== (aether-app-1112280dc81993ebc55c.bundle.js, line 221)
[Log] could not find doc for – "getCooldown" – "from" – undefined – "for" – "this" – "of" (3) (play-942acc10143e4ca1e355.bundle.js, line 1)
Object
"with item"
n
[Debug] Built sheet:  Necromancer               2ms  Sync   (Portrait) (createjs-app-b8add7b57b59014dd529.bundle.js, line 1)
[Error] Beacon API cannot load http://google.com/. too many HTTP redirects
[Error] Failed to load resource: too many HTTP redirects (google.com, line 0)
[Log] Modern javascript detected, aw yeah! (aether_worker.js, line 9)
[Log] Using modern language plugin: cpp (aether_worker.js, line 26)
> Selected Element
< <textarea class="ace_text-input" wrap="off" autocorrect="off" autocapitalize="off" spellcheck="false" style="opacity: 0; height: 20px; width: 7.20125px; left: 51px; top: 300px;">…</textarea>

~ Orb

Just a note to everybody: Please put all reports in this thread. Please do not create a new thread per bug report. Thanks :slight_smile: It’s easier for me to find reports that way.

5 Likes

@TheOrbitals, you should put something like this:

Auto callTheAmbulance = 3224 or any number

You have to put a number after you typed how you wanna call it, not words.

Mumbo_6

auto someVariableName = "a string"; literally just did that. Variables can be values too, fyi
~ Orb

Nooo. You need to not put words after someVariableName
You cant put: auto someVariableName = TheOrbitals. You would have to put:auto someVariableName = 8888 Or the number you choose.

Get that?
Mumbo_6

It’s a string? But I could use string someVariableName = "TheOrbitals"
~ Orb

I don’t use CPP, but I just put auto Because you always put that. I don’t think you can put words in general after someVariableName

Mumbo_6

Hmm ok I’ll try doing some research.
Also auto is just one of many variable/function definers. auto is like general purpose flour: it’s can be used for everything, but there are some other definers, such as void, which returns nothing, and string, used for strings. If C++ doesn’t allow variables to be strings, then um it’s not good, but it can.
~ Orb

That makes sense to me.

Mumbo_6

Level Name: Tiresome GCD
In-game username: TheOrbitals
Description of the bug: The error message says “Cannot read property “loc” of undefined”, I am confused
Code:

// Those two guys know keys for the password.
auto friends = hero.findFriends();
float number1 = friends[0].secretNumber;
float number2 = friends[1].secretNumber;
// It's simple but slow function to find gcd.
auto bruteforceGCD (auto a, auto b) {
    hero.say("The naive algorithm.");
    auto cycles = 0;
    // We enumerate all possible divisors.
    auto counter = b;
    while (true) {
        cycles++;
        if (cycles > 100) {
            hero.say("Calculating is hard. I'm tired.");
            break;
        }
        // If both number have "counter" divisor.
        if (a % counter == 0 && b % counter == 0) {
            break;
        }
        counter--;
    }
    hero.say("I used " + cycles + " cycles");
    return counter;
}
auto euclidianGCD (auto a, auto b) {
    auto cycles = 0;
    while (b) {
        cycles++;
        auto swap = b;
        b = a % b;
        a = swap;
    }
    hero.say("I used " + cycles + " cycles");
    return a;
}
void main() {   
    // Just to be sure that the first number is greater.
    if (number2 > number1) {
        float swap = number2;
        number2 = number1;
        number1 = swap;
    }
    // Maybe you need to use another function?
    auto secretNumber = euclidianGCD(number1, number2);
    hero.moveXY(48, 34);
    hero.say(secretNumber);
    // The treasury is open (I hope so)! Go there!
    hero.moveXY(68, 34);
}

Screenshot of Error:


Console Logs of Error:

[Error] C++ error with no location information: – SyntaxError: Cannot read property 'loc' of undefined
SyntaxError: Cannot read property 'loc' of undefined
	u (aether.js:1:199212)
	(anonymous function) (aether.js:1:196541)
	(anonymous function) (aether.js:1:251924)
	transpile (aether_worker.js:80)
	(anonymous function) (aether_worker.js:116)

~ Orb
@Chaboi_3000

Level Name: Desert Delta
In-game username: TheOrbitals
Description of the bug: I probably don’t know how to define an array so it could be my fault, but the way it’s defining the array is also wrong somehow. The error message says: “Expected a ; to finish the local variable on line 4 but end of input found.”
Code:

// Only attack the enemies in the enemyNames array.
// Be sure to attack in order! 0 -> 1 -> 2 -> 3
void main() {
    auto enemyNames = ["Kog", "Godel", "Vorobun", "Rexxar"];
    hero.attack(enemyNames[0]);
    hero.attack(enemyNames[1]);
    // Attack enemyNames[2]:
    hero.attack(enemyNames[2]);
    // Attack the last element:
    hero.attack(enemyNames[3]);
}

Screenshot of Error:


Console Logs of Error: Cannot find any error messages related to this
~ Orb

@Chaboi_3000
If you wanna patch bugs, patch the Desert Delta one first, it’s one of those main levels that you have to complete to move on
Fyi, this is the correct way to define an array, and it still doesn’t work:
string enemyNames[4] = {"Kog", "Godel", "Vorobun", "Rexxar"};
~ Orb