安装 Steam						
					
				
				
									登录
											 | 
						语言
						
																																															繁體中文(繁体中文)
																													日本語(日语)
																													한국어(韩语)
																													ไทย(泰语)
																													български(保加利亚语)
																													Čeština(捷克语)
																													Dansk(丹麦语)
																													Deutsch(德语)
																													English(英语)
																													Español-España(西班牙语 - 西班牙)
																													Español - Latinoamérica(西班牙语 - 拉丁美洲)
																													Ελληνικά(希腊语)
																													Français(法语)
																													Italiano(意大利语)
																													Bahasa Indonesia(印度尼西亚语)
																													Magyar(匈牙利语)
																													Nederlands(荷兰语)
																													Norsk(挪威语)
																													Polski(波兰语)
																													Português(葡萄牙语 - 葡萄牙)
																													Português-Brasil(葡萄牙语 - 巴西)
																													Română(罗马尼亚语)
																													Русский(俄语)
																													Suomi(芬兰语)
																													Svenska(瑞典语)
																													Türkçe(土耳其语)
																													Tiếng Việt(越南语)
																													Українська(乌克兰语)
																									报告翻译问题
							
						
											




Thanks
override bool CanDo(ItemBase ingredients[], PlayerBase player)//final check for recipe's validity
{
int index = 0;
if(ingredients[1].GetType() == "CombinationLock4")
{
index = 1;
}
CombinationLock4 combinationLock4 = CombinationLock4.Cast(ingredients[index]);
return !combinationLock4.IsLocked();
}
override bool CanDo(ItemBase ingredients[], PlayerBase player)
exemples ici:
https://dayzexplorer.zeroy.com/crafttannedleather_8c_source.html
il y a une méthode IsLocked() qui doit pouvoir etre testée dans le CanDo()
https://dayzexplorer.zeroy.com/combinationlock_8c.html#a9c5ca6db77e6e3d30a98b7b98a7dafc8
:-)
Déjà merci pour le petit mod bien sympa!
J'ai remarqué un potentiel soucis, on peut crafter un codelock sur un Cadenas 4 cadran qui est verrouillé sur une porte, ce qui à pour effet de déverrouiller la porte, donc on peut raider une base avec un kit électricien :-)
Ensuite une fois fait, on ne peut plus mettre de cadenas sur la porte, elle finie buggée, il faut la détruire et reconstruire.
Est-ce un paramétrage du mod ou vraiment un bug ?
Merci !
Please do several checks before saying "mod is not working"
If you don't know how to use it, I can't help it.
Please read the description carefully and see the required elements
Maybe he's not looking in the right place or it's another mod that's causing the problem.
Same for my players
The meta.cpp file is correct, I give you the information contained in this file which is accessible to you at the root of the folder when you download it:
protocol = 1;
publishedid = 2893704387;
name = "Code Lock Craft";
timestamp = 5249736888443371184;
"Something went wrong, The mod '@Code Lock Craft' has a Steam Workshop ID of '0'."
I googled the error and get this,
"Mod Error: the workshop id is 0, this normally means the author of mod has not updated the mod. Manually set the publishedid in @Code Lock Craft\meta.cpp to the workshop id or ask the author to update the mod."
Thanks
We've passed the 10,000 subscriber mark, I don't think you'll like this little mod so much.