User Tag List

Results 1 to 7 of 7

Thread: What is up with my Beta?

  1. #1
    Lynel
    Join Date
    Mar 2005
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,000
    Level
    17
    vBActivity - Bars
    Lv. Percent
    73.97%

    What is up with my Beta?

    Okay... I'm trying to compile a simple ZScript, and the errors I'm running across are that X and waitframe are uninitialized. =| Is there something I'm missing about using what are supposed to be pre-defined functions, or, is my ZHeader file just seriously screwed up?

  2. #2
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,433
    Level
    24
    vBActivity - Bars
    Lv. Percent
    70.08%

    Re: What is up with my Beta?

    You may want to post the script; it's hard to know without it whether those are, in fact, uninitialized.
    Although if I were to guess, I'd say you're probably using waitframe() and X instead of Waitframe() and this->X. Might that be the case?

  3. #3
    Lynel
    Join Date
    Mar 2005
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,000
    Level
    17
    vBActivity - Bars
    Lv. Percent
    73.97%

    Re: What is up with my Beta?

    ...That is ANNOYINGLY specific. I did "waitframe" and "This->X" instead of "Waitframe ()" and "this->X." I figured the this would be capitalized, since, you know, Link is capitalized. I figured they'd both be capitalized since they follow the same structure (name, pointer, variable), but, I guess I learned to always try both capitals and lowercase spellings, from now on. >_>;

  4. #4
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,028
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.52%

    Re: What is up with my Beta?

    Well, some general naming conventions currently in place:
    - All built-in functions and variables, whether they are global (Waitframe(), Link, Screen, etc) or attached to a type of pointer (ffc->X) start with a capital letter. You've found the only exception, the this pointer, which is lowercase in keeping with C++ tradition.
    - All data types are all-lowercase (ffc, item, int, bool, etc).
    - All constants in std.zh are in all-caps.

    So yes, it's not as simple as everything-is-lowercase, but on the other hand I don't think it's confusing enough to be worth changing

  5. #5
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,433
    Level
    24
    vBActivity - Bars
    Lv. Percent
    70.08%

    Re: What is up with my Beta?

    Also slightly odd is that run() isn't capitalized, unlike built-in and std.zh-defined functions.

  6. #6
    Lynel
    Join Date
    Mar 2005
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,000
    Level
    17
    vBActivity - Bars
    Lv. Percent
    73.97%

    Re: What is up with my Beta?

    Speaking of std.zh... is it SUPPOSED to be all jumbled down in the Combo Types section? >_>; I'm looking at it with Notepad, by the way.

    And since I forgot to say it before, thanks for the help, Saffith.

  7. #7
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,433
    Level
    24
    vBActivity - Bars
    Lv. Percent
    70.08%

    Re: What is up with my Beta?

    I think _L_ was the one who edited it, so it's probably using Mac-style newlines. Notepad doesn't think much of those.
    That'll be fixed next beta, but it should work fine in the meantime.
    Or I suppose I could just post the fixed version: std.zh

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