Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: wookieejedi on March 10, 2017, 10:25:00 am

Title: Variable and/or Event Limit?
Post by: wookieejedi on March 10, 2017, 10:25:00 am
With the current engine, is there a limit on the number of total variables, player persistent variables, and/or Events in a mission? I have tried finding the answer on the forum, but most of the information I have found is somewhat conflicting and outdated. Any comments on the recent maximums, if there are any, would be greatly appreciated! Thanks!
Title: Re: Variable and/or Event Limit?
Post by: The E on March 10, 2017, 10:42:06 am
You can have:
   - 250 variables in a mission
   - 512 events in a mission

There is no separate limit for player or campaign persistant variables.
Title: Re: Variable and/or Event Limit?
Post by: wookieejedi on March 10, 2017, 10:50:56 am
You can have:
   - 250 variables in a mission
   - 512 events in a mission

There is no separate limit for player or campaign persistant variables.

Perfect, thanks! Do you also happen to know the updated limit on number of objects in a mission?
Title: Re: Variable and/or Event Limit?
Post by: The E on March 10, 2017, 11:03:57 am
There is a maximum of 3500 objects.

However, be aware that all ships and all weapons (from laser blasts to missiles) all take up one object slot each; there are separate limits for weapons (2000), ships (400), asteroids (512) and pieces of debris (64).

I should add that any mission that comes close to hitting any of those limits (including the mission events and variables ones) is probably too complicated and should be refactored.
Title: Re: Variable and/or Event Limit?
Post by: wookieejedi on March 10, 2017, 11:22:19 am
There is a maximum of 3500 objects.

However, be aware that all ships and all weapons (from laser blasts to missiles) all take up one object slot each; there are separate limits for weapons (2000), ships (400), asteroids (512) and pieces of debris (64).

I should add that any mission that comes close to hitting any of those limits (including the mission events and variables ones) is probably too complicated and should be refactored.

Perfect, thanks! Certainly more then I will ever need.