View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0002059 | OpenClonk | Engine | public | 2019-04-05 08:08 | 2019-04-05 13:33 | ||||||||
Reporter | Marky | ||||||||||||
Assigned To | |||||||||||||
Priority | normal | Severity | feature | Reproducibility | have not tried | ||||||||
Status | new | Resolution | open | ||||||||||
Product Version | |||||||||||||
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. | ||||||||||||
Attached Files |
|
![]() |
|
Marky (developer) 2019-04-05 13:33 |
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. |