Log in

View Full Version : some really wierd error



missik
12-22-2007, 17:45
I keep getting this error message:

Script error in my_mod/data/export_unit_descr.txt, at line 3038, column 34.

carthaginian onager missile range of 300 is impossible with its current projectile (boulder, max range 293)

I suddenly got this. I never touched any projectile or boulder info, I didn't touch any siege weaponry and then suddenly this keeps on coming up and forces CTD. At first it was barb dacian onager, and then when i changed the range from 300 to 290 it then came up with an error for barb scythian onager, and then when i changed that too, now it's the cartahginian onager! do you know why?

Aradan
12-22-2007, 17:54
It means that with the given angles and velocity set for that siege machine projectiles (code lies in descr_projectile_new.txt) the range you have given is impossible. Either reduce the range values or go to the projectiles file and increase the velocity of the projectile used by these onagers. I suspect a slight increase will do. If you do the latter, also change the velocity of the fiery_boulder projectile.

missik
12-22-2007, 17:57
but do you know why this came up even though I didn't add or remove or edit any values or such in the projectiles?

Aradan
12-22-2007, 18:03
There is a formula that calculates the max range of every projectile. That formula is based on values that lie in the projectiles-file and produces a result that lies in the EDU. If you change the EDU and give range a value that is greater than the maximum allowed, then you'll get a message. In order not to get that message you'll have to adjust the projectiles-file according to the chnages you did in the EDU. It is exactly because you didn't re-adjust the values in there that you got that eror message.

missik
12-22-2007, 18:05
would this be because I tried to add a cavalry archer unit whos range was 110 but tried to raise it to 180? that's the only thing I did before that error started coming up

Red Spot
12-22-2007, 21:09
you changed projectile speed, thats the only explanation as onagers in vanilla have a range of 300 and to get below it you need to decrease the velocity of the projectile, only way to get that error ...
(check the time-stamp on the file ...)


G