Script Language Reference and Guide - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Articles (https://www.frictionalgames.com/forum/forum-40.html) +---- Thread: Script Language Reference and Guide (/thread-19933.html) |
RE: Script Language Reference and Guide - plutomaniac - 01-30-2013 that sounds amazing but even if you ported the script you wouldn't have all the amnesia assets at HPL3 or HPL2AAMFP so it wouldn't work without a lot of work and old file transfers RE: Script Language Reference and Guide - TheGreatCthulhu - 01-30-2013 (01-29-2013, 10:56 PM)Acies Wrote:(01-29-2013, 10:25 PM)Thomas Wrote: Yeah affirmative! No, (although it's not impossible) - the thing is, me and Adrianis stumbled upon something of a (minor) bug (well, a code design flaw, rather) in Amnesia, which can cause some problems with custom story scripting in some rare usage scenarios (most people will never need to write the kind of script code that can cause the issue, and it doesn't affect the main game, so it's not that much of a problem). Now, since newer versions of the engine are likely to reuse some of the code from previous versions (a common thing in programming), my concern was that the issue might remain unnoticed and creep its way into HPL3 (and any potential later versions), where it could become a bigger problem - so I notified Thomas about it. What Thomas is essentially saying is that, (1) although they weren't aware of the problem in Amnesia, they just happened to intuitively code the next game in such a way as to prevent the issue, and that (2) given that the issue doesn't pose too much of a problem for Amnesia, they'll see if they are going to release a patch (fix) for this or not, as such a patch might cause some of the existing custom stories / FCs to work improperly, if the custom stories / FCs in question happen to use this specific kind of approach in their map scripts (but as I said, there's probably, like <1% of them - how you "normally" script doesn't cause the issue). RE: Script Language Reference and Guide - Adrianis - 01-30-2013 Yeh, its just me finding special/idiotic ways of using the exposed functions, I can't imagine anyone has done it that way before, and maybe never will again - certainly not worth patching Amnesia for, and if the problem has been indirectly solved in HPL3, then no problem! Even in my case, it's a really simple matter of using a standard string type in between GetGlobalVar func and the argument for the function, as in the last example on post #13, then assigning back to the global string via the intended method - the function SetGlobalVar Thanks for the input Thomas, it is much appreciated RE: Script Language Reference and Guide - Acies - 02-01-2013 (01-30-2013, 10:55 AM)TheGreatCthulhu Wrote:Thanks for taking the time to clear that up for me. Reading Thomas quote again I realize that I misunderstood : ](01-29-2013, 10:56 PM)Acies Wrote:What Thomas is essentially saying is that, (1) although they weren't aware of the problem in Amnesia, they just happened to intuitively code the next game in such a way as to prevent the issue, and that (2) given that the issue doesn't pose too much of a problem for Amnesia, they'll see if they are going to release a patch (fix) for this or not, as such a patch might cause some of the existing custom stories / FCs to work improperly, if the custom stories / FCs in question happen to use this specific kind of approach in their map scripts (but as I said, there's probably, like <1% of them - how you "normally" script doesn't cause the issue).(01-29-2013, 10:25 PM)Thomas Wrote: Yeah affirmative! RE: Script Language Reference and Guide - TheGreatCthulhu - 06-03-2013 Hey, thanks for the support, didn't see your post up until now! I'm glad I could contribute; I'm hoping to add some new topics in the future, when I find time. RE: Script Language Reference and Guide - VeNoMzTeamHysterical - 06-07-2013 Sick guide dude, it is very useful for me! |