Log in

View Full Version : Problems with Creating Units



ShadesPanther
07-15-2003, 23:45
Ok i Create units like Byzantine Spearmen using a little guide that was posted in Help me with Creating Units by
kekvitirae and it works out fine. Then i try to make other units and then wen i have everything done and have stats fixed mtw wont start and says something about the units cost being too low even though it is moderate stats and costs quite alot.

Is their a formula or something to work out the cost or anything?

please respond http://www.totalwar.org/forum/non-cgi/emoticons/pat.gif

the Black Prince
07-16-2003, 08:22
does it actually say that the cost is too low, or do you get an error message when you try and enter the game saying something about to few characters or something like that?

i've found that when you actually add new units it throws the tabs out at first so unit cost ends up in the wrong column and the game things all the numbers are in the wrong column. you just have to go along and put some tabs in (or delete them)to shift all the figures back into their original columns

ShadesPanther
07-16-2003, 11:19
its sys cost is too low is cost related to anything?

Demon of Light
07-16-2003, 16:34
ShadesPanther: I think that last post needs to be clarified.

Duke John
07-16-2003, 16:40
The Black Prince is probably right on spot. You should use Gnome Editor for editing stats. If you do this by hand via Excel or Notepad you have to be carefull not doing anything wrong.
The solution to your problem is either rewriting the new unit-entries or looking very carefully where you missed a tab or space. I would go for the first option.

ShadesPanther
07-16-2003, 17:04
Ive used Gnemore editor for quite a while now and that souldn't be a problem. The strange thing is that it is ok for one unit and doesn't work for the other.
I dunno about nwo as i am doing a mod right now but i shall see and ill try looking for problems.
It works for infantry units but not for Cavalry. Dunno if that is relevant or not.

ShadesPanther
07-16-2003, 18:10
http://www.totalwar.org/cgi-bin....63;st=0 (http://www.totalwar.org/cgi-bin/forum/ikonboard.cgi?act=ST;f=5;t=7563;st=0)

3rd post

Then i just edited the stats with Gnome and put it in then when i start it up it says unit cost is too low in row 184 column 3 (which is cost) but no matter how much i increase the cost that error still shows up even when i lower some stats as well to see if that is the problem

Duke John
07-16-2003, 18:35
I trust that the unit-creating guide works. But apparently you did something wrong. The program doesn't give a warning for no reason. What stats did you change in the unit file? All the other files are no problem, they would give different warnings or CTDs.
Have you tried the new unit with all the stats the same except for the new cost? You could backtrack it, until you find the fault.

ShadesPanther
07-16-2003, 18:58
Im trying to make a unit of Klibanophori and im having the same problem with it. so im going to get to the bottom of this. It says

Cost
Integer
"Cost of producing this unit before any modifiers are taken into account.
(Costs for units are linked from unit def sheet)"

above unit cost in gnome editor and this above melee and armour and defence and such

Stats and general info about this trooptype
Labels(values)
"This column is linked from Linked To workshet, which is itself linked to the summary and unit def sheets. Please edit the factors there"


Now im looking for def sheets but cant seem to find them

Duke John
07-16-2003, 20:41
You don't have to bother with def sheets. You can edit all the entries as seen in Gnome Editor. Those descriptions were for the developers and can serve as a guideline but you can forget all about the def sheets. As long as you edit the entries with valid values then everything should be fine.

