PDA

View Full Version : new units? help!


Elvain
17-02-2005, 21:58
Hi, modders

I'm trying to make new units in the game.

Yet I'd like to make them at least as copy of already existing ones (they will look like already existing unitsm but they will be new units with new definitions etc.)

but I have one problem. I can't find any file in texts.pak, where to put them. They need to be added somewhere to this .pak, but Ihaven't found yet any file where units are. If anybody knows, tell me please

If I will succeed, there will be soon 3 new units: hospitaliers (looking like crusader infantry), assasins(special muslim unit, looking like desert archers) and baltic cavalry which was discussed so much before KoH release

if there is somebody who knows how to open and edit .rle .img and .unit files, it would be even better and we will be able to create completely new unit (just to find somebody to draw them :smile:)

i hope there will be some help in this case,
thanks in advance,

Elvain

EDIT: Devs? Frujin? Is it possible to make new units? Neither of ways I tried yet works :bash:

Kakita Matesu
20-02-2005, 18:01
Today I have added new unit to KoH. Unfortunately in battle view, when this unit has to be displayed on the screen, game crashes. So all is fine until I choose to lead army myself. I will try to fix it tomorrow.

Elvain
21-02-2005, 01:34
Today I have added new unit to KoH. Unfortunately in battle view, when this unit has to be displayed on the screen, game crashes. So all is fine until I choose to lead army myself. I will try to fix it tomorrow.could you tell me which files did you edit?
I did those below and I can't even get to the intro :sad: new unit is for example hospitalier (based on templar)
EDITED:
defs\economy\units.in2
defs\Units\Military\army_units.in2
defs\Units\Military\Units.txt
defs\Units\Military\Units.xls
Texts\help\ui_help;01unitdescr.ini

COPIED and RENAMED:
defs\Units\Military\hospitalier.unit
images\units\army\small\hospitalier_fight.img
images\units\army\small\hospitalier_fight.rle
images\units\army\small\hospitalier_Idle.img
images\units\army\small\hospitalier_Idle.rle
images\units\army\small\hospitalier_Walk.img
images\units\army\small\hospitalier_Walk.rle
images\units\hospitalier\all files in this directory renamed
images\units\Icons\Battle meter\hospitalier_l.rle
images\units\Icons\Battle meter\hospitalier_r.rle
images\units\Icons\Battle view\big size\hospitalier.rle
images\units\Icons\Battle view\big size\hospitalier.bmp
images\units\Icons\Battle view\medium size\hospitalier.rle
images\units\Icons\Battle view\medium size\hospitalier.bmp
images\units\Icons\Battle view\small size\hospitalier.rle
images\units\Icons\Battle view\small size\hospitalier.bmp
images\units\Icons\small\hospitalier.rle
images\units\Icons\small\hospitalier.img

I'm trying to figure out what I've edited badly in one of those files that need to be edited, I think the bug must be there

Kakita Matesu
21-02-2005, 16:17
You could make mistake only in editing Units.txt file but I think you did not. Try to unpack all *.pak files to KoH directory. Maybe it helps

Elvain
24-02-2005, 16:54
could you send me how exactly did you edited files to create new units. The game does nt run for me whatever I do concerning units (I would like to see wspecially units.in2 and army_units.in2 how did you dealt with reserved units...
I will send you my e-mail adress via PM

thanks, Elvain

Elvain
02-03-2005, 15:24
Kakita? does the game run with all the files you've sent me?

Kakita Matesu
03-03-2005, 15:40
Yes, all works fine. Hmm, maybe putting one file after another and running game with various configurations will be some kind of solution. Try to change *.in2, *.txt and *.xls first. Game should report 'system message' but also should carry on.

Remember that files I've sent you, don't solve problem with viewing unit in Battle Screen in current shape.

If problem still exists, write.

Elvain
03-03-2005, 16:31
I know but I can't hire them.. yea, you haven't change their availability and also they are not in units.xls and units.txt

I will work it out somehow...

Elvain
03-03-2005, 17:35
I have a question. Have you hired that unit? because infiles you've sent me thereis not a single change in Units.xls and Units.txt
and those seem to be crucial for game crashing (without changes in those files the game was Ok, but I still wasn't able to hire new units...

PS: take this as my documentation.... :bday:

Kakita Matesu
03-03-2005, 18:27
Of course I have hired created unit, even fought with enemy and won :cool: I'm looking now into these files and there are changes, not exactly in Units.xls but in Units.txt at the end of file is unit 'Vikin'. Also in TrainUnits.txt in place where Poland has 'Local units' there is unit Vikin. You must have missed something or I gave you wrong file but it can't be true, becasue I'm looking in *.zip file I've sent you and it is correct. :confused: