The Daily Click ::. Forums ::. Klik Coding Help ::. No more than 127 actions?
 

Post Reply  Post Oekaki 
 

Posted By Message

]Alpha[



Registered
  19/09/2003
Points
  245
6th October, 2009 at 18:27:07 -

Hi guys,
I have this problem :
Every condition line can perform no more than 127 actions.
So if I try to add a 128th action, MMF says that I can't do it since the maximum number of action is 127.
I discovered that If I copy/paste some action, I can go over the limit and have an higher number of actions.

The question is :
Is it fine or is it a problem?
Having more than 127 action could result in some sort of bug or lag or something bad?

Thank you in advance


 
All that I see is the years...

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
6th October, 2009 at 18:49:02 -

I wouldn't rule out program crashes or some actions being ignored. It might be a better idea to split them into multiple conditions (for example have one of your actions being setting a flag on, then check the next line if the flag is on)

Also, why would you need more than 127 actions in one condition?

Edited by X_Sheep

 
a/n

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14456

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
6th October, 2009 at 20:01:55 -

Ive never known any condition to even come close to 127. Are you using lots of Ors or something?

 
.

MrMcFlurry



Registered
  03/08/2009
Points
  89

360 Owner
6th October, 2009 at 20:10:14 -


Originally Posted by AndyUK
Ive never known any condition to even come close to 127. Are you using lots of Ors or something?



He's talking actions, not conditions

Still, seems excessive. as suggested above, spread it over multiple conditions, dont wanna risk breaking it, or perhaps consider another way of doing what you're trying to do, cos it sounds awfully inefficient.

Edited by MrMcFlurry

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  50102

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
6th October, 2009 at 21:40:16 -

I always have a object specifically for this case. I switch on a flag and right after the condition where I need more actions have a check to see if this flag is on. It runs the extra actions and switches it off.

You can use this same flag for all the instances where this occurs with no interference because it is checked after every condition that uses it.

The less conditions you have to perform one task the more actions you have to use to make up for it.

 
n/a

]Alpha[



Registered
  19/09/2003
Points
  245
6th October, 2009 at 21:45:44 -

Thank you for the answers guys
I can handle the problem... I was just curious to know if having more than 127 actions in only 1 condition would cause problems or not.


 
All that I see is the years...

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
7th October, 2009 at 01:19:58 -

I've done it, but it makes it impossible to read because of the way the event editor works.

You can work around it by splitting your event into more events.

Condition
+ Action1
+ Action2
...
+ Action126
+ Start loop "NextAction"

On loop "NextAction"
+ Action127
+ Action 128

I'd suggest splitting an event after like 30 actions or so, otherwise it becomes impossible to read in the event list

Edited by Muz

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

~Matt Esch~

Stone Goose

Registered
  30/12/2006
Points
  870

VIP Member
7th October, 2009 at 09:41:47 -

I am assuming the reason that there's a fixed amount of actions is because there's a fixed size array associated with the actions somewhere. If you define more than 127 actions they could simply be ignored, or maybe placed in a part of memory that it shouldn't be placed, even though it might not always cause problems. This is probably one to ask at the CT forums.

 
http://create-games.com/project.asp?id=1875 Image


bigredron



Registered
  07/04/2007
Points
  299
7th October, 2009 at 12:13:31 -

I think its more to do with how much they can fit into a byte? Got no idea.
But I couldnt imagine using that many actions in 1 events. I would just split up into smaller chunks for the sake of your sanity.

 
n/a

]Alpha[



Registered
  19/09/2003
Points
  245
9th October, 2009 at 09:46:55 -


Originally Posted by bigredron
I think its more to do with how much they can fit into a byte? Got no idea.
But I couldnt imagine using that many actions in 1 events. I would just split up into smaller chunks for the sake of your sanity.



It's not like all the events in my game are associated to more than 127 actions each
I just have one single event in all the game that is related to more than 127 actions
As I said, that's a problem I can easily manage but since I didn't find any problems to go over the limit, I was just curious to know why I didn't get any errors

Once again, thank you all for the kind answers

 
All that I see is the years...

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
10th October, 2009 at 03:58:10 -

The reason you didn't get any errors is probably coz it's a bug. I don't think you can easily read it when it's at 30 actions, much less if it's at 127, so it's just one of those bugs that would get written off as "psychotic user behavior" if any testers ever saw it

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image
   

Post Reply



 



Advertisement

Worth A Click