The Daily Click ::. Projects ::. Robot match
 

Project: Robot match
Project Started: 24th April, 2009 Last Update: 10th May, 2009
Project Owner: The Oracle File Project Members:
Project Type: Action/Strategy Project Progress:

Parser and new ideas
Posted 25th Apr 09, by The Oracle File  
So the parser basic is done, I just have to fix a few problems, for example, if there is an intricate loop, the parser will go to the first } which will result in wrong parsing. So e.g.
if 3 + 5 == 7
{
if 4 == 4
{
end
}
error
}
So this should only say error, if the first if is true, but even when it is false, the parser will go to the first } so it will also activate the error.
But I hope I will get that fixed, as it is an important part if this game will become as complex as I wish.

So let's go on with my new ideas.
You will have memory, you have to put on your robot. It will increase the number of codes and values you will have to save data, but will also result in heavier robot.
The weight and the number of wheels is relevant for the speed and rotateability of your bot.
The weapons might be distance and melee weapons, depending on the settings you do.

Posted by Chloe Sagal 25th April, 2009

what are you using to code this?
in MMF2 maybe you could use groups or something to regulate it, so if conditions are true, activate group.
in everything else... its not goto, but it should be something else. i know i read up on this same situation, but its lost on me right now.
 
Posted by The Oracle File 27th April, 2009

just using string parser and an active to store values. Seems to be much faster than all of my old tries to do this and also more powerful. So string parser jsut checks for "{" and "}" so a "{" will make the parser to skip one "}".
Hard to explain, but I hope you understand it. If not you will be able to check it in the MMF source code (will definitely release it)
 


 



Project Forums


Favourite

Advertisement

Worth A Click