.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   PD problem (http://forum.shrapnelgames.com/showthread.php?t=42888)

esd29a April 18th, 2009 10:58 AM

PD problem
 
Hello. I have been working on a mod nation. Everything seems to work, except PD. I have defined 4 units for it but when I test it in game only 2 unit types show up.

Here is the code:
Code:

#defcom1 2844
#defcom2 2846
#defunit1 29
#defunit1b 2839
#defunit2 2838
#defunit2b 2841
#defmult1 20
#defmult1b 20
#defmult2 10
#defmult2b 10

29 and 2838 are the unit types that do appear. Any idea what I am doing wrong?

Aezeal April 18th, 2009 11:07 AM

Re: PD problem
 
hmmm no idea really the coding seems correct and if defunit2 appears it can't be that you forgot to get 20 + PD either.. the other units are coded correctly? I guess they must or there would be an error.

I've compared it to code of Amos (insects in my dom3 K mod, and my own nations which have working PD.) Seems like a lot htough 20 1 and 20 1b.. mayeb the game is protesting against that :D

Burnsaber April 18th, 2009 03:40 PM

Re: PD problem
 
There are some strange undocumented bugs about PD. I had that too with Alugra.

If I recall correctly, I bypassed it by changing the amount of units that appear. Try 19 or 21 instead of 20.

If all else fails, copy something that works and change it bit by bit and test after every change, so that you see what breaks it.

Aezeal April 18th, 2009 03:41 PM

Re: PD problem
 
still weird since those that do appear are 20 too... but he can alwasy try :D

esd29a April 20th, 2009 06:10 AM

Re: PD problem
 
Hmm. Was hoping it was one of those "we get that often, here is your mistake" problems. Oh well, tweak and test it is. Thanks all.

Aezeal April 21st, 2009 02:49 PM

Re: PD problem
 
try to copy the lines from another mod and then just change numbers (I know, according to me it should work since it looks similar but you can always try)

there MIGHT be problems with your units.. are they recruitable, do they work?

esd29a April 22nd, 2009 03:40 AM

Re: PD problem
 
Thanks but, setting the numbers to 15, 15 solved it. Guess the game really did think the previous numbers were excessive. Having seen the 15s in action, the game was right :)
Their setup in battle seems messy, archers blocking infantry from advancing and so on, but I am guessing there is no way to mod that.


All times are GMT -4. The time now is 07:23 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.