User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 27

Thread: it wont let me compile scripts.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Gel
    Join Date
    Mar 2008
    Age
    30
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    684
    Level
    9
    vBActivity - Bars
    Lv. Percent
    24.36%

    it wont let me compile scripts.

    i import the script and it acts like its gonna but then it says "there were compile errors. compilation halted." help plz!

  2. #2
    Gibdo Master Maniac's Avatar
    Join Date
    Aug 2007
    Location
    umm in a house
    Age
    32
    Posts
    646
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,535
    Level
    16
    vBActivity - Bars
    Lv. Percent
    47.61%

    Re: it wont let me compile scripts.

    that means somethings wrong with the script.

    did you write it? if not what script is it? maybe ill find whats wrong and fix it so it can work.

    also, is it a ZScript type of script or ZASM?

    it makes a difference in compiling.

    the compiler usually tells you whats wrong with it, so i use that as a correction tool. what does it say when you try to compile it? is that the only message you get?

    ...also i think this goes in script general discussion/help...

    someone should make a sticky about this. if the mods let me post it here (so n00bs can find it easier and stop making threads like this lol) ill volunteer for it.
    ... i just died a little inside...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    "this time, of this sixteenth of a thousand lives will be my last, and this curse will be broken. though my fate is to burn in hell, it is worse to live among the thousand lifetimes that i have been sentenced to, than it would be to have satan tear the flesh from my body repeatedly for an eternity"

    --Andross Maximillion Remedy
    (otherwise known as Rem)

  3. #3
    Gel
    Join Date
    Mar 2008
    Age
    30
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    684
    Level
    9
    vBActivity - Bars
    Lv. Percent
    24.36%

    Re: it wont let me compile scripts.

    i didn't write it. its a script for letting link be able to read a sign post.

  4. #4
    Gibdo Master Maniac's Avatar
    Join Date
    Aug 2007
    Location
    umm in a house
    Age
    32
    Posts
    646
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,535
    Level
    16
    vBActivity - Bars
    Lv. Percent
    47.61%

    Re: it wont let me compile scripts.

    ok... do you know the difference between ZScript and ZASM?

    ZASM is written in all caps.

    ZScript isnt.

    have you looked at it? after you do tell me which one it is and ill tell you where to go from there.
    ... i just died a little inside...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    "this time, of this sixteenth of a thousand lives will be my last, and this curse will be broken. though my fate is to burn in hell, it is worse to live among the thousand lifetimes that i have been sentenced to, than it would be to have satan tear the flesh from my body repeatedly for an eternity"

    --Andross Maximillion Remedy
    (otherwise known as Rem)

  5. #5
    Gel
    Join Date
    Mar 2008
    Age
    30
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    684
    Level
    9
    vBActivity - Bars
    Lv. Percent
    24.36%

    Re: it wont let me compile scripts.

    its zscript

  6. #6
    Gibdo Master Maniac's Avatar
    Join Date
    Aug 2007
    Location
    umm in a house
    Age
    32
    Posts
    646
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,535
    Level
    16
    vBActivity - Bars
    Lv. Percent
    47.61%

    Re: it wont let me compile scripts.

    ok heres how to set this script up then.

    save the file with an extension of .z
    example,

    right:
    Code:
    signpost.z
    wrong:
    Code:
    signpost.z.txt
    anything with .txt or anything like that will be wrong.

    so next,

    go to the editor and follow this CAREFULLY!! this means dont talk to strangers and NO bathroom breaks

    Tools>Scripts>Compile Zscript
    now click "import" and select your file.
    then click "compile"
    if the script is ok and has no errors, you will see a message (i dont know exactly what it says though)
    after the message a box will pop up. here you add your script to the list.

    there are 3 tabs at the top. FFC Global and Item. under one of those 3 is your signpost script. i think a signpost would be in the FFC tab

    find it, highlight it and click the "<<" button

    there you go!

    now using the script might be a little harder to explain.

    EDIT:lol i like being helpful XD
    ... i just died a little inside...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    "this time, of this sixteenth of a thousand lives will be my last, and this curse will be broken. though my fate is to burn in hell, it is worse to live among the thousand lifetimes that i have been sentenced to, than it would be to have satan tear the flesh from my body repeatedly for an eternity"

    --Andross Maximillion Remedy
    (otherwise known as Rem)

  7. #7
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    33
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,305
    Level
    26
    vBActivity - Bars
    Lv. Percent
    9.01%

    Re: it wont let me compile scripts.

    Come on guys, he's got undeclared constants in that script.


    At the top of your script file, copy in this:
    Code:
    import "std.zh"
    It needs to be at the top of all script files to load in some number constants that the system uses.
    The script was referencing them, but it didn't know where they were.

    Make sure you keep all your scripts in the same file too, that's quite important.

    EDIT: Oops, you put it in there already.
    Missed that, sorry.

    Code:
    import "std.zh"
    
    ffc script signpost{
    	void run(int m){
    		while(true){
    			while(Link->X < this->X - 8 || Link->X > this->X + 24 || Link->Y < this->Y || Link->Y > this->Y + 24 || Link->Dir != DIR_UP || !Link->InputL || Link->Z != 0){
    				Waitframe();
    			}
    			Link->InputL = false;
    			Screen->Message(m);
    			while(Link->X >= this->X - 8 && Link->X <= this->X + 24 && Link->Y >= this->Y && Link->Y <= this->Y + 24 && Link->Dir == DIR_UP){
    				Waitframe();
    			}
    			Screen->Message(0);
    		}
    	}
    }
    Try that.

  8. #8
    Gel
    Join Date
    Mar 2008
    Age
    30
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    684
    Level
    9
    vBActivity - Bars
    Lv. Percent
    24.36%

    Re: it wont let me compile scripts.

    nope still nothing. in fact it won't compile any scripts.

  9. #9
    Gibdo bobrocks95's Avatar
    Join Date
    Dec 2007
    Age
    29
    Posts
    604
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,126
    Level
    15
    vBActivity - Bars
    Lv. Percent
    25.52%

    Re: it wont let me compile scripts.

    Is the error message still the same? What version are you using?

    Click here to level up my card!


    "Everybody's doing it... I just wanted to be popular."
    Bender- Futurama

  10. #10
    Gel
    Join Date
    Mar 2008
    Age
    30
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    684
    Level
    9
    vBActivity - Bars
    Lv. Percent
    24.36%

    Re: it wont let me compile scripts.

    the message for every script? im using either 2.5 or 2.11 idk

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social