• 【问卷调查奖励发放公告】

    感谢大家积极参与本次 MineBBS 社区问卷调查。200 金粒的参与奖励已完成发放。部分用户发放失败,请【点击此处】 查看详情。

iLand - 多经济|全GUI操作|多国语言|50余种权限控制|圈地粒子|大量API导出

资源 iLand - 多经济|全GUI操作|多国语言|50余种权限控制|圈地粒子|大量API导出 2.84 with Helper 1.3.1

登录后下载
How to fix this error please?

[LUA] scheduler error : [string "plugins/LiteLuaLoader/lua\iland-core.lua"]:758: attempt to index a nil value (field '?')
stack traceback:
1 [string "plugins/LiteLuaLoader/lua\iland-core.lua"]:758 in function `ILAPI_PosGetLand`
<vec4> = (table: 0000023F685FBBD0)
{
y: 116.3246307373 (number)
x: 43.218715667725 (number)
dim: 0 (number)
z: 181.60733032227 (number)
}
2 [string "plugins/LiteLuaLoader/lua\iland-core.lua"]:1126 in function ``
Please use Github's Release 1.1.2, I guess you may be using an unreleased version.
Or you edited data.json by mistake.
If none of them, please tell me how the error occurred.
 
微信图片编辑_20210522181255.webp
难受起来明明有钱但钱包显示为零也没办法购买土地,如何解决??
微信图片_20210522181311.webp
 
Please use Github's Release 1.1.2, I guess you may be using an unreleased version.
Or you edited data.json by mistake.
If none of them, please tell me how the error occurred.
I think it was by doing /land gui when no land purchased. Not sure though. Version 1.1.2
 
Hi just wanting to confirm please. In version 1.1.3 should there be the main GUI folder and also data/iland/GUI? Two GUI folders needed? Thanks
 
Hi just wanting to confirm please. In version 1.1.3 should there be the main GUI folder and also data/iland/GUI? Two GUI folders needed? Thanks
Data\iland\GUI is not needed, it has been corrected and uploaded.
 
Minimum land selection area = 5x5 blocks, even though config file says 4x4. Also land information shows 4x4 block area when actually 5x5 block area. Maybe something wrong with calculation?
 
Minimum land selection area = 5x5 blocks, even though config file says 4x4. Also land information shows 4x4 block area when actually 5x5 block area. Maybe something wrong with calculation?
Ok so I figured it out thank God.

In iland-core.lua needs to be like this for height x length x width to calculate accurately:

local height = math.abs(land_data[landid].range.start_position[2] - land_data[landid].range.end_position[2])+1
local length = math.abs(land_data[landid].range.start_position[1] - land_data[landid].range.end_position[1])+1
local width = math.abs(land_data[landid].range.start_position[3] - land_data[landid].range.end_position[3])+1

The +1 needs to be added to each one.

Also:

if index==1 then return end

needs to be added so player can cancel purchase in:

function FORM_land_buy(player,index,text)
if index==1 then return end
local xuid = Actor:getXuid(player)
local player_credits = money_get(player)
if newLand[player].landprice>player_credits then
Actor:sendText(player,_tr('title.buyland.moneynotenough'),5);return
else
money_del(player,newLand[player].landprice)
end
Actor:sendText(player,_tr('title.buyland.succeed'),5)
local A=newLand[player].posA
local B=newLand[player].posB
local result={formatXYZ(A.x,A.y,A.z,B.x,B.y,B.z)}
ILAPI_CreateLand(xuid,result[1],result[2],newLand[player].dim)
newLand[player]=nil
GUI(player,'ModalForm','FORM_BACK_LandMgr',"Complete.",
_tr('gui.buyland.succeed'),
_tr('gui.general.looklook'),
_tr('gui.general.cancel'))
end

Also in en_US.json & zh_TW.json there is a space here which prevents the value from showing properly:

<d >

It should be:

"gui.landmgr.landinfo.content": "Owner:<a>\\nLandID: <m>\\nNickname: <n>\\nRange (range): <b>,<c>,<d> -> <e>,<f>,<g>

Hope this helps.
 
Minimum land selection area = 5x5 blocks, even though config file says 4x4. Also land information shows 4x4 block area when actually 5x5 block area. Maybe something wrong with calculation?
I will fix this issue in the next version
 

在线会员

  • 无事tduo
  • 南客18
  • I IKUN2004
  • zhang2225656
  • 苍黍仓鼠
  • 奶糖真好吃
  • Mon3tr
  • 江本
  • 君有云
  • McSteve7644
  • 小阔耐
  • laowang
  • NaClO_Offcial
后退
顶部 底部