 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
idk31 Cheater
Reputation: 1
Joined: 11 Jan 2016 Posts: 42
|
Posted: Mon Apr 18, 2016 4:58 pm Post subject: OCD Organization. Keeping it tidy and readable. |
|
|
Just wondering what you guys do in this situation: Let's say you want to organize a lot of values (a LOT of values!) in a way that makes sense to you, but they belong to different scripts/structures. Do you repeat the script as needed? Group the scripts and value sets separately? Make an all-in one script? And if so, how do you do the error-handling if one aobscan failed?
Ex:
Script A - a, b, c, d
Script B - e, f, g, h
Script C - i, j, k, l
But it's easier to read:
Set 1 - b, c, f, g
Set 2 - a, d, ...... you get it
Secondly (since I don't like to doublepost),
I found a address range with a lot of binary true/false flags. I just want an easy way to test them (turn them off/on) to see what they do. Ideally, I just have a grid of checkmark boxes and I can click them off and on. Any easy way to do that quickly?
Thirdly (while I'm thinking of it),
I want to allow someone to set a script value from outside the script, say freecam speed, or select their own hotkey. How would that be done?
Thanks!
_________________
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4710
|
Posted: Mon Apr 18, 2016 6:17 pm Post subject: |
|
|
1: You can append a script to a parent script, right click on the parent script, and select "Group config -> Hide children when deactivated" (and/or other options if you want). Make that parent script store all the utility stuff needed by the other scripts. If something in the parent script fails, then it won't show the other scripts since it won't activate. If the parent script does activate, then all the registered symbols in the parent script are accessible by the children of that script, and it's safe to activate them.
2: See the CheckBox class in main.lua.
3: See the GenericHotkey class in main.lua.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
idk31 Cheater
Reputation: 1
Joined: 11 Jan 2016 Posts: 42
|
Posted: Tue Apr 19, 2016 1:32 pm Post subject: |
|
|
Hello again! =)
#1, Will experiment. Thanks!
#2, I was hoping such a thing already existed. Sounds daunting to build when I only need to use it once. I'll just build a template table, copy/paste to the desired number, and recalculate to the desired range.
#3, I'm talking about creating symbols and reserving space for custom values that a script could draw from. It would look like every other value in the table. I've seen a table do this. Actually, I think I might remember how. I'll get back to you if it doesn't work.
_________________
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|