GetNPCByID Error

Forum rules
NO LONGER BEING MAINTAINED!
Post Reply
User avatar
tagban
Posts: 352
Joined: Fri Dec 28, 2012 11:31 am
Location: Pennsylvania, USA

GetNPCByID Error

Post by tagban » Sun Apr 13, 2014 9:43 am

Getting errors in my Game Server, well, warnings, but an error at the end about conquest.lua:1164 attempt to index a nil value

As for the others, they are "Warnings" about NPC's that don't exist from SetFieldManual.

User avatar
demolish
Developer
Posts: 262
Joined: Thu Jul 26, 2012 7:12 am

Re: GetNPCByID Error

Post by demolish » Sun Apr 13, 2014 10:15 am

Usually get those errors after a retail update as they shift NPC IDs and Text IDs.
Scripts that use GetNPCByID() and SQL tables for elevators need updating to use the new IDs instead of the IDs pre-update.
<Giblet[NewBrain]> kj with this first step would be fine on my shit
Click here for a guide on scripting missions.

User avatar
tagban
Posts: 352
Joined: Fri Dec 28, 2012 11:31 am
Location: Pennsylvania, USA

Re: GetNPCByID Error

Post by tagban » Sun Apr 13, 2014 10:49 am

Gotcha. I update from DSP almost daily. Whenever the server crashes, I log into the VPS in the morning and PULL from GIT. So I tend to test everything pretty regularly. But maybe it will be fixed near future, it wasn't happening til the pull this morning.

Post Reply