How on earth do I edit the .out file of a locomotive's script?
Also, do these scripts control Alerter Audio? The locomotive goes into emergency and alert flashes on the screen, but no audio, even though the sound for it is correctly aliased.
artimrj wrote:You can not edit an OUT file. It is compiled so you can't see it, to protect the author's code.
Chacal wrote:If then only way to fix it is by editing the out file, then yes.
But are you sure it is?
tplowman91 wrote:artimrj wrote:You can not edit an OUT file. It is compiled so you can't see it, to protect the author's code.
So you're telling me it's impossible to make the alerter make sound?
artimrj wrote:tplowman91 wrote:artimrj wrote:You can not edit an OUT file. It is compiled so you can't see it, to protect the author's code.
So you're telling me it's impossible to make the alerter make sound?
No, I am telling you it is impossible to edit the OUT file. I do not program bin files, but if you can add a child object of a flashing light I would imagine you canadd a child object of a sound, but I have no idea. And one of these gurus here would have to help you with the child object. That is above my skills and desires.
Chacal wrote:Technically, if you're very proficient in lua bytecode, you could edit the compiled file. Good luck with that.
You can't decompile them because the two available lua decompilers (unluac and luadec) only work with code compiled with debug information.
Of course they don't have this debug information because the luac.bat script supplied by DTG uses "luac.exe -s", and the "-s" parameter strips out the debug information. Of course, it is the whole purpose of compiling the code.
Given the error messages I get when I try, I suspect DTG also uses a custom version of luac, producing nonstandard bytecode. This is fairly common practice.
Compiling the code is a choice made by asset builders. They have their reasons (mostly, "protecting their IP").
Here's my unsollicited opinion on this. Feel free to stop reading at any time.
I see this as the "private club" syndrome: when there's a private club, everyone wants to get in, and as soon as they're in they don't want anyone else to get in.
Most asset builders got their knowledge from posts on public forums (mainly UKTS), and from uncompiled code in other builders' products. Now that they've become proficient, they don't want to share the knowledge anymore.
The result of this will be the disappearance of freeware assets, because only payware assets will have advanced features.
Protecting one's IP is understandable, of course, given the number of hours one spends in writing it. I wonder how many hours I've spent helping people and spreading knowledge in forums. Maybe I should start charging for it.
Return to Rolling-Stock Design
Users browsing this forum: No registered users and 1 guest