Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work #41

Open
Wieselnuggis123 opened this issue Feb 18, 2024 · 35 comments
Open

Does not work #41

Wieselnuggis123 opened this issue Feb 18, 2024 · 35 comments

Comments

@Wieselnuggis123
Copy link

Hey so we tested it multiple times and it does not work anymore but we dont know why. Maybe u can help

@BeepIsla
Copy link
Owner

Which game?

@Wieselnuggis123
Copy link
Author

Which game?

tf2

@Wieselnuggis123
Copy link
Author

we started after it got 300000 kills it said finsish but nohing changed

@BeepIsla
Copy link
Owner

There have been some issues with TF2 for a while and I am not sure why.

@Wieselnuggis123
Copy link
Author

There have been some issues with TF2 for a while and I am not sure why.

it does not print any issues in the console besides this: (node:22464) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use node --trace-warnings ... to show where the warning was created)

@BeepIsla
Copy link
Owner

That warning can be safely ignored. The issue is somewhere with what we send to the TF2 backend, it seems to ignore it for some reason and I don't know why.

@Wieselnuggis123
Copy link
Author

but do you know where exactly the issue is like in what code

@BeepIsla
Copy link
Owner

Somewhere in here

async incrementKillCountAttribute(killerID, victimID, itemID, eventType, amount) {
let eventTypeInfo = EventTypes[440]?.[eventType];
let killerID64 = killerID.getSteamID64();
let victimID64 = victimID.getSteamID64();
// Hardcode the maxmium amount of "CMsgIncrementKillCountAttribute_Multiple" children we use at once
// Steam ignores packets too large so this sadly can't go into the thousands
let maximumMultipleChildren = 1_000;
let increment = eventTypeInfo?.allowIncrement ? 1_000 : 1;
let multiMessagesNeeded = Math.ceil(amount / increment);
let chunksNeeded = Math.ceil(multiMessagesNeeded / maximumMultipleChildren);
for (let i = 0; i < chunksNeeded; i++) {
console.log(`Progress: ${i * increment * maximumMultipleChildren} / ${amount}`);
await new Promise(p => setTimeout(p, 50));
this.coordinator.sendMessage(
this.appID,
this.protobufs.data.tf2.EGCItemMsg.k_EMsgGC_IncrementKillCountAttribute_Multiple,
{},
this.protobufs.encodeProto("CMsgIncrementKillCountAttribute_Multiple", {
msgs: new Array(Math.min(maximumMultipleChildren, multiMessagesNeeded - (i * maximumMultipleChildren))).fill(0).map((_, j) => {
let data = {
killer_steam_id: killerID64,
victim_steam_id: victimID64,
item_id: itemID,
event_type: eventType
};
if (eventTypeInfo?.allowIncrement) {
data.increment_value = Math.min(increment, amount - (j * increment));
}
return data;
})
})
);
}
// We are done! Final progress log (Its not truly calculated so if the above math is wrong this will be wrong too, lets hope I am smart)
console.log(`Progress: ${amount} / ${amount}`);
}

@ITKmind
Copy link

ITKmind commented Feb 18, 2024

its be nice to fix this script :)

@BeepIsla
Copy link
Owner

You can try simply changing the 1_000 number in there to a lower number and running the script again. Maybe that fixes it? I have no time right now to test aronud.

@Wieselnuggis123
Copy link
Author

You can try simply changing the 1_000 number in there to a lower number and running the script again. Maybe that fixes it? I have no time right now to test aronud.

like 0.9_000

@BeepIsla
Copy link
Owner

Remove the underscore 1_000 -> 1000 and make it any number you want. Maybe it works with 100 or 500, I don't know.

@Wieselnuggis123
Copy link
Author

ill try

@Wieselnuggis123
Copy link
Author

i ran before i made the change and it gave me this errror: C:\Users\Wieselnuggis\Downloads\fake-stattrak-master\fake-stattrak-master\components\Client_Shared.js:116
reject(new Error("Failed to connect to Steam"));
^

Error: Failed to connect to Steam
at C:\Users\Wieselnuggis\Downloads\fake-stattrak-master\fake-stattrak-master\components\Client_Shared.js:116:14

Node.js v21.6.1

@BeepIsla
Copy link
Owner

In TF2? That shouldn't happen.

@Wieselnuggis123
Copy link
Author

nvm i fucked smth up trying rn with the change

@Wieselnuggis123
Copy link
Author

still does not work
even after u changed the number to 100

@Wieselnuggis123
Copy link
Author

trying 500 now

@BeepIsla
Copy link
Owner

If a lower number does not work then a higher number probably won't either

@Wieselnuggis123
Copy link
Author

so chagne the number in front to my likings or the behind the :

@BeepIsla
Copy link
Owner

change both 1_000 to the same number

@Wieselnuggis123
Copy link
Author

i have these rn let maximumMultipleChildren = 1_000;
let increment = eventTypeInfo?.allowIncrement ? 1000 : 100;

@Wieselnuggis123
Copy link
Author

so change the top to 100 the bottom to 100 and the 100 aftzer the : back to 1?

@BeepIsla
Copy link
Owner

Don't change the 1. Only change the two 1000s

@Wieselnuggis123
Copy link
Author

alr

@Wieselnuggis123
Copy link
Author

that happend
C:\Users\Wieselnuggis\Downloads\fake-stattrak-master\fake-stattrak-master\node_modules\steam-user\components\09-logon.js:809
let error = new Error(EResult[body.eresult] || body.eresult);
^

Error: RateLimitExceeded
at SteamUser._handleLogOnResponse (C:\Users\Wieselnuggis\Downloads\fake-stattrak-master\fake-stattrak-master\node_modules\steam-user\components\09-logon.js:809:17)
at C:\Users\Wieselnuggis\Downloads\fake-stattrak-master\fake-stattrak-master\node_modules\steam-user\components\09-logon.js:441:16 {
eresult: 84
}

Node.js v21.6.1

@BeepIsla
Copy link
Owner

You logged in too many times, you are now prevented from logging in for 30 minutes. If you try to login again before this time expires it will reset.

@Wieselnuggis123
Copy link
Author

so i have to wait

@Wieselnuggis123
Copy link
Author

alr

@Wieselnuggis123
Copy link
Author

still does not work but imma go to sleep maybe there are other ways to fix

@Wieselnuggis123
Copy link
Author

nvm 500 on both works

@Wieselnuggis123
Copy link
Author

thats the fix

@Wieselnuggis123
Copy link
Author

but there is still 1 problem in console there is 3mil kills but only 200k or so got added to strange part

@Wieselnuggis123
Copy link
Author

maybe u can give me your dc i have some other questions that i dont want to be public

@BeepIsla
Copy link
Owner

My Discord name is the as on Github

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants