Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Sprotiel

Pages: 1 [2]
16
Bugs and fixes / A weird bug with graphs
« on: June 07, 2005, 02:06:51 PM »
The bug: when you open and then close a graph whose max value is zero, you get an overflow error at the next graphs' refresh.
What was weird was that looking at it in debug mode, you understand that it's caused by a division by maxy, which has the value 0, even though there 's the line
Code: [Select]
If maxy < 1 Then maxy = 1just before !
Looks like a random quirk of VB6. :rolleyes:

Anyway, I managed to fix it, though I have no idea how.

Instructions: Drop the attached file in your DB source folder and rebuild the exe.

17
Bugs and fixes / inc and dec cost energy
« on: May 22, 2005, 07:59:50 PM »
Looking through the code, I was fairly surprised to discover that
Code: [Select]
a incis (almost) exactly equivalent to
Code: [Select]
*a 1 add a storeThis means that contrary to what is stated everywhere I've looked, inc and dec cost exactly as much energy as store.

18
Suggestions / Make position a Single, not a Long
« on: May 22, 2005, 06:08:32 PM »
I don't see any reason why robots' coordinates should be integers. In the current code, there's a lot of back and forth conversions between Longs and Singles. Eliminating those should reduce the probability of errors.

19
Newbie / Hi!
« on: May 16, 2005, 12:30:19 PM »
Hi all! I've actually discovered DB a long time ago (Autumn 2003) but I played with it only for a few weeks and then I shelved it. I'd like to help with the code. I've already had a look at it and, frankly, it's a mess! The physics model is quite weird and, IMHO, should be brought more in line with reality.

So, may I meddle with the code and if yes, how can I submit changes to the code and where do I start?

Pages: 1 [2]