Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Linkedlist

 
Post new topic   Reply to topic Printable version
 View previous topic  Ball or Setting Post :: Post Voting tutorial...  View next topic  
Author Message
The Arctica
Newbie


Gender:Gender:Male
Joined: Dec 04 2004
Posts: 13
Offline

PostPosted: Wed Feb 23, 2005 7:38 am    Post subject: Linkedlist Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Wed Feb 23, 2005 10:37 am    Post subject: Reply to topic Reply with quote

Code: Show/Hide

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

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

_________________
4,691 irradiated haggis!
Back to top
View users profile Send private message Add User to Ignore List
The Arctica
Newbie


Gender:Gender:Male
Joined: Dec 04 2004
Posts: 13
Offline

PostPosted: Wed Feb 23, 2005 10:58 am    Post subject: Reply to topic Reply with quote

i forgot to say that im trying to add a voting linkedlist ;/
Back to top
View users profile Send private message Add User to Ignore List
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Wed Feb 23, 2005 11:17 am    Post subject: Reply to topic Reply with quote

Why not attach the votes directly to the players?
Back to top
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Wed Feb 23, 2005 3:09 pm    Post subject: Reply to topic Reply with quote

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
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
The Arctica
Newbie


Gender:Gender:Male
Joined: Dec 04 2004
Posts: 13
Offline

PostPosted: Wed Feb 23, 2005 6:38 pm    Post subject: Reply to topic Reply with quote

d1st0rt, i love you
Back to top
View users profile Send private message Add User to Ignore List
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Wed Feb 23, 2005 10:14 pm    Post subject: Reply to topic Reply with quote

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).
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Wed Feb 23, 2005 11:22 pm    Post subject: Reply to topic Reply with quote

all you really need to understand linked lists is pointers
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Thu Feb 24, 2005 9:56 am    Post subject: Reply to topic Reply with quote

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
_________________
Performance is often the art of cheating carefully. - James Gosling




linked list diagram

linked-list.png - 4.28 KB
File downloaded or viewed 123 time(s)
Back to top
View users profile Send private message Add User to Ignore List
The Arctica
Newbie


Gender:Gender:Male
Joined: Dec 04 2004
Posts: 13
Offline

PostPosted: Thu Feb 24, 2005 2:20 pm    Post subject: Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Thu Feb 24, 2005 2:42 pm    Post subject: Reply to topic Reply with quote

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?"
Back to top
View users profile Send private message Add User to Ignore List
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Thu Feb 24, 2005 2:42 pm    Post subject: Reply to topic Reply with quote

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 :/ ?
Back to top
View users profile Send private message Add User to Ignore List
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Fri Feb 25, 2005 10:08 am    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Fri Feb 25, 2005 10:11 am    Post subject: Reply to topic Reply with quote

Sorry, but how do I know where these paths exist to when I upload... o.o
Back to top
View users profile Send private message Add User to Ignore List
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Fri Feb 25, 2005 10:15 am    Post subject: Reply to topic Reply with quote

When you preview the post (you should) it will show links to the attached files, right click on them and copy the url.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:41
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Fri Feb 25, 2005 11:59 am    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List Send email
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Fri Feb 25, 2005 2:14 pm    Post subject: Reply to topic Reply with quote

Excellente!
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 176 page(s) served in previous 5 minutes.

phpBB Created this page in 0.533939 seconds : 43 queries executed (90.9%): GZIP compression disabled