Lengthy Rules

Hi fellow Devs,

I recently had a project become un-openable. I figured out how to get back into the project by deleting the perp actor (.xml file) and making a fake SameName.xml I then corrected the rest within GS.

My question is this. Can rules be too lengthy? So much so that the .xml files created get jacked up?

I vaguely remember this being the case with Blizzard's Warcraft III map editor. If you made If/Then/Else statements too long the code would sometimes get hosed.

Are there any known issues with rule or behavior length?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited May 2015

    I've never heard of this happening. My longest rule set in a single actor took a full minute to scroll through at a decent rate so I know I had a ton of rules and behaviors in there. I've learned a lot about using GameSalad since then and would be much more efficient about how I set it up now... lol!

    That particular actor would cause Creator to seize up for long periods (long to me at least... a minute or two) but it never malfunctioned or got corrupted. And this was way before the current performance issues with version 13.7.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • RowdyPantsRowdyPants Member Posts: 465

    @tatiang awesome tyvm :)

  • MarcMySaladMarcMySalad Member Posts: 158

    @RowdyPants I use "save as" all the time to save new copies of my project instead of just saving over the same version. It's an absolut must to do so since projects can become corrupted while working in the creator [I use the latest stable MAC version].

    I have some very long nested rules but as @tatiang wrote I have never seen any problem with that. Some piece of information that may be quite valuable for you to keep in mind though:

    *Save copies of your project and do so often
    *If you copy and paste something [like a rule, a change attribute etc] and suddenly experience that pasting no longer works*** then DO NOT save your project because it WILL be corrupted in that case

    ***[first you think that you did not really press the copy command on a rule so you will press the copy command again and then you will try to paste what you copied and then whatever you copied will not paste]

  • RowdyPantsRowdyPants Member Posts: 465

    @MarcMySalad Ah, gotcha. Thanks for the tip!

  • MarcMySaladMarcMySalad Member Posts: 158

    @RowdyPants np, you're welcome!

Sign In or Register to comment.