November 09, 2024, 08:59:42 AM

Username
Password

Pages: [1]   Go Down
Print
Author Topic: Debug tool: LIT editor in EngRel.exe  (Read 1698 times)
0 Members and 1 Guest are viewing this topic.
Ghabry
Developer
*
Offline Offline

Posts: 1020



View Profile
« on: January 07, 2020, 02:31:02 AM »

Ever wondered how the lighting LIT file is created?
The tool is part of the engine!

Untested, no Dark Omen installed here but looks promising.
History: I found the array that contains the keyboard keycodes and then I found this function which reads numpad and other random keyboard keys, so this made me suspicious what it is.

Search in EngRel.exe for the byte sequence "33C0A3F4F04B00". Change the 33C0 to 9090.
Load a map. The lighting should be different, same as if the LIT file is missing.
Use all of the numpad, F, T, S, D, +, -, =, / (+, - and = try on both normal and num keyboard), LCTRL, RCTRL, Backspace, Numlock, Home, Insert,
Press Num-Enter to save the LIT file, you should see a chatmessage saying that the map was saved. Smiley

The save destionation is "j:\\paulb\\LiteEdit\\%s.lit". The path must exist, if you don't have a drive J: search this string and hex edit it to something you have (but don't make the path longer! Terminate with 0x00 byte). Only the %s is important.
« Last Edit: January 07, 2020, 02:36:12 AM by Ghabry » Logged

olly
Global Spokesperson
*
Offline Offline

Posts: 2296



View Profile
« Reply #1 on: January 07, 2020, 07:54:43 AM »

Cool find, can't wait to test it thanks, as always seen it but never knew we could interact with it.

Smiley
Logged

and back in Nuln, the ageing Graf Berhardt smiled his secret smile of pride whenever he heard the latest tales of his eldest son's ever growing chain of glorious victories -(sothr manual)
Pages: [1]   Go Up
Print
Jump to: