User Tag List

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

Thread: [2.xx] Custom Global Pointers (The Easy Way)

  1. #1
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,762
    Level
    21
    vBActivity - Bars
    Lv. Percent
    69.24%

    [2.xx] Custom Global Pointers (The Easy Way)

    If you add the ability to declare other data types (lweapon, ffc) at a global level, we could build our own quasi-objects, as custom pointers.

    As an example, I was trying to declare lweapon Player at a global level, so that I could make a custom player object with a pointer that I could call from anywhere.

    Is it possible to reference a pointer inside a script, from a global function in the same way that a script at local scope can call a function from elsewhere with :

    Code:
    scriptname:function()
    ?

    Code:
     scriptname:Pointer
    I suppose not, because the pointer isn't valid until it's executed...so, right, a decent amount of global pointers would be very helpful.

  2. #2
    Here lies mero. Died by his own dumbassitude.
    Join Date
    May 2011
    Posts
    929
    Mentioned
    102 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    5,527
    Level
    23
    vBActivity - Bars
    Lv. Percent
    13.96%
    Your forgetting one key component here. Everything is compiled into ZASM. So custom objects aren't happening till the total 3.0 rewrite.

  3. #3
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,762
    Level
    21
    vBActivity - Bars
    Lv. Percent
    69.24%
    Quote Originally Posted by Tamamo View Post
    Your forgetting one key component here. Everything is compiled into ZASM. So custom objects aren't happening till the total 3.0 rewrite.
    I'm also remembering that 2.60, is at least a partial engine re-write. I don;t know how much of ZASM Saffith plans to tough in 2.60, but it would be a good time to add things of this nature, that don't require full engine replacements. It would require expanding the assembly language to permit it, but it [the datatype and structure] would otherwise function in the same manner, as it does at present.

    That applies to the existing datatypes, of course. You couldn't expand them, or modify their structure, but you may be able to use them to define object-like behaviour. That's why I was specific, to the existing datatypes, and didn't request full-blown custom object definition.

  4. #4
    The Time-Loop Continues ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,826
    Mentioned
    259 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,958
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.17%
    Falls under custom scripted types, really, ..and I agree that it would be nice.

    A while back I wanted to add a new scripting language to ZC, angelscript, along with a full-blown c/c++ preprocessor, but nobody really seemed interested.
    It would have supported everything, basically, from user defined types to inheritance, inferfaces, mixins, function pointers, and on...

    There was that whole 'OMG no more new stuff, we want 2.5 released and bugfree now." ...and this reply is going nowhere, so....

    Quote Originally Posted by Tamamo View Post
    Your forgetting one key component here. Everything is compiled into ZASM. So custom objects aren't happening till the total 3.0 rewrite.
    How would running ZASM affect using objects?
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  5. #5
    Username Kaiser SUCCESSOR's Avatar
    Join Date
    Jul 2000
    Location
    Winning.
    Age
    37
    Posts
    4,436
    Mentioned
    152 Post(s)
    Tagged
    7 Thread(s)
    vBActivity - Stats
    Points
    10,563
    Level
    30
    vBActivity - Bars
    Lv. Percent
    52.03%
    Quote Originally Posted by Gleeok View Post
    Falls under custom scripted types, really, ..and I agree that it would be nice.

    A while back I wanted to add a new scripting language to ZC, angelscript, along with a full-blown c/c++ preprocessor, but nobody really seemed interested.
    :O

    That's because people are stupid.It's never too late, you know!

  6. #6
    Here lies mero. Died by his own dumbassitude.
    Join Date
    May 2011
    Posts
    929
    Mentioned
    102 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    5,527
    Level
    23
    vBActivity - Bars
    Lv. Percent
    13.96%
    @Gleeok

    If you say it's possible and we can go about implementing user defined pointers and pointer functions. Then I'm all for it. Let's do this shit, but we're still waiting for opensource. :p

  7. #7
    The Time-Loop Continues ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,826
    Mentioned
    259 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,958
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.17%
    I'm tired of waiting for open source too. TBH I don't see myself fixing the ZC qsu problem so I might as well put up ZQ.


    It would be an interesting experiment though!! -Put in another script language and let the two duke it out and see which one people start using more. XD
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  8. #8
    Here lies mero. Died by his own dumbassitude.
    Join Date
    May 2011
    Posts
    929
    Mentioned
    102 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    5,527
    Level
    23
    vBActivity - Bars
    Lv. Percent
    13.96%
    I still gotta fix wizzrobes though @Gleeok .

  9. #9
    Username Kaiser SUCCESSOR's Avatar
    Join Date
    Jul 2000
    Location
    Winning.
    Age
    37
    Posts
    4,436
    Mentioned
    152 Post(s)
    Tagged
    7 Thread(s)
    vBActivity - Stats
    Points
    10,563
    Level
    30
    vBActivity - Bars
    Lv. Percent
    52.03%
    Quote Originally Posted by Gleeok View Post
    I'm tired of waiting for open source too. TBH I don't see myself fixing the ZC qsu problem so I might as well put up ZQ.
    What is the qsu problem? I don't see a point in waiting for it to be perfect. It's not like it can't be fixed later.

  10. #10
    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,432
    Level
    24
    vBActivity - Bars
    Lv. Percent
    70.02%
    I am actually leaning toward Angelscript, but I haven't tried doing much with it yet. Just seems a bit premature, y'know? I've got some ideas, but I don't know to what degree it will work the way I want it to.

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