Something not working

  • ubuntupokemoninc
    30th Apr 2011 Member 0 Permalink
    I got mod mod 90% transferred over, I got 2 elements that nothings is happening, both are change part type codes, both react to neutrons but nothing is happening, and i don't know why, but even with all this crap, there are still less glitches ;)
  • jacksonmj
    30th Apr 2011 Developer 0 Permalink
    Probably because neutrons aren't in the pmap any more.

    Either put the reaction in neut.c, or check for neutrons using photons[y][x] (works exactly like pmap).
  • ubuntupokemoninc
    30th Apr 2011 Member 0 Permalink
    I was wondering if neutrons and photons weren't in the pmap, i'll try it ;)

    edit:
    Okay it worked, but the INT is not big enough, do i have to reinitialize it?
  • jacksonmj
    30th Apr 2011 Developer 0 Permalink
    Which INT? Not big enough for what?
  • ubuntupokemoninc
    30th Apr 2011 Member 0 Permalink
    not int, but It searching for particles is what i ment

    for (rx=-1; rx<2; rx++)<br /> for (ry=-1; ry<2; ry++)<br />
    Increasing the range of the pmap
  • jacksonmj
    30th Apr 2011 Developer 0 Permalink
    Easiest way to make it work is probably to change the usual
    r = pmap[y+ry][x+rx];
    if (!r || (r>>8)>=NPART)
    continue;
    to
    r = pmap[y+ry][x+rx];
    if (!r || (r>>8)>=NPART)
    r = photons[y+ry][x+rx];
    if (!r || (r>>8)>=NPART)
    continue;