rjord2021
Posts: 1992
Joined: 6/14/2013 From: Sydney, Australia Status: offline
|
If anyone tries their hand at modding and decides to replace all components, research and resources from their mod with new components, research and resources..... you may find you get an index array message when you try running your mod. Because you have no components, research or resources any more...you need to make some changes. For each race in your mod go to the race text file ..... 1. Go to the line SpecialComponent and remove the component id at the end of the line. 2. Directly below you will see components listed for WeaponsResearch, EnergyResearch and HighTechResearch orders. Because you have no components you need to remove any components listed here. Example: Listed components in race file SpecialComponent ;42 WeaponsResearchProjectOrder ;6,67,33,3,324,34,4,344,346,57,301,313,22,292,336,330,68,5,16,58,63,318,309,30,48,23,19,51,275,319,276,64,355,321,370,31,327,52,314,21,45,277,59,32,18,46,60,272,356,328,54,315,65,371,35,42,61,49,278,55,316,66,62,50,279,20,325,329,43,297,299,274,300,326,281,44 EnergyResearchProjectOrder ;95,123,363,166,133,74,96,280,92,113,167,134,361,160,75,145,172,93,114,139,115,71,120,135,97,103,161,131,98,99,72,100,116,124,162,73,132,125,121,94,101,173,147,102,122,126,298,135,148,149,150 HighTechResearchProjectOrder ;227,249,235,253,222,221,224,220,226,225,345,269,188,182,262,212,283,189,183,270,245,204,228,250,263,254,190,184,191,185,264,198,271,246,284,236,205,265,223,282,192,186,251,255,242,266,213,199,206,207,252,256,247,214,267,193,187,229,239,243,231,208,200,215,238,248,201,216,209,230,240,244,217,202,210,218,203,211 Fixed Example: Fixed race file without components. Note the SpecialComponents needs a value of -1 to indicate no special components required. SpecialComponent ;-1 WeaponsResearchProjectOrder ; EnergyResearchProjectOrder ; HighTechResearchProjectOrder ; So to quickly fix all race files I copy the last 4 lines above and replace the same lines in the race file.... hence removing all reference to no longer existing components.
_____________________________
|