Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark Forecast, enemies spawning on your villages don't remove that village from your control #3890

Closed
Konrad22 opened this issue Jan 25, 2019 · 8 comments
Assignees
Labels
Bug Issues involving unexpected behavior. MP Issues with multiplayer support or bundled multiplayer content. Stable 1.14 Issues specific to the Wesnoth 1.14 maintenance branch.
Milestone

Comments

@Konrad22
Copy link
Contributor

As the title says.

@nemaara nemaara added Enhancement Issues that are requests for new features or changes to existing ones. MP Issues with multiplayer support or bundled multiplayer content. labels Jan 25, 2019
@GregoryLundberg GregoryLundberg added Bug Issues involving unexpected behavior. and removed Enhancement Issues that are requests for new features or changes to existing ones. labels Jan 26, 2019
@soliton-
Copy link
Member

Perhaps a nice way to fix this is to just prevent spawning on villages.

@jostephd
Copy link
Member

jostephd commented Feb 8, 2019

It's easy enough to fix it directly:

diff --git a/data/multiplayer/scenarios/2p_Dark_Forecast.lua b/data/multiplayer/scenarios/2p_Dark_Forecast.lua
index 966ac9b9ed9..c0622885f24 100644
--- a/data/multiplayer/scenarios/2p_Dark_Forecast.lua
+++ b/data/multiplayer/scenarios/2p_Dark_Forecast.lua
@@ -239,6 +239,7 @@ local function place_units(unittypes, x, y)
 		})
 		local dst_x, dst_y = wesnoth.find_vacant_tile(x, y, u)
 		u:to_map(dst_x, dst_y)
+		wesnoth.set_village_owner(dst_x, dst_y, 1)
 	end
 end
 

@gfgtdf
Copy link
Contributor

gfgtdf commented Feb 8, 2019

as i noted on the other simlar issue, fixing it in 2p_Dark_Forecast.lua directly, will casue OOS if people with two differnt versions of that (that ship with wesnoth version) play together. If you want to do this you probably have to copy the whole file, (lets call the copy 2p_Dark_Forecast_new.lua) and then include the new file in 2p_Dark_Forecast.cfg via preproceccor inclusion (instead of dofile)

@jostephd
Copy link
Member

jostephd commented Feb 9, 2019

Could we prevent 1.14.5 Dark Forecast from joining and 1.14.6 Dark Forecast games? Maybe by creating a [resource] require_modification=yes resource as part of the scenario or something?

Is the change acceptable for master?

@gfgtdf
Copy link
Contributor

gfgtdf commented Feb 9, 2019

Could we prevent 1.14.5 Dark Forecast from joining and 1.14.6 Dark Forecast games?

Hmm not sure.

Maybe by creating a [resource] require_modification=yes resource as part of the scenario or something?

I think this only works for addon versions.

Is the change acceptable for master?

Yes.

@jostephd
Copy link
Member

jostephd commented Feb 9, 2019

Yes.

Okay, fixed on master. If preventing units from spawning on villages (as @soliton- suggested) is better, we can change to that instead.

@jostephd jostephd reopened this Feb 9, 2019
@jostephd jostephd added the Stable 1.14 Issues specific to the Wesnoth 1.14 maintenance branch. label Feb 9, 2019
@jostephd
Copy link
Member

jostephd commented Feb 9, 2019

Reopening since it still affects 1.14.

@jostephd
Copy link
Member

jostephd commented Mar 3, 2019

The backport will conflict (in a trivial way) due to 04e840b.

sevu added a commit that referenced this issue Apr 28, 2019
1.14 OOS save backport of 05cd152

Don't merge yet, as it's not tested. Closes #3890.
sevu added a commit that referenced this issue Apr 29, 2019
1.14 OOS save backport of 05cd152

Closes #3890
sevu added a commit that referenced this issue Apr 29, 2019
1.14 OOS save backport of 05cd152

Closes #3890
@sevu sevu closed this as completed Apr 29, 2019
@sevu sevu added this to the 1.14.8 milestone Apr 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues involving unexpected behavior. MP Issues with multiplayer support or bundled multiplayer content. Stable 1.14 Issues specific to the Wesnoth 1.14 maintenance branch.
Projects
None yet
Development

No branches or pull requests

7 participants