Plugins & Behaviors in development

Post your work in progress addons and get feedback

Post » Fri Jan 25, 2013 12:48 am

[QUOTE=rexrainbow] I put my TODO list of my plugins in here. Uh, might be a little long...[/QUOTE]
That plugin for Pomelo (which I'm discovering btw) sounds exciting ^^
B
20
S
5
G
8
Posts: 325
Reputation: 6,473

Post » Fri Jan 25, 2013 7:25 am

@lemo

The plan of this plugin does not include server programming.
I'm thinking that is it possible to create server logic by C2.
- C2 could create application running at linux (r116)
- C2 could create a server running at windows

-> Could C2 create a server at linux?rexrainbow2013-01-25 07:31:58
B
97
S
22
G
176
Posts: 4,109
Reputation: 103,021

Post » Mon Jan 28, 2013 3:42 am

Making a plugin for use of volume buttons and potentially pwr button
B
5
S
1
Posts: 30
Reputation: 672

Post » Wed Jan 30, 2013 1:52 am

we need a microphone input plugin , why doesnt this come with the base of construct 2?
B
5
S
1
Posts: 30
Reputation: 672

Post » Thu Jan 31, 2013 12:21 am

@MohawkEnderman

Microphone record & compress by @Pode
B
97
S
22
G
176
Posts: 4,109
Reputation: 103,021

Post » Mon Mar 04, 2013 2:47 pm

@Wastrel - I see in the first post of this thread that, like me, you're interested in A.I. Did either of your FSM or behaviour tree plugins mentioned there ever come to fruition? I'd be interested to know what functionality your FSM behaviour provides that differs from, say, using an instance variable to record an object's current state, and a set of conditional events to handle transitions to other states.

I have my own existing Javascript implementations of Genetic Algorithms and Artificial Neural Networks that I'm considering wrapping into plugins. The problem is that, in order to be useful, they both require a reasonable amount of scenario-specific customisation that is easier to achieve at the code level rather than via C2's GUI. I'm therefore dubious of the value of providing them as plugins, since it would only really be useful to people who were happy to dabble with the code....
B
8
S
2
G
3
Posts: 83
Reputation: 2,668

Post » Mon Mar 04, 2013 4:13 pm

@tanoshimi

I had made a FSM plugin/behavior before, and use it to control the game flow.

The transitions (enter/exit) are option events. "action:Request" will trigger "condition:On transfer" logic of current state, for setting new state by "action: Set next state".

I had made another fuzzy plugin.
Here is an example to use fuzzy logic to simulate behavior of fish.
- click to put feed
- click gray plan to open ui for creating a new fish. Click ones to close it.

And it is the define of memberships and fuzzy logic in this demo.



I had not released these plugins because that I did not know how to explain these concepts for beginner.rexrainbow2013-03-04 16:35:11
B
97
S
22
G
176
Posts: 4,109
Reputation: 103,021

Post » Mon Mar 04, 2013 5:42 pm

@rex - very interesting, thanks. I've always implemented FSM behaviour directly through the event sheet, although I see your method has the potential to be slightly tidier, particularly with respect to the OnExit/OnEnter triggers.

If you'd be willing to share your fuzzy logic plugin I'd be very interested to see it. I've never really seen the point of fuzzy logic - I find you can achieve better results from modelling uncertainty using probabilistic methods.

Maybe I'll have a go at porting my ANN to a plugin and see whether it's usable or not!
B
8
S
2
G
3
Posts: 83
Reputation: 2,668

Post » Mon Mar 04, 2013 5:49 pm

@tanoshimi, I was never able to complete my plugin. Not long after that post, my professional life went through some rather drastic changes (positive changes, thankfully), and I found myself with no time to complete any of my gaming projects.

@rexrainbow's solution looks like a good one (as always).
Don't see the fnords and they won't eat you!
B
75
S
16
G
12
Posts: 322
Reputation: 11,608

Post » Mon Mar 04, 2013 11:35 pm

@tanoshimi

Most of my plugins are trying to decrease the usage of events, except fsm plugin. FSM plugin will increase the event counts because it split transitions and transfer logic into different events.
The reasons of using fsm are
1. it provides javascript input to do logic and/or/not (I made fsm plugin before C2 had "OR" block, now it is not an advantage at all.)
2. it is clear for designer to list transitions and transfer logic.
3. designer could trace the state changed at "condition:on state changed" (not shown above)

The source code of fuzzy plugin is here. I might release it when I have time.rexrainbow2013-03-04 23:49:10
B
97
S
22
G
176
Posts: 4,109
Reputation: 103,021

PreviousNext

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests