Topic: call program
stonerl Topic Opener |
Posted at: 2018-08-24, 01:40
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, 07:41
Top Quote |
hessenfarmer |
Posted at: 2018-08-24, 06:38
Have you tried on failure Fail as described in the documentation? Edited: 2018-08-24, 06:38
Top Quote |
stonerl Topic Opener |
Posted at: 2018-08-24, 07:41
Typo in the first post, sorry. Yes, as described in the documentation; this is the output:
Top Quote |
kaputtnik |
Posted at: 2018-08-24, 08:27
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. Fight simulator for Widelands: |
hessenfarmer |
Posted at: 2018-08-24, 08:45
Please Post the complete lua file. From the error messages it seems you might have an syntax error Top Quote |
stonerl Topic Opener |
Posted at: 2018-08-24, 09:32
@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. Top Quote |
hessenfarmer |
Posted at: 2018-08-24, 09:55
Try fail instead of Fail. Futhermore I am not sure whether any spaces around the = are allowed. Top Quote |
stonerl Topic Opener |
Posted at: 2018-09-03, 23:08
This worked:
Thanks. Top Quote |