Comments (8)
You find it documented in
http://nilsliberg.se/ksp/history.txt
Search for "Added new control parameter access feature (see example 3)"
from sublimeksp.
Yes, we've had this problem in the past in our projects. I confirm this issue.
from sublimeksp.
Hmmm...works for me without problems...
from sublimeksp.
It seems to work okay for me at the moment, but I believe you that this is sometimes an issue. At the beginning of the compiling process all strings in the script stored and each string is replaced with a number so that they can be put back in further down the process.
I'm not sure on the exact circumstances, but I think these string placeholders are sometimes not made. This could be why the comma in strings work correct only sometimes. I will have look about fixing this.
from sublimeksp.
I don't know if it helps, but for us it always happened because we used a macro that did a control declaration and help text in one go. Whenever we put commas in the string for the help text argument, it would break:
macro ui.slider(#name#, #min#, #max#, #help#, #default#)
blah blah blah
end macro
ui.slider(VOLUME, 0, 1000000, "This slider is so cool, it doesn't even need a callback!", 500000)
Granted we've now adopted the better control methods in the updated SublimeKSP (the "control -> par := value" functionality is AWESOME!), so we don't deal with it anymore.
from sublimeksp.
the "control -> par := value" functionality is AWESOME!
Oh, awesome indeed! I didn't even know about this. I looked again at the documentation and couldn't find it mentioned anywhere. There's one snippet of code in the section about multidimensional UI arrays that quietly uses this syntax and I missed it.
Maybe I'm blind. :)
from sublimeksp.
the "control -> par := value" functionality is AWESOME!
It is great! This is from Nils' features, but I don't believe it is documented anywhere. I'll quickly add it to the wiki.
from sublimeksp.
Fixed in the latest feature merge
from sublimeksp.
Related Issues (20)
- Traceback Error - Upgraded package from 1.12.2 to 1.15.0 HOT 2
- Allow combinable callbacks in macros HOT 2
- UI array parsing breaks when putting pers after ui_control
- Raise error with duplicate defines
- In-line Literate_macro not allowing literals inside strings
- Another issue with Combine Callbacks option
- Autocomplete adds arguments for macros/functions
- Inline multi-line functions HOT 1
- Compilation does not take into account changes to files until they are saved. HOT 3
- Catch instances of built-in functions being used in prohibited callbacks HOT 1
- "Optimize Compiled Code" option broken for HIDE_PART_BG .or. HIDE_PART_VALUE HOT 3
- SublimeKSP Autocomplete Issue: NIKontakt Variables vs. User Variables HOT 2
- Add a .SIZE define for literal defines #416 is not working HOT 3
- new "branch optimisation" breaks existing projects HOT 2
- Improve error dialog for UICB parsing
- Enable importing .ksp files from folders (#400) broke some imports here (possible old math library related) HOT 4
- optimize_code pragma is not working HOT 2
- Incorrect error message for undeclared struct field HOT 1
- Type casting issue: script runs in Kontakt 7 but fails to compile in Sublime KSP HOT 3
- Compilation error when declaring a local 2D array in a function HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sublimeksp.