Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Dropdown Menu Lists Editor

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting -> Lua Extensions
View previous topic :: View next topic  
Author Message
predprey
Master Cheater
Reputation: 15

Joined: 08 Oct 2015
Posts: 366

PostPosted: Sat May 21, 2016 5:12 pm    Post subject: Dropdown Menu Lists Editor Reply with quote

This is a GUI for creating Lua scripts that can batch add dropdown menu lists to cheat entries based on the search string you give it.
Scripts created can be used by others even if they do not have this extension installed.

It searches for the string in the "Description" of all cheat entries and sets the lists and options accordingly if there's a match.
Optionally, you can add a search string for parent entry, useful if you have similarly named entries but for different cheats i.e. "Slot XXX" under "Items" and "Weapons".
Code:
Search String Format:
Description Search String(:Parent Description Search String)
...
..
.

Dropdown lists, search strings and options are all stored in the cheat table's Lua script.
To add dropdown lists to cheat entries, you can either click execute from within the GUI, or execute from the cheat table's Lua script form.
Please remember to save before executing.
Required functions and commands needed are added to the Lua script when the GUI is closed.
The variables for the prefixes are located in the DDLEditor.cfg file in the autorun folder. If it isn't created yet, launch the extension once.
Code:
DDLEditor.Prefix = myDropDownList
DDLEditor.NamesPrefix = myDropDownListName
DDLEditor.OptionsPrefix = myDropDownListOptions

You can change them to anything you prefer, but make sure they are not the same or empty, else I cannot predict what errors the script will give.

Example of a cheat table made using this extension: Megadimension Neptunia VII

Screenshots:
https://www.dropbox.com/sh/0qksfkzl7cnmhv6/AADQ5aQ80m5K3a208nff4kT1a

To install:
1. Download from link below
https://www.dropbox.com/s/a58kw3601ujcvip/DDLEditor.7z
2. Extract to CEDirectory\autorun folder

Quote:
Update 1:
- Allowed for optional parent description search string
- Empty search lists and options(all unchecked) are no longer added to Lua script.
- addDropMenuList function and commands are no longer added to Lua script if they are not used.
- Fixed a couple bugs

Update 2:
- Centers form to CE's main window on open.

Update 3:
- Reverted form sizing and position behavior to default (poDefault).

Update 4:
- Fixed: Error checking for names with spaces. Spaces now replaced with underscores.
- Fixed: Form no longer deletes other code at the end of script on close.
- Fixed: Generated script should now be fully standalone. Tables can be used by others without having this extension installed.
- New: Configuration file for prefixes and output flag. State of output flag can now be saved and loaded everytime CE is launched.
- New: Prompt confirmation if changes made are not saved yet.

Update 5:
- Added: Rename button.
- Added: Prefixes configuration button.

Update 6:
- Fixed: Confirm save prompt saving data to wrong dropdown list.

Update 7:
- Major update to localize all functions to avoid conflicts between extensions due to similar names, especially commonly used library functions.


Credits and Thanks to:
mgr.inz.Player


P.S. I originally wanted to make this compatible with all the scripts posted in the 'Dropdown Menu Lists' thread here but the syntax and parameters for each script were quite different.

_________________


Last edited by predprey on Sat Oct 08, 2016 12:39 am; edited 19 times in total
Back to top
View user's profile Send private message
mausi125
Advanced Cheater
Reputation: 1

Joined: 05 Jun 2014
Posts: 86

PostPosted: Sat Jun 04, 2016 1:09 pm    Post subject: Reply with quote

It work for create Trainer ?

PS: i don't know how to use it Embarassed
Back to top
View user's profile Send private message
predprey
Master Cheater
Reputation: 15

Joined: 08 Oct 2015
Posts: 366

PostPosted: Sun Jun 05, 2016 12:42 am    Post subject: This post has 1 review(s) Reply with quote

1. Click add, give a name.
2. Select the droplist you want to edit.
3. Fill in the large box the droplist like how you would in CE's droplist option.
4. Select the checkbox options you want.
5. Output log shows the cheat table records that the dropdown lists are added to.
6. Fill in a search string for the name of the cheat table records that you want to add the list to.
e.g Slot 1 to Slot 255, you can fill in just "Slot"
If their parent entry is something like "Items Hack" and you only want to add to entries under this, you fill in "Slot:Items"
You can add more search strings on new lines.
7. Once done, click save.
8. Now click execute to add the droplists to all denoted entries. Or you can click done and execute from CE's Cheat Table Lua Script window.
If you want to keep the size of your cheat table down, save your cheat table before adding the droplists. Each time you open the table, execute the lua script created. This plugin adds the necessary functions when you close its window.
Back to top
View user's profile Send private message
mausi125
Advanced Cheater
Reputation: 1

Joined: 05 Jun 2014
Posts: 86

PostPosted: Sun Jun 05, 2016 2:29 am    Post subject: Reply with quote

Edit, thanks ( work )

My dropdown list work ( in a generated trainer ? )
Back to top
View user's profile Send private message
predprey
Master Cheater
Reputation: 15

Joined: 08 Oct 2015
Posts: 366

PostPosted: Sun Jun 05, 2016 11:19 am    Post subject: Reply with quote

I'm not sure, if you can make your generated CE trainer to run the Lua script automatically then it would work. But I'm not sure if there's an option for that, maybe someone more experienced in using CE's trainer maker can chime in here?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting -> Lua Extensions All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites