Vacuum is PT_????

  • Videogamer555
    22nd Jan 2012 Member 0 Permalink
    What's the internal name for VACU (vacuum element)? I thought it was just PT_VACU but I can't find it. Normally in Codeblocks when you type PT_ it gives a dropdown list of valid PT_ names so I just select the one I want, but PT_VACU isn't there. Please help.
  • mniip
    22nd Jan 2012 Developer 0 Permalink

    @Videogamer555 (View Post)
    PT_WHOL for VACU
    and
    PT_NWHL for WHOL
  • Videogamer555
    22nd Jan 2012 Member 0 Permalink
    WHOL looks nothing like VACU. How did this name take place? WHOL being changed to VENT would at least make sense because WHOL and VENT both repel stuff. but VACU actually sucks stuff in. So it makes no sense. Please explain how this came about? And would it be possible for me to change the line of code that defines PT_WHOL to instead call it PT_VACU? Or would this break other code?

    mniip:

    @Videogamer555 (View Post)
    PT_WHOL for VACU
    and
    PT_NWHL for WHOL
  • mniip
    22nd Jan 2012 Developer 0 Permalink
    @Videogamer555 (View Post)
    sorry confused,
    PT_BHOL for VACU
    and
    PT_NBHL for BHOL
  • Simon
    22nd Jan 2012 Administrator 0 Permalink
    The internal names do not always represent the names shown in-game. After newtonian gravity was introduced, WHOL was named to to VENT but kept the PT_WHOL internal name, the new White hole was given PT_NWHL.
    If you change the internal names in the powder.h file, you have to also edit any references to it, which can be a bit of a pain for modders and other people who use the code. That's why we never rename the PT_* defines.
  • Videogamer555
    22nd Jan 2012 Member 0 Permalink
    Thanks, that worked. BHOL is indeed VACU. but When I try NBHL it doesn't have any effect at all with the new BHOL. Something is wrong here. Is it possible that the designation PT_NBHL is assigned to the VAC tool instead of the BHOL element?
  • Simon
    22nd Jan 2012 Administrator 0 Permalink
    VAC and VACU are different, VACU is the old blackhole element, VAC is the tool.
  • Videogamer555
    22nd Jan 2012 Member 0 Permalink
    Nevermind, I see where I made my error now.