Hello everyone! First of all I would like to welcome myself to this forum as I have just made this account today. I've been using ALiVE for about half a year now and am also the guy in charge of making ALiVE scenarios for the unit I'm in, so I do have some level of experience with setting everything up already.
But anyway, onto my problem:
Up until now, I've largely had a lot of success with making custom factions using the ORBATRON and have used these factions in scenarios to good success, but it seems that I've finally hit a wall when it comes to making a new custom faction this time.
I have tried making a custom faction using the RHS Serbian Armed Forces as a base but with many things added and some thing removed, all in an attempt to expand on the faction for this new campaign I'm working on. I have copied the existing SAF (KOV) faction and gave it a new name that matches with the campaign's backstory and such, and then I got to work on editing it. So far so good. When I exported the full faction and cfgpatches and then converting the folder to .pbo, I put it in a folder in the main game directory and added it to my mod list, as I've always done when making a new faction to test so far. Unfortunately, when I boot up the game, it gives me some kind of typo error while loading, then it stops. The error in question amounts to it saying that it found "f" instead of "{" on a specific line of code, yet when I look at this line in the autogen, it all seems to be written correctly. In addition to this, an edited version of the US Army (D) faction from RHSUSAF is also getting errors in the ORBAT now, an undefined base class error for the M2_CROWS_Turret, after I tried fixing the groups for it. Any help on why this is happening is appreciated. If need by, I can also send the autogen files for both factions if you need to take a look at them.

Thanks in advance!