Cannot edit techdata.lua
.ADHd
Join Date: 2012-02-18 Member: 146565Members
<div class="IPBDescription">why?</div>Whenever I try to edit my techdata.lua on my server it says the file exceeds the maximum allowed size. I tried uploading a new lua rather than editing the existing and I get the same error. Every other lua file can be edited freely....
Comments
I would warn that editing that file server side and not client side may cause some issues. And also warn that changing that line alone will most likely not be all that is needed.
In addition to making that change in techdata, i believe you also need to change this in CommandStructure_Server.lua. This change would only be needed server-side. This change is in the function CommandStructure:FindAndMakeAttachment() which is what actually moves the command structure (hive/cc) to the tech point after its created.
line 57 - local techpointattachment = LookupTechData(self:GetTechId(), kStructureAttachClass)
line 58 - local nearestTechPoint = GetNearestTechPoint(position, true)
line 59 - if nearestTechPoint ~= nil and techpointattachment ~= nil then
For reference these are the lines before.
line 57 - local nearestTechPoint = GetNearestTechPoint(position, true)
line 58 - if nearestTechPoint ~= nil then
line 59 -