Jump to content
  • 0

Homunculus Lua Errors


nelsontyh

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   1
  • Joined:  01/20/12
  • Last Seen:  

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?

Link to comment
Share on other sites

17 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  187
  • Reputation:   35
  • Joined:  01/01/12
  • Last Seen:  

I think there should be an AI_backup folder in your RO rename it to AI again.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   1
  • Joined:  01/20/12
  • Last Seen:  

Still not working it seems, when there's a monster nearby and homunculus is out, it gives:-

.AI/AI.lua:303: bad argument #2 to 'Move' (number expected, got nil)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

haha i have this problem about 5minute before, i use 2010-12-28 too

this is my AI folder it's work

AI.rar

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   1
  • Joined:  01/20/12
  • Last Seen:  

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

AIError1.png

Have you ever had this problem before?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

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 :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

i'll give it a go, nelson can you post your client you use, and the ai files again.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   1
  • Joined:  01/20/12
  • Last Seen:  

Ah that's alright thanks anyway :)

What are your packets for 2010-12-28 anyway?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

2010-12-28 uses packetver:26

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   1
  • Joined:  01/20/12
  • Last Seen:  

Ah here are the files I'm using, I've attatched them, 2010-12-28 client and the AI folder

20101228.rar

AI.rar

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  187
  • Reputation:   35
  • Joined:  01/01/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

hmm yeah works fine for me i deleted any thing related to AI and extracted the AI.rar from above, and no errors

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   1
  • Joined:  01/20/12
  • Last Seen:  

Ah thanks a lot! It's working now!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   8
  • Joined:  01/06/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

hmm yeah if I remember correctly some lines do you need to be converted as well and not just the require to dofile part

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  07/03/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  07/01/13
  • Last Seen:  

I need help on this... how to install Aryafortis Ai without getting complications?

http://aryafortis.tumblr.com/post/48272937198/aryafortis-ai-v-1-5-5-april-18-2013

 

 

I have Ai and Ai_sakray, it seems to survive without Ai folder when i play using default lua files, and if i placed this new ai, it gets bugged out?

 

http://www.mediafire.com/?cf7to6j6k3a9zdl

Edited by ultimaroxy18
Link to comment
Share on other sites

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.

×
×
  • Create New...