1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

A tutorial idea

Discussion in 'Programming' started by usaar33, Sep 7, 2001.

  1. usaar33

    usaar33 Un1337

    Joined:
    Mar 25, 2000
    Messages:
    808
    Likes Received:
    0
    I feel like writing a tutorial on linked lists (existing ones in UT, how they work, and how to create your own), simply because I am sick of seeing coders use foreach allactors (class'pawn',p)

    Would any be interested in this?
     
  2. Euphoric Beaver

    Euphoric Beaver impeccably groomed

    Joined:
    Apr 19, 2001
    Messages:
    3,158
    Likes Received:
    0
    I've never even heard of them. :D
     
  3. 2COOL4-U

    2COOL4-U New Member

    Joined:
    Mar 17, 2001
    Messages:
    505
    Likes Received:
    0
    I used foreach allactors(class'Pawn',P) for a long time now I use a for loop :)
     
  4. mr.s-d

    mr.s-d CHiMERiC Moderator

    Joined:
    Aug 30, 2001
    Messages:
    65
    Likes Received:
    0
    yeah, a tute on linked lists would be useful, as they're a fundamental part of any programmers toolkit
     
  5. nighthack

    nighthack New Member

    Joined:
    Sep 8, 2001
    Messages:
    21
    Likes Received:
    0
    Agree, could be kind of usefull. By the Way, whats wrong with:

    for (p=Level.Pawnlist; p!=None; p=p.NextPawn)
    //do some stuff here
     
  6. usaar33

    usaar33 Un1337

    Joined:
    Mar 25, 2000
    Messages:
    808
    Likes Received:
    0
    nothing.
    that is what you SHOULD be using rather than going through every actor :)
     
  7. Captain Kewl

    Captain Kewl I know kewl.

    Joined:
    Feb 13, 2001
    Messages:
    794
    Likes Received:
    0
    Except that it's not replicated to the client, so it's pretty useless for playerpawns and inventory items.
     
  8. usaar33

    usaar33 Un1337

    Joined:
    Mar 25, 2000
    Messages:
    808
    Likes Received:
    0
    yes, client-side you are stuck with foreach allactors()
    but rarely do you need to do that client-side

    and inv can be used as normal

    for (inv=pawn.inventory;inv!=none;inv=inv.inventory)
     
  9. nighthack

    nighthack New Member

    Joined:
    Sep 8, 2001
    Messages:
    21
    Likes Received:
    0
    I have suggestion concerning your eaggernes in writting tutorials...
    What about a linked list tutorial? I think that would be more useful, more interesting and I'm really in need to know how it works :D
     
  10. usaar33

    usaar33 Un1337

    Joined:
    Mar 25, 2000
    Messages:
    808
    Likes Received:
    0
    I just said that?
     
  11. Euphoric Beaver

    Euphoric Beaver impeccably groomed

    Joined:
    Apr 19, 2001
    Messages:
    3,158
    Likes Received:
    0
  12. mr.s-d

    mr.s-d CHiMERiC Moderator

    Joined:
    Aug 30, 2001
    Messages:
    65
    Likes Received:
    0
    Well, if no-one else feels writing a tute about linked lists, I'll eventually get around to doing it, probably expand the scope to include binary trees, and other useful data storage techniques.
    But for now, give this a read:

    http://members.tripod.co.uk/sotf/ll_bt.html
     
  13. nighthack

    nighthack New Member

    Joined:
    Sep 8, 2001
    Messages:
    21
    Likes Received:
    0
    I don't ment a tutorial concerning the use of existing linked lists, but rather the writing of a linked list class. Perhaps i should have mentioned that .... :(
     
  14. usaar33

    usaar33 Un1337

    Joined:
    Mar 25, 2000
    Messages:
    808
    Likes Received:
    0
    Ya, using linked lists includes created your own.

    Self Destruct, I'll write it real soon :)
     
  15. ca

    ca CHiMERiC Grandmaster

    Joined:
    Oct 11, 1999
    Messages:
    84
    Likes Received:
    0
    And the peasants rejoice!
     
  16. mr.s-d

    mr.s-d CHiMERiC Moderator

    Joined:
    Aug 30, 2001
    Messages:
    65
    Likes Received:
    0
    Thanks usaar33, if people continue to offer to write tutorials at the current rate I'll rarely have to do any work myself :)
     
  17. nighthack

    nighthack New Member

    Joined:
    Sep 8, 2001
    Messages:
    21
    Likes Received:
    0
    Ehmm .... just sit down and relax!! :D

    I'currently working on a weapon tutorial witch schould help to create a new weapon class from scratch, including most features that are available for a weapon such as instant hit, mellee weapons and writing Projectiles.

    If someone wants to contribute with Ideas, comments suggestions hes welcome. (why i'm asking? ehmm I'm new to that myself and writing it mainly to learn from)
     
  18. ca

    ca CHiMERiC Grandmaster

    Joined:
    Oct 11, 1999
    Messages:
    84
    Likes Received:
    0
    I'd be happy to proof-read and edit any tutorials if you would like. Just send it to ca@planetunreal.com and I'll check it out and give you any comments, or we can go ahead and post it if you think it's ready. I'm sure mrselfdestruct@planetunreal.com will do the same as well... :)
     
  19. Euphoric Beaver

    Euphoric Beaver impeccably groomed

    Joined:
    Apr 19, 2001
    Messages:
    3,158
    Likes Received:
    0
    Cool more tuts! I love tuts. :D
     

Share This Page