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
Feature Request: Not option when "exact scanning" #253
Comments
I have created a fork for anyone to view I am doing |
You've changed an auto-generated file without using the Qt Designer. Your changes will be completely erased within the next patch that modifies the MainWindow ui file. Check the guidelines before contributing |
Yes I did read the guidelines before forking, but I am finding a little difficulty installing Qt Designer. For now I will manually change the Could you suggest a forum or a wiki to install and use? It will be helpful. Edit: Typo fix |
pyqt6-tools is on PyPI, can be easily installed via a single command |
Thanks for help. I was using apt instead of pip unfortunately -_- |
I have added the feature! Go to https://github.com/OpenNetSurfer/PINCE to see. Only works with EXACT scan, and not with AOB or STRING scan type though. I will now ready the repo for a pull request. Feel free to review it. |
If the "not" option only works with "exact" Scan Type anyway, whats the reasoning behind using a checkbox ? I think using "NOT" as a separate SCAN_TYPE, next to EXACT / CHANGED / UNCHANGED seems more logical. (AOB and STRING will fail with any scan type other than EXACT anyway, may need a bugfix for that probably anyway.) |
I added Not as an checkbox because that's how cheat engine also uses. |
A couple of things:
Golden rule is to have each commit be a self-contained logical change that does not break the program in any way. This way the PR should also be more readable than seeing x amount of commits that do not contribute anything with (Please ignore this). All you need for this functionality is just one commit that adds |
I see. I will implement it as an scan type. I am sorry for those useless commits, I am just getting started to using git. |
If you have Discord, feel free to join the server in case you might need more pointers about these. I wouldn't recommend opening an issue just to discuss possible PRs/features. Also no need to apologize for the commits. It's your fork, you're free to do whatever you want in there. My point was that make sure to not include these in the PR as they're not helpful for the PR/feature itself. |
I have a question. Is this good implementation of "Not" option? Any comments? Context: If def comboBox_ScanType_init(self):
scan_type_text = {
typedefs.SCAN_TYPE.EXACT: tr.EXACT,
+ typedefs.SCAN_TYPE.NOT: tr.NOT,
typedefs.SCAN_TYPE.INCREASED: tr.INCREASED,
typedefs.SCAN_TYPE.INCREASED_BY: tr.INCREASED_BY,
typedefs.SCAN_TYPE.DECREASED: tr.DECREASED,
typedefs.SCAN_TYPE.DECREASED_BY: tr.DECREASED_BY,
typedefs.SCAN_TYPE.LESS: tr.LESS_THAN,
typedefs.SCAN_TYPE.MORE: tr.MORE_THAN,
typedefs.SCAN_TYPE.BETWEEN: tr.BETWEEN,
typedefs.SCAN_TYPE.CHANGED: tr.CHANGED,
typedefs.SCAN_TYPE.UNCHANGED: tr.UNCHANGED,
typedefs.SCAN_TYPE.UNKNOWN: tr.UNKNOWN_VALUE,
}
current_type = self.comboBox_ScanType.currentData(Qt.ItemDataRole.UserRole)
self.comboBox_ScanType.clear()
items = typedefs.SCAN_TYPE.get_list(self.scan_mode)
+
+ # Delete Not option if Value_Type selected is AOB or STRING
+ if self.comboBox_ValueType.currentData(Qt.ItemDataRole.UserRole) == typedefs.SCAN_INDEX.AOB or self.comboBox_ValueType.currentData(Qt.ItemDataRole.UserRole) == typedefs.SCAN_INDEX.STRING:
+ del items[1] # Corresponds to NOT in "get_list()" return
+
old_index = 0
for index, type_index in enumerate(items):
if current_type == type_index:
old_index = index
self.comboBox_ScanType.addItem(scan_type_text[type_index], type_index)
self.comboBox_ScanType.setCurrentIndex(old_index) Or should I change somethings in the |
I have made required changes to the repo. I will make a pull request in a few hours. Please review it if you can: https://github.com/OpenNetSurfer/PINCE Changed files:
|
Reviews are made in PRs not issue threads. Closing this issue since you already worked on the feature. |
A small request
Like in cheat engine, add an Not option when exact scan is selected. This will remove results matching the given value.
Edit1->2: Also the Not option should be disabled with
BYTEARRAY
and 'STRING' selectedThe text was updated successfully, but these errors were encountered: