• MineWiki火热建设中,加群了解:836788006
iLand - 新时代的领地插件

资源 iLand - 新时代的领地插件 1.1.5hotfix

请登陆后购买 (金粒159粒)

Redbeanw

【 Lv: 3 】
2018/12/23
109
43
77
1
安徽合肥
金粒
金粒23,851粒
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.

.Thank you, I will merge it into 1.1.4, next time you can submit a Pr :)
 

Redbeanw

【 Lv: 3 】
2018/12/23
109
43
77
1
安徽合肥
金粒
金粒23,851粒
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 re-looked at the problem, and the problem does not seem to exist.
The land_min_square and land_max_square in the configuration file both represent the area. The correct one is that the side length should be √square , for example, the default 4, the side length should be √4=2, 2x2
 

Redbeanw

【 Lv: 3 】
2018/12/23
109
43
77
1
安徽合肥
金粒
金粒23,851粒
Redbeanw 升级了 iLand - 新时代的领地插件 的新版本:

v1.1.4 bugfix and feature update.

  • [+] 支持设定圈地工具 /land mgr selectool
  • [+] 新增API: ILAPI_GetChunk 通过区块内一点坐标取到区块能所有领地list
  • [+] 圈地完成后边框粒子效果
  • [-] 取消对1.0.9之前的配置文件自动转换支持
  • 修复构建区块中的两处潜在问题
  • 修复领地冲突检测中的一处问题
  • 修复服务器语言不是中文因为导致的无法圈地的问题
  • 修复领地购买订单GUI的一处问题
  • 优化旧代码

阅读此次升级的详细信息...
 

NathanJS74

【 Lv: 1 】
2020/06/18
19
0
2
Australia
金粒
金粒2,118粒
I re-looked at the problem, and the problem does not seem to exist.
The land_min_square and land_max_square in the configuration file both represent the area. The correct one is that the side length should be √square , for example, the default 4, the side length should be √4=2, 2x2
Even in 1.1.4 the problem does still exist. All that need be done is a 4 x 4 x 4 cube be selected with the tool and you will see that the domain purchase will show 3 x 3 x 3 on the GUI. +1 can be added to the ends of the lines in iland-core.lua as mentioned before. The line numbers are:

390-392
467-469
575-577

Example:

local length = math.abs(land_data[landid].range.start_position[1] - land_data[landid].range.end_position[1])+1
 
最后编辑:

NathanJS74

【 Lv: 1 】
2020/06/18
19
0
2
Australia
金粒
金粒2,118粒
The selection tool name does not change here:

"title.selectrange.spointa": "Please hold a wooden axe and try to destroy the block to select the first point.",
"title.selectrange.spointb": "Please hold a wooden axe and try to destroy the block to select the second point.",
"title.selectrange.bebuy": "Please hold a wooden axe and try to break the block again to create an order.",
 

Redbeanw

【 Lv: 3 】
2018/12/23
109
43
77
1
安徽合肥
金粒
金粒23,851粒
Even in 1.1.4 the problem does still exist. All that need be done is a 4 x 4 x 4 cube be selected with the tool and you will see that the domain purchase will show 3 x 3 x 3 on the GUI. +1 can be added to the ends of the lines in iland-core.lua as mentioned before. The line numbers are:

390-392
467-469
575-577

Example:

local length = math.abs(land_data[landid].range.start_position[1] - land_data[landid].range.end_position[1])+1
The selection tool name does not change here:

"title.selectrange.spointa": "Please hold a wooden axe and try to destroy the block to select the first point.",
"title.selectrange.spointb": "Please hold a wooden axe and try to destroy the block to select the second point.",
"title.selectrange.bebuy": "Please hold a wooden axe and try to break the block again to create an order.",
I just confirmed that these problems do exist and they will be fixed in the next version. Thank you for your feedback.
 

Redbeanw

【 Lv: 3 】
2018/12/23
109
43
77
1
安徽合肥
金粒
金粒23,851粒
作者问一个问题,我把它(新时代的Lua加载器 0610)放在plugins文件夹下。 然后把领地插件放入LiteLuaLoader这里么?然后服务器exe文件就一直打不开
缺依赖吧,认真读帖
 

Redbeanw

【 Lv: 3 】
2018/12/23
109
43
77
1
安徽合肥
金粒
金粒23,851粒
Redbeanw 升级了 iLand - 新时代的领地插件 的新版本:

端午更新

先祝大家端午安康!

  • [+] 修复 Issue: (MB)iland.6145/post-38217
  • [+] 修复 Issue:(MB)iland.6145/post-38223
  • [+] 修复圈地粒子y坐标偏差
  • [+] 修复空手操作造成的崩服
  • [+] 支持指令添加领地管理员(新增控制台指令land op land deop)
  • [+] OPLmgr更多设置项
  • [+] 优化区块表重载逻辑
  • [+] 加回指令圈地方式,支持杂糅方式圈地(新增指令land a land b land buy)
  • [+] 修改ILAPI调用方式
  • [+] 圈地发生领地冲突可显示冲突点坐标
  • [+] LandMgr新增独立LandSign开关
  • [+] 领地传送,支持选择传送点(新增指令land tp land point)
  • [+] 改善OPLMgr拒绝访问提示
  • [-] 从插件主体分离Libs(AirLibs)

阅读此次升级的详细信息...
 

雨后

【 Lv: 1 】
2021/06/08
13
0
7
湖北
金粒
金粒224粒

Redbeanw

【 Lv: 3 】
2018/12/23
109
43
77
1
安徽合肥
金粒
金粒23,851粒
作者,我看了一下 ,我装了加载

LuaUtils加载我把libcrypto和libssl-1放在了bedrock_server.exe问价里面,LuaUtilApi.dll我放在了plugins里面。​

LLL0613哪个压缩包,解压后我全放在Plugins里面,接下来就跟着教程走但还是没有用。
自行排查
 

NathanJS74

【 Lv: 1 】
2020/06/18
19
0
2
Australia
金粒
金粒2,118粒
The selection tool name does not change here:

"title.selectrange.spointa": "Please hold a wooden axe and try to destroy the block to select the first point.",
"title.selectrange.spointb": "Please hold a wooden axe and try to destroy the block to select the second point.",
"title.selectrange.bebuy": "Please hold a wooden axe and try to break the block again to create an order.",
Thankyou for the update with some fixes and extra features. However the above is still an issue. It might have been fixed for the first selection I tested it on but not sure. However after that it shows wooden axe even if another tool is the selectool.
 
最后编辑:

新主题 新资源 新回复