nullre / Project-RimFactory-Revived

Project RimFactory Revived
MIT License
0 stars 0 forks source link

Assembler update #41

Closed zymex22 closed 4 years ago

zymex22 commented 4 years ago

Hello i had a Assembler update in mind wich would allow me to create more and better control over machines

A comp or extension to set following on each def assembler

Less important

nullre commented 4 years ago

I have a few questions to ask.

Originally there is workSpeedBaseFactor in AssemblerDefModExtension. https://github.com/nullre/Project-RimFactory-Revived/blob/master/Source/ProjectRimFactory/SAL3/Exposables/AssemblerDefModExtension.cs#L11 Can you use this?

Do you want to set the skill level uniformly? Individual?


uniformly

<skillLevel>15</skillLevel>

or individual

<skillLevel>
  <Cooking>15</Cooking>
  <Crafting>8</Crafting>
</skillLevel>

Do you just want to switch textures? Is "tex00 to texture 01" meaningful?

Does it just glow red when working? do pulse? I don't know how pulse works.

with xml? ingame?

zymex22 commented 4 years ago
nullre commented 4 years ago

thank you for your reply.

oh i didnt know didnt see it anywhere, but yes if i can set speed its perfect =)

Maybe Assembler can work at double speed if you do the following.

<modExtensions>
  <li Class="ProjectRimFactory.SAL3.Exposables.AssemblerDefModExtension">
    <importRecipesFrom>ElectricStove</importRecipesFrom>        <!-- import same bills as vanilla electric stove have -->
    <workSpeedBaseFactor>2</workSpeedBaseFactor>
  </li>
</modExtensions> 

glow was just if i could make blinking/pulsing light somehow so it can flash redlight when working, would look good on furnace.

I might not have understood that content correctly. I will try it. please check after that.

zymex22 commented 4 years ago

https://media.giphy.com/media/3o6fIPzkn0CsfSo0lG/giphy.gif glower / pulse light like this picture =) normal comp Glow can only light solid light. would be nice if i could make it pulse

zymex22 commented 4 years ago

just tested:

<modExtensions>
  <li Class="ProjectRimFactory.SAL3.Exposables.AssemblerDefModExtension">
    <importRecipesFrom>ElectricStove</importRecipesFrom>        <!-- import same bills as vanilla electric stove have -->
    <workSpeedBaseFactor>2</workSpeedBaseFactor>
  </li>
</modExtensions> 

That works thank didnt know it was aldready in =) i have marked done on original post

nullre commented 4 years ago

Change the glowColor and glowRadius of CompGlower little by little? I'll try it.

nullre commented 4 years ago

Able to use smoke effect on working like NR miner

Assembler use only Drill Effect instead of effectWorking of RecipeDef? SelfCooker etc too?

nullre commented 4 years ago

effectWorking of ButcherCorpseFlesh Recipe is ButcherFlesh Effect. butcher_effect

effectWorking of CookMealSimple Recipe is Cook Effect. cook_effect

These are when using the effectWorking of RecipeDef.

nullre commented 4 years ago

Implemented pulse temporarily. is it right?

pulse

XML:

  <li Class="ProjectRimFactory.Common.CompProperties_GlowerPulse">
    <minGlowRadius>3</minGlowRadius>
    <maxGlowRadius>5</maxGlowRadius>
    <minGlowColor>(255,0,0,100)</minGlowColor>
    <maxGlowColor>(255,0,0,10)</maxGlowColor>
    <intervalTicks>15</intervalTicks>
  </li>

It makes a linear transition during intervalTicks between max and min.

zymex22 commented 4 years ago

image this looks really good

image this looks good too =)

zymex22 commented 4 years ago

updated Original post

nullre commented 4 years ago

please check test_#41 branch. Only SelfCooker is set.

zymex22 commented 4 years ago
nullre commented 4 years ago

added sound process. enabled to override effect and sound. please check.

https://github.com/nullre/Project-RimFactory-Revived/blob/fa32bbdfabf417e5c92ba9fe9dedd8e55f956d81/Defs/ThingDefs_Buildings/Buildings_Assemblers.xml#L267-L281

zymex22 commented 4 years ago

wrong at line 281. but i understand.

also it does work =) i check it on main list

zymex22 commented 4 years ago

You are so fast and amazing at doing this, i didnt expect this be so quick and even better than i Imagineged it

nullre commented 4 years ago

The remaining four take time. If you want to merge it into your repository first, you should make the rest a new Issue. If not, I will do this issue slowly. Merge will be delayed.

zymex22 commented 4 years ago

You can PR theese first theese seems most importent i move others to new issue