Jump to content
  • 0

Question

Posted

I've switched back to 2010-12-28 client from my 2011-12-20b client, and I've gotten the lua/lub files for it but the AI needed for 2010-12-28 is different from 2011-12-20b it seems as I keep getting .lua errors such as

AI.lua:303: Bad Argument, Expected Number, Got Nil

or

AIError1.png

I've tried the Default AI from http://irowiki.org/wiki/AI but it gives me the Const.lua error.

//2005-04-25aSakexe

0x022d,5,hommenu,2:4

0x0232,9,hommoveto,2:6

0x0233,11,homattack,2:6:10

0x0234,6,hommovetomaster,2

Anything else I should give a go?

17 answers to this question

Recommended Posts

Posted

i never have this problem before

Ah thanks, that solves the bad argument :303: but this error comes out:-

AIError1.png

Have you ever had this problem before?

i never have this problem before , i don't know how to fix it :)

Posted

you seem to have installed lua 5.1 in your system and have added it in %PATH% there are ways to fix that.

one is open all .lua in that AI folder and change

example

require "./AI/Const.lua"

to

dofile("./AI/Const.lua") <-- if that doesnt work try require "Const"

  • Upvote 1
Posted (edited)

you seem to have installed lua 5.1 in your system and have added it in %PATH% there are ways to fix that.

one is open all .lua in that AI folder and change

example

require "./AI/Const.lua"

to

dofile("./AI/Const.lua") <-- if that doesnt work try require "Const"

Thank you. I had the same issue. It worked fine and I could log in, though now I face this :

./AI sakray/AI_M.lua:300: bad argument #1 to 'Get' (number expected, got nil)

Edit:

Seems to be working absolutely fine with the AI_Sakray files, when I copied/pasted then into the AI directory.

Edited by Smoke
Posted

worked...

you seem to have installed lua 5.1 in your system and have added it in %PATH% there are ways to fix that.

one is open all .lua in that AI folder and change

example

require "./AI/Const.lua"

to

dofile("./AI/Const.lua") <-- if that doesnt work try require "Const"

worked fine..tq sir

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...