奥拓星球 / Autonauts

奥拓星球 / Autonauts

评价数不足
UpgradeBots
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
520.925 KB
2021 年 10 月 4 日 下午 4:16
2022 年 12 月 9 日 下午 1:13
4 项改动说明 ( 查看 )

订阅以下载
UpgradeBots

描述
A mod for help you to upgrade your robots!

-- New Changes --

- Now added four objects for each different level of robot referencing their variants with VarX at the end of the name.
- Each upgrader can be crafted with Stick, Rock, Berries or Mushrrom to have the desired variant along with the upgrade.
- Added a check to not perform upgrade if all parts are equal or lower than upgrader level.
Ex.: Head Mk2
Mk2 drive == No upgrade
Body Mk2
Mk2 Upgrader


Head Mk1 Head Mk2
Mk2 drive == Mk2 drive
Body Mk2 Body Mk2
Mk2 Upgrader

-- End Changes --

Exist 3 upgraders to create and use.
This mod destroy old robot and spawn a new robot with name and script of the old robot.

Examples.:
If you have a robot with:
- Head Mk1
- Frame Mk2
- Driver Mk0
and tries to upgrade with mk2 upgrader, the result is:
- Head Mk2
- Frame Mk2
- Driver Mk1
you cannot ignore level of robot and switch from mk0 to mk2.

Upgraders can made in their respective WorkerWorkbenchs.
23 条留言
legammeurs 2023 年 4 月 18 日 上午 8:48 
bonjour vous pouvais creer un mod qui permer de debloquer la tete mythic et simplifier son craft
Hartiel  [作者] 2022 年 12 月 9 日 下午 1:12 
Sorry for the long time without giving answers. I fixed the problem by changing the object name from Mushroom to MushroomDug. Thanks for reporting the error @Modified Shopkeep ^^
Modified Shopkeep 2022 年 9 月 24 日 下午 5:07 
There is an error in the current version. The recipes that include mushrooms don't work. I looked at the code and found that you are using "Mushroom" which is a planted mushroom. You need to use "MushroomDug" which is the loose mushrooms. Denki probably changed it in an update. Nice mod. I really like it.
Hartiel  [作者] 2022 年 8 月 9 日 上午 8:38 
@MeiwakuKira Thanks for comments and ideas ;) I working it
MeiwakuKira 2022 年 8 月 9 日 上午 7:29 
@Hartiel It's okay! I appreciate you even considering looking into it. Also, I greatly appreciate the mod! It's extremely useful, and now I can't imagine my Autonauting experience without it. Thank you!
Hartiel  [作者] 2022 年 8 月 9 日 上午 5:00 
@MeiwakuKira I'm sorry. I didn't understood correctly, ignore the previous comment. There really isn't a way to get the variant in the code, I went to analyze it directly and GetParts doesn't return these variants. I'm thinking of creating different parts for each variant with fruit in the recipe. I will think and add this. My fault. Thanks for asking!
MeiwakuKira 2022 年 8 月 8 日 下午 3:14 
@Hartiel Ah, okay. Thank you for informing me of the parameters I need to look at and for the link to the documentation. However, when looking at the UpgradeBots.lua file from your mod to do this, I can only see one instance of "ModBot.SpawnBot". Does that mean I cannot have different variants for the different tiers?
Hartiel  [作者] 2022 年 8 月 8 日 下午 2:31 
Hello @MeiwakuKira! When you use ModBot.GetParts you get the variant of the part if it exists, so you need to use ModBot.SpawnBot and in the 5th, 6th and 7th parameters there is the variant of head, frame and drive respectively, so fill with values ​​from 0 to 4.

Link for page [www.denki.co.uk]
MeiwakuKira 2022 年 8 月 8 日 上午 8:17 
Hi! I am trying to do what a previous user did and change the variant of the bot upgraded. I cannot figure out how to do that, however, based on looking at the .lua with Notepad++ alongside your instructions to that user. May you please help me figure out how to make the mk1 upgrade the mk1 Variant 4, the mk2 upgrade the mk2 Variant 3, and the mk3 upgrade the mk3 Variant 1?
Hartiel  [作者] 2022 年 8 月 2 日 上午 8:05 
Thank you Snorks! I added it to the description and mentioned you ^^