[v.17.6] SimpleComplete | General scripting plugin

Update 16:

  • Added local and global settings, local settings override global settings if they are set, and the global settings are applied otherwise.

  • Added several new commands for this new api:

    • --sc set: and --sc get: have been deprecated, the following are their replacements:

    • --sc setlocal: name; value | --sc setglobal: name; value
      These commands now differentiate between setting a global vs local (place-specific) setting
      This will be useful if your, say, module import locations are different in each game

    • --sc resetlocal:
      This command is called with no extra args and simply resets the local settings to match the global one

    • --sc getlocal: name; value | --sc getglobal: name; value
      Same as setting local and global values, but getting

    • --sc exportsettings: local | global
      Exporting settings now makes you choose to export local/global settings as a command
      I also added newlines inbetween each ā€œchainā€

    • --sc getsettings: local | global
      Same thing as exportsettings, just in plain form instead of an executable command

I should probably update the main post by now :pen:
DoNe

1 Like

Patch 16.1:

  • Fixed alot of issues regarding nil setting values in the new local/global settings update, it’s all ironed out tho :slight_smile:

Patch 16.2:

  • Added a PrintCompletionTime setting that lets you see how long each completion type is taking, this setting is either true or false

This is for a 1300 line file

And this is for a 2500 line file!

As you can see since I’m no longer doing any full source matching the time increase is O(1) for imports and close to O(n log n) for docstrings :smiley:

You should add a command to clear all settings or reset all values to nil.

–sc resetsettings: or something

also, using the export command will export locally no matter what.

Theres already this for local settings, --sc resetlocal:

Idk about that since u can change global setting too

1 Like

there should probably be one for global settings to just reset to the default, it may also clear unused values from updates if you don’t already do that

–sc exportsettings: global will export as setlocal

Oh ya it just does that for now, the actual settings r correct

Alr, btw gtg sleep bye

1 Like

How do i set up the file to work as a plugin? @athar_adv ?

You should just have to drag it into the plugins folder, if I’m correct. This can be easily accessed through the ā€œPluginsā€ tab of studio.

lemme try that real quick. hope it works

it does not appear on the plugin bar

The plugin is configured through the command line, not the plugin toolbar. Read the main post’s ā€œcommandsā€ sections to get started.

To toggle features (couldn’t find it listed in the main post @athar_adv) use --sc toggle: feature; true/false. This currently works with everything listed here

1 Like

oh ok, thanks for the clarification!

1 Like

i cant seem to find out how i can set it up.

Here’s a list of settings you can use and my recommended/example values, paste this into the command bar

note that you may want to change ModuleSearchMode and ModuleAncestors (the way I use them probably isn’t the best)

--sc setglobal: 
(SnippetShorthand; \)
(ImportShorthand; nil)
(ImportTransformMod; PascalCase)
(ModuleAncestorTag; SC_Ancestor)
(ModuleSearchMode; descendants)
(ImportSort; descending)
(PrintCompletionTime; false)
(SnippetsModulePath; )
(ImportTransformSer; PascalCase)
(FindShortestPath; true)
(ModuleAncestors; game.ServerScriptService,game.ReplicatedStorage)

Commands are explained in the main post.

1 Like

oh. i will test those out. thanks a lot for helping me out!

2 Likes

My global settings (or atleast ImportShorthand) keep resetting, is the saving bugged?

Upon changing my ImportShorthand to nil, it resets back to ! upon reopening the place.

Hi, this is probably because of the global settings :V , when a local setting is nil, the global setting is used instead. Ill probably change this behaviour bc some settings u do wanna be nil without using the global on

I also should probably make a tutorial video for people who are confused :sweat_smile: Thanks for helping while I was asleep

1 Like

I don’t use local settings, only global ones :thinking: I want my global shorthand to be nil, but it resets to !

I do remember you mixed up global and local settings in the export command, maybe it’s another case of that?

2 Likes