Page 1 of 1
Edit .out file

Posted:
Sun Jun 13, 2021 5:13 pm
by buzz456
Anyone know what program you need to use to edit a .out file?
Re: Edit .out file

Posted:
Sun Jun 13, 2021 5:20 pm
by Railfan722
.out files are compiled lua scripts and they can’t be edited. Using a program like Unluac will get you a list of functions and such used in the script, but to say it spits or anything useable would be generous. If you need to do any scripting, make a new script file and use the require() function on the .out.
Re: Edit .out file

Posted:
Sun Jun 13, 2021 5:33 pm
by buzz456
Thanks what do I need to create a lua file?
Re: Edit .out file

Posted:
Sun Jun 13, 2021 6:02 pm
by kris120
A text editor.
Re: Edit .out file

Posted:
Sun Jun 13, 2021 6:08 pm
by Chacal
You use the text editor for writing a script, which you save as something.lua. I don't think you need to compile it to something.luac or something.out, but you can do that using luac.bat which is in your railworks folder.
Re: Edit .out file

Posted:
Mon Jun 14, 2021 5:50 am
by kris120
You do not need to compile lua in TS. All the old scripts in Kuju are not compiled.
Compilation was only in parts useful to gain speed, lua is fast enough without compilation. It is more a method to hide code from other rivals.
In my opinion we would have much better and more complex scripts when most of the people would publish their code under an open source licence like the GPL licence (
https://en.wikipedia.org/wiki/GNU_Gener ... ic_License ). Reason is not that lua would be too complicate, it't the TS which has it's own flaws.
Re: Edit .out file

Posted:
Mon Jun 14, 2021 1:10 pm
by _o_OOOO_oo-Kanawha
Yes, an open source code scripts collection of inter operable modules would be most useful for those included to provide good looking models with better functions.
Reply

Posted:
Wed Jun 16, 2021 2:11 pm
by RailRoadEngineer
buzz456 wrote:"What do I need to create a lua file?"
Lua programming knowledge
Re: Reply

Posted:
Wed Jun 16, 2021 2:29 pm
by buzz456
RailRoadEngineer wrote:buzz456 wrote:"What do I need to create a lua file?"
Lua programming knowledge
