Compiling Errors

  • FeynmanLogomaker
    24th Oct 2014 Member 0 Permalink

    I'm trying to compile TPT (I haven't made any modifications to the source yet), and it says it can't find build\src\BSON.o.

     

    Here's the full messages: 

     

    How do I fix this?

  • jacob1
    24th Oct 2014 Developer 0 Permalink
    That's a weird error ... but it looks like it can't create build\src\BSON.o . Maybe try making a build\ folder and a build\src\ folder for it if those aren't there already.
  • FeynmanLogomaker
    25th Oct 2014 Member 0 Permalink

    Those folders already exist. Are there any other solutions?

  • FeynmanLogomaker
    11th Nov 2014 Member 0 Permalink
    Now I'm getting a memory read/write error from this statement:

    std::cout << sim->;pmap[y+j][i+x];

    in RasterDrawMethods.inl. Any suggestions as to what it might be?

    By the way, I have made sure the coordinates are okay, so I'm really not sure where it's coming from.
    Edited once by FeynmanLogomaker. Last: 11th Nov 2014
  • jacob1
    11th Nov 2014 Developer 0 Permalink
    @FeynmanLogomaker (View Post)
    why are you trying to print things from there? Also it's probably because you put a random semicolon in the middle of the line.
  • FeynmanLogomaker
    11th Nov 2014 Member 0 Permalink
    That semicolon was from the html editor, it's not there in my actual code. I just need to access it there because I'm making a text plotter for my mod (something that can make text with the TPT font, drawn in dcolor on dmnd)

    I'm printing from there to make sure I know which variable is causing the error. getsize(pmap[y+j][i+x]) works just fine, but when I try to actually access or write to it, it errors.
    Edited once by FeynmanLogomaker. Last: 11th Nov 2014
  • jacob1
    11th Nov 2014 Developer 0 Permalink
    The graphics code isn't supposed to have access to the simulation anyway ...

    Maybe you are using an uninitialized simulation reference, or it has something to do with how one uses sim->pmap and the other just pmap. You could also try finding somewhere else to put the code that makes a little more sense. A text plotter doesn't belong there.
  • FeynmanLogomaker
    11th Nov 2014 Member 0 Permalink
    Probably a good idea.

    EDIT: Now I'm getting an error in: char *rp = font_data + font_ptrs[c];

    Edited once by FeynmanLogomaker. Last: 12th Nov 2014