Help me... Science Project

  • rocky112358
    5th Apr 2012 Member 0 Permalink
    Hi! I'm a high school student in Korea.
    I'm enjoying playing with powder toy since 42.3. :)

    I'd like to make more 'real' powder toy like 
     - making salt (magnesium sulfate heptahydrate, copper sulfate...)
     - Neutralization
     - electrolysis
     - etc...
    to substitute real experiments in labs. one of my object is giving chance to people, who can't experiment in their house or class, experiment in cyberspace.

    for my science project... i heard that i can make mods with Lua...

    ...anyway my question is 
    1. how the chemistry engine's calculated results become visualizable? 
    (i mean... fundamental? Algorithm? of powder toy (like reactions between contacted elements (like Powders, Liquid, Solid, Gasses not like WiFi...)

    2. can i make and add my own elements that interacts by my settings?

    3. I can use C/C++ and Java. can i edit with these languages? 
    (if can't, i will study Lua...)

    i'll add more if i have more questions later...

    Thank you for reading!

    P.S.) Any Korean or people who can use Korean fluently here? Help me T_T
  • mniip
    5th Apr 2012 Developer 0 Permalink
    1) look 3
    2) ofc, look 3
    3)you use C++
    Lua mods suck
    P.S) please be nice and use english on forums
  • Finalflash50
    5th Apr 2012 Banned 0 Permalink
    This post is hidden because the user is banned
  • nmd
    5th Apr 2012 Member 0 Permalink
    @rocky112358 (View Post)
    1. I think that is possible
    2. YES!
    3. C++


    btw, if you do mod the game, are you going to put it on the website?

  • boxmein
    5th Apr 2012 Former Staff 0 Permalink
    @rocky112358 (View Post)
    The original code was in C, but people keep suggesting it's C++ now.
    You could create yourself a mod.
    The (particle) update code works like this(AFAIK):
    1) The particle map loops through active squares.
    2) Update functions for (almost) every particle. Every update loops through the particle's surroundings, checking for elements that may react with them. Then reactions.
    3) Movement checks for where can the particle move.
    4) Actual movement of particle.
  • devast8a
    8th Apr 2012 Former Staff 0 Permalink
    @Finalflash50 (View Post)
    Not true. It would just take time than we can spare to support the needed code to make large scale changes while having a mode for supporting older saves.

    If you need any help join IRC (http://webchat.freenode.net/?channels=#powder), someone there should be able to help you or answer any questions you may have. Currently the powder toy is written in C, so you will only be able to use C or lua to make additions to the powder toy.