Page 1 of 1
Help! custom models on bots
Posted: Mon Dec 06, 2004 11:42 pm
by WehrWolf
Greetings-
I am obviously new to the forums here and would like to start by expressing my appreciation to the forum itself, jv_map, and the members. Now getting down to business, I am at my wit's end on this & am in need of expertise assistance from you all. Before posting my question here I did research here at the forums & tutorials here, Freebrief, Rjukan Project, Sumo's site, & Google searches, so no flaming please, I am new editing for MOH (please save noob flaming as well , if possible)

although Iam comfortable editing pk3 files and learning the Quake language quickly. All that aside here is my dilemma/question-
I simply want to add custom skins to bots, thats it! I play solely singleplayer (just me & bots) jv_bot 1.1 created maps multiplayer/LAN style. I have done everything suggested from info given from the various sources listed above. These solutions range from editing the maps themselves ( adding custom .tiks) to using scripts, here is a script example given by member Krane-
pasted after "level waittill spawn"
waitthread cleanbots
thread spawn_bots
end
cleanbots:
$alliesspawnpreset remove
$axisspawnpreset remove
end
spawn_bots:
spawn human/multiplayer_allied_101e_lt_speirs.tik "targetname" "alliesspawnpreset"
spawn human/multiplayer_german_luftwaffe_field.tik "targetname" "axisspawnpreset"
end
To no avail. Basically i have tried so many variations w no result. I know it is something I am missing!

Again my goal is to use custom skins w bots on boths sides (axis & allies) if someone could PLEASE give me a step
by step, I have found many a conflicting how to's for something so seemingly easy I am losing my f*#@!+g noodle over it, lol. I will be the first to say it is something on my end since I have the least experience, but I am following the info given to the letter and understand the subtleties in writing scripts in proper code.
I would prefer to do this by dropping a script in my maps/obj. folder if that is a possibility. And after feeling like I should receive the Purple Heart for patience before crying to the forums ( going on 3 weeks)

if someone could include the exact script/info I would GREATLY appreciate it. Thanks in advance.
Tony (Scharfschutzen)
Posted: Tue Dec 07, 2004 12:51 am
by Bjarne BZR
Hi WehrWolf, and welcome as a poster at .Map
I suspect jv_map can aswer this one in a jiffy, from what I understand: the original bots are kind of "custom" to start with...
I personally cant aswer this one, just wanted to greet you ( a new member that actually does a search before posting shall not be called a n00b if I can help it, and we try to keep flaming at a minimum here

).
Posted: Tue Dec 07, 2004 7:49 am
by WehrWolf
Thanks for the kind greeting Bjarne BZR, don't worry about "lack" of info. Your post is exactly the first response I wanted to read, just as valuable I have read numerous posts here before joining, seems like a intelligent group with a strong commitment to development extending that to a "noob" like me as well. and if it gets my question answered quicker than by all means FLAME AWAY!

lol!
As far as the bots I run being "custom", only in the sense that they are part of a "mod" already really. They are out of the box jv_bot skins, sumo, etc. The skins themselves are not bad selections on the developer's part, just my personal preference to switch them to my own custom skins on the bots as I feel, based on map type, historically, etc. When I got the game I installed about 25+ mods before even firing the first shot, I play really no game vanilla, personal problem of mine
Just wanted to add that since I play solely offline I am SO grateful for bot developers not to mention jv's with such a high AI iq. Sincere thanks again for any and all help. Sorry for the delay in my reply, normally glued to the machine

Posted: Tue Dec 07, 2004 10:49 am
by Mj
Uhm, i can help you if you are using Jv's bots2 beta:
In the Pk3, dive into the global folder, into the bots2 folder, then open and edit a file called skinslist, like this:
Code: Select all
// skinslist executable data script
// by jv_map
main:
// allied skins
level.botskins[allies] = makeArray
// allied_Airborne.tik
// allied_Manon.tik
// allied_Pilot.tik
// allied_SAS.tik
// american_Army.tik
// american_Ranger.tik
vietnam_blackshear.tik
vietnam_borowski.tik
vietnam_judd.tik
vietnam_kawamura.tik
vietnam_lloyd.tik
vietnam_ramon.tik
vietnam_smith.tik
endArray
Thats what i did, so i could play with my vietnam buddies

Posted: Tue Dec 07, 2004 4:22 pm
by WehrWolf
I literally just jumped on, thanks man! I am running bots 1.1, is bots 2 still only beta compatible with The Hunt (like when 1st released)?, or can it now run with any jv-bot map? I would love to upgrade and run if now compatible w most/all bot maps.
Good heads up

really appreciate the feedback & a solution. I can see light down the tunnel.....
Posted: Tue Dec 07, 2004 4:35 pm
by jv_map
Hi WehrWolf
Bots2 is still in development... anyway, the code you posted by Krane should do the job, provided you execute the spawn_bots thread
before the line that starts the bots scripts (waitthread global/jv_bots/jv_mp_ai.scr::enable).
Maybe that helps?

Posted: Tue Dec 07, 2004 5:12 pm
by WehrWolf
Thank you for responding to my need, hope you would pop up somewhere in this thread

I was going to run and then respond as with the previous post as well, got tied up though
I don't mean to be a pest but...I just want to get it straight once & for all, where should I paste this script or is it something I can drop in folders such as obj. folder. I know I could find it but I don't want to blow it, lol! Please give me your recommendation. Again superb work, best bot support/AI I have seen. Thanks for everyones time.
Graciously,
Tony-WehrWolf Div.
Posted: Tue Dec 07, 2004 6:25 pm
by jv_map
Easiest way to edit an existing script is to start the map in mohaa, then type 'editscript' in console and press ctrl + S to save. This automatically saves the .scr file in the right folder (main/maps/obj). You can now easily edit it with any text editor - the new file will have priority over the one in the map's pk3

Posted: Tue Dec 07, 2004 6:39 pm
by WehrWolf
Yes! You have made my day, I'm off to test

Again for all who reponded, MUCH THANKS! Your time is appreciated. jv-don't stop developing,
look forward to future offering & interaction with all.
Tony-Scharfschutzen
WehrWolf div.
Posted: Tue Dec 07, 2004 7:51 pm
by WehrWolf

Not working?! I knew I shouldn't post before testing...ok, so I followed your directions (I am anal w a respectable IQ) just so you know your time is not wasted on a moron, yet this is making me wonder....lol
I will show you where I pasted the script you gave me, but first, other helpful info-
1. Double checked that skins are installed (they are official BOB skin pack) shows up on me when chosen.
2. I have force models checked, ok? I did not type "jv_bot forcemodels 1" in console, matter?
3. I saved the obj. script after map loaded and before I selected teams or weapons, ok? I did save as .scr after .txt editing
Here is the script, I sent just the chunk between the pertinent areas you stated, but let me know if you need the whole thing. Also tried w/o level waittill spawn in my section based on it being name elsewhere in original script, ok?
Sorry if this is too much & by all means I feel like a "noob" now, so flame away if so inclined

