happypower 发表于 2018-4-12 22:20

想修改穿梭機的載運量跟速度,但都失敗,懇請幫忙看下哪有問題(以解決)

本帖最后由 happypower 于 2018-4-13 18:13 编辑

有大神出手幫忙了(雖然還沒空玩看看..)
http://bbs.blacksheepgame.com/forum.php?mod=redirect&goto=findpost&ptid=5731854&pid=210299556


參考了版上的科技加強跟MOD教學,搞了好幾個小時
最後終於內建MOD可以成功讀取內容,但實際用了還是沒變化
甚至一開始就載入的話就連編輯器都卡讀取....
麻煩幫忙看看哪裡有問題,謝謝

一直無法上傳,奇怪..
我直接PO內容吧

items.lua

return {

PlaceObj('TechEffect_ModifyLabel', {
'Label', "CargoShuttle",
'Prop', "max_shared_storage",
'Amount', 100,
}),
PlaceObj('TechEffect_ModifyLabel', {
'Label', "CargoShuttle",
'Prop', "max_speed",
'Amount', 300,
}),
}

metadata.lua

return PlaceObj('ModDef', {
    'title', "穿梭機修改",
    'description', "穿梭機修改",
    'id', "wv8YTrtert4f",
    'author', "穿梭機修改",
    'version', 13,
    'lua_revision', 228672,
    'saved', 1523541715,
})

slyf 发表于 2018-4-13 00:20

本帖最后由 slyf 于 2018-4-13 00:39 编辑






happypower 发表于 2018-4-13 05:10

code資料夾內

本帖最后由 happypower 于 2018-4-13 05:40 编辑

謝謝,真是太感謝有人幫忙,請問這是怎用?
放到MOD裡就好?

剛試了放到CODE資料夾內,然後在items.lua加上

[*]PlaceObj('ModItemCode', {
[*]'FileName', "Code/Script.lua",
[*]}),

也就是這樣

return {
PlaceObj('ModItemCode', {
'FileName', "Code/Script.lua",
}),
PlaceObj('TechEffect_ModifyLabel', {
'Label', "CargoShuttle",
'Prop', "max_shared_storage",
'Amount', 100,
}),
PlaceObj('TechEffect_ModifyLabel', {
'Label', "CargoShuttle",
'Prop', "max_speed",
'Amount', 300,
}),
}


結果還是無用,開新檔也不行的樣子,一直卡在讀取...

zxzlf 发表于 2018-4-13 13:28

TechEffect_ModifyLabel这个只对新开档有用,存档没效果

zxzlf 发表于 2018-4-13 13:32

http://bbs.blacksheepgame.com/thread-5725193-1-1.html
这里有改容量的

zxzlf 发表于 2018-4-13 13:38

也可以这么改
local items = {}
for i, prop in ipairs(CargoShuttle.properties) do
        items[#items + 1] = table.copy(prop)
        if prop.id == 'max_speed'        then
                items[#items].default = 60 * guim
        end
end
CargoShuttle.properties = table.copy(items)

happypower 发表于 2018-4-13 14:20

本帖最后由 happypower 于 2018-4-13 14:29 编辑

zxzlf 发表于 2018-4-13 13:32
http://bbs.blacksheepgame.com/thread-5725193-1-1.html
这里有改容量的
謝謝,我試看看這個
http://bbs.blacksheepgame.com/thread-5725193-1-1.html

另外我的意思是用了我弄的時候,按開新檔後會一直卡在讀取,只有讀舊檔才能執行,但也沒作用..


happypower 发表于 2018-4-13 14:27

happypower 发表于 2018-4-13 14:20
謝謝,我試看看這個
http://bbs.blacksheepgame.com/thread-5725193-1-1.html



看了一下後...我發現我完全看不懂怎麼用.....冏
我的程度大概就只能在items.lua中簡單貼上或改數字,更高深的都是瞎子摸象
幾個小時能夠弄到編輯器中出現註釋文字,我已經覺得是亂槍打鳥終於打中了...

greenrayli 发表于 2018-4-13 18:00

happypower 发表于 2018-4-13 05:10
謝謝,真是太感謝有人幫忙,請問這是怎用?
放到MOD裡就好?



裝新MOD如遇到卡讀取 ,果斷直接關遊戲重開就能正常讀出來了.

happypower 发表于 2018-4-13 18:12

greenrayli 发表于 2018-4-13 18:00
裝新MOD如遇到卡讀取 ,果斷直接關遊戲重開就能正常讀出來了.

重開幾次都這樣,不過還好有大神幫忙解決了
http://bbs.blacksheepgame.com/forum.php?mod=redirect&goto=findpost&ptid=5731854&pid=210299556


页: [1]
查看完整版本: 想修改穿梭機的載運量跟速度,但都失敗,懇請幫忙看下哪有問題(以解決)