« first day (2710 days earlier)      last day (2242 days later) » 

12:04 AM
Welll... That dungeon guardian just scared the crap out of me
 
Lol.
 
user9107868
@Cerbrus thats what they are supposed to do.
 
user9107868
@Cerbrus get revenge with heart arrows... o wait that was last month.
 
:P
 
user9107868
heart arrows stun anything... even the wall of flesh.
 
12:06 AM
Lol. Don't use any on me, then. :P
 
user9107868
not players i think.
 
user9107868
The only things inmmune are players and the Moonlord.
 
Moonlord?
 
user9107868
Final boss of PC
 
user9107868
Final boss of PE is ocram
 
12:09 AM
Huh. Interesting..
 
user9107868
What version do you play?
 
I don't play it. Lol
But I think I've heard of it..
 
user9107868
It's hated on because people think it is a knockoff of minecraft
 
lol, hated.
 
:P
 
12:10 AM
it's one of the most popular games in the world.
 
user9107868
rlemon maybe in canada
 
behind minecraft, but still not hated.
@TheOneWhoMade no, the world.
 
Lol.
 
user9107868
rlemon Still behind fortnight
 
I'm surprised I haven't heard if it.
 
user9107868
12:11 AM
fortnight?
 
@TheOneWhoMade "[Fortnight] [sic] is hated on because people think it is a knockoff of pubg"
 
No, PE. :P
Or whatever it's called. :P
 
Just found this waterbolt spell... Spammy, penetrating and bounces off walls.
 
user9107868
PE stands for Pocket Edition, Or in other words, phone/tablet versuin.
 
That might help with some bosses :D
 
12:13 AM
Ah.
 
user9107868
@Cerbrus waterbolt?
 
I knew that :P
 
user9107868
WATERBOLT?
 
No..
 
user9107868
Actually, considering what stage of the game you are in, thats fine. Cerbrus.
 
12:14 AM
I've also got 2 magic swords, one that rains stars, and one that also shoots magic bolts... They seem decent
 
user9107868
@Cerbrus look for the Murumasa
 
user9107868
@Cerbrus Starfury and Ice sword?
 
SF and enchanted sword
 
@Cerbrus get your yoyo game on
 
user9107868
@Cerbrus what you need is this: terraria.gamepedia.com/Star_Wrath
 
12:15 AM
I had one, but that was rather low damage though
@TheOneWhoMade Dude, I just started yesterday
 
user9107868
Oh.
 
just get meteor
 
@Cerbrus so get a better one 😛 also with the hitback you can make lots of rapid hits in short amount of time
 
:P
 
space gun OP
 
12:16 AM
@rlemon True that. Had a chained knife, that one was beast at close range
 
user9107868
@rlemon which is better: Terrablade or Blizard staff?
 
Still got it stashed somewhere
@rlemon So that's what happened to that one enemy...
 
I used a yoyo after vampire knives to get to end game
 
Interesting
 
12:17 AM
there are a bunch of different yoyos tho
 
user9107868
Vampire knives are sick. But i have a better combo...
 
terraria.gamepedia.com/Amazon That should be do-able
 
user9107868
Armor:
Spectral Armor

Equips:
* Mana flower
* Nature's gift
* Celestial Emblem
* Celestia Cuffs

Weopans:
* Blizzard Staff

Directions:
Hold down the Blizzard staff directly above you.
 
Although... Im'm nowhere near that jungle, I think
 
what size world are you in?
 
12:20 AM
large
 
lol
yea, first play small world is recommended :P
 
@TheOneWhoMade Oh, you play the pleb version
 
Damnit.
 
Lol.
 
user9107868
@KendallFrey say that again.
 
12:20 AM
@Cerbrus got much stuff? maybe start a new world
 
@Cerbrus protip: it's the opposite direction as the snow
@TheOneWhoMade I said, you play the pleb version
 
Found the dungeon though. Took me most of my iron to build a rail to it.
 
user9107868
@Cerbrus there are better things to use iron for.
 
@Cerbrus okay so the jungle is opposite that
 
@TheOneWhoMade I disagree. The railway is glorious :P
 
user9107868
12:22 AM
@Cerbrus yes glorious but untill mid-game there are better things for iron.
 
he can just get more iron
clam down
 
once you're rich, just put in a teleporter
 
Yea
There are teleporters?
Sweet
 
oh heck yea
 
yea, you can wire up some interesting things
 
