Skip to content
This repository was archived by the owner on Jun 6, 2025. It is now read-only.

Conversation

@Quezler
Copy link

@Quezler Quezler commented May 23, 2023

During testing i prefer/need some normal terrain whilst i also really like how this mod automatically runs /cheat for me.

Therefore please add an official option that toggles between lab tiles and normal terrain, this pull request does it like this:
Screenshot 2023-05-23 at 11 52 54

Naturally in my local copy i've already hardcoded surface.generate_with_lab_tiles to false, but real support is better.

@raiguard
Copy link
Owner

Why not just disable override debug world?

@Quezler
Copy link
Author

Quezler commented May 23, 2023

because then it doesn't give me a preplaced substation & power source, as well as no cheat items nor infinity mode:
Screenshot 2023-05-23 at 12 00 52

Copy link
Owner

@raiguard raiguard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments, and one more thing: The logic to place the accumulator and substation needs to make sure that the entities get placed, since it is no longer guaranteed that there will be solid ground in the top-left.

--- @param surface LuaSurface
local function setup_surface(surface)
surface.generate_with_lab_tiles = true
surface.generate_with_lab_tiles = settings.global["ee-generate-debug-world-with-lab-tiles"].value --[[@as boolean]]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If lab tiles are disabled, then the surface doesn't need to be cleared, and I would also keep the clouds turned on.

ee-default-infinity-filters=Infinity filters that will be applied to your inventory when you enter the editor for the first time.\n[color=255,57,48]Change this from the main menu, otherwise it will not affect new games![/color]
ee-infinity-pipe-crafter-snapping=When you place an infinity pipe directly next to a crafter fluid input, it will automatically set its filter to provide that fluid.
ee-inventory-sync=When in cheat mode, your inventory and cursor stack will be synced between the editor and normal play.
ee-override-debug-world=Treat the debug world like the testing scenario: fill with lab tiles, enable cheat mode, and give testing items. The debug world can be accessed by control + clicking the "single player" or "new game" buttons.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be updated to mention the new option.

@raiguard raiguard added the pending More information is requested. label Dec 4, 2024
@Quezler
Copy link
Author

Quezler commented Mar 6, 2025

that should take care of everything 🤔

why is setup_surface calling surface.clear() anyways? lab worlds already have nothing in it and the function only seems to trigger for fresh worlds which by that point can't really have anything yet anyways right?

convenient shortcut to call on_surface_cleared() i suppose but it feels a little odd.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

pending More information is requested.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants