Inside3D!
     

Frikbots & Skins
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Artificial Intelligence
View previous topic :: View next topic  
Author Message
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Thu Jun 28, 2007 2:35 pm    Post subject: Reply with quote

I'm sort of confused but I'll give it the old college try.
Thanks guys. Cool
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Thu Jun 28, 2007 9:39 pm    Post subject: Reply with quote

I tried it. The bots are all black :(
Please take a look at the code, see if you can help. Thanks.

// FIXME: do teams properly
// note this has no effect on infokey
WriteByte(2, 92 ); // \
WriteByte(2, 115); // s
WriteByte(2, 107); // k
WriteByte(2, 105); // i
WriteByte(2, 110); // n
WriteByte(2, 92); // \

if (self.b_num == 0)
{
WriteByte(2, 98); // b
WriteByte(2, 97); // a
WriteByte(2, 115); // s
WriteByte(2, 101); // e
}
else if (self.b_num == 1)
{
WriteByte(2, 102); // f
WriteByte(2, 111); // o
WriteByte(2, 111); // o
}
else if (self.b_num == 2)
{
WriteByte(2, 98); // b
WriteByte(2, 97); // a
WriteByte(2, 114); // r
}

WriteByte(2, 92); // \
WriteString( 2, who.netname);
};
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Thu Jun 28, 2007 10:13 pm    Post subject: Reply with quote

BTW I did make the skin files foo.pcx, bar.pcx and put them in the QW/skins folder.
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
FrikaC
Site Admin


Joined: 08 Oct 2004
Posts: 947

PostPosted: Fri Jun 29, 2007 12:21 am    Post subject: Reply with quote

1. that's only 3 out of 16 bot templates, look at bot_misc.qc's BotName function to see which b_num corresponds to which name/colors.

2. b_num has no 0, it's 1 thru 16, so you've only got 1 and 2 really implemented, that's 2 out of 16 bots.

3. It's actually who.b_num not self.b_num, I didn't convert it to the context of the function. (Gleaned from looking at the who.netname line)
Back to top
View user's profile Send private message Send e-mail
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Fri Jun 29, 2007 2:27 pm    Post subject: Reply with quote

Ok, I'll try it. Thanks.
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
Teiman



Joined: 03 Jun 2007
Posts: 309

PostPosted: Fri Jun 29, 2007 2:59 pm    Post subject: Reply with quote

Theres more than one way to skin a cat...

he.. ..frikbot.
Back to top
View user's profile Send private message
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Fri Jun 29, 2007 8:35 pm    Post subject: Reply with quote

Still all black, also I noticed the bots names do not appear in the scoreboard anymore. Anyway, here's what the code looks like now:

// FIXME: do teams properly
// note this has no effect on infokey
WriteByte(2, 92 ); // \
WriteByte(2, 115); // s
WriteByte(2, 107); // k
WriteByte(2, 105); // i
WriteByte(2, 110); // n
WriteByte(2, 92); // \

if (who.b_num == 1)
{
WriteByte(2, 98); // b
WriteByte(2, 97); // a
WriteByte(2, 115); // s
WriteByte(2, 101); // e
}
else if (who.b_num == 2)
{
WriteByte(2, 102); // f
WriteByte(2, 111); // o
WriteByte(2, 111); // o
}
else if (who.b_num == 3)
{
WriteByte(2, 98); // b
WriteByte(2, 97); // a
WriteByte(2, 114); // r
}
else if (who.b_num == 4)
{
WriteByte(2, 102); // f
WriteByte(2, 111); // o
WriteByte(2, 111); // o
}
else if (who.b_num == 5)
{
WriteByte(2, 98); // b
WriteByte(2, 97); // a
WriteByte(2, 114); // r
}
else if (who.b_num == 6)
{
WriteByte(2, 98); // b
WriteByte(2, 97); // a
WriteByte(2, 114); // r
}
else if (who.b_num == 7)
{
WriteByte(2, 102); // f
WriteByte(2, 111); // o
WriteByte(2, 111); // o
}
else if (who.b_num == 8)
{
WriteByte(2, 98); // b
WriteByte(2, 97); // a
WriteByte(2, 114); // r
}
else if (who.b_num == 9)
{
WriteByte(2, 102); // f
WriteByte(2, 111); // o
WriteByte(2, 111); // o
}
else if (who.b_num == 10)
{
WriteByte(2, 98); // b
WriteByte(2, 97); // a
WriteByte(2, 114); // r
}
else if (who.b_num == 11)
{
WriteByte(2, 102); // f
WriteByte(2, 111); // o
WriteByte(2, 111); // o
}
else if (who.b_num == 12)
{
WriteByte(2, 98); // b
WriteByte(2, 97); // a
WriteByte(2, 114); // r
}
else if (who.b_num == 13)
{
WriteByte(2, 98); // b
WriteByte(2, 97); // a
WriteByte(2, 114); // r
}
else if (who.b_num == 14)
{
WriteByte(2, 102); // f
WriteByte(2, 111); // o
WriteByte(2, 111); // o
}
else if (who.b_num == 15)
{
WriteByte(2, 98); // b
WriteByte(2, 97); // a
WriteByte(2, 114); // r
}
else if (who.b_num == 16)
{
WriteByte(2, 98); // b
WriteByte(2, 97); // a
WriteByte(2, 114); // r
}
WriteByte(2, 92); // \
WriteString( 2, who.netname);
};
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Sat Jun 30, 2007 6:35 pm    Post subject: Reply with quote

Bueller? Bueller? Bueller?......
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
Error
Inside3D Staff


Joined: 05 Nov 2004
Posts: 558
Location: VA, USA

PostPosted: Sun Jul 01, 2007 7:33 pm    Post subject: Reply with quote

I hated that damn movie Confused
_________________
Inside3D : Knowledge Is Power
Darkplaces Documentation Wiki
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Sun Jul 01, 2007 11:16 pm    Post subject: Reply with quote

That was a classic!
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Mon Jul 02, 2007 8:16 pm    Post subject: Reply with quote

So, can anyone help me with this???
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
FrikaC
Site Admin


Joined: 08 Oct 2004
Posts: 947

PostPosted: Mon Jul 02, 2007 9:21 pm    Post subject: Reply with quote

That should work. Are you sure those foo and bar pcx files you have are right size & format?
Back to top
View user's profile Send private message Send e-mail
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Tue Jul 03, 2007 12:30 am    Post subject: Reply with quote

Yeah, the skins are good I've used them before. I just re-named them to foo, and bar.
Did you happen to test it yourself?
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Tue Jul 03, 2007 1:08 am    Post subject: Reply with quote

Weird.
I've been using FuhQuake as my client.
When I decided to try the regular Quakeworld client walla! It worked!
I had put the skin files in both C:\Fuhquake\QW\skins and C:\Quakeworld\QW\skins folders.
Shouldn't it work using the Fuhquake client as well?
Thanks for all the help.
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Tue Jul 03, 2007 2:28 am    Post subject: Reply with quote

Another problem:
When clients connect to the server, they can't download the skins. Even when they try to force it by typing "skins" at the console?
They keep seeing the "base" skin. What gives?
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Artificial Intelligence All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 2 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot 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


Powered by phpBB © 2004 phpBB Group