Results 1 to 7 of 7

Thread: Is there a limit on how many lines your script can contain?

  
  1. #1

    Default Is there a limit on how many lines your script can contain?

    I've been making levels and I'm very tempted to quit (which saddens me as I've made many) because I've encountered an unsurpassable problem.

    I have checked my script for accuracy (no missing parenthesis etc.) and my total IF statements do not exceed 48.

    The last 1/4 of my script will never work, regardless of what I have written there. I can shuffle the code around and every part of it works provided it is above where it usually wouldn't work.

  2. #2
    Awakening Game Master Metal Gear Rex's Avatar
    Join Date
    Sep 2009
    Posts
    5,689

    Default Re: Is there a limit on how many lines your script can contain?

    In these sorts of situations, it's usually a good idea to post your script for someone to be able to take a look at it to have a better idea on what the problem may be.
    Dungeon Keeper 2 Patch: With More Balance and Pie [Hiatus]
    Forever Hiatus. Probably. Latest Version: 3.5 w/Levels 1-11 Revised.

    The Awakening: GM Powers Activate!
    Tesonu is napping!

  3. #3

    Default Re: Is there a limit on how many lines your script can contain?

    Dick around on your level for a bit.
    Quit and open up KeeperFX.txt
    Ctrl-F "load_script"

    That's how you check if you're going over the IF/party/whatever limits.

    As Rex said, copy-paste your script into http://pastebin.com/ and post the link.

  4. #4

    Default Re: Is there a limit on how many lines your script can contain?

    Quote Originally Posted by Woudo View Post
    Dick around on your level for a bit.
    Quit and open up KeeperFX.txt
    Ctrl-F "load_script"

    That's how you check if you're going over the IF/party/whatever limits.

    As Rex said, copy-paste your script into http://pastebin.com/ and post the link.
    In the log, the only error is 'too many values', which is my problem.

    I never knew there was such a limit (includes virtually everything.. timers etc.).

    I assume that there will be no way around this other than to delete code. =\

  5. #5

    Default Re: Is there a limit on how many lines your script can contain?

    Yes. You must stay withing:

    16 tunneller triggers
    48 party triggers
    64 script values
    48 IF conditions
    16 party definitions

  6. #6
    Spider
    Join Date
    Mar 2013
    Location
    Cardiff, UK
    Posts
    206

    Default Re: Is there a limit on how many lines your script can contain?

    Do not despair. Limitations can often spur innovative solutions. I suggest you post your script here, and describe your intent, as there are a lot of very knowledgeable folks on this forum who will likely help you find a way to fix the problem. It'd be a shame to lose the hard work you've done,

    dayo

  7. #7

    Default Re: Is there a limit on how many lines your script can contain?

    Quote Originally Posted by dayokay View Post
    Do not despair. Limitations can often spur innovative solutions. I suggest you post your script here, and describe your intent, as there are a lot of very knowledgeable folks on this forum who will likely help you find a way to fix the problem. It'd be a shame to lose the hard work you've done,

    dayo
    I have since fixed my scripts. I am reluctant to post incomplete files as I want everything that I create to follow a personal consistency before it is released.

    While limitations are unfortunate, I do agree that they can prompt innovation. I have made many 'last minute' revisions because of them.

Similar Threads

  1. Doubling the thing count limit
    By darkkingkongman in forum KeeperFX
    Replies: 1
    Last Post: August 22nd, 2014, 16:25
  2. Heavanarius Creature Limit (Opinions?)
    By MeinCookie in forum Dungeon Keeper RPG - The Awakening
    Replies: 22
    Last Post: January 12th, 2012, 12:27
  3. Command Lines Option?
    By Darkforrest in forum KeeperFX
    Replies: 3
    Last Post: October 12th, 2011, 09:06
  4. Creatures Limit
    By Replica in forum KeeperFX
    Replies: 11
    Last Post: June 30th, 2011, 14:39
  5. Comand lines? :eek:
    By Keeper_Infernal in forum KeeperFX
    Replies: 2
    Last Post: May 22nd, 2011, 11:01

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •