• 【MineBBS社区发展意见征集】

    欢迎参与MineBBS社区调查,助力打造更好Minecraft社区!完成问卷可获赠200金粒,优质回答可额外获得200金粒(限5名),快来参与吧!【点击参与】

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
 

在线会员

  • 碧松
  • 鱼鱼不是鱼鱼鱼
  • Qse16843777
  • 醉今朝
  • 喜欢炒面
  • yeyy
  • TP5GM
  • yidoor
  • 仙气飘飘
  • 1242591280
  • paceeeeeeee
  • stopping
  • Hao_Se
  • rrrrfgggggggggg
  • linghun91
  • yuhang2006
  • Little_Flower_7XX
  • 秦羽
  • 云澜
  • 北君玄
  • 铭记mingji
...和 68 更多。
后退
顶部 底部