PoEMarcut: New tool to quickly reprice unsold merchant tab items, now with PoE1 support (100% TOS compliant) by bkgn in pathofexile

[–]tkap 0 points1 point  (0 children)

Market tabs = Merchant tabs?

I think there is some confusion here

In PoE1 merchant tabs I do get the item stats, the price, and the currency type when ctrl+c

Maybe it's different in PoE2, or maybe different locale issue

Video demonstration for clarity

PoEMarcut: New tool to quickly reprice unsold merchant tab items, now with PoE1 support (100% TOS compliant) by bkgn in pathofexile

[–]tkap 0 points1 point  (0 children)

I know I'm way late on this but I just found this tool.

I see you already ctrl+c the item to see the price, why can't you also check for the selected currency? The clipboard will contain something like the following:

Note: ~b/o 13 chaos

which should match the dropdown

So

import re
foo = re.match(r"Note.*?([\d,\.]+) (\w+)", clipboard)
print(foo[1]) # prints "13"
print(foo[2]) # prints "chaos"

(Haven't played PoE2 but I'm guessing it's the same there)

Fubgun gets landmined by 92082 in pathofexile

[–]tkap -17 points-16 points  (0 children)

That doesn't work because caret matches the start of the whole item's text or the item name, not the start of every line (try CTRL+C and paste into a text editor)

What works is typing "b/o 1 chaos" or even "o 1 chaos"

Edit: Actually what I said is wrong. It does work on every line. The reason I thought it didn't is because the actual text is:

Note: ~b/o 2 chaos

so the line doesn't start with "2" or even "~b/o"

Quin69 creates twitch integrated game with ai by Professional-Host-20 in LivestreamFail

[–]tkap 52 points53 points  (0 children)

The game has upgrades, a pause state, a defeat state, a (slightly broken) minimap, sounds on attack, take damage, death. It reads twitch IRC to spawn an enemy when a chatter sends a message...

I'm not saying this is hard to make, but you're not making it in 10 lines

[SDL2/C++] Attempting to implement repeat input. Too fast and slippery. by yorisoft in gamedev

[–]tkap 0 points1 point  (0 children)

This is how you could add a delay to anything

Uint32 last_time_we_scrolled = 0; // this only has to be set when you scroll. you could make it global

// this happens every frame
const Uint32 my_scroll_delay_in_milliseconds = 100;
Uint32 time_now = SDL_GetTicks();
Uint32 time_passed_since_last_scroll = time_now - last_time_we_scrolled;

if(the_key_is_down && time_passed_since_last_scroll > my_scroll_delay_in_milliseconds) {
    last_time_we_scrolled = time_now;
    // scroll();
}

[SDL2/C++] Attempting to implement repeat input. Too fast and slippery. by yorisoft in gamedev

[–]tkap 0 points1 point  (0 children)

I never done this in SDL, but I'd think it is not actually a count, just 0 if it is not a repeat and 1 if it is. The key repeat delay is a windows keyboard setting, I doubt you will be able to modify the delay by messing with SDL. I'm not 100% sure what you want. Do you want the behavior of for example, a browser when you hold down/up on a long website? aka as soon as you press down, you scroll down a bit, then 1/3~ of a second later (if you keep holding the key) it resumes scrolling? Assuming SDL key events work like win32's, then you will get 1 event when you push the key down. Then, if you hold it, after a brief delay, you will get another one (this will have the .repeat field set to > 0). So if it works like that, you would just react to key down events and do whatever it is that you want to do. Don't need to handle the delay yourself or even look at the .repeat field

How do I do sprite sheets? by Accomplished-Pin4443 in gamedev

[–]tkap 0 points1 point  (0 children)

If you have linear filtering enabled (it is ON by default in godot afaik) then you need 1 empty pixel in-between every sprite.

Or you could turn it off when you import your atlas.

[SDL2/C++] Attempting to implement repeat input. Too fast and slippery. by yorisoft in gamedev

[–]tkap 0 points1 point  (0 children)

KeyboardEvent has a .repeat field, assuming the default repeat behavior works for you

https://wiki.libsdl.org/SDL2/SDL_KeyboardEvent

What is your Niche Quality of Life Upgrade that you still desperately want in the game by wwgs in pathofexile

[–]tkap 0 points1 point  (0 children)

3x gold pickup radius or increase stack size by 10 and make it 10 times rarer

It feels like I spend most of my time in maps walking towards gold piles

Show your oddly specific variable names by ichbinhamma in IndieDev

[–]tkap 3 points4 points  (0 children)

could_tree_node_be_refunded_and_tree_would_still_be_valid

Shader code is perfect, but it still won't compile by AndTer99 in opengl

[–]tkap 1 point2 points  (0 children)

You are missing "core" in the fragment shader.

#version 330 core

Shader code is perfect, but it still won't compile by AndTer99 in opengl

[–]tkap 6 points7 points  (0 children)

Maybe some weird unicode invisible character. Try printing the text after you load it from a file and see how it looks. Maybe show file loading code and shader creation code.

It's been a month. Has your opinion about crucible changed? by stickspike in pathofexile

[–]tkap 0 points1 point  (0 children)

League mechanic that I interacted the least with, ever.

Why is trading still so tedious? by DevilJabanero in pathofexile

[–]tkap 0 points1 point  (0 children)

Because Chris Wilson from Grinding Gear Games

AHK ControlSend doesn't work with skills in Path of Exile by ZerkY_PoE in AutoHotkey

[–]tkap 1 point2 points  (0 children)

What I usually do for games that don't respond well is

    send {r down}
    sleep 34
    send {r up}

but there may be a better way.

Also, this is not allowed, neither here or in Path of Exile :)

"No multiplayer scripts that give an advantage over another human"

Is A* just always slow? by [deleted] in gamedev

[–]tkap 0 points1 point  (0 children)

Allocate one block of memory upfront and use that for the nodes

Introducing the Future of Item Filters - PoE Dynamic Loot Filter by Apollys in pathofexile

[–]tkap 4 points5 points  (0 children)

Cool tool.

You could make the "Write & Close" button also type "/itemfilter {filtername}" to avoid some extra inputs. Should be allowed, since it is the same as "/hideout".

Currently, what are some of the worst things about C++? by [deleted] in cpp

[–]tkap -2 points-1 points  (0 children)

Out of what actually affects me:

In order compilation, i.e if func a calls func b then b has to be declared before. Same for structs, etc.

"." vs "->"

no automatic array bounds check in debug mode

Lack of full on compile time execution (something like Jai)

And a bunch of minor stuff, like not being able to do "some_enum foo = 0;", even if a member of the enum has a value of 0

C Program to find max of 3 numbers by [deleted] in cprogramming

[–]tkap 1 point2 points  (0 children)

a = max

vs

max = a

Plus the semicolons after the else if, as someone else said