Well, on the top of my head there is a bug where the powerup organelles floating around dont seem to ever unlock the organelles as they should, and another bug where you can delete a hex in the editor and have your microbe split in two (which is not too important yet, but it should be easy to tackle). Other devs might know about other bugs.
Feel free to ask any questions
the lua scripts are in the scripts folder, both in the github repo and in the released game
edit: if you mean how to download the repo, you can use git or its gui github desktop to clone it into your computer, if you mean how to edit them any text editor will do (i use notepad++ for example)
you clone it to your pc, using git (a console application) or github desktop (the same but with a fancy gui), and then you can edit it in your pc, then you can create a github branch and post your changes there (you might need permissions for that, @hhyyrylainen, @Moopli or @crovea can give them to you if you dont), and when the branch is finished you make a pull request, so we can see your changes and maybe suggest improvements and things like that, and then the branch gets merged into the master branch and it becomes a part of the game
I would actually prefer if everyoneâs first change to the code was done through a fork and pulled from there. And then people would be given write access to the main repo.
Just in case someone decides to immediately go ahead and break our main repo.
i was testing the powerup for some time(i was editing scripts and testing it at my pc) and i think i have solution
i have searched for the scripts that the powerup organelles coded in for some hours until i found them in:
setup.lua
configs.lua
i took a look and i think the system dose not work somewhat right so i have an idea of a new mechanic i can remove this lines
if math.random(1,4) > 1 then return true end
and
if math.random(1,3) > 1 then return true end
and make something like collect 4 (as example) of toxic powerup so you can unlock Toxin Vacuole
shall i work on this or not?
here is some little good tweaks that we can work on:
it will be good if there something like notification that appear at the bottom right corner of the screen telling you that you unlocked something new.
and in the microbe editor what about a short brief about the organelles when you put the mouse on the organelles.
i can do some of this but i am not experienced with gui (i used only the ui from unity that easily controlled without coding) so i need help from someone know how to work with gui
i have done some tests and it works fine and this is the code changes i have done :
in the configs.lua this is my changes:
â must be global
chloroplast_Organelle_Number = 0
toxin_Organelle_Number = 0
â this count the toxin Organelle Number
function toxin_number()
toxin_Organelle_Number = toxin_Organelle_Number + 1
print (toxin_Organelle_Number)
if toxin_Organelle_Number >= 3 then â 3 is an example
toxinEffect()
end
return true
end
âthis where the Unlock Happen
function toxinEffect(entityId)
if Engine:playerData():lockedMap():isLocked(âToxinâ) then
showMessage(âToxin Unlocked!â)
Engine:playerData():lockedMap():unlock(âToxinâ)
local guiSoundEntity = Entity(âgui_soundsâ)
getComponent(guiSoundEntity, SoundSourceComponent):playSound(âmicrobe-pickup-organelleâ)
end
end
â this count the chloroplast Organelle Number
function chloroplast_number()
chloroplast_Organelle_Number = chloroplast_Organelle_Number + 1
print (chloroplast_Organelle_Number)
if chloroplast_Organelle_Number >= 3 then â 3 is an example
chloroplastEffect()
end
return true
end
âthis where the Unlock Happen
function chloroplastEffect(entityId)
if Engine:playerData():lockedMap():isLocked(âchloroplastâ) then
showMessage(âChloroplast Unlocked!â)
Engine:playerData():lockedMap():unlock(âchloroplastâ)
local guiSoundEntity = Entity(âgui_soundsâ)
getComponent(guiSoundEntity, SoundSourceComponent):playSound(âmicrobe-pickup-organelleâ)
end
end
and in setup.lua :
changes this powerupComponent:setEffect(âtoxinEffectâ)
and this
powerupComponent:setEffect(âchloroplastEffectâ)
to :
powerupComponent:setEffect(âtoxin_numberâ)
and
powerupComponent:setEffect(âchloroplast_numberâ)