Topic: Copy Paste Script
Gilb![]() Topic Opener |
Posted at: 2021-02-14, 19:13
This is the copy paste script i use to copy a map area x times to the right. It makes it much easier to create the same landmass and resources and for an arbitrary amount of players. Adjust the coordinates to your own case and give it some time for bigger maps. The editor might look frozen but it will work. Place in your main (widelands.exe) folder and open with a text editor. ![]() ![]() |
Gilb![]() Topic Opener |
Posted at: 2021-02-14, 19:17
Hm i could not attach the *.lua file, so you have to create it your own
Edited: 2021-02-15, 17:11
![]() ![]() |
kaputtnik![]() |
Posted at: 2021-02-15, 15:09
Edit: Attaching lua scripts do work, see attachment. Does your the file have the extension Nice script You might want to get the maps width and height automatically and make a check if this doesn't fit:
Edited: 2021-02-15, 15:10
Fight simulator for Widelands: ![]() ![]() |
Gilb![]() Topic Opener |
Posted at: 2021-02-15, 17:09
Yes, it's a .lua file. Error was something like "...looks like code, but we think it is text." I thought about map.width and so on too, but guess i made a mistake implementing it, so i just stood with the numbers. If you want to copy in a grid you need 2 runs with different area too. ![]() ![]() |