C2 SDK Documentation incomplete!

If you have found a bug, or have a suggestion/comment then leave it here

Post » Mon Apr 25, 2016 6:28 am

I was wondering if the documentation for Construct 2 SDK is incomplete, because I was looking at the Function plugin code and saw `cf_fast_trigger` flag which is not documented.

Is that flag the only thing missing from the SDK documentation or are there more? I'm writing a plugin and would like to know about all the tools I can use.
ImageImageImage
B
14
S
5
G
2
Posts: 22
Reputation: 2,151

Post » Mon Apr 25, 2016 10:34 am

Some things are deliberately not documented. The fast trigger flag was designed specifically for the Function object, and has a bunch of fairly obscure caveats and usage requirements that are fine for the Function object but make it unsuitable for other usage. So yeah, the engine has a bunch of undocumented capabilities but generally if they're not documented it's because there's not much reason for any third party developers to use them, or we don't want to have to support them if people ran in to the various caveats.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772

Post » Tue Apr 26, 2016 3:38 am

@ramtinsoltani

You can learn how obscure things work by looking at all the runtime code etc. but it's a lot of work and generally you dont need much of the functionality except in very fringe cases.
B
77
S
13
G
8
Posts: 1,973
Reputation: 9,891

Post » Wed Apr 27, 2016 6:40 am

@ashley Fair enough. I'm creating a plugin which would trigger functions and has some similar conditions compared to Functions. It would work as an addon to the Functions plugin. Do you recommend me to avoid `cf_fast_trigger | cf_trigger` or would it be ok to use it due to the similarity between Functions and my plugin?
ImageImageImage
B
14
S
5
G
2
Posts: 22
Reputation: 2,151

Post » Wed Apr 27, 2016 6:42 am

@QuaziGNRLnose Thanks for the reply.
ImageImageImage
B
14
S
5
G
2
Posts: 22
Reputation: 2,151

Post » Wed Apr 27, 2016 5:03 pm

I have no idea what your plugin does, so I can't comment at all.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772

Post » Thu Apr 28, 2016 1:12 am

@ramtinsoltani

The behavior of "cf_fast_trigger" and "cf_trigger" is totally incompatible.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Fri Apr 29, 2016 1:12 pm

@ashley The plugin brings the concept of Delegates and allows functions to be grouped with a delegate and be all invoked by that delegate. I have conditions such as: On delegate invoked, on delegate removed, etc. and I want them to be triggered without any delays. Can I use the 'cf_trigger_fast'? If so, what would be the benefit of it? What tweaks are done on that unique trigger against the normal triggers? Can I benefit from them?
ImageImageImage
B
14
S
5
G
2
Posts: 22
Reputation: 2,151

Post » Fri Apr 29, 2016 1:14 pm

@rexrainbow Why would the already documented 'cf_trigger' flag be incompatible?
ImageImageImage
B
14
S
5
G
2
Posts: 22
Reputation: 2,151

Post » Fri Apr 29, 2016 1:54 pm

@ramtinsoltani

You could place a break point ( instruction "debugger" ) in function "Cnds.prototype.OnFunction" ( line 143 , in runttime.js , official function plugin ), then trace the execution.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Next

Return to Website Issues and Feedback

Who is online

Users browsing this forum: No registered users and 1 guest