CarlGustaffa 4 Posted November 21, 2008 Hi I've modified Domination to include "scenarioes" where instead of fully random mission generation I can control during multiplayer screen a pregenerated scenario with nonrandom targets. But my Param1 (which used to be a simple target count) doesn't seem to work properly from description.ext. I've included the original one for reference, and Param2 which seems to work, at least giving the correct text output. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> //titleParam1 = "Main Targets"; //valuesParam1[] = {2,4,6,8,10,12,14,16,18,21}; //defValueParam1 = 6; //textsParam1[] = {"2","4","6","8","10","12","14","16","18","21"}; titleParam1 = "Select Scenario"; valuesParam1[] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33 ,34,35,36,37,38,39}; defValueParam1 = 11; textsParam1[] = {"South East Route","South West Route","North West Route","North East Route","South Coastal Route","North Coastal Route","Logistic Challenge","Big Cities Challenge","Random 2 Towns","Random 4 Towns","Random 6 Towns","Random 8 Towns","Random 10 Towns","Random 12 Towns","Random 14 Towns","Random 16 Towns","Random 18 Towns","Random 21 Towns","Random 2 Small","Random 4 Small","Random 6 Small","Random 10 Small","Random 15 Small","Random 20 Small","Random 25 Small","Random 30 Small","Random 36 Small","Random 42 Small","Random 2 All","Random 4 All","Random 6 All","Random 10 All","Random 15 All","Random 23 All","Random 30 All","Random 40 All","Random 52 All","Random 63 All"}; titleParam2 = "Time of day:"; valuesParam2[] = {72,72.5,73,73.5,74,74.5,75,75.5,76,76.5,77,77.5,6,6.5,7,7.5,8,8.5,9,9.5,10,10.5,11,11.5,1 2,12.5,13,13.5,14,14.5,15,15.5,16,16.5,17,17.5,18,18.5,19,19.5,20,20.5,21,21.5,70,70.5,71, 71.5}; defValueParam2 = 16; textsParam2[] = {"00:00 Midnight","00:30","01:00","01:30","02:00","02:30","03:00","03:30","04:00 Default","04:30","05:00","05:30 Sunrise","06:00","06:30","07:00","07:30","08:00 Late Morning","08:30","09:00","09:30","10:00","10:30","11:00","11:30","12:00 Noon","12:30","13:00","13:30","14:00","14:30","15:00","15:30","16:00 Afternoon","16:30","17:00","17:30","18:00","18:30 Sunset","19:00","19:30","20:00","20:30","21:00","21:30","22:00","22:30","23:00","23:30"}; Where is my mistake? Why does Param1 only show a list of numbers instead of textual information? Share this post Link to post Share on other sites
dr_eyeball 16 Posted November 21, 2008 Not sure if this affects it, but I think valuesParam1 has 39 items, textsParam1 has 38? Also, check valuesParam2 where you have a cut up value '12' at the end of the line: ...11.5,1 2,1... Share this post Link to post Share on other sites
CarlGustaffa 4 Posted November 22, 2008 Yes that most definately helped bringing it down to 38... But now there must be a miss somewhere in the mission At least now I know what to look for. The break in 12 is probably just a forced linebreak or something in the forum, looks good in my editor. Share this post Link to post Share on other sites