can you tell me which table i need to edit in order to add/remove a unit from a building recruitment please?
thanks
can you tell me which table i need to edit in order to add/remove a unit from a building recruitment please?
thanks
If you want to give a new unit a name you have to add an entry in your patch_en.pack (or patch_ge etc.), this should work like in ETW. Your second question ist easy to answer: the icons no longer have color masks as they had in ETW, the colors are directly painted on the icon. To change the icons color you have to edit the .tga directly.
If you want to keep the units origin colors ingame just search for origin unit and change the RGB values of your new unit to that of the original unit (you have to do this in uniform_to_faction_colours).
Greetings
Thalion
Look here and you will quickly understand!! ;-)
Last edited by fingon; March 12, 2010 at 04:04 PM.
Sorry for my questions i dont understand some things yet. so as far as i got i believe that firstly the models and textures are NOT defined anymore by the model category in Units_table but in the uniforms , what i dont understand is the TEXTURE for eg for france there is one texture file that contains ALL the textures that are used for that factions infantry , how can we specify witch part of the texture is used for a specific unit ?
And . custom_unit_ID_uniform
You can call this whatever you want, but it has to be the same unique string like in the uniform_to_faction_colours table if used.
2. faction_ID
3. model/texture
4. custom_unit_ID
to witch file are those categories to be found? In data?
Maybe this will help: http://www.twcenter.net/forums/showt...85#post6917385. IIUC, the unit_variant file is the key component. It "points" to the specific mesh and texture that you want to use for each part of the unit.
This should be helpful too: http://www.twcenter.net/forums/showthread.php?t=339983
Last edited by erasmus777; March 11, 2010 at 07:47 PM.
thank you very much for your help, what i did was
i was trying to make the 18th french regiment playable ,so i tried to find in the uniform to faction colours the line for the 18th regiment, paradoxically i didnt find it, but i found ALL the othes, the 7th lancers regiment and the 6th legere, so what i did was copy for every single file that i knew from etw was a file that had to do with a unit, and i made a new entry i just changed the original ID to be more precise i changed the NAME of the file for eg, i copied the line for of the french line infantry so i had 2 same lines and then to the copied one i changed the name from french line to "Elite" my name of choise, then i choose the 6th legere lines so that i could have a unit with those textures, and changed again the original name from 6th legere to elite
i tried to play the game and it crashed, so iam i doing something wrong or those units are somehow protected like the 2nd hussars models were in etw, cause i tried to use those models for a custom unit that i wanted to make in empire but the game crashed (i cannot buy the unit i dont have a credit card)
I'd suggest you start with a simple test procedure. See if you can take a vanilla unit and give it your desired model and texture via the unit_variants file (copying the file and renaming it to replace the old one might work fine). If you make the process as simple as possible and you're still getting CTDs, then something else is going on.
Edit: I just swapped a British unit_variant file for Napoleon's officers in the demo (france_gen_late_napoleon.soldiers.unit_variant). The model swapped without problem, though the textures were scrambled. That should be enough to tell you if your idea will work, though.
Spoiler Alert, click show to read:
Last edited by erasmus777; March 11, 2010 at 09:20 PM.
if you did all well game should not CTD, so tables are the same in ETW plus uniform and uniform_to_faction_colours
then there is the big issue about the image posted by Erasmus: in NTW, unit texture and model files are colled variant and if you open them with a hex editor you can see there is only a recall to some mesh and texture, now comes the problem, the recall points to some files recalled and regrouped in some atlas and dds files in atlas section of variantmodels.pack and variantmodels2.pack. At the moment nobody succeded in modding them.
"In hostem celerrime volant"
- Voloire -
Thanks a lot for your nice words and I will update this thread after we discovered some more infos.
Hello Megasalexandros, yes at the moment it's quite confusing, but I'm sure we can share here our experiences for the benefit of all.
At the moment we have a basic uniform editor with the uniform_to_faction_colours table and probably this will be used in the official "Uniform Editor" as reference too.
Did CA announce that the official "Uniform Editor" will be able to create custom units or is it only for re-textures of vanilla units?
The used icon and info cards are automatically assigned with the value in the 3rd column of the uniforms table. I didn't found where we can re-colour the icons and info cards. So we have to integrate our own custom icons. Unfortunately the used regions for the NAP units are very few regarding to ETW. I will post the regions here soon.
Here is some detailed information from Izanagi11 and Smirk about the three RGB value sets and the variant files:Spoiler Alert, click show to read:
Cheers
Swiss Halberdier
Last edited by Swiss Halberdier; March 21, 2010 at 04:57 AM.
ADDITIONAL UNITS MOD - ATTILA (AUM-ATT) 2.7 - ROME (AUM-ROM) 2.6
SHOGUN (AUM-SHO) 2.8 - NAPOLEON (AUM-NAP) 2.6 - EMPIRE (AUM-EMP) 3.7
Attila Romani Units Pack - Attila Custom Battle Crash Fix - Attila AOR Community
Thrones of Britannia - Unit Recruitment Strength Thrones of Britannia - Aguirre and Swiss Unit Project
UPC-Empire - UPC-Napoleon - UPC-Shogun - UPC-Rome - UPC-Attila - UPC-Thrones of Britannia
[Tutorial] How to customize unit packs
STEAM WORKSHOP MODS
> smirk
[/SPOILER]Spoiler Alert, click show to read:
Technically this is incorrect in that the values are not specific to any area of a unit but soley to the area defined by the colours RGB and black.
You can place any of these colours in any manner in your custom colour map and they will be displayed as you define in the uniforms to faction db
for example:
You define the RGB values in the uniform_to_faction_colours db.
So for a Standard British foot Infantry colour map
RGB1:191,34,13 = Colour map RED
RGB2:255,233,123= Colour map GREEN
RGB3:255,255,255= colour map BLUE
Black on colour map is base texture colour
Last edited by Zaitochisan; April 11, 2010 at 08:22 AM.
thank you very much but to be honest iam really confused
for example i used the original name of the 18th line regiment and the game didnt crashed(of course it didnt appear in my campaing or my custom battle)
but when i used the 6th_legere then the game crashed, it doesnt make sense really
I hope they will MAKE this uniform editor they said they would
EDIT: Now I understand. It was because I started with modding since NTW and had not the basics from ETW. I looked at Lazy knight resources and now I understand it! Thx to both of you.
Last edited by fingon; March 12, 2010 at 04:03 PM.
Though I haven't got the time to try, I thing this tutorial is especially for.. me! Thanks pascal, +rep!
Sorry I meant to post this question in the ETW forum.
Colonialism 1600AD - 2016 Modding Awards for "Compilations and Overhauls".
![]()
Core i7 2600 @ 3.4ghz - NVIDIA GTX950 2GB
Colonialism 1600 AD blog
I have sucessfully created custom infantry units. No problem, but I get CTDs while I want to play custom battles with my custom cavalry units. Maybe some other file should be edited?
Aha, its bug in PFM, IŽll report it..
Last edited by fingon; March 12, 2010 at 06:00 PM.
i get an error when i try to open a pack file with PFM
http://img16.imageshack.us/i/78577872.jpg/
Am i doing something wrong?
Brilliant, this will be useful +rep
Okay. Let's imagine the following desire;
Create a (fictional) line infantry unit for the Kingdom of Italy.
What would be the step-by-step process needed to do this?
Telling me "make an entry in xyz" is...not as helpful as it might seem.
I'm not a modder; I can use the PFM, but these instructions are too technical for me to make much sense of them.
I heard it's possible to import ETW units into NTW. How would one go about doing that?