In order for this script to work you first need to tweak line 39, the Sleep(x) function to something higher like 38000 (I play with a mod so I don't know the ideal number). You also need to run it as an administrator as an exe. If you have the latest version of AHK when you run the script it will give you a prompt with two options. You want to select the 2nd option to run it as exe and not Unicode script.
I am running this script in conjunction with the Fast Pack Opening mod with only the "Auto Open" and "Speed up pack results" option enabled. The default sleep time in this script was still too fast, causing it to open the album (thinking it was on the next hand of packs) rather than trying to grab packs. If you are having this issue, bump the Sleep time up by a few seconds. I bumped mine up to 37000 and it works like a charm now, but if you are playing without Fast Pack Opening mod then you will probably have to set it higher.
There is no perfect number because if you get lucky and pull like fifteen rares out of a hand of packs then the script will likely get out of the loop, so you either have to deal with a few second delay before pulling new packs, or restarting the script very frequently.
Fast Pack Opening: https://www.nexusmods.com/tcgcardshopsimulator/mods/3
If you increase the speed multipliers with fast pack opening you can decrease the Sleep time in the script on line 39. I plan on doing a 2nd playthrough with crazy speed opening settings while also using this mod seeing as 1/2 of this game is watching packs open.
--------------------------- AutoPackOpener.ahk --------------------------- Error: Call to nonexistent function. Specifically: IniRead("config.ini", "Settings", "packCount", 8) Line# --->002: packCount := IniRead("config.ini", "Settings", "packCount", 8) 003: handCount := IniRead("config.ini", "Settings", "handCount", 4) 004: SendMode("Event") 006: x := 870 007: y := 935 011: { 013: ToolTip(handNumber " - Pressing and holding right mouse button to grab " packCount " packs...", x, y) 014: StartTime := A_TickCount The program will exit. --------------------------- OK --------------------------- I've tried running as administrator in case it was a permissions issue, but same error. It is acting like it can't see the config file, and yes, it is in the same directory. That, or IniRead is not valid?
After more than an hour of testing to make it work, it was impossible, I pressed 1 to launch and nothing happened. The game settings are good though. Should we do something other than simply open the file and then press 1?? autohotkey install correctly. I tried to modify the start and stop key in the script, nothing changed, so I put it back to the original while waiting for your response.
You should be able to run the script with auto hotkey, in my case just double clicking the file. Then go back to your game and look at the box or shelf with cards and hit '1'. It should then run on its own unless you've changed the hotkeys or something.
Also just use this mod, it does the job better: https://www.nexusmods.com/tcgcardshopsimulator/mods/3
I just reset all my settings originally by applying the parameters indicated, it still does not work, I even tried another keyboard, and there is definitely a problem. when I click in my shortcut bar once the script is launched, if I right click on it and open it opens a detail page with this:
Script lines most recently executed (oldest first). Press [F5] to refresh. The seconds elapsed between a line and the one after it is in parentheses to the right (if not 0). The bottommost line's elapsed time is the number of seconds since it executed. ---- C:\Users\kevin\OneDrive\Bureau\AutoPackOpener-v044\AutoPackOpener.ahk 002: packCount := IniRead("config.ini", "Settings", "packCount", 8) 003: handCount := IniRead("config.ini", "Settings", "handCount", 4) 004: SendMode("Event") 006: x := 870 007: y := 935 011: { 026: { 047: { 061: Return (91.88) Press [F5] to refresh.
So I think it is installed well but when I go to the game in front of a box and I press 1 nothing happens. dont like the other in your link :/
9 comments
I am running this script in conjunction with the Fast Pack Opening mod with only the "Auto Open" and "Speed up pack results" option enabled. The default sleep time in this script was still too fast, causing it to open the album (thinking it was on the next hand of packs) rather than trying to grab packs. If you are having this issue, bump the Sleep time up by a few seconds. I bumped mine up to 37000 and it works like a charm now, but if you are playing without Fast Pack Opening mod then you will probably have to set it higher.
There is no perfect number because if you get lucky and pull like fifteen rares out of a hand of packs then the script will likely get out of the loop, so you either have to deal with a few second delay before pulling new packs, or restarting the script very frequently.
Fast Pack Opening: https://www.nexusmods.com/tcgcardshopsimulator/mods/3
If you increase the speed multipliers with fast pack opening you can decrease the Sleep time in the script on line 39. I plan on doing a 2nd playthrough with crazy speed opening settings while also using this mod seeing as 1/2 of this game is watching packs open.
---------------------------
AutoPackOpener.ahk
---------------------------
Error: Call to nonexistent function.
Specifically: IniRead("config.ini", "Settings", "packCount", 8)
Line#
--->002: packCount := IniRead("config.ini", "Settings", "packCount", 8)
003: handCount := IniRead("config.ini", "Settings", "handCount", 4)
004: SendMode("Event")
006: x := 870
007: y := 935
011: {
013: ToolTip(handNumber " - Pressing and holding right mouse button to grab " packCount " packs...", x, y)
014: StartTime := A_TickCount
The program will exit.
---------------------------
OK
---------------------------
I've tried running as administrator in case it was a permissions issue, but same error. It is acting like it can't see the config file, and yes, it is in the same directory. That, or IniRead is not valid?
I tried to modify the start and stop key in the script, nothing changed, so I put it back to the original while waiting for your response.
Also just use this mod, it does the job better: https://www.nexusmods.com/tcgcardshopsimulator/mods/3
when I click in my shortcut bar once the script is launched, if I right click on it and open it opens a detail page with this:
Script lines most recently executed (oldest first). Press [F5] to refresh. The seconds elapsed between a line and the one after it is in parentheses to the right (if not 0). The bottommost line's elapsed time is the number of seconds since it executed.
---- C:\Users\kevin\OneDrive\Bureau\AutoPackOpener-v044\AutoPackOpener.ahk
002: packCount := IniRead("config.ini", "Settings", "packCount", 8)
003: handCount := IniRead("config.ini", "Settings", "handCount", 4)
004: SendMode("Event")
006: x := 870
007: y := 935
011: {
026: {
047: {
061: Return (91.88)
Press [F5] to refresh.
So I think it is installed well but when I go to the game in front of a box and I press 1 nothing happens.
dont like the other in your link :/