Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player.lua error message #1688

Closed
2 of 5 tasks
Sorairei opened this issue Oct 10, 2023 · 4 comments · Fixed by #1784
Closed
2 of 5 tasks

Player.lua error message #1688

Sorairei opened this issue Oct 10, 2023 · 4 comments · Fixed by #1784
Labels
Priority: Medium This issue may be impactful and needs some attention. Status: Pending Test This PR or Issue requires more testing Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@Sorairei
Copy link
Contributor

Priority

Medium

Area

  • Datapack
  • Source
  • Map
  • Other

What happened?

Hello everyone, im having this spaming message:

[2023-10-10 00:08:40.021] [error] Lua script error: 
scriptInterface: [Event Interface]
scriptId: [data/events/scripts/player.lua:Player@onMoveItem]
timerEvent: []
 callbackId:[]
function: []
error [data/events/scripts/player.lua:255: table index is nil
stack traceback:
	[C]: in function '__newindex'
	data/events/scripts/player.lua:255: in function <data/events/scripts/player.lua:224>] 

Im trying to trace the players, but all of them where afk or training when this starts spam, i think it is one player because when he login the error started, and when he logout the error stops, when he logins again i will investigate what its the cause or if he its doing something with the otcv8 bot.

  • I have Ubuntu 20.04 ARM.
  • Latest updates.

What OS are you seeing the problem on?

Linux

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Sorairei Sorairei added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Oct 10, 2023
@github-actions github-actions bot added Priority: Medium This issue may be impactful and needs some attention. Status: Pending Test This PR or Issue requires more testing labels Oct 10, 2023
@Mirkaanks
Copy link
Contributor

Are your files updated?

This fuction in line 255?

	-- SSA exhaust
	local exhaust = {}
	if toPosition.x == CONTAINER_POSITION and toPosition.y == CONST_SLOT_NECKLACE and item:getId() == ITEM_STONE_SKIN_AMULET then
		local pid = self:getId()
		if exhaust[pid] then
			self:sendCancelMessage(RETURNVALUE_YOUAREEXHAUSTED)
			return false
		end
		exhaust[playerId] = true
		addEvent(function()
			exhaust[playerId] = false
		end, 2000, playerId)
		return true
	end

@Sorairei
Copy link
Contributor Author

yes i have:

player255

@Sorairei
Copy link
Contributor Author

I tested with a player, and in fact its the stone skin amulet, because he uses the bot to put the item realy fast.

@elsongabriel elsongabriel linked a pull request Nov 13, 2023 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Medium This issue may be impactful and needs some attention. Status: Pending Test This PR or Issue requires more testing Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants