Talk:Fractal/Movement

From Robowiki
Jump to navigation Jump to search

From old wiki

Well, if there ever was a flat movement, this is it! Nothing impressing? I'll graph it with RoboGrapher / GloomyDark now. -- PEZ

OK, here's RoboGrapher's results:

Fractal 0.1.png

Your scanner is broken. Quite often (as you can see on the graph) it slips off its enemy and since you move from inside the scanned robot event this makes Fractal stand still like a SittingDuck. -- PEZ

Interesting; my movement has absolutely nothing to do with the scanner, and it is completely isolated from the scan event. There's nothing I hate more than event-driven programming, so the scanned robot event is the last place I would put any movement code. However, I also graphed it with RoboGrapher and received similar results; I was going to post them to inquire, but it looks like you beat me to it. :) - When does GloomyDark launch a wave? I think it may show a spike there because Fractal has a slight crash bug which causes it to sit still. Once I weed that out I'll see about flattening GloomyDark's curve as well. Fractal's curve is far more predictable than StatistRobot lets on, because it still only gets about 20% in the curve flattening challenge. In any case, I'm currently working on a nice-looking Swing applet to graph Fractal's movement curve output in full detail, so other robots will have Fractal as a graphing utility (in addition to all the others out there). I added an explanation of its curve above. -- Vuen

Another interesting question - when GloomyDark fires a wave, is it right when it fires, or would it continue firing waves when it's not firing and running up to ram or something? Or would it fire waves if it was disabled? -- Kawigi

Sorry if I insulted you with accusations of practising event driven programming, Vuen. =) I don't know what you mean by slight crash bug. But what I see is that quite often Fractal just sits there doing nothing. Same thing as one of my bots would do if they slipped with their scanners. And it doesn't start doing stuff until Gloomy enters its line of sight. And, Gloomy only fires waves when it fires real bullets. -- PEZ

Lol =). I see what you mean though by crash bug, but it always only happens during a match; Fractal just runs straight into a wall and stops moving. Fractal's radar is currently temporary anyway, but I added some ECC to help the radar keep its lock until I build a real radar handler. I don't really remember how its information system is built because I haven't played in there for over a month, but I'm pretty sure it's still only like half built and is missing a lot of error-checking to get it working properly. About not doing anything until it sees the opponent, it's programmed to not react until it has information on the enemy, and Fractal was originally not supposed to move until the enemy's bullet almost hits it. If you have Fractal 0.0, try it to see it; I removed this strategy when I removed its pluggable movement manager in 0.1, but will be adding the sitting still soon. Anyway I'm working on it right now (which is bad, because I have like 9 outstanding assignments to do... stupid university), and I'll try to fix the crash bug and get the grapher done *cringe* by tonight. -- Vuen

Robographer.jpg

Better? I think I fixed the crash bug =). Thanks for pointing out the radar problem PEZ; I'll try to see what I can get done on this grapher and I'll upload a new version of Fractal later tonight. -- Vuen -Oh, I just noticed a bug in RoboGrapher; it's not multiplying the percentage by 100. -- Vuen

Seems you got some work done! That curve looks really good. I'll add the percentage problem to the bug list. -- PEZ

If you check the curve on the different "Acceleration" segments you'll see that you have some room for improvement. I suggest you work with the "Constant" (no acceleration) segment first and see if you can get it flatter. -- PEZ

There are no threads on this page yet.