ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Difference between revisions of "New Construction Options"

From ModEnc
Jump to: navigation, search
(Saved prematurely...)
(Added DCoder's text on the bug)
Line 20: Line 20:
 
...etc.
 
...etc.
  
DCoder also reported: That's not the only problem with the NCO bug... At least to me.. when I hear "New Construction Options", my sidebar jumps to a random position (up or down). Gad damn annoying.
+
[[DCoder]] also reported: That's not the only problem with the NCO bug... At least to me.. when I hear "New Construction Options", my sidebar jumps to a random position (up or down). Gad damn annoying.
 +
 
 +
== The "New Construction Options" bug (by DCoder) ==
 +
 
 +
The information provided in this tutorial is a compilation of info provided by various members of the modding community, credit goes to ''[[Martyr]]'', ''[[CannisRabidus]]'', ''[[Blade]]''... did I forget anyone?
 +
 
 +
Many modders have experienced the "New Construction Options" or NCO bug. Symptoms: EVA repeatedly saying "NCO" after any vehicle/infantry/structure is built.
 +
The cause of this bug is indirectly the WW's decision to keep navy a part of the VehicleTypes list, rather than creating a separate one. Ergo, shipyards are classed as Factory=VehicleType, just like the War Factories are. This results in the game thinking that you can build the ground vehicles when you only have the shipyard, and vice versa. So, unless you set all ground vehicles to have at least Prerequisite=one of war factories, and all Naval=yes units Prerequisite=one of shipyards, you'll get the bug when you own one of the factories, but not the other. You can add other Prerequisites if you like, but a factory of the appropriate kind must be present in the Prerequisite= entry.
 +
PrerequisiteOverride= is another problem. Since it ignores the Prerequisite= and only needs one of the buildings from the list, you can restore the bug easily, if you aren't careful. If you set the PrerequisiteOverride= to something else than the appropriate factory, you'll get the bug. So it's best to stay away from this tag in this case...
 +
InfantryTypes don't suffer from this, as there is only one kind of Barracks. BuildingTypes seem to be bug-free (in this aspect) too.  
  
  

Revision as of 14:40, 11 August 2004

"New Construction Options", the sound generated by C&C if there are new construction options available, is usually only mentioned because it doesn't work as intended.

The Bug

The sound gained sad fame by the fact that there's a bug resulting in this sound being repeated everytime there is a creation (or similar action) performed, e.g.

Unit created.
New construction options.
Unit created.
New construction options.
Unit created.
New construction options.
New construction options.
New construction options.
Technology stolen.
New construction options.
New construction options.
Unit created.
New construction options.

...etc.

DCoder also reported: That's not the only problem with the NCO bug... At least to me.. when I hear "New Construction Options", my sidebar jumps to a random position (up or down). Gad damn annoying.

The "New Construction Options" bug (by DCoder)

The information provided in this tutorial is a compilation of info provided by various members of the modding community, credit goes to Martyr, CannisRabidus, Blade... did I forget anyone?

Many modders have experienced the "New Construction Options" or NCO bug. Symptoms: EVA repeatedly saying "NCO" after any vehicle/infantry/structure is built. The cause of this bug is indirectly the WW's decision to keep navy a part of the VehicleTypes list, rather than creating a separate one. Ergo, shipyards are classed as Factory=VehicleType, just like the War Factories are. This results in the game thinking that you can build the ground vehicles when you only have the shipyard, and vice versa. So, unless you set all ground vehicles to have at least Prerequisite=one of war factories, and all Naval=yes units Prerequisite=one of shipyards, you'll get the bug when you own one of the factories, but not the other. You can add other Prerequisites if you like, but a factory of the appropriate kind must be present in the Prerequisite= entry. PrerequisiteOverride= is another problem. Since it ignores the Prerequisite= and only needs one of the buildings from the list, you can restore the bug easily, if you aren't careful. If you set the PrerequisiteOverride= to something else than the appropriate factory, you'll get the bug. So it's best to stay away from this tag in this case... InfantryTypes don't suffer from this, as there is only one kind of Barracks. BuildingTypes seem to be bug-free (in this aspect) too.


Solutions

CannisRabidus: Check for typos. You might just think you have all countries listed...
ArgCmdr: Owner parameters on side-buildings should contain all playable houses, else that sound is played.
Renegade: Well, from my rich funds of experience with this god-damned bug, I can only give one advice: Just disable that freakin' sound...you won't hunt it down...and even if you did, it will come again...and again...it's everywhere......you can't escape from it...disabling it makes modding much more funny, since you don't need to fuckin' care about it...

eva(md).ini, [EVA_NewConstructionOptions], make it look like this:

[EVA_NewConstructionOptions]
Text=New construction options.
Russian= ;csof049
Allied=; ceva049
Yuri= ;cyur049
Type= QUEUE
Priority= LOW

Reportedly, TechLevel= typos generate the bug as well.


This bug is usually referred to as the "NCO-Bug".