Thanks in advance!
$flak88_weapon1_explosive thread global/jv_obj_dm.scr::bomb_thinker
level.alliesbots = 8
level.axisbots = 8
level.routelist[route_to_bomb] = weg1::weg2
level waittill spawn
waitthread cleanbots
thread spawn_bots
end
cleanbots:
$alliesspawnpreset remove
$axisspawnpreset remove
end
spawn_bots:
spawn human/multiplayer_allied_101e_lt_speirs.tik "targetname" "alliesspawnpreset"
spawn human/multiplayer_german_luftwaffe_field.tik "targetname" "axisspawnpreset"
end
waitthread global/jv_bots/jv_mp_ai.scr::enable
while !(level.roundstart)
waitframe
thread allies_win_thread $flak88_weapon1_explosive
$flak88_weapon1_explosive thread axis_win_timer
thread cmessage
PLEASE HELP!!!!!!!
Posted: Tue Dec 07, 2004 8:11 pm
by jv_map
Heh I think I know the problem already...
1. Double checked that skins are installed (they are official BOB skin pack) shows up on me when chosen.
I take it these are
player skins? Bots need bot skins, which are basically AI skins with animations enabled for multiplayer. That also makes me think the models you tried to spawn with the script aren't in the models/human but in the models/player folder, so the game couldn't find em.
Anyway, it's not very hard to turn a player skin into a bot skin... basically just use an existing bot skin as example and copy the setup {} section from the player TIKI over to the newly created bot TIKI. Simply that should do it I think
P.S.: why do think everybody wants to flame you?

Posted: Tue Dec 07, 2004 8:47 pm
by WehrWolf
Aaahhaaaa, yes that's what it is. Is there anything else I need to know as far as saving the newly made bot pk3s?, do I need to make new pk3s? new/different lines script for obj folder? or just modify as you quoted in last post and they are good to go? It's just the code between {} in the tiks?
Pardon the seeming flaming paranoia

I really do make more a joke (I do have good self esteem, lol)

Unfortunately in the past based on experience within numerous communities (albeit the wrong groups) if I needed help like this I would have weed out & suffer through idiots w no self esteem, ie: flamers, to get questions answered, intolerable!
So IN NO WAY do I find this conduct here, that's why I joined. The atmosphere is polite, respectful and helpful. I apologize, it was not intended towards anyone here nor did I feel that anyone would act here in such a way.
I guess I am scarred from the past, lol!
Tony-WehrWolf
Posted: Wed Dec 08, 2004 11:05 pm
by WehrWolf
Well I had to take an extended break yesterday, plus time constraints led to still not having quality time to fix/find problems, so I have spent the last 3+ hrs. weeding/absorbing posts, tuts., testing, etc. (and adding some more mods on, heh) Without the posts by you guys however, I would not be nearly as close.
Here are my questions-
1. Is my previous post with the script example correct? Do I always paste it *literally* 1 line above the bot script executable?, or as long as it placed *anywhere* above "waitthread global/jv-bots, etc,etc." it will run custom bots (as long as syntax is correct, and created AI for skins)
2. Is Mj's script example in this thread a viable option for jv_bots 1.1?, Or is it exclusive to bots 2 only? (I know that folder setup isn't in pre 2 setups, but can I do it ?).
3. As far as converting player tiks to AI, you copy the {} Server/Actor lines verbatim, I would guess everything between { & }? I ask because if a ranger helmet is quoted as gear w original bot tik and I want to use *my*custom Airborne helm. like BoB's, how much editing do I do?
4. Currently when I start my edited game of the Hunt, no bots come to play, hehe. I am sure I blew it somewhere, puzzled though!?
I am probably leaving something out, feels like, oh well. If someone has some time and feel like giving a hand step by step would be soooo appreciated at this point. All info given thusfar makes sense, but nothing is workin out, lol. Thanks again gang.
Tony WehrWolf
Posted: Thu Dec 09, 2004 5:10 pm
by jv_map
Ok here's a few quick answers
1. It can be placed anywhere above said line, just make sure you keep it below level waittill spawn.
2. No such a skins list is not present for bots < 2.
3. If you copy only the setup section
exactly (and replace the existing one) you should end up with exactly the same model but now with the proper animations enabled.
Hope this helps

Posted: Thu Dec 09, 2004 9:26 pm
by WehrWolf
Thanks for checking back w reply

I quickly checked here for any replies, gotta run and will get back on it tonight. If fix doesn't happen right off I willl go to "hit/miss" mode as to learn/familiarize myself w map and models in general. Then I can keep the posts and your time down to a minimum as well

Gotta fly, later.
Always appreciated-
WehrWolf