Posted 30 January 2012 - 07:55 AM
Mmkay, so… I have started work on a tic-tac-toe version, this time using multiplayer instead of an AI.
Now the issue is… "attempt to index ? (a nil value)"
This may not be able to be fixed without actual knowledge of the MineCraft mod's APIs, but it might be able to be fixed: http://pastebin.com/bQKvVW2K Essentially, it sends packet "MOVE 1 1" for instance, meaning that it moves to the first row, first column. The packet reader then checks if it starts with "MOVE", then takes the numbers and uses them to set the spot on the board.
The issue though, is that after it moves on one, they both sit for a minute… then display an error message, which was aforementioned.
Now the issue is… "attempt to index ? (a nil value)"
This may not be able to be fixed without actual knowledge of the MineCraft mod's APIs, but it might be able to be fixed: http://pastebin.com/bQKvVW2K Essentially, it sends packet "MOVE 1 1" for instance, meaning that it moves to the first row, first column. The packet reader then checks if it starts with "MOVE", then takes the numbers and uses them to set the spot on the board.
The issue though, is that after it moves on one, they both sit for a minute… then display an error message, which was aforementioned.