Edit .out file

Discussion about computers: Hardware, Problems, etc.

Edit .out file

Unread postby buzz456 » Sun Jun 13, 2021 5:13 pm

Anyone know what program you need to use to edit a .out file?
Buzz
39 and holding.
"Some people find fault like there's a reward for it."- Zig Ziglar
"If you can dream it you can do it."- Walt Disney
Image
User avatar
buzz456
Site Admin
 
Posts: 20937
Joined: Sun Mar 21, 2010 8:30 am
Location: SW Florida

Re: Edit .out file

Unread postby Railfan722 » Sun Jun 13, 2021 5:20 pm

.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.
Matt J.
User avatar
Railfan722
 
Posts: 289
Joined: Sat Apr 20, 2019 9:49 am
Location: Connecticut

Re: Edit .out file

Unread postby buzz456 » Sun Jun 13, 2021 5:33 pm

Thanks what do I need to create a lua file?
Buzz
39 and holding.
"Some people find fault like there's a reward for it."- Zig Ziglar
"If you can dream it you can do it."- Walt Disney
Image
User avatar
buzz456
Site Admin
 
Posts: 20937
Joined: Sun Mar 21, 2010 8:30 am
Location: SW Florida

Re: Edit .out file

Unread postby kris120 » Sun Jun 13, 2021 6:02 pm

A text editor.
User avatar
kris120
 
Posts: 470
Joined: Mon Jul 22, 2013 3:19 pm
Location: Augsburg, Bavaria, Germany

Re: Edit .out file

Unread postby Chacal » Sun Jun 13, 2021 6:08 pm

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.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6485
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: Edit .out file

Unread postby kris120 » Mon Jun 14, 2021 5:50 am

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.
User avatar
kris120
 
Posts: 470
Joined: Mon Jul 22, 2013 3:19 pm
Location: Augsburg, Bavaria, Germany

Re: Edit .out file

Unread postby _o_OOOO_oo-Kanawha » Mon Jun 14, 2021 1:10 pm

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.
Edwin "Kanawha"
Image
The Chessie, the train that never was ... (6000 hp Baldwin-Westinghouse steam turbine electric)
User avatar
_o_OOOO_oo-Kanawha
 
Posts: 3231
Joined: Mon Nov 14, 2011 2:12 pm

Reply

Unread postby RailRoadEngineer » Wed Jun 16, 2021 2:11 pm

buzz456 wrote:"What do I need to create a lua file?"

Lua programming knowledge
RailRoadEngineer
 
Posts: 49
Joined: Sun Sep 13, 2020 5:14 pm

Re: Reply

Unread postby buzz456 » Wed Jun 16, 2021 2:29 pm

RailRoadEngineer wrote:
buzz456 wrote:"What do I need to create a lua file?"

Lua programming knowledge

!*roll-laugh*! !*roll-laugh*! *!!thnx!!*
Buzz
39 and holding.
"Some people find fault like there's a reward for it."- Zig Ziglar
"If you can dream it you can do it."- Walt Disney
Image
User avatar
buzz456
Site Admin
 
Posts: 20937
Joined: Sun Mar 21, 2010 8:30 am
Location: SW Florida


Return to Geek Speak

Who is online

Users browsing this forum: No registered users and 0 guests