Black Gold

My Memory,
it is not the main problem
log entry should look like this:
Code:
bla-bla-bla
[2014-03-31 14:14:42] connect server opened
maybe you do not fully load the server, perhaps something else you got wrong
 
Who can understand lua file ,please help me

This is a function in form_select_book.lua file :
PHP:
on_server_world_info = function(l_9_0, l_9_1)  local form = nx_value("form_stage_create\\form_select_book")  if not nx_is_valid(form) then    return   end  shiel_book(form)  local str_lst = util_split_string(nx_string(l_9_1), ",")  local vis_type = str_lst[1]  local list_size = (table.getn(str_lst) - 1) / 2  local t = {str_lst[3], str_lst[5], str_lst[7], str_lst[9]}  table.sort(t)  for i = 0, list_size - 1 do    local book_info = str_lst[i * 2 + 2]    if openbook_table[book_info] == nil then      if nx_int(form.SINGLE_STEP_OPEN) == nx_int(0) and nx_string(book_info) == nx_string("book7") then        openbook_table[book_info][1] = nx_number(str_lst[i * 2 + 3])        openbook_table[book_info][2] = false        openbook_table[book_info][3] = false      else        openbook_table[book_info][1] = nx_number(str_lst[i * 2 + 3])        openbook_table[book_info][2] = true        openbook_table[book_info][3] = true      end    end  end  local rec_table = {}  local i = 1  for book,info_table in pairs(openbook_table) do    if openbook_table[book][3] and openbook_table[book][2] then      rec_table[i] = book      i = i + 1    end  end  local count = table.getn(rec_table)  if count == 1 then    local rbtn = nx_custom(form, bookid_table[rec_table[1]][1])    if nx_is_valid(rbtn) then      rbtn.Top = 48      rbtn.Visible = true      if nx_is_valid(rbtn.lbl) then        rbtn.lbl.Visible = true      end    end  end  for i = 1, count do    for j = i + 1, count do      if openbook_table[rec_table[j]][1] < openbook_table[rec_table[i]][1] then        local buff = rec_table[i]        rec_table[i] = rec_table[j]        rec_table[j] = buff      end    end  end  local min_player_book = nx_number(openbook_table[rec_table[1]][1])  local max_player_book = nx_number(openbook_table[rec_table[count]][1])  local ini_manager = nx_value("IniManager")  local file_name = "ini\\ui\\book_player_limit.ini"  local ini = ini_manager:LoadIniToManager("ini\\ui\\book_player_limit.ini")  for j = 1, count do    openbook_table[rec_table[j]][3] = true  end  local section_count = ini:GetSectionCount()  for i = 1, section_count do    local max_num = nx_number(ini:ReadInteger(i - 1, "max", 99999999))    local min_num = nx_number(ini:ReadInteger(i - 1, "min", 0))    if min_num <= min_player_book and min_player_book < max_num then      for j = 1, count do        if nx_number(min_num) <= nx_number(openbook_table[rec_table[j]][1]) and nx_number(openbook_table[rec_table[j]][1]) < nx_number(max_num) then          openbook_table[rec_table[j]][3] = true        else          openbook_table[rec_table[j]][3] = false        end      end  else    end  end  ini_manager:UnloadIniFromManager(file_name)  for i = 1, count do    local rbtn = nx_custom(form, bookid_table[rec_table[i]][1])    if nx_is_valid(rbtn) then      rbtn.Top = 48 + (i - 1) * 60      rbtn.lbl.Top = rbtn.Top      local gui = nx_value("gui")      rbtn.Text = gui.TextManager:GetText(bookid_table[rec_table[i]][4])      rbtn.Visible = true      rbtn.lbl.Visible = true      local enable = openbook_table[rec_table[i]][3]      rbtn.Enabled = enable    end  end  local name = rec_table[1]  form.bookid = name  local rbtn = nx_custom(form, bookid_table[name][1])  form.lbl_bg.out_speed_time = 500  form.lbl_bg.in_speed_time = 500  form.lbl_bg.is_out = false  local back_image = "gui\\create\\" .. name .. ".png"  form.lbl_bg.BackImage = back_image  form.lbl_bg.BlendColor = "0,0,0,0"  rbtn.Checked = true  form.lbl_11.Visible = true  form.Default = form.btn_okend

Error ;"" 269 : attempt to index field '?' (a nil value ) [script: form_stage_create\form_select_book.lua, function: on_server_wold_info result: 2]
 
Anyone kind enough to make a Virtual Machine with the server working properly and share the english client with the required modifications? I would really apreciate it.
Thank's in advance.
 
REMOVED
REMOVED
Config files same in client and server.
Stuck at acquiring server status, i'm banging my head all over the place to get this **** working. Help please, thank you.
 
Last edited:
in the log of the entry.exe should be (logs folder):
Code:
[2014-04-04 15:18:38] connect server opened
if it is not - you will not come (see configs)
if the string is in the log - try to run the client (add folder BlackGold \ updater \ updater_cfg \) file:
server_last.ini
with the following content (сhange the value of its):
Code:
[main]
area_addr=127.0.0.1
server_id=SJ
area_name=Test
server_name=SJ
server runs even without a web server (a little longer wait would be a mistake in the "configuration error")
---------upd-----------
just noticed ...
in console game_world must be:
Code:
game world xxx starting...
game world start...
you will not boot server (or does not have time (with all the locations it is very long time to boot), or something wrong with configs)
 
Last edited:
in the log of the entry.exe should be (logs folder):
Code:
[2014-04-04 15:18:38] connect server opened
if it is not - you will not come (see configs)
if the string is in the log - try to run the client (add folder BlackGold \ updater \ updater_cfg \) file:
server_last.ini
with the following content (сhange the value of its):
Code:
[main]
area_addr=127.0.0.1
server_id=SJ
area_name=Test
server_name=SJ
server runs even without a web server (a little longer wait would be a mistake in the "configuration error")

[2014-04-09 18:24:56] SoloEntry pointer is 0x0225CF90
[2014-04-09 18:24:58] entry_111_0 connector_id 0 address 127.0.0.1:52990 accept, total 1
[2014-04-09 18:24:58] entry_111_0 connector_id 1 address 127.0.0.1:52991 accept, total 2
[2014-04-09 18:24:58] entry_111_0 connector_id 0 comm_id 1 received
[2014-04-09 18:24:58] entry_111_0 connector_id 2 address 127.0.0.1:52992 accept, total 3
[2014-04-09 18:24:58] entry_111_0 connector_id 1 comm_id 0 received
[2014-04-09 18:24:58] connect server already closed
[2014-04-09 18:24:58] entry_111_0 connector_id 2 comm_id 2 received
[2014-04-09 18:25:07] entry_111_0 connector_id 3 address 127.0.0.1:53001 accept, total 4
[2014-04-09 18:25:07] entry_111_0 connector_id 3 comm_id 24 received

This is what i have in the log file, lastfun can you please send me your debug folder? Thank you.
Ps: I changed every outerip in config to localhost.
Ps2 : I am getting in every window this string "socket error close it", i am behind a router maybe that's and issue? I usually can figure everything out by myself but this one is really getting on my nerves.
 
et if you wish, then, i find it easier to help you through teamviewer (guess what your mistakes)
your Skype me a PM
--------------------------------
i run my server in folder "release", my folder "debug" will not help you
 
Last edited:
Back