tenabrae Posted December 18, 2014 Share Posted December 18, 2014 I'm sure this is something simple. I'm trying to do this: modmain.lua TUNING.STACK_SIZE_LARGEITEM = 10,TUNING.STACK_SIZE_MEDITEM = 20,TUNING.STACK_SIZE_SMALLITEM = 40,TUNING.GOLDENTOOLFACTOR = 4*multiplayer_goldentool_modifier,TUNING.AXE_USES = 100*4,TUNING.HAMMER_USES = 75*4,TUNING.SHOVEL_USES = 25*4,TUNING.PITCHFORK_USES = 25*4,TUNING.PICKAXE_USES = 33*4,TUNING.BUGNET_USES = 10*4,TUNING.SPEAR_USES = 150*4,TUNING.SPIKE_USES = 100*4,TUNING.FISHINGROD_USES = 9*4,TUNING.BOOMERANG_USES = 10*4,TUNING.NIGHTSWORD_USES = 100*4,TUNING.ICESTAFF_USES = 20*4,TUNING.HAMBAT_USES = 100*4,TUNING.BATBAT_USES = 75*4,TUNING.MIN_INDICATOR_RANGE = 20,TUNING.MAX_INDICATOR_RANGE = 500,which gives me Mod: convenience (Convenience) Loading modmain.lua Mod: convenience (Convenience) Error loading mod! [string "../mods/convenience/modmain.lua"]:2: unexpected symbol near '='I've ensured my file is in ANSI encoding and tried UTF8 without BOM as well. Link to comment Share on other sites More sharing options...
rezecib Posted December 18, 2014 Share Posted December 18, 2014 Don't add the commas after each line. The reason TUNING has them is because it's declaring a huge table. Also, at the beginning of the file you should put this line:local TUNING = GLOBAL.TUNINGThat will pull TUNING into the mod's sandbox space (it's normally in the GLOBAL space). Link to comment Share on other sites More sharing options...
tenabrae Posted December 18, 2014 Author Share Posted December 18, 2014 Thanks very much Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now