Code center > Suggestions
DNA Scripts
Numsgil:
I'm looking at Lua at the moment. It seems to look very similar to VB, which is a plus I think.
I'm trying to think of when the best time to run script events would be. Can anyone think of some sort of event they might like to run that would be difficult or impossible to accomplish if the scripts all executed at the start of every cycle?
Greven:
I looked a little at Lua, seems nice. About the time of execution, a script that does something for the bots that die in a round etc. Can come up with numerous things....
Henk:
--- Quote from: Numsgil ---I'm trying to think of when the best time to run script events would be. Can anyone think of some sort of event they might like to run that would be difficult or impossible to accomplish if the scripts all executed at the start of every cycle?
--- End quote ---
Wouldn't that be very processor-intensive? How about having this interval user-definable? ie "check this script every N cycles"
Henk
Numsgil:
Here's what my basic problem is:
I can either move the entire Engine update into a script, and allow users to modify it that way to set up their sims, or set up a bunch of in-cycle script checks.
If I move the engine update into a script, that's potentially alot of code. It depends exactly how much or how little I can get away with and still satisfy the needs of people. It could easily turn into a grand old mess given my inexperience.
If I just set up a bunch of in-cycle script checks, it creates alot of code mess, which I'd like to avoid if at all possible.
Elite:
I would really appreciate some of Henk's original script suggestions.
I was trying to rapidly evolve a self-replicator, but the DNA kept getting obliterated by the point mutations when one did evolve. I had to do it by hand.
Pausing the sim if a bot reproduces would be a very useful feature for me
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version