资源描述
Click here to enter text.
2016
流年饥荒控制台指令大全+物品大全+服务器管理命令大全
一键搭建服务器请加qun四九七三九八四四五
yu
目录
一、服务器操作指令: 2
二、控制台命令函数原型 6
三、高级控制台命令:请自行翻译 14
四、全部道具配方翻译 20
五、修改料理食谱(含全部料理精确食谱) 25
六、常用物品中英文名称 37
1.材料: 37
2.工具武器: 38
3.穿戴: 40
4.建筑: 41
5.食物: 44
6.植物: 47
7.动物: 48
8.角色: 50
一、服务器操作指令:
TheNet:Kick(userid)--踢出用户ID为“userid”的玩家
TheNet:Ban(userid)--禁止用户ID为“userid”的玩家加入
c_save()--立即保存当前世界(一般会在每天早上自动保存)
c_reset(true|false)--true删除当前世界并新建一个全新的世界;false重新加载当前世界。
c_shutdown(true|false)--true保存并关闭当前世界;false不保存直接关闭当前世界
c_rollback() 回档
c_rollback(1) 回滚一个存档
c_rollback(2) 回滚两个存档
c_rollback(3) 回滚三个存档
服务器没有回过档时理论可以回到任何一个档,但是如果回档一次,最多只能往前回5个档
TheNet:SetAllowIncomingConnections(true|false)--true允许他人加入;false阻止任何人加入。
TheNet:SetAllowIncomingConnections(false)
TheNet:SetAllowIncomingConnections(true)
-console -lan -player 6
重新生成世界
c_regenerateworld()
测试模式
c_testruins()
超级上帝模式
c_supergodmode()
-------------------定位----------------------------
GetPlayer().Transform:SetPosition(22,0,33)
地图全开:第一次输入 minimap=TheSim:FindFirstEntityWithTag("minimap")
第二次打开地图输入:
minimap=TheSim:FindFirstEntityWithTag("minimap")
minimap.MiniMap:ShowArea(0, 0, 0, 10000)
c_listplayers()
-lan -console -player 10
c_announce("大家记好房间名,回一下档")
c_announce("流年离伤提醒你:卡?把小地图关了吧。。")
c_announce("亲们,重启一下,有点bug,封了那人之后,我也进不去了")
c_announce("不早了,兄弟们都睡觉吧,服务器要关了,晚安")
c_announce("流年离伤提醒你:复活密码#LNCS,重新选人密码#LNLS,先按u然后输入密码方可")
c_give("faroz_gls")
c_give("scythe")
复活所有人:
for k,v in pairs(AllPlayers) do v:PushEvent('respawnfromghost') end
把所有人聚集在一起:
c_gatherplayers()
传送到任意坐标:例子传送到(64.008,81.882)
GetPlayer().Transform:SetPosition(64.008,0,81.882)
GetPlayer().Transform:SetPosition(101,0,112)
GetPlayer().Transform:SetPosition(73,0,145)
minimap=TheSim:FindFirstEntityWithTag("minimap")
minimap.MiniMap:ShowArea(0,0,0,10000)
全图显示
GetWorld().minimap.minimap:showarea(0,0,0,10000)
代码示例:
c_give("goldnugget",40) //金子
c_give("rocks",240) //6组石头
c_give("log",120) //6组木头
c_give("wall_ruins_item",60) //铥墙
c_give("log",80) //木头
c_give("ancient_altar") //远古祭坛
c_give("cellar_placer") //暴风地窖
c_give("bonestew",40)
c_give("bonestew",40)
c_give("rope",40)) //绳子papyrus
c_give("papyrus",40) //zhi
c_give("trunk_summer",40) 夏象鼻
c_give("cutstone",20) 砖块
c_give("silk",40) 蛛网
c_give("krampus_sack") 看普斯背包
c_give("seeds",40) 种子
c_give("poop",40) 便便
c_give("spidergland",40)
c_give("gears",40) 齿轮
c_give("rope",40)
c_give("rope",40)
c_give("rope",40)
c_give("rope",40)
c_give("rope",40)
最大生命值:
GetPlayer().components.health:SetMaxHealth(300)
-------------------------------------------------------------
GetPlayer().Transform:SetPosition(-1,-1,-1)
自动回血
GetPlayer().components.health:StartRegen(30,10)
饥饿上限:
GetPlayer().components.hunger:SetMax(500)
设置sun上限
GetPlayer().components.sanity:SetMax(1000)
火的伤害为零:
GetPlayer().components.health.fire_damage_scale=0
---------晾肉架-------------
c_give("twigs",30)
c_give("charcoal",20)
c_give("rope",30)
----------强心针---------
healingsalve
c_give("healingsalve",20)
c_give("papyrus",30)
----------猪窝---------------
c_give("board",4)
c_give("cutstone",3)
c_give("pigskin",4)
resurrectionstatue
-----------建家植物--------
dug_grass(长草簇)
dug_sapling(可种的树苗)
dug_berrybush(可种的果树丛)
c_give("dug_grass",40)
c_give("dug_sapling",40)
c_give("dug_berrybush",40)
c_give("dug_grass",13)
c_give("dug_sapling",21)
c_give("dug_berrybush",16)
c_give("minerhat")
c_give("lightbulb",40)
暴风地窖5ge
cutstone
c_give("cutstone",20)
c_give("turf_woodfloor",20)
c_give("goldenshovel",1)
c_give("perogies",10)
minimap=TheSim:FindFirstEntityWithTag("minimap")
GetWorld().minimap.MiniMap:ShowArea(0,0,0,10000)
c_give("goldnugget",20)
c_give("rocks",40)
c_give("log",40)
c_give("cutgrass",40)
c_give("twigs",40)
c_give("flint",40)
c_give("perogies",20)
c_give("krampus_sack")
c_give("minerhat")
c_give("lightbulb",40)
GetPlayer().components.health:SetMaxHealth(300)
GetPlayer().components.health:StartRegen(30,10)
GetPlayer().components.hunger:SetMax(350)
GetPlayer().components.sanity:SetMax(400)
c_give("wall_ruins_item",60)
GetPlayer().components.health:SetMaxHealth(9999)
GetPlayer().components.health:StartRegen(50,10)
GetPlayer().components.hunger:SetMax(3500)
GetPlayer().components.sanity:SetMax(4000)
c_give("goldnugget",20)
c_give("rocks",40)
c_give("log",40)
c_give("cutgrass",40)
c_give("twigs",40)
c_give("flint",40)
c_give("perogies",5)
c_give("krampus_sack")
c_give("minerhat")
c_give("lightbulb",40)
c_give("gears",4)
c_give("flower_cave_triple")
灯笼草单朵的:flower_cave
双朵:flower_cave_double
三朵:flower_cave_triple
二、控制台命令函数原型
--------------------以下为各个函数原型,使用时只需要输入函数比如c_save()-----------------
----------------世界喊话-------------------------------------
-- Show server announcements:
-- To send a one time announcement: c_announce(msg)
-- To repeat a periodic announcement: c_announce(msg, interval)
-- To cancel a periodic announcement: c_announce()
c_announce("大家记好房间名,回一下档")
----------------回滚---------------------------
-- Roll back *count* number of saves (default 1)
function c_rollback(count)
c_rollback(1)
----------------保存----------------------------
function c_save()
----------------刷物品-------------------------------
-- Spawn At Cursor and select the new ent
-- Has a gimpy short name so it's easier to type from the console
function c_spawn(prefab, count)
----------------关闭服务器 (是否保存)--------------------------------
-- Shutdown the application, optionally close with out saving (saves by default)
function c_shutdown(save)
----------------重启服务器(是否保存)--------------------------------
-- Restart the server, optionally save before restarting (does not save by default)
function c_reset(save)
----------------重新生成世界--------------------------------
-- Permanently delete the game world, rengerates a new world afterwords
function c_regenerateworld()
----------------远程执行lua命令--------------------------------
-- Remotely execute a lua string
function c_remote( fnstr )
----------------使一个玩家重新开始进入选人阶段--------------------------------
-- Despawn a player, returning to character select screen
function c_despawn(player)
----------------c_despawn helper--------------------------------
-- c_despawn helper
local function dodespawn(player)
----------------列出当前活跃用户--------------------------------
-- Return a listing of currently active players
function c_listplayers()
----------------与上一个命令感觉没有什么区别--------------------------------
-- Return a listing of AllPlayers table
function c_listallplayers()
-----------------获取选择的物品-------------------------------
-- Get the currently selected entity, so it can be modified etc.
-- Has a gimpy short name so it's easier to type from the console
function c_sel()
function c_select(inst)
-----------------光标下打印。。。-------------------------------
-- Print the (visual) tile under the cursor
function c_tile()
-----------------应用场景脚本来选择和运行它。-------------------------------
-- Apply a scenario script to the selection and run it.
function c_doscenario(scenario)
-----------------改变单位生命值-------------------------------
-- Some helper shortcut functions
function c_sel_health()
function c_sethealth(n)
function c_setminhealth(n) 最小生命值
function c_setsanity(n) 脑残值
c_sethunger(n) 饥饿值
function c_setbeaverness(n)
function c_setmoisture(n) 湿度
function c_settemperature(n) 温度
-----------------运行中直连-------------------------------
-- Work in progress direct connect code.
-- Currently, to join an online server you must authenticate first.
-- In the future this authentication will be taken care of for you.
function c_connect( ip, port, password )
-----------------在背包中放入物品-------------------------------
-- Put an item(s) in the player's inventory
function c_give(prefab, count)
-----------------未知-------------------------------
function c_mat(recname)
function c_pos(inst)
function c_printpos(inst)
function c_teleport(x, y, z, inst)
-----------------移动命令-------------------------------
function c_move(inst)
function c_goto(dest, inst)
未知
function c_inst(guid)
列举
function c_list(prefab)
function c_listtag(tag)
查找下一个
function c_findnext(prefab, radius, inst)
------------------上帝模式------------------------------
function c_godmode()
------------------------------------------------
-------------------超级上帝模式-----------------------------
function c_supergodmode()
-------------------查找-----------------------------
function c_find(prefab, radius, inst)
function c_findtag(tag, radius, inst)
未知命令
function c_gonext(name)
未知命令
function c_printtextureinfo( filename )
function c_simphase(phase)
function c_anim(animname, loop)
function c_light(c1, c2, c3)
function c_spawn_ds(prefab, scenario)
function c_countprefabs(prefab, noprint)
function c_counttagged(tag, noprint)
---------------计算所有物品数量---------------------------------
function c_countallprefabs()
---------------加速 几倍---------------------------------
function c_speedmult(multiplier)
c_speedmult(1.5)
c_speedmult(1.3)
c_speedmult(3)
----------------实验模式--------------------------------
function c_testruins()
ConsoleCommandPlayer().components.builder:UnlockRecipesForTech({SCIENCE = 2, MAGIC = 2})
c_give("log", 20)
c_give("flint", 20)
c_give("twigs", 20)
c_give("cutgrass", 20)
c_give("lightbulb", 5)
c_give("healingsalve", 5)
c_give("batbat")
c_give("icestaff")
c_give("firestaff")
c_give("tentaclespike")
c_give("slurtlehat")
c_give("armorwood")
c_give("minerhat")
c_give("lantern")
c_give("backpack")
end
未知
function c_teststate(state)
-----------------作战装备-------------------------------
function c_combatgear()
-----------------作战模拟器-------------------------------
function c_combatsimulator(prefab, count)
-----------------转储-------------------------------
function c_dump()
-----------------显示当前所处季节-------------------------------
function c_dumpseasons()
例子:
c_dumpseasons()
[04:48:05]: ConsoleInput: "c_dumpseasons()"
[04:48:05]: spring 14 -> 6 days (70 %) cycle
--------------打印世界信息----------------------
function c_dumpworldstate()
例子
[04:49:27]: ConsoleInput: "c_dumpworldstate()"
[04:49:27]:
[04:49:27]: //======================== DUMPING WORLD STATE =====================
===\\
[04:49:27]: summerlength 15
[04:49:27]: seasonprogress 0.7
[04:49:27]: elapseddaysinseason 14
[04:49:27]: isfullmoon false
[04:49:27]: moisture 1552.6871337891
[04:49:27]: springlength 20
[04:49:27]: moonphase threequarter
[04:49:27]: precipitationrate 0
[04:49:27]: iswet false
[04:49:27]: winterlength 15
[04:49:27]: iswinter false
[04:49:27]: issummer false
[04:49:27]: moistureceil 3359.3188476563
[04:49:27]: isday false
[04:49:27]: remainingdaysinseason 6
[04:49:27]: isnight false
[04:49:27]: isdusk true
[04:49:27]: isspring true
[04:49:27]: isautumn false
[04:49:27]: issnowing false
[04:49:27]: snowlevel 0
[04:49:27]: issnowcovered false
[04:49:27]: autumnlength 20
[04:49:27]: phase dusk
[04:49:27]: temperature 38.151284629022
[04:49:27]: wetness 14.76150894165
[04:49:27]: pop 0.36728030875334
[04:49:27]: season spring
[04:49:27]: israining false
[04:49:27]: time 0.79473068118095
[04:49:27]: cycles 49
[04:49:27]: precipitation none
[04:49:27]: timeinphase 0.95938441412789
[04:49:27]: \\==================================================================
===//
------------隐藏-------------------
function c_makeinvisible()
----------------------------------
作用未知
function c_selectnext(name)
以下应该是召唤boss
召唤鹿的马蹄声
function c_summondeerclops()
召唤熊德
function c_summonbearger()
-------------聚集队员---------------
function c_gatherplayers()
local x,y,z = ConsoleWorldPosition():Get()
for k,v in pairs(AllPlayers) do
v.Transform:SetPosition(x,y,z)
end
end
------------加速----------------
function c_speedup()
TheSim:SetTimeScale(TheSim:GetTimeScale() *10)
print("Speed is now ", TheSim:GetTimeScale())
end
-------------跳过多少天---------------------
function c_skip(num)
num = num or 1
LongUpdate(TUNING.TOTAL_DAY_TIME * num)
end
----------------投票-----------------------
function c_togglevotekick()
TheWponents.voter:ToggleVoteKick()
end
---------------地面类型--------------------
function c_groundtype()
local index, table = ConsoleCommandPlayer():GetCurrentTileType()
print("Ground type is ", index)
for k,v in pairs(table) do
print(k,v)
end
end
-------------搜索----------------------
function c_searchprefabs(str)
例如
c_searchprefabs("log")
[04:57:55]: ConsoleInput: "c_searchprefabs("log")"
[04:57:55]: Found 10 matches:
[04:57:55]: log
[04:57:55]: yellowgem
[04:57:55]: maxwellphonograph
[04:57:55]: livinglog
[04:57:55]: glommerwings
[04:57:55]: deerclopswarning_lvl1
[04:57:55]: deerclopswarning_lvl4
[04:57:55]: deerclopswarning_lvl3
[04:57:55]: deerclopswarning_lvl2
[04:57:55]: teleportato_ring
---------------锁定健康--------------------
function c_maintainhealth(player, percent)
player = player or ConsoleCommandPlayer()
if player.debug_maintainhealthtask ~= nil then
player.debug_maintainhealthtask:Cancel()
end
player.debug_maintainhealthtask = player:DoPeriodicTask(3, function(inst) ponents.health:SetPercent(percent or 1) end)
end
----------------锁定san-------------------
function c_maintainsanity(player, percent)
player = player or ConsoleCommandPlayer()
if player.debug_maintainsanitytask ~= nil then
player.debug_maintainsanitytask:Cancel()
end
player.debug_maintainsanitytask = player:DoPeriodicTask(3, function(inst) ponents.sanity:SetPercent(percent or 1) end)
end
----------------锁定饥饿-------------------
function c_maintainhunger(player, percent)
player = player or ConsoleCommandPlayer()
if player.debug_maintainhungertask ~= nil then
player.debug_maintainhungertask:Cancel()
end
player.debug_maintainhungertask = player:DoPeriodicTask(3, function(inst) ponents.hunger:SetPercent(percent or 1) end)
end
---------------锁定温度--------------------
function c_maintaintemperature(player, temp)
player = player or ConsoleCommandPlayer()
if player.debug_maintaintemptask ~= nil then
player.debug_maintaintemptask:Cancel()
end
player.debug_maintaintemptask = player:DoPeriodicTask(3, function(inst) ponents.temperature:SetTemperature(temp or 25) end)
end
---------------锁定湿度--------------------
function c_maintainmoisture(player, percen
展开阅读全文