Page 1 of 1
[Help] Creating Factions
Posted: 2012-01-03 05:11
by Insanitypays
Im trying to make a new faction for the omnicide mod for bf2. I wanted to start it by using the MEC faction as my template and I retexed them and followed what they did in this forum post:
How Do You Change/create New Factions? - Official BF Editor Forums - Page 2
After all of that work I tried to load a map with my faction on it and the game crashed without error message.
I would appreciate some help, im a bit stuck here
Thanks in advance!
EDIT: it crashes for all maps, even the ones without my custom faction.
Re: [help] Creating Factions
Posted: 2012-01-03 06:04
by AfterDune
Did you run in windowed mode? If not, you should. Only in windowed mode will you get errormessages.
Re: [help] Creating Factions
Posted: 2012-01-03 13:48
by Insanitypays
[R-DEV]AfterDune wrote:Did you run in windowed mode? If not, you should. Only in windowed mode will you get errormessages.
yes, i am
Re: [help] Creating Factions
Posted: 2012-01-03 15:52
by USMC scout sniper
Did you mess with the faction_inits? I've done this before it turns out I just misspelled something. I would go through and see if any is misspelled. Hope that helps.
Re: [help] Creating Factions
Posted: 2012-01-03 16:19
by Insanitypays
USMC scout sniper wrote:Did you mess with the faction_inits? I've done this before it turns out I just misspelled something. I would go through and see if any is misspelled. Hope that helps.
I might have, where are they

Re: [help] Creating Factions
Posted: 2012-01-04 15:18
by temexter
Echo331 wrote:I might have, where are they
in faction_inits.zip
Moreover, if no error msg is shown in windowed mode, you could try debugger:
https://www.realitymod.com/forum/f388-p ... ost1669384
Re: [help] Creating Factions
Posted: 2012-01-04 17:46
by Fastjack
Mmmh

, crashing without errormessage?!
U created some kits for ur faction too?
Crashes without errormessage mostly occurring, if u created a new kit and added 2 weapons or else, that have the same ItemIndex (weaponslot).
Or maybe AI
Edit:
Did you mess with the faction_inits
in faction_inits.zip
He created an faction (i think he mean TEAM) for omnicide and not a faction for the PR mod.
Vanilla haven't a faction_init.zip.
part of the init.con (vanilla)
Code: Select all
gameLogic.setTeamName 1 "MEC"
gameLogic.setTeamName 2 "US"
gameLogic.setTeamLanguage 1 "MEC"
gameLogic.setTeamLanguage 2 "English"
gameLogic.setTeamFlag 0 "flag_neutral"
gameLogic.setTeamFlag 1 "flag_mec"
gameLogic.setTeamFlag 2 "flag_us"
gameLogic.setKit 1 0 "MEC_Specops" "mec_light_soldier"
gameLogic.setKit 2 0 "US_Specops" "us_light_soldier"
gameLogic.setKit 1 1 "MEC_Sniper" "mec_light_soldier"
gameLogic.setKit 2 1 "US_Sniper" "us_light_soldier"
gameLogic.setKit 1 2 "MEC_Assault" "mec_heavy_soldier"
gameLogic.setKit 2 2 "US_Assault" "us_heavy_soldier"
gameLogic.setKit 1 3 "MEC_Support" "mec_heavy_soldier"
gameLogic.setKit 2 3 "US_Support" "us_heavy_soldier"
gameLogic.setKit 1 4 "MEC_Engineer" "mec_light_soldier"
gameLogic.setKit 2 4 "US_Engineer" "us_light_soldier"
gameLogic.setKit 1 5 "MEC_Medic" "mec_light_soldier"
gameLogic.setKit 2 5 "US_Medic" "us_light_soldier"
gameLogic.setKit 1 6 "MEC_AT" "mec_heavy_soldier"
gameLogic.setKit 2 6 "US_AT" "us_heavy_soldier"
Part of Pr init.con
Code: Select all
run ../../Factions/faction_init.con 1 "meinsurgent"
run ../../Factions/faction_init.con 2 "gb_ziptie"
Re: [help] Creating Factions
Posted: 2012-01-04 19:15
by Hjid
If you're modding the omnicide mod there is no faction_inits.zip.
Also, more information would be useful. Like when it crashes, when loading (%?) or pressing "join game".
Also excaclty what did you change?
Re: [help] Creating Factions
Posted: 2012-01-07 00:25
by Insanitypays
Hjid wrote:If you're modding the omnicide mod there is no faction_inits.zip.
Also, more information would be useful. Like when it crashes, when loading (%?) or pressing "join game".
Also excaclty what did you change?
I couldnt tell you what I changed all together. The initial crash is solved.
the faction is labeled "spz"
Now in game I can spawn and everything but I have no player model or animations. I can shoot and move.
Re: [help] Creating Factions
Posted: 2012-01-07 12:25
by Hjid
If you replaced the US team with the "spz" there might be some conflicts with the python script. Try to replace the zombie team with the "spz" and see if you can see your weapon and soldier.