basic question - lua mod tweaks

extolloextollo Ping Blip Join Date: 2010-07-16 Member: 72457Members
<div class="IPBDescription">but getting client server differ :(</div>I've done mini lua mod tweaks for fun before, but for one i just did, i'm getting client server differ when trying to run it.

i'm touching TechTree and TechData


What is the proper way to do a mod like this? I just want my version to override the std version. I'm doing the mod in place (which i've done in the past).

should i create a separate 'game' directory with just my modded files? Or do i need to make a copy of all of NS2 lua there? Or something else?


noob requires tips.

Comments

  • Soul_RiderSoul_Rider Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
    edited April 2012
    Are you trying to connect to a server, or start a local server?

    If you amend the TechTree and TechData files, you cannot connect to a normal server, you have to run your own. Your game files are now different from the main game. You can only change _Client.lua files and still be able to connect to a vanilla server.

    To borrow from my mod set-up examples, this is how you get it to work:

    <!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->Move the folder pg into your "....\steam\steamapps\common\natural selection 2\" folder.
    Right click on ns2.exe and click on send to desktop(create shortcut).
    Right click the shortcut select properties.
    Find the line called target and after the "....\Steam\steamapps\common\natural selection 2\NS2.exe" add: -game pg.
    On my computer the target line reads - "F:\Games\Steam\steamapps\common\natural selection 2\NS2.exe" -game pg
    Click the general tab of the properties window.
    Change the name from shortcut to ns2 to something like pg or Proving Grounds.
    Click OK
    Double Click the newly named desktop icon to launch the mod.<!--QuoteEnd--></div><!--QuoteEEnd-->

    Then you need to create a server and play the game. Note wherever I use pg, that is my mod folder, you should use the name of your mod folder instead.

    In this folder are only the files you have modded, everything not in there will run from the default NS2 directory.
  • DghelneshiDghelneshi Aims to surpass Fana in post edits. Join Date: 2011-11-01 Member: 130634Members, Squad Five Blue, Reinforced - Shadow
    If you get client and server differ on your own server, you have probably made a mistake that prevents the code from being interpretable and subsequently some stuff is missing from either the server or client. Press Win+r, type in %APPDATA%\Natural Selection 2\log.txt and search for 'Script Error #1:' (without quotes) to find the first error.
  • extolloextollo Ping Blip Join Date: 2010-07-16 Member: 72457Members
    thanks both. done & done.

    it is a local server situation, but i wasnt sure of the proper ways to do overrides. all good .
Sign In or Register to comment.