Server Help

Bot Questions - Linkedlist

The Arctica - Wed Feb 23, 2005 7:38 am
Post subject: Linkedlist
Hey, does any have a website or something which explains how i can set up a _linkedlist, because someone explained me but it didnt work, and now i dont remember anymore sa_tongue.gif, so plz if anyone has a website which explains how to set it up. Then post a reply.

-Arctica
Mr Ekted - Wed Feb 23, 2005 10:37 am
Post subject:
Code: Show/Hide

struct node
   {
   struct node *prev;
   struct node *next;
   ...
   };

         A --> B --> C --> D --> NULL
NULL <-- A <-- B <-- C <-- D

The Arctica - Wed Feb 23, 2005 10:58 am
Post subject:
i forgot to say that im trying to add a voting linkedlist ;/
Mr Ekted - Wed Feb 23, 2005 11:17 am
Post subject:
Why not attach the votes directly to the players?
D1st0rt - Wed Feb 23, 2005 3:09 pm
Post subject:
Implementing this with tags would be very easy. To see how to do the tags and also using _linkedlists, check out http://wiki.minegoboom.com/index.php/MERVBot_Tutorial
The Arctica - Wed Feb 23, 2005 6:38 pm
Post subject:
d1st0rt, i love you
50% Packetloss - Wed Feb 23, 2005 10:14 pm
Post subject:
I think you need C++ classes. If you don't understand what Ekted wrote then you definatly need to learn what a linklist is FIRST before you jump into using catid's linklist class. Then learn a little bit about template classes so that you can read the code for yourself (datatypes.h in merv's source code).
Bak - Wed Feb 23, 2005 11:22 pm
Post subject:
all you really need to understand linked lists is pointers
CypherJF - Thu Feb 24, 2005 9:56 am
Post subject:
not sure if this will help any but.... here's a mini diagram of how a linked-list works. Each node has an object stored in it, as well as a pointer to the next node. Notice at the end, the final "next" pointer is null.




booya file id 1024 icon_wink.gif
The Arctica - Thu Feb 24, 2005 2:20 pm
Post subject:
well i got this all done and figured out what i had to know icon_wink.gif, but now when i started my bot and the bot is already running voting system then in terminal it says 'ERROR: Exception in plugin Master at slot 0 during event 2', and wont go on with anything, now what's my problem and where do i need to search? Many thanks

-Arctica icon_twisted.gif
Mr Ekted - Thu Feb 24, 2005 2:42 pm
Post subject:
Sigh. You have a bug. You need to be able to debug. No one can help you with "It doesn't work. What do I do?"
CypherJF - Thu Feb 24, 2005 2:42 pm
Post subject:
You'll need to locate the corresponding EVENT that = 2. Remember, it starts zero based, so count down from the top (i think it starts w/ EVENT_Tick) or w/e... Prob arena enter :/ ?
Smong - Fri Feb 25, 2005 10:08 am
Post subject:
Can you stop linking to the php in your img tags? It's spoiling my view of the statistics page. Unless mgb can add some code to that page so it ignores images when calculating the most downloaded file.
CypherJF - Fri Feb 25, 2005 10:11 am
Post subject:
Sorry, but how do I know where these paths exist to when I upload... o.o
Smong - Fri Feb 25, 2005 10:15 am
Post subject:
When you preview the post (you should) it will show links to the attached files, right click on them and copy the url.
Mine GO BOOM - Fri Feb 25, 2005 11:59 am
Post subject:
Smong wrote:
Can you stop linking to the php in your img tags? It's spoiling my view of the statistics page. Unless mgb can add some code to that page so it ignores images when calculating the most downloaded file.

Done. Simple WHERE `mimetype` NOT REGEXP 'image/' added to SQL command.
CypherJF - Fri Feb 25, 2005 2:14 pm
Post subject:
Excellente!
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group