April 25, 2019, 04:22:41 AMLatest Member: Geafanoo

Author Topic: questions about coding for TH  (Read 2506 times)

0 Members and 1 Guest are viewing this topic.

medic

  • Registered member
  • *
  • Posts: 15
    • View Profile
questions about coding for TH
« on: February 11, 2012, 09:25:40 PM »
Hi everyone  :)

I am new to this whole project and didn't really understand that you can go in and modify your own .lua files. What is the correct procedure to go about modifying the .lua files... as in do I save a working copy of the .lua file elsewhere on the computer and then start changing the coding?

Thank you in advance.

~M  :)

medic

  • Registered member
  • *
  • Posts: 15
    • View Profile
Re: questions about coding for TH
« Reply #1 on: February 11, 2012, 09:29:23 PM »
In addition to the question above, what program is most suggested to edit the .lua files? I'm currently just using notepad, but it doesn't give me line numbers.

Thanks again
~M :-[

Grimdoc

  • Moderator
  • ***
  • Posts: 264
  • Translator & Superman
    • View Profile
Re: questions about coding for TH
« Reply #2 on: February 11, 2012, 11:22:08 PM »
Hi, medic!

I'm not a proper coder myself, but I guess you are right.
You just add, remove and modify lines of code until you get what you desire :)

You can do it the way you want, but it would be best to have a copy of the original file unless you want to download it again if you screw up.


I mostly use notepad++ for reading .lua files, which is a very good alternative. It has line numbering, a super search function and other neat things.
I mostly use Windows, so I don't know about programs for others OSes.

http://notepad-plus-plus.org/download/v5.9.8.html
« Last Edit: February 11, 2012, 11:24:14 PM by Grimdoc »
Do you have a question or want to report a bug? CorsixTH newbie guide

Do you want to make (or improve) a translation? CorsixTH translation guide

Alberth

  • Registered member
  • *
  • Posts: 45
    • View Profile
Re: questions about coding for TH
« Reply #3 on: February 21, 2012, 03:47:07 AM »
The usual approach is to checkout a copy from the repository using SVN (subversion).
You can edit those files, as SVN keeps the original version in its own administration, so you can ask for the precise changes that you made, and go back to the original file.
Also, when an update is made in the repository, you can get the changes into your copy.