|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002059||OpenClonk||Engine||public||2019-04-05 08:08||2019-04-05 13:33|
|Priority||normal||Severity||feature||Reproducibility||have not tried|
|Target Version||Fixed in Version|
|Summary||0002059: Loading multiple script files from a definition|
|Description||Sometimes a script file can turn really large, and for a theme-based sorting of the functions I want to split the file into multiple files, as it is possible in System.ocg.|
Obviously, there should be no need for #include or #appendto in that script, and duplicate functions should be noted (the latter is already there, via a warning).
|Additional Information||Sometimes it may make sense to extract the separate part to a library and include that, but sometimes it does not.|
|Tags||No tags attached.|
I tried to resolve this, in a similar way like the game script does with C4ExtraScriptHost - no success. It tries to load multiple files, but only the last loaded file prevails (this is sort of what I expected).
The problem for me is when the script is parsed it does not know about the other files, and I cannot see where the C4ExtraScriptHost gets parsed. An instance of the class is created, but that's it as far as I understand.
|2019-04-05 08:08||Marky||New Issue|
|2019-04-05 13:33||Marky||Note Added: 0006220|