PDA

View Full Version : Bots


Inforcer
04-24-2002, 03:27 PM
I have created my first BOT and can select it form the multiplayer menu.

The problem is that when I select it as an opponent it loads the default model (reborn) from the model.glm file used without my skins but with the character name I gave it.

I triple checked everything and it still won't work.

HELP PLEASE.

JediMouse
04-24-2002, 03:58 PM
You have checked the specifics in the .bot file, right? The first line gives the bot it's name (i.e. TK-421), the next line specifies the skin to be used (i.e. stormtrooper).

If you made a new skin and left it in the Reborn directory, then make sure you specify it completely -- your .bot can't just say to use the skin 'reborn,' it must say 'reborn/newskin' instead.

Hope this helps.

~JediMouse~

Inforcer
04-24-2002, 05:39 PM
This is the contents of my bot file in the scripts folder

{
name "Ninja"
model Ninja
color1 0
personality /botfiles/Ninja.jkb
}

The paths in my pk3 file are:

model/player/ninja/..image files
botfiles/ninja.jkb
scripts/ninja.bot
sound/char/ninja/misc/taunt.wav

I just can't see what's wrong and its killing me.

HELP PLEASE

JediMouse
04-24-2002, 05:41 PM
Damn. I can't see what's wrong either. Looks good to me. Hmmpf -- stumper. Anybody?

~JediMouse~

junior
04-24-2002, 07:49 PM
At long last some Bot info that makes sense!:fett:

Red Devil
04-24-2002, 07:52 PM
Inforcer try
{
name "ninja"
model ninja
color1 0
personality /botfiles/ninja.jkb
}
as your script if does not work send it me and ill try gunnut14@msn.com and i do have msn :)

Inforcer
04-24-2002, 09:01 PM
Tried your suggestion Red Devil but it is still not working, I sent you the pk3 file, let me know how you get on.

Thanks to everyone who replied, but please keep the suggestions coming if you think of anything else.

Now back to pulling out a few more hairs.

Until

Inforcer
04-24-2002, 09:15 PM
Tried your suggestion Red Devil but it is still not working, I sent you the pk3 file, let me know how you get on.

Thanks to everyone who replied, but please keep the suggestions coming if you think of anything else.

Now back to pulling out a few more hairs.

Until

Red Devil
04-24-2002, 10:06 PM
k ill try my best to fix it

Inforcer
04-24-2002, 11:01 PM
YESSSSSSSSSSSSSS

CRACKED IT!!!!!

Bot file should like like this..

{
name "Ninja"
model (Your model)/default_(Your name)
color1 3
personality /botfiles/ninja.jkb
}

model should refer to the skin file in the path below.

model/players/(Your model)/model_default_(Your Name).skin

This works for the single default model, not sure about the blue and red models as I haven't tried it yet.

Thanks to Red Devil and JediMouse for your suggestions and also Cassius_Bloodraven the author of "The_Black_Wolf" Bot that I canibalised to crack this problem.

Keep spreading the love around.

Be slashing you soon.

Inforcer
04-24-2002, 11:41 PM
Red Devil you sent the file back and it works fine, thanks. But you didn't state what the problem was.

As your fix was different to mine I would be gratefull if you could let me know where I went wrong.

Thanks

Inforcer
04-25-2002, 01:28 AM
I compared Red Devil's fix to my own and noticed the following:

The structure of the pk3 file is as follows:

models/players/ (The name of your model) e.g. reborn

In the reborn directory you will have the model_default.skin file.

If you rename the reborn folder to a name of your choice that is not already taken like "Frank" there is no need to rename the model_default.skin file.

The line referring to the model in the Bot file will then be:

model frank (Frank being the name of the folder in the model/players folder)

But if you did not rename the model e.g. (model/players/ [reborn folder]) the skin file should then be renamed to e.g. model_default_frank.skin.

In this case the model reference in the bot file will be:

model reborn/default_frank

reborn being the name of the model (model/players/[reborn]) and default_frank referencing the model_default_frank.skin file in the model/players/[reborn] folder.

I hope this helps someone, and I'm pretty sure that this is it. If it is not fill me in.

Until

junior
04-25-2002, 05:39 AM
Spiderman lives!!!!!! Well done Enforcer. And to any who can't follow that...take up basket weaving ok!!!!