COH2 Modding: Getting started with the official tools
Posts: 2181
Looking at relics coding sbps are usually commander abilities but not all of them so I'm guessing it won't make a difference btu is there a preference for what isbettter?
Posts: 2181
Oh, well that's something then. In that case, anyone knows how I can set the custom unit as a dispatch for a locked-faction/soviets only as well as editing the cooldown time? Been exploring a while more for such, couldn't figure it out just yet.
Found the solution in the US tech files, you have to make your hero unit an upgrade instead of using the spawner menu.
With upgrades you can control how much it can be bought, check out research folder in the aef upgrades category
Posts: 139
Posts: 11 | Subs: 1
I have checked and rechecked my file pathing etc; I'm getting no errors and everything is where it should be. I'll post some pictures in a bit; any help would be appreciated. My mod still isn't appearing under the tuning pack dropdown.
Might it be something to do with Windows 8.1, the version of Java I'm using...?
You can check for \Documents\my games\Company of Heroes 2\warnings.log file for errors, but I expect you need to remove the .mod file from the info section.
Posts: 6
As you can see I have managed to create a mod where the corpses of fallen soldiers persist. However I have encountered a problem. Whenever I turn the physics off the bodies disappear but when I turn the physics to low, medium or high only some of the bodies persist. Does anyone have any suggestion?. If you want to know how I created the mod its actually easy. I cloned the soldiers from the ebps category. I oppened them up so: extensions/health there you will find: delete_when_dead I changed it to false. I cannot find any other option wich could possibly fix this. The Casualty tab is only for the wounded soldiers and has nothing to do with persitant bodies I tried.
Posts: 1963 | Subs: 1
@braciszek
You're welcome.
I wanted to introduce the 250 halftrack as well into the HQ as well. After BP1 of course.
Posts: 3
- Have some troubles with changing descriptions for new units and buildings - just a pile of symbols. Does anybody have the same trouble?
- I want to change the default weapon of the squad. For example - I want to give a 4 mosins and 2 svt's to the shock troopers. How can I do this?
Posts: 41 | Subs: 1
Thanks,
Majd
Posts: 7
Posts: 159
edit: added picture.
edit 2: Figured it out.
http://www.coh2.org/topic/26706/edit-squads/page/1#post_id242890
Posts: 1
Posts: 139
I would like to know if theres any posibility of creating new units for example i wanted to make a german officer which would have been trained from the tier 2 building.And also can you change the weapons which units hold or make some weapons upgradable ? I wanted to give the volks upgradable mp40.Anyway awesome post.
Yes, you can create new units. Follow Janne252's instructions, except give it a different name when you clone it. Then change its attributes and go to the ebps for a base building and add the new unit to the list of things it can build.
However, I have not figured out a way to get new models, textures, icons, etc. into the game.
I haven't gotten around to trying the VG upgrade yet, but on a map I put out some mp40/mp44 for them to pick up, and they ended up with "air guns" - no weapon showed up on with their models.
Edit: Using the instructions for changing weapons in one of the posts just below, I tried to give VGs mp44s and they enter holding air guns. Maybe a different weapon from the list would work. (For my mod I'll probably just base the VGs on a different model that has the necessary animations.)
Maybe we should make a list of what is and isn't possible, and start making some howtos.
I've been able to do:
- modify unit characteristics
- create new units derived from existing ones
- add modal abilities to a faction (i.e., commander abilities)
- change characteristics of modal abilities
- get a new commander into the game
- change abilities of existing commanders
- get changes to racebps into the game
Edit: I'm starting to think it's the things with server_item that I can't get into the game.
Posts: 139
Guys, I've got some questions:
- Have some troubles with changing descriptions for new units and buildings - just a pile of symbols. Does anybody have the same trouble?
- I want to change the default weapon of the squad. For example - I want to give a 4 mosins and 2 svt's to the shock troopers. How can I do this?
I've changed a few descriptions, and haven't had any problems.
To change weapons, select the "ebps" category from the toolbar, select the entity type, and edit combat_ext->hardpoints->hardpoint->weapon_table->weapon->weapon. (Double-click it to get a pop-up list to choose from.) You may have to change one or both sets of positioning coordinates to make it look right.
Some combinations may not work.
Edit: To mix weapons within a squad, you might have to use two different entity types. Look at the squad_loadout_ext for the German assault_grenadier_squad_mp in the sbps category to see an example of this.
Posts: 139
Does anybody know how to change infantry movement speed? I want to make them move a bit faster so they can avoid grenades better.
I haven't tried it, but look at moving_ext for the ebps for the soldiers that make up the squad's sbps.
Posts: 79
Posts: 41 | Subs: 1
Posts: 41 | Subs: 1
http://community.companyofheroes.com/forum/company-of-heroes-2/company-of-heroes-2-general-discussion/modding/118111-tutorial-using-custom-icons
https://www.youtube.com/watch?v=3NVR1sFOI6o
Thank you soooooooo much!
Crazy custom commanders are on the way...
Posts: 3
I've changed a few descriptions, and haven't had any problems.
To change weapons, select the "ebps" category from the toolbar, select the entity type, and edit combat_ext->hardpoints->hardpoint->weapon_table->weapon->weapon. (Double-click it to get a pop-up list to choose from.) You may have to change one or both sets of positioning coordinates to make it look right.
Some combinations may not work.
Edit: To mix weapons within a squad, you might have to use two different entity types. Look at the squad_loadout_ext for the German assault_grenadier_squad_mp in the sbps category to see an example of this.
Thank you for your answer, try to use your advices to change weapons.
And for the descriptions. Here, how I see my own mod:
Posts: 139
Thank you for your answer, try to use your advices to change weapons.
And for the descriptions. Here, how I see my own mod
I would guess that those are locale string keys that aren't getting translated for some reason. The number after the '$' is the same every time, and looks similar to the number that identifies my mod in some of the files (look for "mod=" in some of the .xml files under the instances directory). Then the colon and number is probably the string it's supposed to put out there for you; you can check that by looking at the language-name.ucs file under the locale directory (the .ucs is just a text file).
If the big number matches what's in your .xml files and the numbers after the colons match the correct text in the .ucs file, then you can conclude that the garbage is in fact a locale lookup key.
Unfortunately, I wouldn't know where to go from there to figure out why you aren't getting the lookups. Make sure the .ucs file exists and isn't corrupt.