[Plugin] Gashapon

Post your completed addons to share with the community

Post » Tue Aug 04, 2015 11:10 am

@rexrainbow

Suggestion: multiple pattern groups

Right now it's only possible to generate one sequence of patterns, but it would be really cool to be able to define multiple pattern groups and retrieve patterns from them.

Example:

pattern group 1: "red" = 1; "green" = 1; "blue" = 1; "yellow" = 1; mode Shuffle
pattern group 2: "red" = 5; "green" = 10; "blue" = 1; "yellow" = 1; mode Random
pattern group 3: "red" = 1; "green" = 10; "blue" = 1; "yellow" = 3; mode Shuffle
etc.

Right now in order to achieve that you have to manually import PatternGen plugin for each group
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Post » Tue Aug 04, 2015 1:40 pm

@xoros

You might add multiple pattern gen objects into project, or create them at runtime.
B
97
S
22
G
177
Posts: 4,113
Reputation: 103,531

Post » Tue Aug 04, 2015 1:43 pm

Oh, didn't think about creating them on runtime.
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Post » Wed Aug 05, 2015 8:32 am

@rexrainbow

I tried to use 2 patternGen objects with the same random seed to generate same patterns for multiplayer game with a split screen, but the second patternGen does not generate the same pattern. Bug or feature?

Here is an example https://www.dropbox.com/s/k3okninb1rd21l4/patternGen.capx?dl=0
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Post » Wed Aug 05, 2015 4:11 pm

Update

Fix bug of assigning random gen object.


@xoros
It is a bug. Now you could download this plugin again. Moreover, you should assign different/dedicated random gen object for each pattern gen object.
B
97
S
22
G
177
Posts: 4,113
Reputation: 103,531

Post » Thu Aug 06, 2015 9:12 am

Great! Thanks.
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Post » Thu Aug 06, 2015 12:36 pm

@rexrainbow

about RandomGen plugin. Is it possible reset "seed sequence" from RandomGen? Right now I have to destroy RandomGen and create it again to achieve that, which is a bit of overhead.

Example:
RandomGen1 generated 15 numbers, RandomGen2 with the same seed generated 25 numbers and now they are out of sync. Resetting both RandomGens should sync them again.

by the way, very powerfull plugins, allowing you to save a lot of bandwidth and messages in multiplayer.
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Post » Thu Aug 06, 2015 2:54 pm

@xoros

Call "action: Set seed" again to reset(create) random gen object with specific seed.


Edit:
I had added an expression:Seed to get seed back in random gen plugin.
B
97
S
22
G
177
Posts: 4,113
Reputation: 103,531

Post » Thu Aug 06, 2015 3:00 pm

Thanks a lot!
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Post » Fri Sep 02, 2016 10:44 pm

i'm not really sure what this plugin is :? I was looking for a pattern generator but as far as i can see this is more like a shufflebag than a pattern generator, since pattern generator should have "a pattern" to follow, like
3,6,4 means that if i start at 1, then 4, then 10, then 14, then 17, etc...
and this looks like i can asign a number to a letter and then shuffle like a deck of cards or a bag of tokens. and it's cool :P but the name confuse me, OR maybe, the translation to spanish of "Pattern" is not as expected xD
B
13
S
3
Posts: 73
Reputation: 802

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests