Page 1 of 3

[Help] Custom Faction

Posted: 2012-10-31 18:21
by Onil
Hello, I'm having some issues loading a custom faction with the faction_inits.zip from the map folder.

Basically I just duplicated a faction to only have unarmed kits on spawn screen.

The error I'm getting is related to the texture on menu/nametag/faction name/miniMap_CP.dds

I have added that file already, as well as, the flag icons and score flag files. I have been following the falklands files as a guideline.

Any idea why I'm still getting this error?

Help would be appreciated.

Re: [Help] Custom Faction

Posted: 2012-11-01 06:23
by AfterDune
Be aware that if you edit your faction_inits.zip file and plan to distribute that + your map to clients, they'll get kicked from normal PR servers. Better is to either create your own "faction_inits" file or load the kits in the menu the vanilla way.

I believe that .dds file in there is actually a .tga file (and then renamed), but that might not be the issue. Use the Falklands, Vietnam or Normandy as a base and copy over every image from the menu client zip. I think you missed something somewhere, otherwise you wouldn't get this error. I admit, this one's always a ***** though :p . There are like 3 or 4 places where you have to put an image.

Like this:
menu/HUD/Texture/Ingame/Flags/Icons/Minimap/YOUR_FACTION/miniMap_CP.dds
menu/HUD/Texture/Ingame/Flags/Icons/Minimap/YOUR_FACTION/miniMap_CPBase.dds
menu/HUD/Texture/Ingame/Flags/Icons/Minimap/YOUR_FACTION/miniMap_Flag.dds
menu/HUD/Texture/Ingame/Flags/Icons/Hud/Score/YOUR_FACTION/scoreBoard_Flag.dds
menu/External/FlashMenu/images/joingame/flagLarge_YOUR_FACTION.png
menu/External/FlashMenu/images/joingame/flag_YOUR_FACTION.png
menu/External/FlashMenu/images/joingame/hugeflag_YOUR_FACTION.png
menu/Nametag/YOUR_FACTION/miniMap_CP.dds
menu/Nametag/YOUR_FACTION/miniMap_CPBase.dds

Re: [Help] Custom Faction

Posted: 2012-11-01 15:25
by Onil
Thanks for the help.

I had done all of that already based on the Falklands and I'm still getting the error.

What did you mean by loading the kits the vanilla way? I'm loading everything from the map files to allow other players to install it like Falklands.

The faction I'm creating is to only use the unarmed kit at spawn, which is a kit that already exists. All other kits that I will be creating will be pickup kits and so, will not interfere with the PR python checker since they will not be on the spawn screen or requestable.

Re: [Help] Custom Faction

Posted: 2012-11-01 15:35
by Mineral
oh man, I remember this when I tried out the Syrian factions. I had this error too. Such a pain in the ***. No idea how I fixed it in the end.

Re: [Help] Custom Faction

Posted: 2012-11-11 15:59
by Onil
Fixed.

Thread can be closed.

Re: [Help] Custom Faction

Posted: 2012-12-02 12:53
by Daniel
*bump* mod pls read (previous post) and take action? ;) 8)

Re: [Help] Custom Faction

Posted: 2012-12-02 13:17
by Spec
Uh. Yes. Thanks. Next time please just use the report post button and don't necro a thread just to say that it should be closed :P

Re: [Help] Custom Faction

Posted: 2012-12-02 13:19
by Rhino
or it might have not been closed for no need to close the topic...

Re: [Help] Custom Faction

Posted: 2012-12-02 18:04
by Spec
Actually, Rhino has the better point. Leaving this open for Onil to post how he actually solved the problem.

Re: [Help] Custom Faction

Posted: 2012-12-02 18:46
by Onil
If I remember correctly it was because of the zip files that were rar files renamed to zip and so the game wouldn't open them.

Once that was fixed, I didn't get the error anymore. Sometimes it's quite simple, most times it is not. :P

Re: [Help] Custom Faction

Posted: 2012-12-02 18:53
by AfterDune
Are you serial?? :D

I had that years ago as well. WinRAR does its awesomeness, everything works fine, but BF2 is like.. wait----wut??

Re: [Help] Custom Faction

Posted: 2012-12-02 22:45
by Onil
Exactly... and it took me quite sometime to even think that that might be the issue. spent hours going through all the files searching for typos and such and then I remembered that I had made rar files and changed the extension to zip. Let's just say bf2 didn't like it that much... :|

Re: [Help] Custom Faction

Posted: 2012-12-07 14:38
by Onil
Anyone knows how I can get multiple geoms from different skinnedmesh files to only one file?

Can't seem to find a good tutorial about skinnedmeshes and bundlemeshes.

I'm also not being able to load my custom soldier reskins. Everything seems fine with the files but when I spawn with the updated mesh, it's still loading the original skins.

Help please :\

EDIT:
Custom soldier reskins are loading now. Still need to find a way of combining geoms from different files into one though.

Re: [Help] Custom Faction

Posted: 2012-12-10 18:51
by Onil
Anyone has a solution for the pickup kits being rotated to north and ignoring the GPO rotation value?

Quite annoying! -_-

Re: [Help] Custom Faction

Posted: 2012-12-10 19:00
by Rhino
Editor only saves X axis rotation for object spawners, but if you type them in manually to the GPO.con you can have object spawners rotated on all axis.

Re: [Help] Custom Faction

Posted: 2012-12-10 20:55
by Onil
I only work with notepad and have rotated the object spawners in the GPO but they still get rotated to north on a dedicated server. On local they have the GPO rotation though.

And since all mods that I have tried, have the same issue, I'm guessing there is not solution so far. Unless if someone gets a brilliant idea to fix this.

Re: [Help] Custom Faction

Posted: 2012-12-10 20:58
by Rhino
Onil wrote:I only work with notepad and have rotated the object spawners in the GPO but they still get rotated to north on a dedicated server. On local they have the GPO rotation though.

And since all mods that I have tried, have the same issue, I'm guessing there is not solution so far. Unless if someone gets a brilliant idea to fix this.
That might be the case, I only tested this out on local when I was seeing if it was at all feasible of placing down CSBs in this way but ended up opting for placing them down as staticobjects as it was far easier :)

Re: [Help] Custom Faction

Posted: 2012-12-10 21:01
by Onil
Yeah, I suppose the only way to fix it is if the kits are spawned by python... isn't that how the cache kits are spawned? They are always parallel to the cache and this only happens on pickup kits, not on the caches or vehicles.

Re: [Help] Custom Faction

Posted: 2012-12-10 21:37
by Rhino
I believe the cache kits are spawned though python yes based on the caches location.

Re: [Help] Custom Faction

Posted: 2012-12-10 21:49
by Onil
How does the python recognize the caches in the GPO? Object Spawner name (ex: a_121) ?

Would it spawn pickup kits randomly if I change it from ammo cache to the kit?

I checked and both the cache and the kits don't have the rotation issue and that is probably due to it being spawned by the python.