Spider Stomper
Posts: 186
Joined: Friday, 8th March 2013, 13:27
mutation 4 levels, help
I'm experimenting with creating a mutation that has more than 3 levels.
I have managed to make the mutation to work fine for three levels but when I try to modiffy mutation.cc and add more leves I'm unable to compile.
I get the following message:
mutation.cc:56:1: error: too many initializers for ‘const char* [3]’
Help would be much appreciated, I'm breaking my head trying to find what am I doing wrong.
Example (this works fine)
But this doesn't:
I have managed to make the mutation to work fine for three levels but when I try to modiffy mutation.cc and add more leves I'm unable to compile.
I get the following message:
mutation.cc:56:1: error: too many initializers for ‘const char* [3]’
Help would be much appreciated, I'm breaking my head trying to find what am I doing wrong.
Example (this works fine)
- Code:
//this goes in mutation.cc,
{ MUT_EXAMPLE, 0, 3, true, true, true,
NULL,
{"example lvl 1 (Str -1).",
"example lvl 2 (Str -2).",
"example lvl 3 (Str -3)."},
{"you get mutation example at lvl 1",
"you get mutation example at level 2",
"you get mutation example at level 3"},
{"Somehow mut example receded.",
"Somehow mut example receded",
"Somehow mut example receded"},
"mut example"
},
But this doesn't:
- Code:
//this goes in mutation.cc,
{ MUT_EXAMPLE, 0, 4, true, true, true,
NULL,
{"example lvl 1 (Str -1).",
"example lvl 2 (Str -2).",
"example lvl 3 (Str -3).",
"example lvl 4 (Str -4)"},
{"you get mutation example at lvl 1",
"you get mutation example at level 2",
"you get mutation example at level 3",
"you get mutation example at level 4"},
{"Somehow mut example receded.",
"Somehow mut example receded",
"Somehow mut example receded",
"Somehow mut example receded"},
"mut example"
},