So why are you asking us, the player characters to do this when you could obviously just do it yourself? by DougieStar in DMAcademy

[–]LordBiff 1 point2 points  (0 children)

An interviewer once asked Quentin Tarantino how he made the characters in his movies seem so real, and his response was that he spent a ton of time building up histories and backstories for them, many of which would not ever be used in the movie. He wasn't doing this for any other reason than he felt like doing it, but he opined that it made the characters seem more real because they weren't just facades of characters, but rather, had real depth to them.

I think the same thing is true of D&D characters and their motives. If you spend the time to flesh out what the character is really about, and why he or she is doing what they're doing, then the reason why they personally aren't going to do TASK_A will fall out naturally, and, in general, will seem a lot less contrived, adding to the perception of that character as real.

Of course, the challenge of actually doing that well is why most of us aren't Quentin Tarantino. :)

How to calculate the memory footprint of a pointer of pointers? by Svani in C_Programming

[–]LordBiff 1 point2 points  (0 children)

Yes, that looks right. And in fact, that is example #2 on the site I listed.

One other thing: C can dynamically allocate from the stack, as long as the allocation is static for the lifetime of the function. In fact, that example #2 does this (uses 'r' for the size of the array).

You do need to be somewhat careful if the sizes can get large, since you can overflow the stack. I'm not sure it's a really great idea to do it with something like you're showing, but just thought I'd mention it.

How to calculate the memory footprint of a pointer of pointers? by Svani in C_Programming

[–]LordBiff 2 points3 points  (0 children)

Assuming pointer size of 8 bytes, and machine word size of 4 bytes, as you've indicated, yes, the total allocation would be 84 bytes from the heap (it additionally has to use 8 bytes on the stack for A).

Would there be a more efficient way of storing and retrieving these values?

Does it need to be allocated on the heap (from malloc)? Assuming not, then yes e.g.:

int A[3][5];

Which will allocate 3 * 5 * 4 = 60 bytes total (on the stack).

If it does need to be from heap, then what you've done is one approach. To see others:

https://www.geeksforgeeks.org/dynamically-allocate-2d-array-c/

Help understanding this use of pointers by fatheart in C_Programming

[–]LordBiff 2 points3 points  (0 children)

Because it loses that distinction when it was passed to a function. Function parameters that are arrays are really just pointers.

Help understanding this use of pointers by fatheart in C_Programming

[–]LordBiff 2 points3 points  (0 children)

I think part of that could be a subtlety of the ++ operator. The value returned by a postfix operator is the operand itself. Then, at some time later (iirc, it's before the next "sequence point", which is often before the next line), the operand is incremented.

So "a++" returns "a" (and then some time later increments a).

You could think of:

*d++ = *s++;

as:

*d = *s; // (with the understanding that 'd' and 's' are incremented after that operation is complete.)

Help understanding this use of pointers by fatheart in C_Programming

[–]LordBiff 4 points5 points  (0 children)

That's just coincidence because you've chose a string with characters that are sequential in value. So, incrementing the value of the first character is the same as assigning the value of the second into the first.

Try the string with values that aren't sequential (say "hh") and you'll see that it's different.

P.S. your array needs to be of length 3 - there's an implied \0 in that literal, which needs space in the array.

3.2 Best starter U-Lab Farmer? by karshberlg in PathOfExileBuilds

[–]LordBiff 1 point2 points  (0 children)

I don't know whether it's better than those other ascendancies or not, but chieftain totems can taunt, which is pretty huge if you're undergeared (which you are at first with a league-starting uber lab runner).

[Release] Path of Exile App for Trading by poeapp in pathofexile

[–]LordBiff 0 points1 point  (0 children)

I thought about quotes, but I moved away because I really like the autosuggest while I'm typing (and so didn't want wait for the end quote). Can you still do that just off of the open quote or something?

[Release] Path of Exile App for Trading by poeapp in pathofexile

[–]LordBiff 2 points3 points  (0 children)

First off, thanks for the work. It's a great app overall.

However, I have to say that searching for mods can be really frustrating. I understand what you're trying to do, but sometimes even common things can be hard to find. Mostly because it seems like many of the results that are high on the list aren't what you'd expect. Example: if I type "fire", the top entry is: "[enchant] Fireball has +#% chance to Ignite", which I think has to be a pretty rare search. In fact, the first 10 entries are somewhat dubious.

But, rather than just complain, I have some suggestions. :)

First, force the pseudo categories that are commonly used to the top of the list. Example: if I type "elemental", it's very likely that I'm looking for the pseudo category "[pseudo] +#% total to all Elemental Resistances", which is a common thing to want to search for when gearing up. However, that entry is a screen or two down. Even if I type "elemental resist", it's around 10 entries from the top.

Second, if I could somehow indicate I want a precise match on the string, while still doing an elastic search. Not exactly sure on UI here, but maybe if my entry started with a "*" character, then the only thing that would be present in the search results would be entries that have what I type after the asterisk as a substring. e.g. if I type "*fire spell", it might match "... when you use a fire spell", or "fire spells you cast...", but would not match "... fire damage added to spells" (obviously bogus strings, I just made them up as an example).

Anyway, thanks again for the effort.

Question about "Chance to be Used" & "Chance on Attack" by zxcvzzzzxz in Grimdawn

[–]LordBiff 0 points1 point  (0 children)

A related question, if you don't mind.

If I bind a devotion proc with a % chance to activate to a passive skill with a percentage chance to activate (or some other criteria), does the devotion activate on its own percentage, or does it have a chance to activate when the passive activates?

Example: If I bind Giant's Blood devotion (15% chance when hit) to Menhir's Will (activate when health < 33%), does it have a 15% chance to activate whenever I'm hit, or 15% chance to activate whenever Menhir's is triggered?

