Elendiar Posted December 18, 2018 Share Posted December 18, 2018 Step 1. Run game. Step 2. ALT+ENTER to make game borderless (need for aim frame over game). ONI change screen mode instantly. Step 3. Mark 3 shuffle points by clicking to those buttons Step 4. Choose area to scan attribute number for each dupe. Settings are separate for each dupe and saves into .ini file into your Temp folder. Manual scan need, because UI scaling make impossible universal adaptation. LCTRL+LCLICK calibrate frame, push to drag, LCTRL+MWHEEL increase/decrease frame size. Once you choose areas, you can use them in future, all settings saved instantly. Step 5. Get sample of number. Choose Number to scan, shuffle some time until the desired number falls in any attribute and press button Prntscreen(or hotkey F8). After double beep, you can preview result below. Samples saved separatly for each language, because fonts differ. Better capture as small samples as possible. Scan area make bigger. Step 6. Start shuffling, F1/F2/F3. After successful detection program beep and stop. You can search next dupe. Also if necessary number passed, you can increase delay (in milliseconds) after click for better scanning. More delay - longer shuffling. Decrease variation if 6 detected as 8, or increase in any number dont detected correctly. If you specify 255 shades of variation, all colors will match. You can choose what numbers to search. If all checked, matches will be from larger to smaller. ---------------------------- Old topic where i posted simple script without gui(closed). I remake it for best expirience. For screen capture used http://www.nirsoft.net/utils/nircmd.html utility. Source code https://p.ahkscript.org/?p=06cd7fd9 DOWNLOAD ahk: ONI_shuffler.ahk DOWNLOAD exe: ONI_shuffler.exe Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/ Share on other sites More sharing options...
Neviiir Posted December 23, 2018 Share Posted December 23, 2018 Thanks for this! It works like a charm once you get it properly set up Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1135830 Share on other sites More sharing options...
BrianTheWelch Posted December 23, 2018 Share Posted December 23, 2018 Hi! Thanks for the effort put into this! Unfortunately it does not work on linux systems I was wondering if there was a way to modify the application to work on ubuntu/linux? Thanks! Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1135831 Share on other sites More sharing options...
Elendiar Posted December 23, 2018 Author Share Posted December 23, 2018 28 minutes ago, BrianTheWelch said: I was wondering if there was a way to modify the application to work on ubuntu/linux? Unfortunately not I think you can use Autokey for linux to make script for linux, but autohotkey works for windows, and used in script cmd utility for screenshots is windows only. But you can run it under Wine emulator, but it is not exactly. Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1135839 Share on other sites More sharing options...
BrianTheWelch Posted December 24, 2018 Share Posted December 24, 2018 4 hours ago, Elendiar said: Unfortunately not I think you can use Autokey for linux to make script for linux, but autohotkey works for windows, and used in script cmd utility for screenshots is windows only. But you can run it under Wine emulator, but it is not exactly. Alright, thanks for the input. Unfortunately it does not work in wine as it throws errors on line 45 Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1135880 Share on other sites More sharing options...
rnjacobs Posted December 24, 2018 Share Posted December 24, 2018 I pretty quickly wrote an autoroller that works under linux—it's just a shell script that uses "scrot", "md5sum", and "xte" to capture a region of the screen and click in a specific area if it's seen that specific image before. So I have a set of md5sums for png files that correspond to the numbers -3 through +7, and for reasons I don't entirely understand, the horizontal subpixel position of the Learning is the same for all three dupes so I only need to keep track of 11 reference images, not 33. If you want it I'll upload it here, but unless you just happen to be lucky enough to get something pixel-perfect identical to my linux machine, you'll have to change a lot of the magic numbers in it. Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1135901 Share on other sites More sharing options...
Elendiar Posted December 24, 2018 Author Share Posted December 24, 2018 19 hours ago, rnjacobs said: script that uses "scrot", "md5sum", and "xte" I understand correctly, do you keep md5 checksum number or images, not the samples themselves, and after taking the screenshot, compare md5? Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1136185 Share on other sites More sharing options...
rnjacobs Posted December 25, 2018 Share Posted December 25, 2018 Yes, exactly that. If I were comparing files directly it'd have to execute "cmp" or "convert" once for every reference image and captured image pair, but comparing strings is cheaper. And, as it helps your version, it does let you know that I found that I didn't need a fuzzy match—pixel-perfect comparisons worked for me. Other than the bit where you can toggle the background brightness for each dupe stats panel by clicking on it. Not certain why that's there. It's still not particularly fast on my computer (I assume due to only having integrated graphics)—maybe 3-4 rolls per second or so. Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1136251 Share on other sites More sharing options...
Ambaire Posted December 25, 2018 Share Posted December 25, 2018 Awesome, thank you. My dream of my starting 3 dupes with 8 learning each can finally come true. And did. Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1136315 Share on other sites More sharing options...
Naruto_Killa Posted December 31, 2018 Share Posted December 31, 2018 Would it be possible to have the last version from the old topic posted? This having to manually position the boxes and take screenshots has made the script way less accurate recognizing the numbers. Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1138236 Share on other sites More sharing options...
Kafkatrap Posted January 1, 2019 Share Posted January 1, 2019 Omg i just logged in to this forum to ask about something like this! <3 Can it work with traits, interests and stress reactions too? I usually try to go for Ugly criers or vomiters with Divers Lung and its a pain to shuffle it manually every time i start a new map. Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1138267 Share on other sites More sharing options...
Elendiar Posted January 1, 2019 Author Share Posted January 1, 2019 14 hours ago, Naruto_Killa said: Would it be possible to have the last version from the old topic posted? This having to manually position the boxes and take screenshots has made the script way less accurate recognizing the numbers. Try minimize number sample and make scan area bigger. I rewrite code without saving old :(. 13 hours ago, Kafkatrap said: Can it work with traits, interests and stress reactions too? It can, but I did not consider it necessary to bother with it. 8-9 learning fall out quite rarely. Although maybe the other day I'll try to add = /! = Condition for traits/interests. Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1138418 Share on other sites More sharing options...
Kafkatrap Posted January 1, 2019 Share Posted January 1, 2019 @Elendiar i have now spent some time with your mod and managed to get it working with the Traits, i just copy the trait layout i want (Narcoleptics with Divers Lungs) and randomize the rest. However i have noticed that stress reactions seem to be connected to the individual dupes, Nicola is always Destructive, Abe and Hassan is always Ugly criers, etc. Do you think it would be possible to have two different calibration frames for each slot, that way you could mark both the traits (or an attribute) and the name of a Dupe, that way you could "save" more of the things you want in a Dupe... say if i want an Abe (ugly crier) that is also Narcoleptic with Divers Lungs, you could pretty much just roll for the attributes. I don't know anything about programming so it might not be possible but i attached a screenshot of what I'm talking about. OR even a third calibration frame, so you could mark both traits, the name AND one of the attributes (for instance +5 in learning, which is max when not using the quick learner trait) that would give you complete control of most of the dupe suffle process... or at least the important parts of it! I can imagine it would take a lot of time until the exact dupe you want comes up, but you could just leave it on while watching a movie or something. So maybe adding a mute button for the sounds? I'm just throwing ideas here left and right, i don't expect anything! I am thankful that you made this shuffler it has saved me LOTS of time not having to click around manually! But it would be even better with those options. Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1138454 Share on other sites More sharing options...
Joogle Posted January 1, 2019 Share Posted January 1, 2019 As of 01/01/2019 the downloadable .exe is identified by Windows Defender as Trojan:Win32/Cloxer.D!cl and a severe threat. What's up with that? Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1138459 Share on other sites More sharing options...
Kafkatrap Posted January 1, 2019 Share Posted January 1, 2019 31 minutes ago, Joogle said: As of 01/01/2019 the downloadable .exe is identified by Windows Defender as Trojan:Win32/Cloxer.D!cl and a severe threat. What's up with that? I think that is because it is an autoclicker, it takes control of your mouse pointer and automates the clicking... much like what some actual viruses do. So i am not surprised that windows gives off a warning about it. I just ignored it and ran the program anyway and i don't have any viruses yet Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1138471 Share on other sites More sharing options...
Christophlette Posted January 2, 2019 Share Posted January 2, 2019 16 hours ago, Joogle said: As of 01/01/2019 the downloadable .exe is identified by Windows Defender as Trojan:Win32/Cloxer.D!cl and a severe threat. What's up with that? I'm working in IT and use AutoHotkey frequently to make my life easier. Kafkatrap is right about autoclickers and using your mouse pointer. Be sure it is safe to use. Or I'd have a few trojans created by myself on my computer Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1138667 Share on other sites More sharing options...
Elendiar Posted January 2, 2019 Author Share Posted January 2, 2019 23 hours ago, Kafkatrap said: I'm just throwing ideas here left and right, i don't expect anything! I am thankful that you made this shuffler it has saved me LOTS of time not having to click around manually! But it would be even better with those options. Add trait/interest options(never mind, both can be) and mute beep. Have no access to ONI on my workplace so untested ingame, but on screenshot it works. You can have 2 additional conditions for any sample, let's call them traits and interests(but it can be also number in attributes or smthing else). Also for this you can change frames wide with SHIFT+MWHEEL and height with ALT+MWHEEL. 23 hours ago, Kafkatrap said: OR even a third calibration frame Because i dont make OOP code from start (it was simple clicker! ) and rewrite everything into objects will take time, extending functionality becomes difficult, the code becomes ugly, the area under traits is one for all and frame not visible all time. Please note that as the overall scan area increases, the scan time also increases. source: https://p.ahkscript.org/?p=a782217e ONI_shuffler.ahk ONI_shuffler.exe Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1138749 Share on other sites More sharing options...
Kafkatrap Posted January 3, 2019 Share Posted January 3, 2019 Awesome, i will try this when i get home! And yes, i raised the scan timer so that the game had time to load in properly and sync with the scanner. I can imagine it needs longer scanning when it scans for even more factors. I'll update on how it works after i tried it! Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1139241 Share on other sites More sharing options...
Hekinsieden Posted March 2, 2019 Share Posted March 2, 2019 Made an account to download this and post on the forum. This should just be a feature in the game, I am still a new player and usually die before cycle 30 so I spend like 1/3 of my play time just shuffling dupes! How incredibly BORING! Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1160713 Share on other sites More sharing options...
Turalyon Posted May 10, 2019 Share Posted May 10, 2019 I have absolutely no idea how this program is supposed to function. Any button I click does nothing except place a small green square in the middle of the screen. When I use the Capture button, the small picture that appears below isn't even remotely what my mouse pointer was hovering over. When I use LCTRL + LCLICK the square doesn't change size, so when I try to capture Suit wearing as an interest, I get the WEA of the word, nothing else. Can anyone give me a fit-for-amateurs description how this program is supposed to work? Link to comment https://forums.kleientertainment.com/forums/topic/100773-oni-dupe-shuffler-at-the-start-new-game/#findComment-1192078 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.