Page 1 of 1
Creating minefield with editor raises error message
Posted: Wed Jan 24, 2024 5:47 pm
by Quark73
Hi,
when a mine field is created by using the editor a message as below pops up:

- Mineplacement.png (6.77 KiB) Viewed 981 times
The number in the message is always N/2+1. With N = number of mines to add. I tested it so far with 10, 20, 30 and 9. No reason is shown.
EDIT:
"Remove mines from designated area" doesn't work either. No means: no mines get removed, no error message.
Re: Creating minefield with editor raises error message
Posted: Sat Aug 17, 2024 7:27 am
by Quark73
still an issue on 1405
Re: Creating minefield with editor raises error message
Posted: Wed Mar 05, 2025 9:35 am
by Quark73
Bump, neither place nor remove mines work.
Re: Creating minefield with editor raises error message
Posted: Wed Mar 05, 2025 9:39 pm
by Raptorx7_slith
I'm not able to reproduce either of these issues, what kind of mines are you trying to place?
Re: Creating minefield with editor raises error message
Posted: Thu Mar 06, 2025 11:41 am
by Quark73
- I just defined an area Ctrl + RMB define Area Rectangle
- Editor/Minefields/create minefield in designated area
- chose the default selected mine from dialogue
- How many: 20 and press ADD button
It places always n/2 +1 mines

- Bild_2025-03-06_123247607.png (458.38 KiB) Viewed 777 times
Remove mines doesn't do anything.
Re: Creating minefield with editor raises error message
Posted: Thu Mar 06, 2025 10:10 pm
by Raptorx7_slith
Logged as 0016579
Unfortunately I can't replicate your inability to remove the mines but I can replicate the inputted amount not being placed
Re: Creating minefield with editor raises error message
Posted: Sun Mar 09, 2025 12:16 pm
by Quark73
I've made a short video.
Re: Creating minefield with editor raises error message
Posted: Mon Mar 10, 2025 8:46 pm
by Dimitris
IIRC we deliberately set the logic to "TRY X-times to lay mines" rather than "eternally loop until X mines are laid".
The idea was that, if the location was for some reason particularly unsuitable (e.g. wrong depth), following the latter logic could lock up the game entirely.
Re: Creating minefield with editor raises error message
Posted: Tue Mar 11, 2025 5:07 pm
by Quark73
I tried various mines in various numbers in different shapes of minefields. It always places n/2 + 1 mines. More than unsuitable condition for placement this looks to me like a problem with the loop increment or the loop itself.
Re: Creating minefield with editor raises error message
Posted: Sun Apr 13, 2025 8:49 pm
by Mgellis
I can create minefields, but I cannot remove them. I've attached a scenario file.
Don't know if I'm just doing something wrong, but I think I'm following the instructions properly...create or highlight reference points, go to editor/minefields menu, click "remove minefield"...nothing happens.
Thanks for the help.