Log in

View Full Version : new unit weapons



buujin
03-29-2004, 23:31
hi , ive been atempting to make some new units using the existing textures and some help from this forum.

basicly i duplicated muwahid footsoliders and scaled them down in size. all required files are there:

unit prod
battle/unit icons
campmap/ info pics
reviewpanel
textures/ deadpage cords
/ men
/ actions page
/ items
LOC/eng/ description
/names



no changes hav been made apart from the scale, height, and radius in the unit prod
stats.

i can use them in the sp game, however thier spears are not visable and neither are their sheilds . i dont know why because everything seems to be in order and in the correct place . can anyone tell me why >?


http://www.totalwar.org/forum/non-cgi/emoticons/gc-wall.gif

Duke John
03-30-2004, 07:10
You can find more of this in my unitgraphicsguide stickied above. To make shields and weapons you'll need the following files (check them again, I'm 100% sure you forgot one):

\Textures\Men\UnitBifName\shields.txt
This file contains a list with the coordinates of the shields displayed in the UnitBifName.BIF.
MuwahidFoot uses the last entry, leave it.

\Textures\Men\UnitBifName\weapons.txt
This file contains a list with the coordinates, widths and lengths of the weapons displayed in the UnitBifName.BIF.
MuwahidFoot uses the first entry, leave it.

\Textures\Men\UnitBifName\UnitName_W.txt
This file contains a single integer which is used to denote the weapon used by the unit.
Should be 6; same as MuwahidFoot_W.txt

\Textures\Men\UnitBifName\UnitName_S.txt
This file contains a single integer which is used to denote the shield/crossbow used by the unit.
Should be 1; same as MuwahidFoot_S.txt

\Textures\Men\Items\ShieldsShieldNumber\UnitName\Action.txt
This file contains the coordinates for a particular Action. If you leave out a Action.txt then this action will not have a shield.
In your case, go to \Items\Shields\Shield1\ and copy/paste the MuwahidFoot folder. Then rename it to UnitName.

\Textures\Men\Items\WeaponsWeaponNumber\UnitName\Action.txt
This file contains the coordinates for a particular Action. If you leave out a Action.txt then this action will not have a shield.
In your case, go to \Items\Weapons\Weapon6\ and copy/paste the MuwahidFoot folder. Then rename it to UnitName.

Good luck, Duke John

Kaatar
03-30-2004, 08:06
I didn't know you could make people smaller like that. DOes that mean you can make them really big and see the real details in the units?

Come to think of it, METW could use this to make cave trolls. :) Can it be done or is it just a childish fantasy?

buujin
03-30-2004, 18:24
it sure can :)


ive made giant stw naginata, and an army of gnomb warriors lol the height radius and scale factors all seem to effect the sprite visually,


duke john thanks for your help, but i must say i have used your guide to get where i am at the moment.. and have done all the things u listed exactly.

:|

I also have another problem with cavalry and thier mounts.
I recently copied all the samurai units from the stw mod into the mtw crusaders unit prod and found that the samurai heavy cavalry dont seem to want to use the right mount.

They work with Khorse ( mtw knights horse ) but not with
STW_samhorse which is the one they were designed for. When i try to run the game like this, i get an error messege whilst loading from the unit prod, refereing to the "number of men un unit" colloumn.. Weird huh

any ideas ?

Duke John
03-30-2004, 21:08
I noticed that I left out the shield and weapon coordinates in the guide, the last 2 points of that list. They have now been added. If you followed my old list exactly then it's no wonder that they were not displayed as you missed the coordinates. Just follow the last 2 points and it should work.

Cheers, Duke John

buujin
03-30-2004, 23:14
sorted, Thanks for your help Duke its very much appreiated.
your guide is very helpfull and im sure is put to good use by new and enthusiastic modders, like me :D .

turns out i had the gnomb's weapons in the wrong folder ( burnousB rather than burnous :P )

all is good now :) apart from a weird problem i seem to get...

im making a new unit now based on hplarsh ( varangian guard )

im getting a crash when i run the game, the error message displayed is im sure irevealent :
(error in data coloumn 3 {number of men in unit } )

i thought it might be beacuse the names or description are incorrectly edited but ive been over them twice and the new ones seem perfect.

Do you know what this could be ?

thnx

WesW
04-08-2004, 05:54
Quote[/b] (buujin @ Mar. 30 2004,16:14)]sorted, Thanks for your help Duke its very much appreiated.
your guide is very helpfull and im sure is put to good use by new and enthusiastic modders, like me :D .

turns out i had the gnomb's weapons in the wrong folder ( burnousB rather than burnous :P )

all is good now :) apart from a weird problem i seem to get...

im making a new unit now based on hplarsh ( varangian guard )

im getting a crash when i run the game, the error message displayed is im sure irevealent :
(error in data coloumn 3 {number of men in unit } )

i thought it might be beacuse the names or description are incorrectly edited but ive been over them twice and the new ones seem perfect.

Do you know what this could be ?

thnx
Those error messages usually mean that you have deleted a tab space somewhere preceeding the line and column given, often in the preceeding unit rather than the preceeding tab, and this has thrown the page grid off. Always try to show tabs and spaces when working with the units text.