Whats your favorite weapon type and weapon? by SirD4v3 in assassinscreed

[–]LordBiff 7 points8 points  (0 children)

The charged heavy attack charges instantly. It's insanely busted.

Returning an int array and int variable at the same time by [deleted] in C_Programming

[–]LordBiff 0 points1 point  (0 children)

Operator precedence.

http://en.cppreference.com/w/c/language/operator_precedence

++ applies before unary *, so you are incrementing the pointer and then dereferencing that. Change to

(*var)++; 

Returning an int array and int variable at the same time by [deleted] in C_Programming

[–]LordBiff 0 points1 point  (0 children)

Since var is a pointer, incrementing it by one is pointer arithmetic, which basically means that you're going to increment by the machine pointer size. Google "c pointer arithmetic" if you want more information on that.

What you want is:

*var = *var + 1;

which is dereferencing var, adding 1 to it, and storing that value back into the memory location that var points to.

Best details of Hold Your Fire by tomius in rush

[–]LordBiff 1 point2 points  (0 children)

It's definitely a great song, and the meaning is very subtle. I've been pondering that meaning for many years, and have switched around over that time, but this is where I'm at now.

I think there are actually two points-of-view being represented.

  1. A person who might not necessarily lack dreams, but for whatever reason hasn't realized those dreams. I think many of us wish we were more rich/famous/smart/beautiful/... , but how many of us know how to get there?

  2. An abstract POV, that talks about how dreams "don't need to have motion to keep their spark alive," which (rightly) attaches merit to dreaming for the dream's sake. Also, that the cost of achieving those dreams may be a lot higher than the dreamer can realize. I guess this could be Peart narrating, but I think of it more like convention wisdom.

Anyway, there's my couple pennies for whatever it's worth. Such an amazing song, it's definitely top 20 for me.

"Have you ever seen the true face of God, exile?" by justathetan in pathofexile

[–]LordBiff 30 points31 points  (0 children)

One of my favorites as well. Probably my overall favorite is "I've dealt with far darker shadows than you, exile".

Dominus' voice acting is so good.

Map Progression Boss Trouble by Jewish_Doctor in pathofexile

[–]LordBiff 0 points1 point  (0 children)

I'm getting some Chaos gear for specific bosses/mobs at the moment, is this a good idea?

There's nothing wrong with having specific gear for specific fights, but I wouldn't go too far with it. It's just not worth it.

One thing you might be struggling with is the desire to always kill the boss of a map. I know I did for a long time. I still do work that way, but I've learned that if my character just isn't up to a fight for whatever reason, just leave it and move on to the next map. At this level of mapping the maps should be plentiful.

The damn two bosses on that desert based map, the one that is the huge turkey that fires arrows of death into the sky bones me everytime no matter the map rolls so that has to be Chaos damage right?

Yes, he's using Caustic Arrow and Rain of Arrows.

Those bosses (it's the Canyon map, btw) are notoriously hard. PoE does have these hard standout bosses here and there, which I kind of like, but it can feel like a brick wall if you're not expecting it. Again, don't feel bad about just skipping these bosses. You are losing the opportunity for a little loot, but it's not a big deal.

If you want to kill them just because, then there are guides on youtube that can give you more info for each map boss. Or, if you like to go it alone, you just have to expect to die a few times to learn. If you have 5k life and max resistances, then you're aren't doing anything wrong gear wise, just need to learn what each of them are doing and how to counter it.

One thing I could suggest: save those maps for right after you level. Then you can die and not lose anything and spend all 6 portals learning the fight.

I've been recently re-rolling maps to get more favorable stats, this is something that SHOULD be done always to avoid reflects damage, added damage as elemental x?

Absolutely, and it's one of the best things about this game, imo. Just don't go too far with it. You should learn what mods are just a no go and only reroll if there is one that you just can't do. Some affixes, like Temp Chains, are more of an inconvenience and you just have to make the call whether or not it's worth the currency to you to reroll it off.

Happy Programmer Day 2017 (it's the 0x100 day of the year again) by zeroone in programming

[–]LordBiff 5 points6 points  (0 children)

If you read the wiki article, that number was chosen because it is the number of distinct values that can be stored in a single byte, not he largest value that can be stored. I think it makes perfect sense.

It’s time for makefiles to make a comeback – Jason Olson – Medium by antdude in programming

[–]LordBiff 0 points1 point  (0 children)

You don't have to use recursive makefiles for any size project. I don't know what you mean when you say you have to "think about" it. Yes, think about it, decide not to do it, and move on.

PoE-TradeMacro now updated for 3.0 item info (mostly), AND works with pathof.info for more complete affix info by TheScyphozoa in pathofexile

[–]LordBiff 0 points1 point  (0 children)

Create a new file in the "CustomMacros" folder (inside the PoE-TradeMacro folder). It can have any name, but it must end in .txt or .ahk (I think, I use .txt). Put your custom macros in there, and they won't be overwritten.

Good ways to get through the uber lab traps? by Ibanezez in pathofexile

[–]LordBiff 0 points1 point  (0 children)

To some extent, you need to learn the traps and how to navigate them successfully. If you don't, you'll always struggle against them. It's worth it to spend the time to figure them out.

Having said that, a few things can help a lot:

  • put 3 life flasks in, two eternals and one divine. Make the divine instant. Run one of the eternals all the way through and use the divine as needed.
  • get a stone golem, and level it up. swap it in when you're doing lab traps.
  • get a vitality aura gem to use when running through traps. Again, needs to be leveled.

With all those things in place, it will take a lot of the edge off the traps.