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

work-for-factions.js: Possible bug in rep gain calculations #353

Open
mikeymikey64 opened this issue Oct 2, 2024 · 5 comments
Open

work-for-factions.js: Possible bug in rep gain calculations #353

mikeymikey64 opened this issue Oct 2, 2024 · 5 comments
Labels
enhancement New feature or request needs investigation Claim needs to be investigated / reproduced before the issue is accepted

Comments

@mikeymikey64
Copy link

work-for-factions.js switches to a less profitable type of work in terms of rep gains, yet it states that it detected it as a more profitable work.

Faction "Bachman & Associates" Highest Aug Req: 375,000, Current Favor (79.97/150.00) Req: 365,668
INFO: Detected that "security" gives more rep than previous work "hacking". Switching...
Doing 'security' work for "Bachman & Associates" until 375,000 rep. Currently at 107,893, earning 13.948 rep/sec. (ETA: 5h 19m 10s)

@alainbryden
Copy link
Owner

alainbryden commented Oct 2, 2024 via email

@alainbryden alainbryden added the question Further information is requested label Oct 2, 2024
@alainbryden alainbryden changed the title Possible bug in rep calculations work-for-factions.js: Possible bug in rep gain calculations Oct 3, 2024
@mikeymikey64
Copy link
Author

Ahh sorry for the confusion. Unfortunately I no longer have the log for it.

The general problem was work-for-faction.js switching to security work despite it giving lower rep gains. Security gave 13.9 while Hacking gave 40 something. Initially, I thought it must have wanted the other stats but the above log showed that it had believed that security gave more rep, which wasn't true.

@mehax
Copy link

mehax commented Oct 6, 2024

Yes I'm able to reproduce it, however this bug will either fix itself after 1 minute or restart the script

Faction "Fulcrum Secret Technologies" Highest Aug Req: 1,500,000, Current Favor (73.66/150.00) Req: 379,978
Doing 'security' work for "Fulcrum Secret Technologies" until 379,978 rep. Currently at 249,057, earning 198.326 rep/sec. (ETA: 11m)
Doing 'security' work for "Fulcrum Secret Technologies" until 379,978 rep. Currently at 262,688, earning 200.435 rep/sec. (ETA: 9m 45s)
INFO: Detected that "hacking" gives more rep than previous work "security". Switching...
Doing 'hacking' work for "Fulcrum Secret Technologies" until 379,978 rep. Currently at 276,437, earning 151.399 rep/sec. (ETA: 11m 24s)
INFO: Detected that "security" gives more rep than previous work "hacking". Switching...
Doing 'security' work for "Fulcrum Secret Technologies" until 379,978 rep. Currently at 287,141, earning 335.240 rep/sec. (ETA: 4m 37s)

@mikeymikey64
Copy link
Author

ah, I see. I tried moving it back to hacking contract manually but it swapped back. It did get fixed after I restarted but I never tried waiting XD Thanks for looking into it.

@alainbryden
Copy link
Owner

I'm gonna leave this open and see if the game has any new API's that make this less of a guessing game

@alainbryden alainbryden reopened this Oct 8, 2024
@alainbryden alainbryden removed the question Further information is requested label Oct 8, 2024
@alainbryden alainbryden added needs investigation Claim needs to be investigated / reproduced before the issue is accepted enhancement New feature or request labels Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs investigation Claim needs to be investigated / reproduced before the issue is accepted
Projects
None yet
Development

No branches or pull requests

3 participants