Plugins & Behaviors in development

Post your work in progress addons and get feedback

Post » Fri Jan 06, 2012 11:51 pm

I've been meaning to make an enum plugin. I really miss them from other languages.

I end up having a lot of global variables such as UPGRADE_MOVESPEED, UPGRADE_SCOREMULT, etc so that I can then do things like upgradeData.At(UPGRADE_MOVESPEED, UPGRADE_PRICE) without having to remember which entry in the array the upgrade I want is at.

There's many more examples of cases where I find this approach is useful but I end up with 834239012093 global variables that I treat as const's cluttering up my variable list.

The plugin would let you do something like this:
- action -> create enum "UPGRADES"
- action -> add "PRICE" to enum "UPGRADES"
- and then you can use expression UPGRADES.PRICE

Any thoughts / advice before I start this in the next few days?wgfunstorm2012-01-06 23:52:54
B
21
S
8
G
5
Posts: 122
Reputation: 5,001

Post » Sat Jan 07, 2012 12:25 am

[QUOTE=wgfunstorm] I've been meaning to make an enum plugin. I really miss them from other languages.

I end up having a lot of global variables such as UPGRADE_MOVESPEED, UPGRADE_SCOREMULT, etc so that I can then do things like upgradeData.At(UPGRADE_MOVESPEED, UPGRADE_PRICE) without having to remember which entry in the array the upgrade I want is at.

There's many more examples of cases where I find this approach is useful but I end up with 834239012093 global variables that I treat as const's cluttering up my variable list.

The plugin would let you do something like this:
- action -> create enum "UPGRADES"
- action -> add "PRICE" to enum "UPGRADES"
- and then you can use expression UPGRADES.PRICE

Any thoughts / advice before I start this in the next few days?[/QUOTE]

That actually sounds a lot like rex's hash table plug
http://www.scirra.com/forum/plugin-hash-table_topic47637_post298284.htmlnewt2012-01-07 00:26:22
B
104
S
32
G
18
Posts: 4,760
Reputation: 22,509

Post » Sat Jan 07, 2012 4:16 am

There's certainly some similarities, and it would theoretically be possible to achieve what I want with a hashtable, but I really don't need the extra functionality of having to worry about matching keys->values. I like the simplicity of enum's that create & manage unique numeric keys behind the scenes for me.
B
21
S
8
G
5
Posts: 122
Reputation: 5,001

Post » Sat Jan 07, 2012 5:18 am

Parsing strings isn't a real big deal atm, but the number of plugs that can load a file type is kinda low.

So what does everybody think would be the best overall type?
I'm guessing xml myself.
B
104
S
32
G
18
Posts: 4,760
Reputation: 22,509

Post » Sat Jan 07, 2012 5:53 am

I could see myself using that

Also the plugin you linked me above parses JSON->hashtable and can convert to string, which sounds pretty useful. Maybe you could team up with Rex and add XML to his plugin? Just a thought.wgfunstorm2012-01-07 05:58:36
B
21
S
8
G
5
Posts: 122
Reputation: 5,001

Post » Sat Jan 07, 2012 1:21 pm

@wgfunstorm

That's a good idea, which I miss now is a XML parser/transfer.
B
61
S
13
G
11
Posts: 1,907
Reputation: 14,052

Post » Mon Jan 09, 2012 6:50 pm

@smitchell
Hopefully they'll be useful for your use.
It's really a big job to adapt it, I encountered several bugs but I see the end ;)
I think that is a plugin will need to update considering users feedbacks

Also guys, to give all sense to this thread, could the plugin developers send me a pm with the plugin they are developing or the one(s) they'll start in a close time.
I'll do a list on the first post to get more clearness.

Thanks
B
33
S
11
G
13
Posts: 601
Reputation: 9,904

Post » Mon Jan 09, 2012 8:25 pm

@septeven, Yeah definitely.
Yeah I can imagine its huge!!

Would it be possible when you have the chance to give a few feature's it will include?
B
27
S
10
G
7
Posts: 740
Reputation: 7,230

Post » Mon Jan 09, 2012 8:35 pm

@smitchell
Let me know by PM what do you need exactly, I'll try to add it if it's not already done.
B
33
S
11
G
13
Posts: 601
Reputation: 9,904

Post » Sat Jan 14, 2012 1:01 am

I start (on the first page) a list of plugins/behaviors that developers are developing or are planned to develop.
Send me by PM, your list with a little description as below. Thanks.

@Kyatric @Tom When I edit this topic, it takes off the stickied mode... ?
B
33
S
11
G
13
Posts: 601
Reputation: 9,904

PreviousNext

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests