There are two unfinished storylines now, which are disabled by having their StartStoryline.c files renamed to StartStoryline_off.c .
This has been the case for a long, long time now with the Gold-Bug one. However, it is now also done for DevlinOpera.
Apparently while the current game code CAN handle one storyline being disabled like that, it cannot handle two of them.
Figure that one out!
So now I'm trying to figure out a way to get past this problem.
I tried the following in PROGRAM\utils.c:
However, that causes an error message that I do not understand because the code looks fine to me.
This is what I get though:
I haven't yet thought of a solution that actually works for multiple storylines being disabled.
Maybe tomorrow....
This has been the case for a long, long time now with the Gold-Bug one. However, it is now also done for DevlinOpera.
Apparently while the current game code CAN handle one storyline being disabled like that, it cannot handle two of them.
Figure that one out!
So now I'm trying to figure out a way to get past this problem.
I tried the following in PROGRAM\utils.c:
Code:
void InitStorylines()
{
aref flist = GetFiles("PROGRAM\Storyline", "*.c");
int num = GetAttributesNum(flist);
ref sl; makeref(sl, Storylines);
DeleteAttribute(sl, "");
sl.list = "";
for (int i = 0; i < num; i++) {
string sfile = GetAttributeValue(GetAttributeN(flist, i));
// PB: Check if storyline is disabled -->
string sdir = strcut(sfile, 0, strlen(sfile) - 3);
sdir = "PROGRAM\storyline\" + sdir + "\";
bool bok = FindFile(sdir, "*.c", "StartStoryline_off.c") == "";
if (!bok) continue;
// PB: Check if storyline is disabled <--
if (LoadSegment("Storyline\" + sfile)) {
RegisterStoryline(i);
UnloadSegment("Storyline\" + sfile);
}
}
}
However, that causes an error message that I do not understand because the code looks fine to me.
This is what I get though:
Code:
RUNTIME ERROR - file: utils.c; line: 2022
incorrect argument index
RUNTIME ERROR - file: utils.c; line: 2022
Bad function argument
RUNTIME ERROR - file: utils.c; line: 2023
Unknown data type
RUNTIME ERROR - file: utils.c; line: 2023
Unknown data type
RUNTIME ERROR - file: utils.c; line: 2023
invalid argument type
RUNTIME ERROR - file: utils.c; line: 2023
Invalid string argument
I haven't yet thought of a solution that actually works for multiple storylines being disabled.
Maybe tomorrow....