Alloys

  • Ketemin
    1st Jun 2019 Member 0 Permalink

    How would I possibly go about making alloys.

     

    Like say, Iron and gold to form an Iron-gold alloy, which would be its own new element.

     

    Im very new to this.

  • LBPHacker
    2nd Jun 2019 Developer 1 Permalink

    I'd hijack LAVA's Update function (everything that's "molten" is actually LAVA with a ctype of whatever element comes after "molten") and check for neighbouring molten IRON and GOLD particles. Something like this.

    Edited once by LBPHacker. Last: 2nd Jun 2019
  • Ketemin
    2nd Jun 2019 Member 0 Permalink

    Thank you so much for this. I tried to long trying to get this working. I noticed that the game crashed whenever BGLD was melted a second time but that was fixed by lowering the melting temp.

  • LBPHacker
    2nd Jun 2019 Developer 0 Permalink

    Crashed how?

     

    Edit: Nvm I got it, thanks for finding this!

     

    Edit 2: The problem is that I set HighTemperatureTransition to 1500 instead of HighTemperature. Element #1500 doesn't exist (and in fact can't exist due to a limit set in the source code) but nothing checks HighTemperatureTransition for being valid, so you get a crash. I'll fix this later, lol.

     

    You should totally set HighTemperature to 1500 though as that will make BGLD easier to separate from the other molten stuff. (And you shouldn't set HighTemperatureTransition at all!)

    Edited 2 times by LBPHacker. Last: 2nd Jun 2019