napalm00 / FS19PlaceAnywhere

Place Anywhere mod for Farming Simulator 19
43 stars 8 forks source link

Landscaping ownership toggle not working in Multiplayer #5

Open 206airmail opened 5 years ago

206airmail commented 5 years ago

Just tested the changes in multiplayer, the ownership toggle is not working for landscaping. It still works for placeables, just not the landscaping. It works fine in Singleplayer, just not Multiplayer. I will attempt to figure out a fix, but no promises.

206airmail commented 5 years ago

Reviewed the code and cannot see any reason why it stops working in multiplayer yet your original code for the placeables works just fine. Any ideas?

Diguelo commented 5 years ago

From what I understand the mod itself can only be implimented server side safely. A number of server only mods have issues on this so the server host can run them and clients have issues.

Diguelo commented 5 years ago

Nice idea, thoughj I am kind of wondering how someone would need to have 8 barns in someone elses back yard when FS19 impliments the "Owners" block on doing things on anothers property?

Diguelo commented 5 years ago

function PlaceAnywhere:loadMap(name)

PlacementScreenController.DISPLACEMENT_COST_PER_M3 = 1; -- Edit this to change the terrain modification cost per cubic meter (game default: 50)

Landscaping.SCULPT_BASE_COST_PER_M3 = 1; -- Edit this to change the landscaping cost per cubic meter (game default: 50)

This in effect is a reason why an issue is likely to happen. Say for instance someone as a client changes this line then tries to change the server side, the original server code is going to take issue with having changes made. Ideally a check system shoudll be made to disable this function to clients and only have it work for the serve host.

Just a thought

206airmail commented 5 years ago

Thing is, the ownership toggle for placeables works perfect, server or client side. Just not when you use it for landscaping, it only seems to work server side then. I.E. I can buy as many barns as I want and put them where ever I want, but I can't open the landscaping tool and go make a mountain somewhere without owning the land if i'm on client side.