Author Topic: Externally generated save file ignoring the first few cubes [Solved]  (Read 653 times)

Okay new problem. I have the generator working but Blockland is ignoring the first cubes entirely for some reason. It's even decreasing the brickcount given in the save file. Can anyone explain why it's doing this?

The number missing tends to be 61.



Found the problem. It wanted me to specify the whole colorset instead of just two colors.
Weird.
« Last Edit: January 15, 2013, 09:22:32 PM by ThinkInvisible »

Do you know it's the BLS exporter that's broken, not the generation code?

I'm a reverse engineer, and even I have no idea what's going on in that clusterforget. I was one step away from pasting it into sublime and reformatting it for you.

diagonal

A line is usually diagonal when x equals y. So I went to check your x and y values, and sure enough:

Code: [Select]
float posx = x * 2 + 16;
float posy = x * 2 + 16;

Both are calculated from the x value. This occurs a few times in the code, so look it over carefully.

Whoa, whoa, whoa, wait.

for (int i = 0; i < fieldX * 16; i ++)
 {
  for (int j = 0; i < fieldX * 16; i++)
   {

What's surprising is that I noticed this while I'm still half-asleep.

-----
Never mind, got it working myself. Now only the 64x cubes are failing to load.
« Last Edit: January 15, 2013, 07:38:18 AM by ThinkInvisible »

It'd help if you gave us a link to your code.

It'd help if you gave us a link to your code.
Well, now it's not the code, it's the save file.