My Tools - Extension for OpenFunscripter

Click on “enable”, then click on “Show window”

@Ivorykeys31: Careful: It’s version 2.0, not 1.1 for OFS 3.2.

@btlovcap:
First: Make sure the file in the extension directory (%USERPROFILE%\AppData\Roaming\OFS\OFS3_data\extensions) contains the file explicitly named ‘main.lua’. Renaming it won’t work and might get the behavior you described. Secondly: I’m also not sure, how it handles deeper subfolders.
And lastly: As @Bella correctly said: Click ‘Enable’ first, then ‘Show window’ should be clickable.

Thanks for your answer.

I’m using linux, so the extensions path is a little different:
/home/btlovcap/.local/share/OFS/OFS3_data/extensions

Anyway, the problem was the extension was in a subdirectory instead of just a directory.

Putting it in extensions/My Tools 2.0/main.lua worked like a charm.

I think Ubuntu created the extra folder when the file was extracted.

I meant no disrespect :wink:

Alright. Good to know. FYI: If you find the behavior around selection and scaling etc. a bit off: Look at line 4217 of the script. There’s 1 too many.

1 Like

Oh, sorry, I thought I mentioned about linux in the message… my bad… I didn’t meant to be rude.

Thanks for the advice :slight_smile:

1 Like

Thanks Randomus!! It works now!!

Edit: Is there a trick to getting the Save Pattern to save a selected pattern?

I had to recompile it to get it to work with my CPU, because a particular instruction set wasn’t available, and the mpeg library included with it didn’t work. I don’t think I could repeat that operation if you offered to pay me.

Now that I’ve finally gotten my system upgraded (delayed for 8 months thanks to MSI’s Eff-Yew level of motherboard support), I’m going to leave it as is and not reinstall with the original

have been looking for something tot scale intensity too let me know if you found something useful for that thanks

For what it’s worth: If you’re using MFP, there is a sliding “scale” for each axis that you can adjust during playback.

Is this bugfix still available somewhere?
It seems the fantia site for OG9 doesn’t exist anymore. At least not at the URLs you’ve linked.

Nevermind. Found your link to OG9 in the utils thread:

1 Like

Is My Tools broken? I noticed a massive slowdown on OFS recently where it takes several seconds to switch between scripts (roll, pitch, etc.) and it seems to be linked to My Tools being enabled. The problem goes when I disable it. I’ve tried reinstalling, but it doesn’t seem to make a difference.

@Splime found the cause of the slowdown and posted a fix in the Discord server.
If you don’t use the Pattern features, you can fix the issue by removing everything in the update function. Simply delete the following text in main.lua:


	-- Update Pattern File lists
	
	patternUpdateCounter = patternUpdateCounter - 1
	if patternUpdateCounter <= 0 then
		local CurrentScript = ofs.Script(ofs.ActiveIdx())
		local patternDirectory = CurrentScript.path .. pattSubDirectory
		if patternDirectory ~= lastPatternDirectory then
			lastPatternDirectory = patternDirectory
			updatePatternRepetitionFileList_Combobox()
			updatePatternFileList_Combobox()
			patternUpdateCounter = 100
			print ("Update pattern file list for " .. patternDirectory)
		end
	end

You can alternatively download this file and replace yours. You can open the folder containing your My Tools main.lua through OFS’ UI: Extensions → My Tools → Open directory

Note that you should only do this if you don’t use Patterns.
A better fix that doesn’t mess up the Patterns features may be done at some point.

4 Likes

That works great! Thanks for your help.

I’ve got OFC 3.2 with my tools 2.0 in the extension folder but I don’t see it anywhere when I open the software, or anything to enable it. Am I missing something?

It doesn’t show up in Extensions?
You still have to enable plugins in the Extensions menu and activate show window for it.

that’s the thing, it doesn’t even show the core one. My 3 option in the menu are developer mode, show logs and extension directory (where I extracted the my tool 2.0/main.lua and where core also is)

Getting into scripting and heard there was a discord? I’ve been primarily scripting for the Solace Pro, and learned a lot once I nailed down the script specs that it operates optimally for. I’ve been converting scripts manually and it’s been quite the journey.

If there’s a link to the discord and/or an updated version of the MyTools that I could get, that would probably help a lot. If there’s interest in the Solace, I can also share what I’ve gathered for it’s operating requirements.

Don’t think there’s a new version, but if you want you can implement different functions quite easily withing main.lua.
result = amplitude_pp * (math.random() - 0.5) * 2 + offset
or anything like that will work. Have zero code knowledge and managed to do some, so you should be good too.