ShadesPanther
07-16-2003, 23:57
by valid do you mean realistic? eg if something like a hash baby unit with 40 men costing 20 not work? (i dont want that anyway http://www.totalwar.org/forum/non-cgi/emoticons/joker.gif )

Ithaskar Fëarindel
07-17-2003, 01:57
Pantha can you send me the Unit Prod file? I will try looking through it to see if I spot anything.

My e-mail is davesoul@hotmail.com

On the spot, the only thing I can think of that the cost is tied into is the Armour/Valour/Weapon upgrades which the game automatically works out (in custom/MP.)

CBR
07-17-2003, 02:04
Hm must be a problem with tabs. It thinks another column is unit cost. I know you can have units that cost only 1 florin so thats not the problem http://www.totalwar.org/forum/non-cgi/emoticons/smile.gif

Gnome editor can easily create problems in the last column as that is actually several columns in VI.

You can send the file to me cbr@os.dk and I'll have a look at it..maybe Im lucky http://www.totalwar.org/forum/non-cgi/emoticons/smile.gif

CBR

the Black Prince
07-17-2003, 08:54
i had a similar problem when i was adding in my praetorian guards units. it kept coming up with an error in the cost column, even though i kept replacing it with the original cost of the unit i'd modified.
i repasted the unit back in and did it all again and it worked fine.

ShadesPanther
07-17-2003, 17:14
hmm thats wierd i had deleted it last night but then i added it again today and it works fine seems to be a bit tempermental http://www.totalwar.org/forum/non-cgi/emoticons/rolleyes.gif

Thanks for all the help guys http://www.totalwar.org/forum/non-cgi/emoticons/pat.gif

EDIT: typos

the Black Prince
07-19-2003, 10:03
yeah, it does that. i've added four units now, and had the problem with two of them. but when i delted the script for the unit, and repasted it, in notepad, it worked. god knows why

maximus2001
07-27-2003, 05:18
I tried to put Swabian swordsmen from VI into Medieval 1.1 with Wes' Medmod 1.85, and just keep getting error messages. Checked the tabs many times, and repasted too into the crusader text (after putting in all the other stuff, lbm, unit icons etc.) Whatever I change or move I will get another message-usually what you guys mentioned-the price, in column two. AAAggghhh. Is there any hope of getting around this. http://www.totalwar.org/forum/non-cgi/emoticons/mecry.gif

the Black Prince
07-27-2003, 14:05
sounds weird.
you say you've tried pasting, error, deleting and repasting?
are you editing in notebook, excel, or using gnome editor?

maximus2001
07-27-2003, 23:59
Yep, I look at it in notebook. I tried loading wes' crusader text in the gnome editor, but it kept getting stuck 2/3 into loading.(just to see if I had messed up his cru text)
Originally I had VI on my 2nd drive , so I would copy the swab sw from that cr text, then check it out in gnome. Then I changed some things in gnome like ID_German HRE to just German_Hre, and a few other things like that. Then save to a new text, and cut and paste to the end of the WesW Mod cru text. Reload, bang errors.
Usually the message is error cost 250 (something like that), or error unit-yes, or error unknown unit-huscarles. Whenever I change one of these three things (by moving tabs or repasting) the error message will then say one of the other two errors. http://www.totalwar.org/forum/non-cgi/emoticons/frown.gif

WesW
07-28-2003, 03:53
I think two things will clear up your problems:

1)Two new columns were added to the end of unit entries for VI, related to cost and faction availability for MP games. This was done so that you use a mod and still play MP.

All factions in VI texts have an "FN_" preceding them, and all provinces an "ID_". This makes trying to paste from 1.1 to 2.0 very tedious. (And yes, I am currently experiencing the tedium.)

2)This is the one I have not seen anyone else report here:
The error reports you receive are almost always wrong.
I'm not sure in what order the game reads the data, but I think it reads it by column, not row, from top to bottom, with each unit having two lines of code.
Thus,the error is almost always in the line preceding that which is reported. For example, if you get an error report in column 3 of line 84, look at about the 28th tab of the preceding unit's code. The error should be right about there.
If this tab is blank, that might explain the "too low" message, which I have not seen before.

I don't know why simply pasting things in again would solve the problem, since I always find a tab I deleted or some-such whenever I receive a message.

pdoan8
07-28-2003, 10:42
I had the same problem when trying to make the Early VG available to the Byz. The game generated an error about unknown unit type at row 52 col 2: 500 (which is actually col 3 and it is the cost of the VG). I checked row 52 and col 2 of the text file and there was nothing wrong. Col 2 is "INFANTRY" which is correct and col 3 is "500" also correct. All the texts and tabs were there when I compare with the original text file. The game report a problem with col 2 but actually list col 3 as the error.

Another thing, doesn't it seem strange that the error occured in the top part of the file when the changes were made near the end of the file? Also, all other units work fine while only the Early VG has trouble.