Cannot edit techdata.lua

.ADHd.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

  • xDragonxDragon Join Date: 2012-04-04 Member: 149948Members, NS2 Playtester, Squad Five Gold, NS2 Map Tester, Reinforced - Shadow
    That may be because of some oddities with the file tool, i suggest that you make a folder called lua, place the edited techdata.lua in that folder, zip it and then upload that zip to the ns2 folder on your server. Then you can extract it and it will overwrite the file.

    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.
  • .ADHd.ADHd Join Date: 2012-02-18 Member: 146565Members
    Dude you are so helpful haha. Actually I found a way to upload the file to the server, but now when I try to connect to the server I get an error that says "incorrect data". So, is this some kind of file consistency check? Really is a big letdown because I want to test a mod on my server to see how it effects gameplay and make a poll and etc.
  • xDragonxDragon Join Date: 2012-04-04 Member: 149948Members, NS2 Playtester, Squad Five Gold, NS2 Map Tester, Reinforced - Shadow
    Shouldnt cause an issue with just editing that file, just more that you would be unable to place command stations because the client has different requirement information vs the server. That change in techdata.lua would need to be both client and server side.

    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 -
Sign In or Register to comment.