user9107868
12:23 AM
rlemon too much time so lazy I built my own teleporter hub... with 27 combos
 
they're a pain to set up, which is fine because once they are they're amazing
@TheOneWhoMade I can't even think of 27 places to go
my teleporter has I think 8 destinations
 
user9107868
@KendallFrey I'm so lazy that I won't go halfway across the world.
 
user9107868
Also, i made an infinite water generator.
 
asphalt + sky highway
I like to go old school
 
Yeah but I don't usually go halfway across the world unless I'm going to somewhere I already have a ateleporter
 
12:25 AM
@TheOneWhoMade so, like, everyone.
 
@TheOneWhoMade I have an infinite lava/water/honey/obsidian generator
 
user9107868
@KendallFrey same
 
@KendallFrey so, like everyone
 
it's located in a terrible spot though
 
my honey generator isn't beside my lava generator and I'm way too lazy to move it
 
user9107868
12:26 AM
@rlemon do you have a NPC flag with a star on it? :P
 
@TheOneWhoMade I have 1400 hours in the game. albeit a lot of those were from ~2015
 
user9107868
@rlemon list your top 10 items, in favorites
 
why?
 
user9107868
@rlemon curious. I'll list mine if you ask.
 
spoiler, I'm not going to ask
 
user9107868
12:29 AM
@rlemon o i forgot Cerbrus was here.
 
user9107868
try this combo some time. Grapple to the ground and hold the blizard staff above you.
 
user9107868
11 mins ago, by TheOneWhoMade
Armor:
Spectral Armor

Equips:
* Mana flower
* Nature's gift
* Celestial Emblem
* Celestia Cuffs

Weopans:
* Blizzard Staff

Directions:
Hold down the Blizzard staff directly above you.
 
user9107868
You end up taking enough damage to kill a player 3000 times.
 
user9107868
but 0 deaths.
 
Wow. How's that possible?
 
12:30 AM
Oh... I've got 2 teleporter potions....
They may bring me close to a jungle
Go get mats for that yoyo
 
user9107868
@Cerbrus careful with those.
 
@Cerbrus teleport potions are fun on a new world.
 
user9107868
^^ but yes
 
Not like I can lose anything
 
just make sure you have a mirror or recall pots incase you port somewhere silly.
 
12:31 AM
I've got a dozen recall pots
Booya! Ocean far left side of the map
Dungeon is right side
 
there is an ocean on either side
pass the dungeon and you'll find it
fuck, I do this to myself every time
WHY DO I WATCH THE LAST EP OF HIMYM
😬 worst ending in TV history
 
@rlemon: I'm looking for the jungle that's on the other side than the dungeon is
I landed in the ocean :P
 
then you went past it
 
So now it's just a short walk back
 
look for these type of tree
 
12:40 AM
I hope :P
 
and mud instead of dirt
 
That looks fun. ^_^
 
user9107868
@AidanM You get stuck in a loop. It starts when you take damage. The Celestial Cuffs give you mana when you take damage, and the spectral armor makes you get health when you deal damage.
 
Found those trees
 
@Cerbrus okay, now dig down
 
user9107868
12:43 AM
rlemon what are you doing? Theres a cave in there.
 
user9107868
Just walk into the cave
 
Looking for a spot that isn't covered in a layer of water
Finding some chests though
 
make a dam and dig through the water
 
user9107868
@Cerbrus don't drown.
 
user9107868
 
12:46 AM
No worries. Just found flippers
 
water negates fall damage.
 
user9107868
@Cerbrus you can still drown.
 
so putting a pool at the bottom of a shaft before you get an accessory that will negate it is nice to have
 
user9107868
Fun fact: I don't take fall damage.
 
user9107868
Another fun fact: I move faster underwater than on ground.
 
12:49 AM
@rlemon I've got those claws and feet things
And a grappling hook
 
user9107868
@rlemon I fell like this applies to my terraria stuff:
 
just wait till you get wings or a jetpack
end game is a UFO you can fly around in
which is so much better
 
user9107868
 
try to get rocket boots
first you have to defeat a goblin army, then build a house for the goblin NPC
they dramatically improve your maneuverability
 
user9107868
@KendallFrey sssshh let him figure it out.
 
user9107868
12:50 AM
@KendallFrey but nothing beats fishron wings, which you can't make.
 
UFO beats all wings
 
@TheOneWhoMade my wings beat fishron wings
 
user9107868
@KendallFrey speak their name
 
solar wings
 
user9107868
@KendallFrey sorry, title is unavailable.
 
12:52 AM
wat
 
Lol.
 
are you high or something
 
user9107868
@KendallFrey no. They are unavailable.
 
I dunno what you mean
 
user9107868
AKA i can't get them 'cus Pillars don't spawn 'cus Cultists don't spawn 'cus I'm in PE
 
12:53 AM
32 mins ago, by Kendall Frey
@TheOneWhoMade I said, you play the pleb version
 
user9107868
You got it.
 
user9107868
@KendallFrey I'm sure I could beat you and @rlemon in a 2 v 1 fight.
 
I'm sure Kendall would kill you in about 8 seconds
 
How?
 
I wouldn't even need to show
 
user9107868
12:57 AM
@rlemon Kendall just denied you.
 
no, I don't think he did
 
No, I was talking to you
 
Lol.
 
user9107868
@KendallFrey at least 20 tricks up 4 sleeves.
 
12:58 AM
Fuck your sleeves, I have moon lord drops
 
user9107868
@KendallFrey fishron drops.
 
user9107868
@KendallFrey or, Ice queen drops.
 
are you still on about that puny blizzard staff
 
user9107868
Anything wrong with it?
 
user9107868
12:59 AM
I hurt you, you take damage, I heal.
 
Blizzard Staff: 58 damage
Lunar Flare: 100 damage
 
user9107868
@KendallFrey you got the numbers wrong. Blizzard staff: 109 damage.
 
I'm not afraid to check sources, man
 
@KendallFrey he's thinking about his own staff with modifiers
which, if that's the game we're playing, you just add modifiers to yours
 
user9107868
Mythical Blizzard staff.
 
1:02 AM
@TheOneWhoMade the lunar flare is 100 without modifiers.
 
I don't suppose it crossed your mind that mine might also have modifiers
 
user9107868
Legendary?
 
> The Lunar Flare behaves very similarly to this weapon, except that its projectiles travel through walls, are more precise, and have a higher DPS, making the Lunar Flare essentially a direct upgrade. In turn, the Blizzard Staff can be considered a direct upgrade of the Meteor Staff.
from the blizz staff wiki
lol
fail
 
user9107868
Legendary Terra Blade
 
Remind me again, what are you using to heal?
 
user9107868
1:03 AM
@KendallFrey said Blizzard staff. Healing 100 hp per 0.7 seconds.
 
The wiki says nothing about this supposed healing ability
 
user9107868
@KendallFrey armor combos.
 
Lol.
 
@TheOneWhoMade Then answer the fucking question properly
 
user9107868
45 mins ago, by TheOneWhoMade
Armor:
Spectral Armor

Equips:
* Mana flower
* Nature's gift
* Celestial Emblem
* Celestia Cuffs

Weopans:
* Blizzard Staff

Directions:
Hold down the Blizzard staff directly above you.
 
1:06 AM
None of those give any healing that I could find
 
user9107868
Spectral Armor = Heal
 
user9107868
!!afk nighttime
 
Lol. He's gone, then?
 
user9107868
1:07 AM
Sorry. spectre
 
Yeah spectre is shit compared to nebula
 
user9107868
Spectre Hood:

Life steal orbs (set bonus): Magic damage dealt by the player spawns healing orbs that fly to the player, restoring health by 20% of damage done (dealing 50 magic damage heals 10 health). In team multiplayer, the player with the lowest health is healed instead.
 
user9107868
@KendallFrey fine I would use Spectral if you wish.
 
user9107868
!!afk I said nightime
 
Man I would love to see your face if I just walked under a roof and you were holding a blizzard staff
 
1:15 AM
Lol
 
@KendallFrey I would love to see his face when he reads the wiki and notices that it continuously says that your set is an upgrade to his set
 
10 |     components: HashSet<Component<&Any>>
   |                                   ^ expected lifetime parameter
@ShrekOverflow wat
I don't have any lifetime as part of the Component's definition; why does rust say that I need one here?
 
I would love to see his face if I decide to take my main and one-hit him with my solar eruption
 
pub struct Component<T> {
    pub instances: HashMap<i32, T>
}
 
Done, got my Yoyo :D
 
1:20 AM
now get a counter weight
 
What's the best way to learn Canvas? I want to try and make something with it...
 
fillRect
done
 
@AidanM You just answered your own question
 
@AidanM beesandbombs.tumblr.com remake these in Canvas
 
