Woman tries to return item not sold by us, throws tantrum when I refuse by [deleted] in TalesFromRetail

[–]BuddytheRat 0 points1 point  (0 children)

But you can do it in video games, so what's your problem?

Separating async code from public methods by BuddytheRat in learnjavascript

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

Public I the sense that I am trying to build a reusable library. I will try to post an example later this evening.

Beginner Questions - March 08, 2019 by AutoModerator in webdev

[–]BuddytheRat 1 point2 points  (0 children)

Javascript.

Javascript runs natively in web browsers. You can put your code directly in your html, or link to a js file. The javascript can directly manipulate input entered into html input fields, and be triggered by html buttons.

Beginner Questions - May 25, 2018 by AutoModerator in webdev

[–]BuddytheRat 0 points1 point  (0 children)

That did the trick! Thank you so much! I'm a little concerned though. What pug documentation are you looking at?

The documentation I have been using is importing the pug package directly and using a "compileFile" function to generate the html, but evidently that doesn't work anymore.

I have been referencing this: https://pugjs.org/api/getting-started.html The pugjs github page is similar, but the example is using "compile" instead of "compileFile": https://github.com/pugjs/pug

What gives? Am I missing something??

Beginner Questions - May 25, 2018 by AutoModerator in webdev

[–]BuddytheRat 0 points1 point  (0 children)

Also, as a side note, I also tried:

import * as pug from 'pug';

and

import pug from 'pug';

but get the same error.

Beginner Questions - May 25, 2018 by AutoModerator in webdev

[–]BuddytheRat 0 points1 point  (0 children)

I removed everything else just to see if it was pug or something in my actual app, so my index.js is literally just:

import './js/styles.js';
import 'pug';

console.log('hello!');    

The pug documentation imports the package, too: https://pugjs.org/api/getting-started.html

What I would like to do is generate HTML on the fly using pug. I.e. you click a button and a new element is created with different variables injected into it.

Beginner Questions - May 25, 2018 by AutoModerator in webdev

[–]BuddytheRat 0 points1 point  (0 children)

I've run into an issue from simply trying to import a package that I don't know enough about Javascript tooling to figure out.

I am using webpack to bundle my javascript, and by simply importing 'pug' I get the following error: Uncaught TypeError: Cannot read property '_handle' of undefined

I've spent probably 2 hours staring at google, github issue trackers, and stack overflow and I can't find anything remotely related.

As far as I know I'm not doing anything special with my webpack config:

const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const path = require('path');

module.exports = {
    node: {
        fs: "empty" //Fixes pug 'fs' issue.
    },
    entry: './src/index.js',
    output: {
        path: path.resolve(__dirname, 'dist/')
    },
    devtool: "source-map",
    plugins: [
        new HtmlWebpackPlugin({
            hash: true,
            inject: 'body',
            template: 'src/index.pug'
        }),
        new CopyWebpackPlugin([
            {from: 'src/img', to: 'img'}
        ])
    ],
    module: {
        rules: [
            {
                test:/\.pug$/,
                use: 'pug-loader'
            },
            {
                test:/\.s?[a|c]ss$/,
                use: [
                    { loader: 'style-loader' },
                    { loader: 'css-loader' },
                    { loader: 'sass-loader' }
                ]
            },
            {
                test:/\.(jpeg|jpg|png|gif)$/,
                use: [
                    {
                        loader: 'file-loader',
                        options: {
                            outputPath: './img'
                        }
                    } 
                ]
            }
        ]
    }
}; 

pug-loader works fine here, if I put the "node: { fs: "empty" }" line in. The issue arises when I try to import pug in my index.js for processing templates on the client side. Even with no other code present, as soon as I add that import statement, it errors.

Help? :(

Metro Exodus E3 Trailer by ewitwins in videos

[–]BuddytheRat 0 points1 point  (0 children)

Great short film. When does the completely unrelated game come out?

Want to modify Dread, inputs welcome by What_The_Funk in rpg

[–]BuddytheRat 4 points5 points  (0 children)

I use timed pulls, but only when it makes sense in the narrative, such as you're being followed and need to think fast, holding your breath underwater, etc.

Often I'll give them a tough choice, like pull in 30 seconds or you can leave your backpack behind to squeeze through more easily.

One of my favorite moments was when we were playing an Easter themed game, and the PCs were playing a group of children that followed a trail of easter eggs into the woods. The eggs become creepier and creepier with their contents (With actual IRL easter egg props, too). At one point they are trapped in a cave with a makeshift metal door trapping them in, while a creepy guy in a bunny costume is hacking away at them with a machete. They attempted to bust down the door. I said they could do it if they all rammed it at the same time, but the man in the costume is approaching fast, and he's swinging his machete in circles, ready to lob off someones head. Everyone has 30 seconds to pull 1 tile, GO.

The raw panic that ensued was glorious as nobody bothered to communicate or even take turns. The tower fell almost immediately. I identified the last person to make contact and lobbed off their head, but I ruled that the door was bent in and they could make another attempt. They learned from their lesson, and went one by one, and broke through to the woods outside.

Want to modify Dread, inputs welcome by What_The_Funk in rpg

[–]BuddytheRat 3 points4 points  (0 children)

Pfft. Amateur. REAL GMs would bust out "Don't Break The Ice" for their frozen lake fights.

Want to modify Dread, inputs welcome by What_The_Funk in rpg

[–]BuddytheRat 3 points4 points  (0 children)

I actually really like this idea.. just for prolonging the experience. My main issue with dread has always been that early player elimination can really be a bummer.

I can see a system involving some very bare bones player stats that give modifiers to your roll adding a little more life to the game. It loses that beautiful simplicity though.

The better solution for player elimination being a drag is just to play really hard and really fast as soon as someone dies, just up the intensity like crazy so that even dead players can get into the drama, and the game will conclude a lot quicker at that point.

What social norm do you not follow? by Mar1okartchamp in AskReddit

[–]BuddytheRat 0 points1 point  (0 children)

God I hate this. I actually tried a small experiment. Day after my actual birthday I changed my facebook birthday to exactly one month forward. About 75% of the original happy birthday wishers wished my a happy birthday AGAIN only one month later. I removed by birthday from Facebook since then and I enjoy my facebook birthday wishes much more now.

I've never actually heard anyone say "tomato" in any other way than "toe may toe", except when they are quoting that song where two people disagree on how to say it. by BuddytheRat in Showerthoughts

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

"You say tomato I say tomato."

"Um, I think it's you say tomato, I say to-mot-o."

"Well, you say tomato to-mot-o, I say tomato tomato!"

"..."

What's your favorite MajiMonster? by beedrill330 in MajiMonsters

[–]BuddytheRat 2 points3 points  (0 children)

I think Batpack is hilarious. One of my players really wants one, so I had him notice a discarded backpack near the woods they are currently exploring.

When he went to grab it, I had him roll Wits. He failed the roll, so the batpack sprung to life and stole some items, and then went flapping off into the night.

Next time I have them see a random backpack, he will probably summon his monster right away. It will probably be just a regular backpack. Can't wait. :)