Topic: call program
stonerl![]() Topic Opener |
Posted at:
2018-08-24, 02:40 UTC+2.0
How does this work when I want to specify the failure handling? https://wl.widelands.org/documentation/productionsite_program/#call
crashes Wideland.
Edited:
2018-08-24, 08:41 UTC+2.0
![]() ![]() |
hessenfarmer![]() |
Posted at:
2018-08-24, 07:38 UTC+2.0
Have you tried on failure Fail as described in the documentation?
Edited:
2018-08-24, 07:38 UTC+2.0
![]() ![]() |
stonerl![]() Topic Opener |
Posted at:
2018-08-24, 08:41 UTC+2.0
Typo in the first post, sorry. Yes, as described in the documentation; this is the output:
![]() ![]() |
kaputtnik![]() |
Posted at:
2018-08-24, 09:27 UTC+2.0
This part of the documentation is rather old (Year 2012). I guess this part of the documentation wasn't updated when changes to the code were made. FYI: Some parts of the source code documentation does not live in the source code itself, instead it could be found in the subfolder doc/sphinx/source/, like the productionsite_program reference. ![]() ![]() |
hessenfarmer![]() |
Posted at:
2018-08-24, 09:45 UTC+2.0
Please Post the complete lua file. From the error messages it seems you might have an syntax error ![]() ![]() |
stonerl![]() Topic Opener |
Posted at:
2018-08-24, 10:32 UTC+2.0
@hessenfarmer It's the barbarians shipyard init.lua I just a added "on failure Fail" to the call. "call = ship" "call = ship on failure Fail" nothing else changed. ![]() ![]() |
hessenfarmer![]() |
Posted at:
2018-08-24, 10:55 UTC+2.0
Try fail instead of Fail. Futhermore I am not sure whether any spaces around the = are allowed. ![]() ![]() |
stonerl![]() Topic Opener |
Posted at:
2018-09-04, 00:08 UTC+2.0
This worked:
Thanks. ![]() ![]() |