World Remover

A utility mod for Green Hell that allows players to select, remove, and manage unwanted world objects. Removed objects can be persisted and automatically removed again when loading a save


0 Likes

311 Downloads

World Remover

A powerful utility mod for Green Hell that allows players to select, remove, and manage unwanted world objects. Removed objects are automatically persisted and destroyed again when loading a save.

Version: 1.0.3
License: GNU AGPLv3
Author: Phan Tri Dung
Game Version: 2.8.1+


Features

✅ Interactive Object Selection - Aim at any visible object and lock it for detailed inspection
✅ Hierarchical Editing - Navigate parent/child relationships to remove exactly what you want
✅ Persistence - Removed objects stay removed across save loads
✅ Dual Targeting - Works with both colliders and renderers (visible objects without physics)
✅ Safety Checks - Prevents accidenta l removal of critical objects
✅ Performance Optimized - Expensive operations only run when F6 mode is active
✅ Real-time Visualization - See object bounds before destruction
✅ Console Commands - Full CLI support for scripting and automation


Quickstart

Enable Remover Mode

  • Press F6 to toggle remover mode ON/OFF
  • The HUD will display current mode status

Select & Remove Objects

  1. Press Middle Mouse Button to capture and lock a target
  2. Use PageUp/PageDown to move through the object hierarchy
  3. Press Delete to destroy the locked object
  4. The object is saved and will be destroyed on every world load

Manage Removals

  • F8 - Toggle target bounds visualization (green = safe, red = unsafe)
  • F9 - Reload saved removal data and reapply to world
  • F10 - Show/hide the HUD menu
  • Backspace - Cancel current selection

Console Commands

Access these via the in-game console (press Tilde key):

| Command | Usage | Description | |---------|-------|-------------| | wr mode | wr mode on\|off\|toggle | Enable/disable remover mode | | wr capture | wr capture | Capture the current camera target | | wr up / wr down | wr up | Navigate hierarchy up/down | | wr select | wr select <level> | Jump to specific hierarchy level | | wr selected | wr selected | Show details of locked object | | wr remove | wr remove | Destroy the locked object | | wr list | wr list | Show all removal records | | wr undo | wr undo | Remove the last saved removal | | wr restore | wr restore <index> | Restore a specific object by index | | wr clear | wr clear | Clear all removal records | | wr apply | wr apply | Apply all records to current world | | wr reload | wr reload | Reload removal data file and apply | | wr debug | wr debug on\|off | Toggle bound visualization | | wr menu | wr menu on\|off\|toggle | Show/hide HUD | | wr datapath | wr datapath | Print data file location | | wr help | wr help | Display this help |


How It Works

Selection & Targeting

  • Collider Raycast - Accurate physics-based targeting (fast path)
  • Renderer Fallback - Allows selection of visible objects without colliders
  • Hierarchy Navigation - Walk up/down parent-child relationships

Safety System

The mod refuses to destroy objects if:

  • They belong to or contain the Player hierarchy
  • They belong to or contain the Camera hierarchy
  • They contain terrain or grass systems
  • They have too many components (likely world chunks)

Persistence

Removed objects are saved to WorldRemoverData/removed_objects.txt with:

  • Object name and position
  • Probe position (where you clicked)
  • Target kind (Collider or Renderer)
  • Hierarchy path for robust re-matching

The watcher system checks every 2.5 seconds (only when F6 mode is ON) for newly loaded objects matching saved records and destroys them automatically.


Performance Optimization

The mod is heavily optimized to minimize CPU/GPU overhead:

  • ✅ Mode-Dependent Operations - Expensive scanning only runs when F6 mode is active
  • ✅ Renderer Caching - Scene renderers cached with 5-second refresh (only in active mode)
  • ✅ Frame Spreading - Record application spread across frames (8 per frame)
  • ✅ Spatial Checks - Watcher uses sphere queries instead of full scene scans
  • ✅ Lazy Validation - Safety checks deferred until destruction is attempted

Before using the mod:

  • Turn off F6 mode when not actively removing objects
  • Use wr reload or restart the save to re-apply removals to newly loaded chunks

Data Files

Location

{GameRoot}/WorldRemoverData/removed_objects.txt

Format

Name|ParentName|HierarchyKey|TargetKind|X|Y|Z|ProbeX|ProbeY|ProbeZ

Each line represents one removed object with:

  • Name - GameObject name
  • ParentName - Direct parent name
  • HierarchyKey - Path up to 4 levels (for robust matching)
  • TargetKind - Collider or Renderer
  • X,Y,Z - Object position
  • ProbeX,ProbeY,ProbeZ - Hit position (for proximity search)

The format is backwards-compatible with V1-V4 records.


Troubleshooting

Q: Objects come back after reload

  • The removal wasn't saved. Press Delete to confirm destruction appears in the log.
  • Check that WorldRemoverData/removed_objects.txt exists and contains records.
  • Try wr reload to manually re-apply records.

Q: Can't remove a specific object

  • The object may have too many components or be part of world terrain.
  • The safety system will log the reason in the console.
  • Try selecting a child object instead using PageDown.

Q: Lag when F6 mode is ON

  • This is normal during the initial scan. Use F10 to hide the HUD if not needed.
  • Lag only occurs on scene load or after wr reload — normal gameplay should be smooth.
  • The watcher only checks nearby objects, not the entire scene.

Q: Data file location is different

  • Legacy mod data is auto-migrated from Documents/GreenHellModding/WorldRemover/.
  • The new location is inside the game directory for easier portability.

Technical Details

Key Constants

  • Ray Distance: 25m (selection range)
  • Match Tolerance: 0.5m (position matching threshold)
  • Watcher Interval: 2.5s (check frequency)
  • Probe Radius: 4m (persistence search radius)
  • Cache Lifetime: 5s (renderer snapshot refresh when mode is ON)

Component Limits (Safety)

  • Max 12 renderers
  • Max 24 colliders
  • Max 100 transforms

Objects exceeding these limits are assumed to be world chunks and cannot be destroyed.


License

GNU AGPLv3 - Free for personal use, modification, and distribution (with attribution).

For full license details, see the LICENSE file.


Support

For bug reports, feature requests, or questions:

  • Visit the Green Hell Modding community
  • Check the mod's update URL: https://www.greenhellmodding.com/api/v1/mods/world-remover/version.txt

Changelog

V1.0.3 (Current)

  • ✅ Optimized mode-dependent operations (F6 toggle)
  • ✅ Renderer cache only updates when mode is active
  • ✅ Watcher coroutine skips processing when F6 is off
  • ✅ Performance improvements for lag-free gameplay

V1.0.2

  • Fixed persistence matching for streamed scenery
  • Improved renderer fallback selection

V1.0.1

  • Initial stable release
  • Full hierarchy navigation support
  • Persistence system implemented

Enjoy a cleaner world! 🌍

Description last changed on 2026-08-15