• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Search results

  1. B

    Lua io.file Read and Write

    replace %d+ for %d*%.?%d+ This will allow simple-double values like 123123, 123123.123123, .123123
  2. B

    Lua io.file Read and Write

    Following the way I described to you, it worked smooth for me. There are some points you will have to check: If you try nested table values like: a.b.c = 12312. It may not work properly. If you try double values like: something = 111.3232323. It will replace just work partially the first part...
  3. B

    Lua io.file Read and Write

    First, I don't know nothing related to OTs, but I do know some Lua to help. The following script replaces "protectionLevel=SOME_NUMBER", for "protectionLevel=123321" local filename = 'huehuehuehuehue.br' function writeit(value, var, num) local f = assert(io.open(filename, "w"))...
  4. B

    [LUA] Which program do you use for editing lua files?

    if I had money, for sure I'd use Sublime Text because it's fucking beautiful. However, I use SciTE, because it was the first Lua tool I've used so far and it does a decent job as text editor and Lua debugger (specially the debugging part) and I'm extremely lazy to test any other editor.
  5. B

    LUA - Brand New

    Most notable uses for Lua is its use as scripting language embedding it, but as Lua's author says, Lua is a perfect configuration language and I use it intensively in my project rather than XML files to store (and parse) users profile, program settings and so on. My main uses for Lua are...
  6. B

    LUA - Brand New

    As you had previous programming experiences, this online book (written by Lua's author) will be handy for you, because it explains all the basic operations of Lua: http://www.lua.org/pil/contents.html
  7. B

    How to tab Lua scripts

    good tutorial mate. This practice is so common that there exists programming languages where it is mandatory like Python. The term widely used in the programming world is "indentation" or simply "indent the code".
Back
Top