:/ I don't see how.
 
1:24 AM
with your fingers and a keyboard
 
~_~
 
@rlemon wut
 
I'm asking where is the best place to learn how to use Canvas.
 
@AidanM MDN
unless you have a specific thing you wanna learn
"make a game" isn't specific
 
Looking it p on the wiki
That travellingmerchant is the one that shows up every now and then?
 
1:26 AM
No, I know.. I'll check out MDN.
 
@AidanM for future reference, any time you think "where can I go to learn this thing about JS" MDN is probably going to be the first stop
if you can't find it there, then ask.
 
HAMMERTIME!
 
@Cerbrus Yeah, he spawns near your base/town and stays for a day
 
Alright.
.. Why does the bot do that?
 
You're probably more likely to get a counterweight from the skeleton merchant
 
1:29 AM
I'll see about that tomorrow
Already got way too many trinkets
Inventory space is shrinking
 
1:46 AM
It's so quiet... :P
 
1:59 AM
There's actually a YouTuber that has started offering professional Factorio coaching. I thought that was mildly interesting.
 
What's Factorio coaching?
 
coaching about Factorio
like hockey coaching, but for Factorio instead of hockey
 
Sorry, let me rephrase: What's Factorio? :P
 
oh you poor little urchin
 
I'm not an urchin..
:P
 
2:02 AM
@KendallFrey fun fact: urchin means hedgehog
they're literally hedgehogs of the sea
 
Lol. I'm not a hedgehog either.
 
2:43 AM
Soo... What's everyone doing? :P
 
user5891775
@KendallFrey do you have to be smart to play factorio
 
No but you have to be smart to play it well
 
Lol.
 
user5891775
I remember you doing some math sh*t on a paper for the game
 
Lol.
What's that supposed to mean?
 
2:54 AM
@AidanM 2+2=4
-1 that's 3
quick maths
 
Lol.
 
user5891775
@AidanM dude you Lol a lot
 
... Is that a problem..?
 
it makes the laughing seem... far less ginuine
 
Mmmm
Alright..
 
2:57 AM
@AidanM maybe replace "lol" with "chuckling sensibly"
 
user5891775
didn't mean to be rude
 
Thin mints are fantastic for a cold.
 
@rlemon now that's just weird..
 
!!giphy sensible chuckle
 
2:58 AM
@FartyMcFartface oil ratios are a pain right in the intergluteal cleft
 
o shit
my server's down
 
Someone must have injected a chromosome
 
weird. nginx was borked
 
Weird indeed..
 
o/
 
3:06 AM
Hola
 
I've been putting off learning JS promises (using vanilla) for a long time, but I'm working on a project where I need them. It's early on so changing the design is realistic. I just have this impostor fear/syndrome that I'm going to have to draw this big flowchart of all the promises and resolve/reject. Can someone reassure me?
 
promises are easy
made even easier with async/await
 
I was hoping so. What do you suggest as a design guide? I can figure out the code easy enough, I just don't know where to start
 
I'm not sure what kinda design guide you'd be after
 
Right now I'm just loading a couple elements into a web page, then want to use some JS to populate/manipulate, but I'm finding that my JS is firing off before the other JS that loads my elements runs
So I get null references
 
3:12 AM
loadElements(props).then(doSomeShitWithThem);
so you want something like that?
 
More or less, yes. Trying to keep things modular as much as I can help it
 
okay, well have you got any code you're questioning?
 
Specific example is I'm loading a <select> then I want to add the options with JS, but my code to add JS runs before the select exists
Sure, one min
 
@rlemon, what would you think of me making a platformer with HTML? :P
I think that's my next project for the Games site.
 
sounds interesting, but why would you use HTML?
 
3:16 AM
So that I can embed it online?
 
so you mean Canvas? or like a classic DHTML game?
 
Canvas, yeah.
Well..
 
sure, sounds fine
 
I'm mainly following MDN..
 
@rlemon The select gets loaded here in index, and I want to run this code once it has loaded. At the moment, the latter code runs before the former, hence null reference
 
3:19 AM
you're already using fetch
so just make that function return a promise
 
@rlemon So instantiate a new promise within the function, and add resolve/reject logic, then adapt the other code?
 
no
you already have a promise
just return that
fetch returns a promise. each .then in the chain returns a promise as well.
so return fetch().then().then().then() .... is valid
 
OK, now I'm a bit confused how I would apply that to my code
 
then you can await loadHTML
 
(take it easy on me please, I'm a SQL guy, JavaScript is still mostly sorcery to me)
 
3:22 AM
function loadHTML(options) {
  return fetch(options).then(res => res.text()).then(whateverElseYouHave);
}
then loadHTML returns a promise
one you can .then or await
 
Preferably don't mix .then() and await lest it gets confusing
 
Where would I call loadHTML from then, as an example? In the HTML when I load the page, or in my other script(s) to manipulate the DOM of that element?
 
you answered that already
you want the HTML loaded before you try to access it
 
So... is this right? Load the HTML when the page loads, side effects take care of putting it in the page, then return a promise, and then the rest of the JS executes?
 
no you control the flow still
promises just let you control them without ugly callbacks
(well, not just, but it's a big selling point)
loadHTML(options).then(manipulateElements);
that would allow you to do something like that
 
3:28 AM
Should I chain the JS that does whatever after the element exists in .then(...) ? I was hoping to keep it somewhere else, but I can manage
 
Well, both
put it in a function, pass that function to then
 
Makes sense. Thank you so much.
 
3:45 AM
A toast sandwich is a sandwich made with two thin slices of bread in which the filling is a thin slice of buttered toast. An 1861 recipe says to add salt and pepper to taste. == Victorian recipe == A recipe for toast sandwiches is included in the invalid cookery section of the 1861 Book of Household Management by Isabella Beeton, who adds, "This sandwich may be varied by adding a little pulled meat, or very fine slices of cold meat, to the toast, and in any of these forms will be found very tempting to the appetite of an invalid." == 2011 publicity == In November 2011 the toast sandwich...
 
Lol. Very funny.
 
o.O
 
4:10 AM
wut
 
Nothing, I'm just trying to get Phaser to work... ~_~
It's not working properly in the project I'm trying to work on.
Cause I'm trying to follow this tutorial with Phaser - mozdevs.github.io/html5-games-workshop/en/guides/platformer/… - but Phaser main.js isn't working at all..
And I have it installed.
 
5:02 AM
Is doing try-catch inside a promise kid of overkill?
var someFunction = function() {
  return new Promise(function(resolve, reject) {
    try {
      /*stuff*/
      resolve();
    }
    catch(err) {
      reject(Error(err));
    }
  });
}
Anti-pattern, or fine?
 
5:41 AM
@Phrancis I've done that many times before. I don't see why it would be a problem; there's no other way to catch an error in synchronous code.
 
@TobeO Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
Without the try/catch, the error would escape and never reach a .catch() callback, AFAIK.
 
@TobeO OK thank you, I'll give that a try!
 
No problem
@AidanM Are you sure you're using Phaser 2? That tutorial looks like Phaser 2, but Phaser 3 just came out. Several breaking changes, haha
 
The code in my .then() ran before the code in the promise, if ever slightly, should I worry?
 
5:49 AM
Not sure why that would happen. Is all the code above the resolve() call synchronous??
 
Actually, no, there are 2 promise chains, the resolve() call is at the very end of the promises
const loadHtml = function(parentElementId, filePath) {
    return new Promise(function(resolve, reject) {
        const init = {
            method : "GET",
            headers : { "Content-Type" : "text/html" },
            mode : "cors",
            cache : "default"
        };
        const req = new Request(filePath, init);
        try {
            fetch(req)
                .then(function(response) {
                    return response.text();
                })
                .then(function(body) {
 
Ok
See this
You can remove the try/catch, since you have async code.
Note the return.
 
1 message moved to Trash can
@TobeO Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
Change it to return fetch(...).then(...) instead of just calling fetch
Otherwise you get a race condition
 
Something like this?
const loadHtml = function(parentElementId, filePath) {
    return new Promise(function(resolve, reject) {
        const init = {
            method : "GET",
            headers : { "Content-Type" : "text/html" },
            mode : "cors",
            cache : "default"
        };
        const req = new Request(filePath, init);
        return fetch(req)
            .then(function(response) {
                return response.text();
            })
            .then(function(body) {
                // Replace `#` char in case the function gets called `querySelector` or jQuery style
 
5:57 AM
Yes
But
Since you're already returning a Promise (the call to fetch), you don't need to wrap it in return new Promise(...). Just return your fetch call directly from your function.
 
I'm following in principle but I don't think I understand how to do that in code
 
One second
 

« first day (2710 days earlier)      last day (2242 days later) »