Repository navigation
Releases
LightGreen 0.4.0
Added
- A moon at night. The sky draws its moon with its sun disc (as the game's own night skies do), but LightGreen left the disc pointing at the sun below the horizon, so LightGreen's nights had moonlight and no moon. After sunset the disc now goes where the moonlight comes from, drawn as the game's own night sky draws its moon (its size, phase and faint glow), growing in over the first degrees below the horizon. The presets'
moonPhaseis no longer used. Effects.Stars(default 2): brighter stars at night, up to 4; higher also brings out fainter ones. They come out late at dusk, and rain, snow and cartoon rain's cloud hides them. Holes the game sets at night get theirs scaled the same way.- Thicker cloud in rain and snow (half as much under cartoon rain's mist), from the sky's own clouds.
- City holes at night: a faint warm glow on the horizon from the streets, with
Effects.CityNight. - Size limits:
.cubefiles over 96 MB, and presets or filters files over 4 MB, are refused with their size in the log. build.ps1 -Testruns offline checks (tests/Tests.cs) for the parts that work without the game: the.cubereader, the filter maths, the presets and filters files and the 27 built-in filters, the preset lookup, LightGreen's file handling (size limits, whole-file writes), the HUD maths, the weather art and pixels, LightGreen's random numbers and the material copy lookup. The build stops if one fails.General.TimingLogalso counts the garbage collections in each 10 s (Mono's collector stops the whole game while it runs), says when one fell in the worst or the longest frame, and gives the managed heap's size. The worst frame's line splits Time of day and Materials into steps ([steps: Time of day: capture …, Materials: tune …]), to find what a one-frame cost is made of.
Changed
- If a game update breaks one of LightGreen's hooks while it runs, the hook now logs the error once and stands down, instead of throwing inside the game's own code every frame (the HUD markers, name tags and pop-up words, the grass, footprint, effect and lightning hooks). A renamed field the HUD markers read now leaves them at the game's size, with a line in the log.
- The presets and filters files are written to a temporary file first, which then replaces the old one, so a crash or power cut while writing can't leave a cut-off file. A JSON file nested more than 64 levels deep is refused instead of closing the game.
- Failures LightGreen used to pass over in silence (the camera mode, the course's own grading, the pipeline's colour table size, the
.cubefolder check) are logged once, with the error, so a game update that breaks one shows in the log. Errors are logged in full where only their message was. - A key in
[Keys]the keyboard doesn't have is reported once in the log, instead of failing quietly every frame. - Less work and garbage every frame: the presets are looked up once per load instead of by name three times a frame, the time-of-day blend reuses one preset, lights are ranked once before they're sorted, and name matching is ordinal. Footprint fades now reach every particle of a print, however many it has.
- The search for City lampposts now runs a little each frame (at most 0.5 ms), like the search for glowing windows, instead of looking at every object on the map in one frame at the start of a night City hole. Until it's done, the lamps of the hole before stay lit.
- LightGreen's lightning flicker and rain splashes take their random numbers from LightGreen's own generator, so they no longer move the game's.
.cubefilters are read on a worker thread: picking a big one (F11) no longer stops the game while it's read (a 65-point cube took about a tenth of a second or more). The filter before stays on screen until the new one is ready, a frame or two later. Every filter's colour table is worked out there too: picking any filter took 6.7-7.6 ms in its frame. Stepping past filters quickly skips working out the ones passed. Reading a.cubefile makes about 3 MB of garbage instead of 24 MB for a 65-point cube (a string for each of its 274,625 lines), which brought on garbage collections, 16-18 per 10 s while stepping through filters.- Inside: the weather's sky, the sky and ambient light, the three weathers' shared frame logic, the one-weather rule and the JSON and texture helpers are each one class (
WeatherSky,SkyLook,FallingWeather,Weather,JsonFile,TextureArt), and features hear about map and hole changes from the feature host (IMapAware). - The READMEs now say that
Quality.SunShadowResolutionandQuality.SunShadowDistancenever go below the game's own values (to lower the shadow cost, set them to 0 and lower the game's own Shadow quality), cover the night sky, the.cubebackground read and the file size limits, and name Super Battle Golf 1.4.1-823, the version tested. The log's warning about a different Unity version names it too. - The timing log measures each frame's length with LightGreen's own clock. The game's frame time didn't match the work timed in that frame around loads ("21.5 ms … in a 2.8 ms frame").
- Ball glow finds the balls from a list the game's own
GolfBall.Awakeadds to, instead of looking through the whole scene once a second (2.2-3.8 ms each time on City maps). A new ball glows from its first frame instead of within a second. If the hook doesn't fit a game update, the search once a second is used, as before. - The HUD's later looks after a load (at 1, 3 and 6 s) are skipped when the HUD hasn't changed since the first: the same canvases, with as many objects under each. A look went through all of the HUD's components, 2.7-13 ms.
- F8, F9, F10 and F11 change their setting at once, but the config file is written once, half a second after the last key press (and when the game quits), instead of on each press: BepInEx rewrites the whole file each time, 1.9-5.1 ms an F11 press while stepping through filters. A config edit isn't reloaded while such a save waits.
Fixed
- A
.cubefile withNaNorInfinityin it was refused with "N entries, but size needs M" instead of naming the line; it now names the line and the value. ANaNinDOMAIN_MINorDOMAIN_MAX, or a number too big for a float, was read, and broke the filter when it was picked; those files are now refused too. A broken value from the filter maths can no longer reach the colour table either. - HUD name tags (
HUD.NameTags) would stop working after a game update: the hook named the game's function with the number the compiler gave it, which changes when the game adds a method. The function is now found by its name alone. - Footprints in snow: after more than 4,096 prints were given the snow look in one session, LightGreen forgot which ones to put back, so a print reused off snow could keep the snow look. Only the prints the game has destroyed are forgotten now.
- Ball glow: a ball's renderer without a property block of its own had any block taken off when the glow ended, so one the game put on it during the glow would be lost. The block is only taken off when it's still the glow's.
- Materials: when nothing had been tuned, putting the materials back (at a map change, with F8, or off a hole) kept hold of the materials already looked at, and a look for materials cut short didn't start again until the next timed one, up to 10 s later.
- Materials the game copies from a tuned one ("… (Instance)") are now given the original's stock values by name. They were matched by value alone, and two materials tuned to the same value but with different stock values could give a copy the wrong one after F8 or a map change.
- Ambient occlusion without the grass: the grass-free depth was kept for the rest of the frame, so a camera rendered twice in one frame would have reused a texture from its first render. It's now drawn again for each render.
- The City's street lamps, lit windows and night bloom, and ball glow, came on by day in rain, snow or cartoon rain; they now come on at night only. The weather dims the sun, and LightGreen counted that as dusk: with rain on a sunny hole, the lamps and glow came on part way (about a third). Day and night brightness, and the weather's own colours, still follow how dark the weather makes the scene, as before.
- A
.cubefile with a space at either end of its name ("Omega Derry .cube") couldn't be picked: it was "not in the folder", and the next F11 went back to the first filter. Its filter is now named without the space. Two files whose names differ only by those spaces make one filter, with a line in the log.
Removed
- An unused hook on the game's camera mode, and an unused time-of-day label.
Upgrading
Nothing to do. Effects.Stars is added to BepInEx/config/com.lightgreen.cfg, at 2. The presets' moonPhase is no longer read; it can stay in LightGreen.presets.json. .cube files over 96 MB, and presets or filters files over 4 MB, are now refused with their size in the log.
Install
With r2modman or the Thunderstore Mod Manager: https://thunderstore.io/c/super-battle-golf/p/lmkHenlo/LightGreen/
By hand: install BepInEx 5, then put LightGreen.dll from lmkHenlo-LightGreen-0.4.0.zip (below) in BepInEx/plugins.
LightGreen 0.3.1
Added
General.TimingLog(off by default), for finding hitches: every 10 s, the log notes the frames that took much longer than usual, whatever caused them, and how much of the longest one was LightGreen's own work. Frames where LightGreen's own work takes over 2 ms are noted even with it off, with the time each part took.
Fixed
- A crash (since 0.1.0's footprints): LightGreen kept the game's footprint fade to put back on prints off snow, but Unity's getter hands out a gradient that points into that one print's own memory. Once that print's memory was freed, every footprint off snow was given whatever was there; a print with 120 gradient keys (8 is the most) overran Unity's particle job and the game closed without a crash report (memory dump of 2026-11-21: 3 of 12 footprint prints with broken fades). The game's values are now copied into gradients and curves LightGreen owns, and they're only put back on prints LightGreen changed.
- A hitch every second with many
.cubefilters: checking theLightGreen.filtersfolder for changes listed every file and read its size and date on the game's thread (10–15 ms with 439 files). The folder is now checked on a background thread every 2 s. - A 30 ms hitch when weather starts or the camera jumps (hole start, spectating): refilling the rain or snow around the new view ran the particles forward a whole fall in hundreds of small steps. They're now placed straight into the view at random ages.
- Hitching with many
.cubefilters: every.cubefile inLightGreen.filters/was read into memory at start (with 439 files, about 200 MB), and the game's garbage collections grew long enough to hitch. Now a.cubefile is read when its filter is picked, and only the one in use is kept. A.cubefile that can't be read is reported in the log when its filter is picked, not at start. - Stutter with weather on, and a regular hitch that grew over a long session. The game copies each player's materials on every hole and leaves the copies behind; LightGreen looked through every material in memory and kept each one it tuned, so after two hours of hosting it held about 32,000. That could keep Unity from freeing them, and it made LightGreen's look for new materials every 20 s hitch (50 to 80 ms), and made re-tuning while the weather or time of day blended take about 30 ms a frame. Now only materials on objects in the world are tuned, all of them are let go at each map change, and a blend re-tunes them at most ten times a second.
- Ball glow let go of the last balls it lit only when they glowed again: after dark ended, the destroyed ball of a player who had left stayed referenced. It now lets go of every ball and material when the glow stops and at each map change.
- A slight hitch every 10 s: looking for new materials went through every renderer in one frame (3–5 ms on a City map), and at night on City maps the search for glowing windows did the same every 15 s. Both now go through the renderers a little each frame (at most 0.5 ms), and ball glow no longer makes a new list for each ball every frame.
Upgrading
Nothing to do. General.TimingLog is added to BepInEx/config/com.lightgreen.cfg, off.
Install
With r2modman or the Thunderstore Mod Manager: https://thunderstore.io/c/super-battle-golf/p/lmkHenlo/LightGreen/
By hand: install BepInEx 5, then put LightGreen.dll from lmkHenlo-LightGreen-0.3.1.zip (below) in BepInEx/plugins.
LightGreen 0.3.0
Added
- HUD sizes: a
[HUD]section with a size for each part of the HUD, from 0 (hidden) to 100 % (the game's size): the top-left corner (progress bar, wind and stroke count), hole and ball markers, restart prompt, item bar, power meter, swing wind, angle selector, control prompts, name tags, teammate and other markers, pop-up words, chat box, kill feed, scoreboard, voice chat icons, hole banner, objective message, team score, stamina wheel, spectator prompts, quick chat wheel, crosshairs, the giant-form timer, and the game's tip pop-ups. Screen elements shrink toward the side they sit at. The hole's beam and the aim line keep the game's size. - Cartoon rain (
Effects.CartoonRain, off by default): bold, bright white streaks, easier to see than the rain but still rain, slanted with the wind, and a soft blue mist that keeps the colours bright. About 1,950 streaks, fewer than the rain's 2,800, with none passing right by the camera. - Snow (
Effects.Snow, off by default): soft, round cartoon flakes drawn in code, swaying, turning and drifting with the wind, a few big soft ones passing close to the camera, a bright, pale blue sky, blue-white fog, and slightly colder, less saturated colours. About 4,850 flakes, against the rain's 2,800. Nothing settles on the ground. - Messages in the game's chat box: what F8–F11 or a config edit changed ("LightGreen: Filter: Noir", like a player's message) now shows as a line in your chat, seen only by you; nothing is sent. Quick presses are merged into one line per kind of change after
General.NoticeDelay(0.5 s). With no chat box, the message shows in the top-left corner as before. General.Notices(Chat,ScreenorOff) andGeneral.NoticeDelay.Filters.Filteris a dropdown in r2modman's config editor and other config editors, listing None, the built-in filters, the ones inLightGreen.filters.jsonand your.cubefiles. The config file's list is updated when filters are added, removed or renamed, and a name that isn't in it is kept rather than reset to None.
Changed
- F8 (
Keys.ToggleKey) steps through three views: LightGreen on, HUD only (the game's own look with the[HUD]sizes), and off (the game's own look and HUD). Its message readson,HUD only (the game's own look)oroff (the game's own look). - F10 (
Keys.RainKey) steps the weather: clear, rain, cartoon rain, snow, then clear again. Only one weather shows at a time: turning one on turns the others off, and if more than one is on at start, snow is kept, then cartoon rain. Its message readsWeather: rain (1),Weather: cartoon rain (1),Weather: snow (1)orWeather: clear. - LightGreen's messages go to the chat box by default instead of the top-left corner; set
General.Notices = Screenfor the old behaviour. Filters.Filter's description no longer lists the filters' names; the dropdown does.- Rain (
Effects.Rain) is easier to see: its streaks are a little wider and more opaque (half opaque up close, from about a third), so it reads as rain rather than haze. Its far drops no longer fall right past the camera, and it draws about 2,800 streaks, from 3,800, with the same look.
Upgrading
Nothing to do. On the first start the new settings are added to BepInEx/config/com.lightgreen.cfg: the [HUD] sizes all start at 100 (the game's size), and snow and cartoon rain start off. Two defaults behave differently from 0.2.0:
- LightGreen's messages now show in the chat box; set
General.Notices = Screento have them top left as before. - F8 now has a middle step, HUD only, between on and off.
Install
With r2modman or the Thunderstore Mod Manager: https://thunderstore.io/c/super-battle-golf/p/lmkHenlo/LightGreen/
By hand: install BepInEx 5, then put LightGreen.dll from lmkHenlo-LightGreen-0.3.0.zip (below) in BepInEx/plugins.
Full changes: v0.2.0...v0.3.0
LightGreen 0.2.0
Added
- Photo filters, on top of the rest of the look: Mono, Mono Red, Noir, Sepia, Cyanotype, Faded Film, Instant Film, Bleach Bypass, Two-Strip, Vivid, Warm, Cool, Teal & Orange, Cross Process, Day for Night, Duotone, Poster, GameBoy, Solarize, Negative, Thermal, Night Vision, Toy Camera and Dreamy, plus Protanopia, Deuteranopia and Tritanopia to check how the game looks with colour blindness. F11 steps through them (Shift+F11 goes back) and saves the choice to
Filters.Filter;Filters.Strengthfades them. The HUD isn't filtered. - Your own
.cubeLUTs as photo filters: put them inBepInEx/config/LightGreen.filters/. The built-in filters are inBepInEx/config/LightGreen.filters.json, which reloads when saved.
Changed
LightGreen.presets.jsonandLightGreen.filters.json: colours are written as[r, g, b](the old{"r": …}form still reads), and//comments and trailing commas are allowed. A mistake is reported in the log with its line and column (or the setting, e.g.filters[0].saturation); while you play, the previous presets or filters stay until it's fixed, and at start the built-in ones are used.
Fixed
LightGreen.presets.jsonis written in full, and editing it works. Earlier versions saved only its version number there, so the built-in presets were always used and edits did nothing. On the first start, the old file is kept asLightGreen.presets.json.v6.bakand replaced with the full presets.
Upgrading
On the first start, LightGreen replaces LightGreen.presets.json with the full presets (the old file is kept as LightGreen.presets.json.v6.bak) and writes LightGreen.filters.json with the built-in filters.
Install
With r2modman or the Thunderstore Mod Manager: https://thunderstore.io/c/super-battle-golf/p/lmkHenlo/LightGreen/
By hand: install BepInEx 5, then put LightGreen.dll from lmkHenlo-LightGreen-0.2.0.zip (below) in BepInEx/plugins.
Full changes: v0.1.1...v0.2.0
LightGreen 0.1.1
Added
- F10 switches the rain off and on, coming back as heavy as it last was (or 1), and saves it to
Effects.Rain(Keys.RainKey). Brightness.DayandBrightness.Nightmake days and nights brighter or darker on every hole, including at the hole's own time of day. The sun or moon, fill light, sky and haze change together; lit windows, lampposts, glowing balls and explosions keep their brightness.
Changed
- Effects can be turned up past 2. Each has its own most, where turning it up further stops making a difference or starts to look broken, flash too hard or cost too much: 4 for most, 3 for
ColorGrading,WaterTuning,IceGlints,BallGlow,LightningandRain, and still 2 forTiltShiftandFootprints.
Fixed
- On Snow holes at Dawn, Morning, Golden hour and Sunset, the undersides of snow and ice no longer turn yellow-green: the time of day changes how bright the fill light is, not its colour.
Known issue
- Editing
LightGreen.presets.jsonhas no effect: this version saves only its version number there and always uses the built-in presets. Fixed in the next release.
Install
With r2modman or the Thunderstore Mod Manager: https://thunderstore.io/c/super-battle-golf/p/lmkHenlo/LightGreen/
By hand: install BepInEx 5, then put LightGreen.dll from lmkHenlo-LightGreen-0.1.1.zip (below) in BepInEx/plugins.
Full changes: v0.1.0...v0.1.1
LightGreen 0.1.0
The first release.
Added
- Time of day: F9 steps through Dawn, Morning, Noon, Golden hour, Sunset, Blue hour and Night, and back to the hole's own; the sun, sky, light, haze and water follow, blending over a few seconds (
TimeOfDay.*). - Colour grading and distance haze for each biome and time of day, with the colours in
LightGreen.presets.json. - Shadows that lean toward the biome's hue, cool in Snow and warm in Desert, with players and their cosmetics left as they are (
Effects.ShadowTint). - Sun highlights on water that follow the time of day, and more sparkle on snow (
Effects.WaterTuning,Effects.IceGlints). - Sharper sun shadows that reach further: at least 4096 px, out to 200 m (
Quality.SunShadowResolution,Quality.SunShadowDistance). - A lens flare toward a low sun, a miniature (tilt-shift) look for the hole overview flyover, and depth of field in photo mode; vignette and chromatic aberration, off by default.
- Ambient occlusion on every course through the game's own HTrace AO, worked out without the grass blades so open grass stays even (
Effects.AmbientOcclusion,Quality.AmbientOcclusionQuality). Shading.Grassto hide the grass blades.- Light from explosions, muzzle flashes and rocket and freeze-bomb trails, gentler with the game's Explosion flashes option off (
Effects.EffectLights). - Light from the Thunderstorm item's lightning strikes (
Effects.Lightning). - Balls glow evenly at night, your own the brightest (
Effects.BallGlow,Effects.BallGlowOwnOnly). - City holes at night: building windows and vehicle lights glow, lampposts light the street, and bright lights bloom (
Effects.CityNight). - Footprints in snow last longer and show as blue-grey dents (
Effects.Footprints,Effects.FootprintSeconds,Effects.FootprintMax). - Optional rain: streaks, splashes and a grey overcast sky, off by default (
Effects.Rain). - F8 switches LightGreen off and on to compare with the game's own look (
Keys.ToggleKey), andGeneral.Enabledturns it off entirely. - The settings file is reloaded within a second of being saved.
Known issue
- Editing
LightGreen.presets.jsonhas no effect: this version saves only its version number there and always uses the built-in presets. Fixed in the next release.
Install
With r2modman or the Thunderstore Mod Manager: https://thunderstore.io/c/super-battle-golf/p/lmkHenlo/LightGreen/
By hand: install BepInEx 5, then put LightGreen.dll from lmkHenlo-LightGreen-0.1.0.zip (below) in BepInEx/plugins.