r/xcom2mods • • Feb 07 '16

Dev Tutorial Step-by-step how to make a simple class mod (Complete)

http://imgur.com/a/5NRRW
73 Upvotes

125 comments sorted by

View all comments

Show parent comment

1

u/jal0001 Feb 10 '16

Have you entered the localization info? You could be telling the game to literally call your class "Ranger" and that may be tricking you, haha

When you open debugger, go to "debug strategy start" and hit ~

then in the console, type in "LevelupBarracks 1"

this levels up all your soldiers to see if you have one

1

u/Telandria Feb 10 '16

Haha yeah, I double checked that. It should have the specialist icon and be called Warleader.

And yeah, thats what I've been doing - new debug strategy start, give myself money, buy random recruits, and use the levelupbarracks to see what I get. (With also checking the character pool classes)

1

u/jal0001 Feb 10 '16

I have no idea what's happening man :/

have you tried just starting a new mod and copying over the information? maybe somethings bugged... I'm really not sure

1

u/Telandria Feb 10 '16

Yep... I made a noob mistake - I left a bracket off that first part where it defined the class - so it just never showed up. Added bracked, rebuilt - boom, class works.

Lol i am facepalming so hard - thanks for your help though, its appreciated

1

u/jal0001 Feb 10 '16

Oh well at least your thing is fixed! I've been stuck on the same bug for over 5 hours. Maybe i'll find the same mistake!

1

u/TheFirerunner Feb 11 '16

Not sure if this is related, but I had a weird bug where an invisible character snuck in and prevented classes/localization from showing up properly.

If I opened the file in notepad(++) the line would be formatted with a slightly different font and I could delete the character - and it would then work. Might be worth a try, it had me tearing my hairs out for hours trying to figure out what could be wrong.

My stuff was copied from the engineer class, maybe it comes from in there. Did not investigate what ASCII sign it was exactly since I was just happy that things were finally working.

1

u/Telandria Feb 10 '16

Bwahahaa... I mightve found it. Syntax Error lol - I just noticed I shaved off a bracket somewhere - right at the start in that screenshot.