Forum > Tutorials

Removing Lights From a Model

(1/1)

schlumpf:
Removing Lights From a Model
To remove lights from a model, you have to remove lights from the model. This is done by setting the number of lights to zero. To do so, use any hex editor you can find and set the number of lights to zero.

What To Do?
Change the number of lights to zero. Do so by opening the file in a hex editor and set the number at the offset for the number of lights to zero. You may also set the offset to zero.

You can find the offset in the wiki.

Tool For The Lazy

--- Code: ---#include <cstdio>
int main(int, char** argv)
{
  FILE* f (fopen (argv[1], "rw"));
  const int null (0);
  fseek (f, 0x108, SEEK_SET);
  fwrite (&null, 4, 1, f);
  fwrite (&null, 4, 1, f);
  fclose (f);
  return 0;
}
--- End code ---

Navigation

[0] Message Index

Go to full version