Given the filename, I am assuming launching another .BIN file from the SD card within my game would be easy, right? I was wondering if there is a way to do it and pass parameters or some kind of data. Is there a way to do this? Do we need to pass data through RAM? Or is that cleared when loading another game?
If launching another game or launching another game with parameters is possible, what would that code look like?
It is a pretty bombproof way yes. For your own safety, do not use addr=0, because the loader is not finalized and it uses that area. Use something like addr=0xFF instead
Don’t worry about it yet. We already have that situation and it needs to be fixed in any case. Better just continue development and then align when we have it sorted out.
I have designes my TCG to revolve around this functionality in order to fit all the features I want.
How long will it take to load the other game? I am assuming since it will go through the SD loader thingy, it will take the same amount of time as loading a game from the SD loader normally, which is a lil’ slow at the moment.
The “Why” is that I am not sure it will all fit. It needs to include good AI as well as gameplay mechanics. If I do not separate them out, I will have to have all AI players built into the same file, which will bloat it up. I think separating the files out will allow me to give different AI’s drastically seperate play styles.
Would the AI byte code files be stored in separate files? That would definitely work, but the bytecode interpreter would still have to be developed. Doesn’t seem like there will be a quick way to tackle this problem.
Sure.
That’s the beauty of bytecode, it’s just a stream of bytes so you can throw it anywhere.[quote=“crait, post:18, topic:663”]
That would definitely work, but the bytecode interpreter would still have to be developed. Doesn’t seem like there will be a quick way to tackle this problem.
[/quote]
It’s not too hard to make one depending on how complex your existing interface is.
Like the thread says you can have instructions like “push own card health”, “push enemy card health”, “less than”, “if true jump here”.
Granted it takes time, but at least it means you don’t need to hook the SD card to swap actual machine code out.