Kit structure is strange |
Kit structure is strange |
Sep 21 2007, 08:18 PM
Post
#1
|
|
|
CinC (for now) ![]() Group: Mr. Admin Posts: 5,809 Joined: 28-December 03 From: Fort Hood, TX Member No.: 46 |
The first thing I did after i downloaded the mod, wasn't to load up some maps. No, I extracted the code and maps to look at how things were set up -- to try to get a handle on what the handweapon AI issues were going to be.
My first observation was that the weapon order in the kits was not consistent. One kit has a cutlass2 in the 3rd slot, while the surgeon has the weapon in the first slot. BF42 and BFV could not handle this kind of weapon slot variance, but BF2 and BF2142 don't use PIweaponselect, so I don't know if its a big deal. Anyone dealt with this in other AI mods? Can bots handle this in BF2? My second thing I noticed was that most of the maps are not consistent with kits. This appears to be the standard kit setup that is found in a few maps: CODE gameLogic.setKit 1 0 "ud_Sharpshooter" "ud_gunr" gameLogic.setKit 2 0 "pl_Sharpshooter" "pl_carp" gameLogic.setKit 1 1 "ud_Raider" "ud_shrp" gameLogic.setKit 2 1 "pl_Raider" "pl_radr" gameLogic.setKit 1 2 "ud_Gunner" "ud_radr" gameLogic.setKit 2 2 "pl_Gunner" "pl_gunr" gameLogic.setKit 1 3 "ud_Carpenter" "ud_radr" gameLogic.setKit 2 3 "pl_Carpenter" "pl_carp" gameLogic.setKit 1 4 "ud_Surgeon" "ud_surgrpeg" gameLogic.setKit 2 4 "pl_Surgeon" "pl_surgpeg" But this only have 5 kits. Some other maps have 6 kits. Working on Firststrike, which uses different number of kits then the standard game, the AI would crash unless the standard number of kits were used. I expect to have the same issue with pirates. I don't understand how the kit setting for Pelican point even works, but it will have to fixed for sp: CODE gameLogic.setKit 1 0 "ud_ScoutDC" "ud_gunr" gameLogic.setKit 2 0 "pl_ScoutDC" "pl_gunr" gameLogic.setKit 1 1 "ud_Raider" "ud_shrp" gameLogic.setKit 2 1 "pl_Raider" "pl_shrp" gameLogic.setKit 1 2 "ud_GunnerDC" "ud_gunr" gameLogic.setKit 2 2 "pl_GunnerDC" "pl_gunrpeg" gameLogic.setKit 1 3 "ud_Carpenter" "ud_shrp" gameLogic.setKit 2 3 "pl_Carpenter" "pl_carppeg" gameLogic.setKit 1 4 "ud_Surgeon" "ud_surgrpeg" gameLogic.setKit 2 4 "pl_Surgeon" "pl_surg" gameLogic.setKit 1 0 "ud_Sharpshooter" "ud_surg" gameLogic.setKit 2 0 "pl_Sharpshooter" "pl_surg" The last kit is set to 1 0 and 2 0, the same as the first kit. I haven't figured out the difference yet between a gunner kit and a gunnerDC kit, other then some weapons. What does the DC mean? -------------------- No, my Avatar is not my dog.
|
|
|
|
![]() |
Sep 21 2007, 08:45 PM
Post
#2
|
|
![]() Private ![]() ![]() Group: Soldiers Posts: 28 Joined: 21-September 07 Member No.: 3,787 |
The DC on the kit name supplies that character with our optional grappling hook. Its named this way because I added grapples to every class for Dead Calm to aid in boarding the tallships. Other maps would be a disaster with grappling hooks - for example, the map Storm the Bastion would be a lot less fun if the Undead could simply scale any side of the fort they wanted to (without first killing the Pegleg Scouts who do carry them).
The kit system is explained in our Mappers Toolkit, located at these download links: FileFront FilePlanet Note that the Pelican issue above is obviously a typo - and actually may help us with some CTD issues we've been having with the mod... so many thanks for that find. (Glad I came over here). Here's a reprint from the character readme in that toolkit for handy reference: CODE \\ For BFP2, we have enabled a modular skin/kit system that will allow to choose from amongst \\ some 240 character combinations to run around your map. Please follow the instructions \\ carefully to ensure your map will load. \\ \\ \\ Each map can have its own customized player models. This is set in the maps "Init.con" found \\ in the map's root folder - and gets packed in the map's server.zip. \\ \\ \\ Classes: \\ -------------------------------------------------------------------------------------------- \\ \\ There are six character classes to choose from: Scout, Raider, Gunner, Carpenter, Surgeon and \\ Sharpshooter. Each class has its own style of hats, bandoleers, knives and other kit pieces \\ that are used to identify each class. For example, the Gunner always wears a blue/white bandana \\ while the Sharpshooter always wears a red/white one. \\ \\ Not every class has to appear on a map. You can delete any of the classes from the level \\ settings list - just ensure that the kits start their numbering a 0 and go up sequentially. \\ They can also added in any order - this sets the way they appear in the Kit Selection screen. \\ \\ The kits are identified by the team (pl or ud) followed by and underscore and the name of the \\ class. You can choose to give a class an optional grappling hook by adding DC to the end of \\ the kit name (named so because all characters have grappling hooks on Dead Calm). \\ \\ \\ Skins: \\ -------------------------------------------------------------------------------------------- \\ To mix and match characters, you can select from several character bodies. An image gallery \\ will be provided on the forum. \\ \\ Pegleg characters can choose from the radr, gunr, carp, surg and shrp body styles \\ Undead characters can only choose from radr, gunr, surg and shrp (Carpenter -> radr skin) \\ \\ The soldier meshes are identified by the team (pl or ud) followed by the four character \\ skin name listed above. By default, the Raiders wear tan/white, the Gunners wear blue/white, \\ Carpenters wear navy/tan (Pegs), Surgeons wear red/white and Sharpshooters wear black/white. \\ The undead generally have dark pants with similar colored shirts. \\ \\ You can choose to give a soldier an optional pegleg by doing the \\ following. \\ \\ Pegleg team: Add "peg" to the end of the soldier mesh name \\ Undead team: Add "rpeg" to the end of the solder mesh name \\ (Sorry for the typo but for R1 this is how it works!) \\ \\ \\ Here is an example from a successfully setup Init.con, using several combinations of skins \\ grappling hooks and pegged legs. \\ \\ rem ------------------------------- LevelSettings ------------------------------- rem ----------------------------------------------------------------------------- gameLogic.setTeamName 1 "ud" gameLogic.setTeamName 2 "pl" gameLogic.setTeamLanguage 1 "Undead" gameLogic.setTeamLanguage 2 "Pegleg" gameLogic.setTeamFlag 0 "flag_neutral" gameLogic.setTeamFlag 1 "flag_Undead" gameLogic.setTeamFlag 2 "flag_JollyRoger" gameLogic.setKit 1 0 "ud_ScoutDC" "ud_shrprpeg" gameLogic.setKit 2 0 "pl_ScoutDC" "pl_carp" gameLogic.setKit 1 1 "ud_RaiderDC" "ud_surg" gameLogic.setKit 2 1 "pl_RaiderDC" "pl_carp" gameLogic.setKit 1 2 "ud_Gunner" "ud_radrrpeg" gameLogic.setKit 2 2 "pl_Gunner" "pl_gunrpeg" gameLogic.setKit 1 3 "ud_Carpenter" "ud_radr" gameLogic.setKit 2 3 "pl_Carpenter" "pl_radr" gameLogic.setKit 1 4 "ud_Surgeon" "ud_surg" gameLogic.setKit 2 4 "pl_Surgeon" "pl_gunrpeg" gameLogic.setKit 1 5 "ud_Sharpshooter" "ud_surg" gameLogic.setKit 2 5 "pl_Sharpshooter" "pl_gunr" rem ----------------------------------------------------------------------------- PS: If having the weapons in numerical order according to their ItemIndexes will help you guys - I'll gladly tidy that bit up. However, having all 6 classes on every map is still up for debate because some of the mappers dont want the Scout class running around. If this is a limitation, it might be better to rename some of the maps with SP only gamemodes. This post has been edited by 1/2Hawk: Sep 21 2007, 08:50 PM -------------------- ![]() |
|
|
|
Sep 21 2007, 08:50 PM
Post
#3
|
|
|
CinC (for now) ![]() Group: Mr. Admin Posts: 5,809 Joined: 28-December 03 From: Fort Hood, TX Member No.: 46 |
Having the kits in item index order would defintely help. The BF2 fantasy mod Fallen Times has similar issues, and I think its what is causing the random sp crashes during game play.
Also, I think the 6th kit can just be added to sp gameplay mode to prevent crashing. Thanks for the mapper kit link. having the weapons in the itemindex order may help make online gameplay more stable as well. -------------------- No, my Avatar is not my dog.
|
|
|
|
Sep 21 2007, 09:38 PM
Post
#4
|
|
![]() Are you the Gate Keeper? ![]() ![]() ![]() ![]() ![]() Group: Soldiers Posts: 1,027 Joined: 1-July 04 From: Ontario, Canada Member No.: 271 |
@D: I'd wondered about the count myself. I had had a ctd early on that I thought could have been caused by a couple things. Rather than fix one at a time to eliminate, I went full out and fixed every possibility. I did know that DC varients added grapple though. Will have to experiment more, possibly revert back to vanilla again and retweak (again, not like I made many changes so far).
My early tests do show that the editor doesn't like omissions in the mods setup files. My mod file was setup like this: CODE LevelSettings.AddTeam UD Undead This I jst stripped out of one of the default maps to 'rough in' my editor files.LevelSettings.AddTeam PL Pegleg gameLogic.setTeamName 1 "UD" gameLogic.setTeamName 2 "PL" gameLogic.setTeamLanguage 1 "Undead" gameLogic.setTeamLanguage 2 "Pegleg" gameLogic.setTeamFlag 0 "flag_neutral" gameLogic.setTeamFlag 1 "flag_Undead" gameLogic.setTeamFlag 2 "flag_JollyRoger" gameLogic.setKit 1 0 "ud_ScoutDC" "ud_shrprpeg" gameLogic.setKit 2 0 "pl_ScoutDC" "pl_carp" gameLogic.setKit 1 1 "ud_RaiderDC" "ud_surg" gameLogic.setKit 2 1 "pl_RaiderDC" "pl_carp" gameLogic.setKit 1 2 "ud_GunnerDC" "ud_radrrpeg" gameLogic.setKit 2 2 "pl_GunnerDC" "pl_gunrpeg" gameLogic.setKit 1 3 "ud_CarpenterDC" "ud_radr" gameLogic.setKit 2 3 "pl_CarpenterDC" "pl_radr" gameLogic.setKit 1 4 "ud_SurgeonDC" "ud_surg" gameLogic.setKit 2 4 "pl_SurgeonDC" "pl_gunrpeg" gameLogic.setKit 1 5 "ud_SharpshooterDC" "ud_surg" gameLogic.setKit 2 5 "pl_SharpshooterDC" "pl_gunr" A saved init.con looks like this: CODE gameLogic.setTeamName 1 "ud" gameLogic.setTeamName 2 "pl" gameLogic.setTeamLanguage 1 "Undead" gameLogic.setTeamLanguage 2 "Pegleg" gameLogic.setTeamFlag 0 "flag_neutral" gameLogic.setTeamFlag 1 "flag_Undead" gameLogic.setTeamFlag 2 "flag_JollyRoger" gameLogic.setKit 1 0 "ud_Sharpshooter" "ud_shrp" gameLogic.setKit 2 0 "pl_Sharpshooter" "pl_shrp" gameLogic.setKit 1 1 "ud_Raider" "ud_radr" gameLogic.setKit 2 1 "pl_Raider" "pl_radr" gameLogic.setKit 1 2 "ud_Gunner" "ud_gunr" gameLogic.setKit 2 2 "pl_Gunner" "pl_shrp" gameLogic.setKit 1 3 "ud_Carpenter" "ud_radr" gameLogic.setKit 2 3 "pl_Carpenter" "pl_carp" gameLogic.setKit 1 4 "ud_Surgeon" "ud_surg" gameLogic.setKit 2 4 "pl_Surgeon" "pl_surg" gameLogic.setKit 1 5 "ud_Scout" "ud_surg" gameLogic.setKit 2 5 "pl_ScoutDC" "pl_gunr" gameLogic.setKit 1 6 "" "" gameLogic.setKit 2 6 "" "" While it doesn't answer the question, I thought you'd like to be aware. -------------------- |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 18th May 2013 - 01:39 PM |