Jump to content
  • 0

SaveData\Optioninfo


Abdowned

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   1
  • Joined:  10/02/12
  • Last Seen:  

Hello,

When i launch my "2012-04-10aRagexeRE.exe" i got this error:

[string "buf"]:1: attempt to index global "CmdOnOffList" (a nil value) ...

Actually, the client writes on SaveData\Optioninfo.lua but it writes badly. That's why when I replace that file by one from another client, there's no problem as long as nothing has been modified on it.

Moreover, if i put the file in "read only" i can't modify the options.

Could you help me ?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Have you put your lua/lub in 'data\luafiles514\' folder?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   1
  • Joined:  10/02/12
  • Last Seen:  

More precisely in "data\luafiles514\lua files\" am I wrong?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

better if you re-download a fresh one, if you are experiencing lua files problem. otherwise if you have customs there.

Wait, you said something about SaveData\OptionInfo.lua? try to obtain a new one. maybe your client is having a problem in writing it.. (or did you wrote it by yourself)?

you can try to remove every single character inside the OptionInfo.lua and re-run the setup.exe using administrative privilege. use the blue ghostring setup.exe for 2012 clients.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  05/11/12
  • Last Seen:  

i too am having the exact same problem with a 2013-07-10b client.

 

but by having a look around, i may of stumbled across the solution!

 

look in: data/luafiles514/lua files/optioninfo/optioninfo_f.lua  this looks like the script thats used to save the optioninfo.lua (which looks like is being saved wrong.)

 

Optioninfo_f.lua :: line 50+

function SetCmdOnOffList()
   if CmdOnOffList == nil then
      return
   end
   for k, v in pairs(CmdOnOffOderList) do
      local cmdInfo = CmdOnOffList[v]
      if cmdInfo ~= nil and cmdInfo ~= nil then
         c_SetCmdOnOffList(v, cmdInfo)
      end
   end
end
function l_GetOptionValue(keyName)
   if OptionInfoList == nil then
      return -1
   end
   local optionInfo = OptionInfoList[keyName]
   if optionInfo ~= nil then
      return optionInfo
   end
   return -1
end
function SaveToFileCmdOnOffValue()
   saveFile = io.open("SaveData\\OptionInfo.lua", "w")
   if saveFile ~= nil then
      for k, v in pairs(CmdOnOffOderList) do
         local value = c_GetCmdOnOffValue(v)
         if value ~= -1 then
            saveFile:write(string.format("CmdOnOffList[\"%s\"] = %d\n", v, value))
         end
      end
      saveFile:write("\n")
      io.close(saveFile)
   end
end
function l_GetCmdHelpMsg(keyName, bIsOn)
   if CmdHelpList == nil then
      return ""
   end
   if bIsOn == 1 then
      keyName = keyName .. "_on"
   elseif bIsOn == 0 then
      keyName = keyName .. "_off"
   end
   local cmdHelp = CmdHelpList[keyName]
   if cmdHelp ~= nil then
      return cmdHelp
   end
   return ""
end
function SaveToFileCmdOnOffValueEx(nID)
	if nID == 0 then
		saveFile = io.open("SaveData\\OptionInfo.lua", "w")
	else
		saveFile = io.open("data\\OptionInfo.lua", "w")
	end
	if saveFile ~= nil then
		for k, v in pairs(CmdOnOffOderList) do
			local value = c_GetCmdOnOffValue(v)
			if value ~= -1 then
				saveFile:write(string.format("CmdOnOffList[\"%s\"] = %d\n", v, value))
			end
		end
		saveFile:write("\n")
		io.close(saveFile)
	end
end

unfortunately, i'm no pro at lua/lub scripting, so i have absolutely no idea how to adjust it.

 

I also may of discovered a workaround for the error too! =D

Grab a working optioninfo.lua file, and put it in your /savedata folder, and rename it to "optioninfo.lub"

by doing this, you will get rid of that annoying message at least, but you will still have the issue of not being able to change any settings.

UNLESS!! somewhere out there (ive not looked yet) is a setup.exe that can be tweaked to configure optioninfo.lub instead of optioninfo.lua.

by doing that, you'll be able to change resolution etc, and save all the important setup information, but still not save slash command configurations ingame (like /bm).

for me, slash commands being saved is not really an issue..... Oh noes, you will have to type stuff in RO =O.

 

 

i dunno if i'm anywhere close to being right or not, but this is the only logical conclusion i've come across.

 

P.s. Sorry if i'm bumping a dead thread, but this seems to be an ongoing issue with some clients, and i just wanted to let others know of my findings



nevermind. was being dense!

 

you can fix the issue by looking at this topic: http://rathena.org/board/topic/83750-2013-ragexe-support-main-topic/

 

"Q : I've trouble with my optioninfo.lua" is at the bottom

 

my bad =/

Edited by Valkis
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...