-
-
Notifications
You must be signed in to change notification settings - Fork 505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring and renaming compounds based on Karthas077s work. #91
Conversation
It works now! There's still some minor renaming and restructuring i would like to do before it should be merged. TODO:
The priority of a compound will be based on priority of process that uses it (new parameter to process organelles) and possibly how much is contained of the compound in the microbe vs how much the processes can use. Ties will be resolved randomly preferably. I hate the complexity of my "algorithm" (lots of sorting and prioritizing) but considering the numbers it will be dealing with i guess it doesn't matter. I am pushing the case of empty "hexes" also being able to store some amount of compounds to a future point in time, as i think this will depend on restructuring that will occur with the introduction of the microbe editor. |
Been working on a priority based system for expelling excess compounds but its getting overly complex and not transparent to the player at all. I'll try and think about it while in my exam period and seek feedback on the forum when i have something concrete. |
Do you want us to discuss it on the forums? On Sun, Jan 19, 2014 at 8:26 AM, jjonj notifications@github.com wrote:
|
Ill fix up a quick demo of what i have now, explain it and we can have a discussion, I'll see if i can get it done tomorrow. |
I'm having some really wierd issues with ipairs refusing to iterate consistently. I have a table in hashmap style mode containing some information, but next(mytable) returns nil but if i double check table[keyIKnowIsThere] i get the correct value. I can do really ugly workarounds, but im really just confused |
Okay i did the ugly workarounds as temporary fixes. |
I'm not completely comfortable with the idea, but I am strongly considering merging this with master without review (as there seems noone here to do so atm). Some of the other issues I'm working on require the basic part of this branch, specifically the generalized compound storage, but the compound ejecting/threshold system is not in a finalized state, since the discussion on it hasn't settled and I don't know if it will be able settle to within a short timeframe or before more progress has been made. It would be possible to progress on the other issues without merging this, but it would be a lot more difficult that way. So in summary, some non-final non-reviewed code may be merged with master, in the name of progress. Things can naturally be changed/fixed in the future. |
Details are currently being worked out in the forum discussion http://thrivegame.forum-free.ca/t1381-compound-system-implementation#29540 Quite a few parts of the compound system will be changed |
Refactoring and renaming compounds based on Karthas077s work.
Includes renaming of agent to compound and storage organelles (vacuoles) to be general storage instead of specialized. Minor refactoring elsewhere as was fitting (UI etc).
Changes from karthas version #82 include compiler error fixing, bugfixing, completion, renaming and re-designing.