wesnoth program execution result
Moderator: Forum Moderators
wesnoth program execution result
Hello,
I'd like to know what kind of information wesnoth returns as result of execution -- eg error codes. Also, is there any data about game outcome?
Pointer welcome.
I'd like to know what kind of information wesnoth returns as result of execution -- eg error codes. Also, is there any data about game outcome?
Pointer welcome.
Denis
life is strange
various stuff about BfW (rules, stats, alternatives) and WML (parser, semantic schema, evolution)
life is strange
various stuff about BfW (rules, stats, alternatives) and WML (parser, semantic schema, evolution)
Re: wesnoth program execution result
From what I gather from a quick look at the responsible functions, 2 is returned if the arguments are malformed and 0 in all other cases.
Re: wesnoth program execution result
Thank you.
Is there any feedback about game results (that would help me, if only victory/defeat). Maybe a log file (structured like WML )?
Is there any feedback about game results (that would help me, if only victory/defeat). Maybe a log file (structured like WML )?
Denis
life is strange
various stuff about BfW (rules, stats, alternatives) and WML (parser, semantic schema, evolution)
life is strange
various stuff about BfW (rules, stats, alternatives) and WML (parser, semantic schema, evolution)
Re: wesnoth program execution result
When started with --nogui, wesnoth should do that. Unfortunately, right now (on 1.7.6+svn) it causes an exception to be thrown and the game to exit. Your version might still work though.
Re: wesnoth program execution result
Do you mean a log file? I tried on 1.6.5. Searched both the main and user dirs trees and couldn't find any -- unless they're not named log*.AI wrote:When started with --nogui, wesnoth should do that. Unfortunately, right now (on 1.7.6+svn) it causes an exception to be thrown and the game to exit. Your version might still work though.
The command line was:
Code: Select all
usr/bin/wesnoth -- no-delay -m --no-gui --exit-at-end --scenario=/home/spir/.wesnoth1.6/data/campaigns/1p_trial.cfg
Denis
life is strange
various stuff about BfW (rules, stats, alternatives) and WML (parser, semantic schema, evolution)
life is strange
various stuff about BfW (rules, stats, alternatives) and WML (parser, semantic schema, evolution)
Re: wesnoth program execution result
Try
info will be printed to stdout and stderr.
If it's supposed to be played by a human though, that won't help.
Code: Select all
/usr/bin/wesnoth --nogui --multiplayer --scenario=TRIAL_SCENARIO_ID_NOT_FILENAME --controller1=ai
If it's supposed to be played by a human though, that won't help.
Re: wesnoth program execution result
Denis
life is strange
various stuff about BfW (rules, stats, alternatives) and WML (parser, semantic schema, evolution)
life is strange
various stuff about BfW (rules, stats, alternatives) and WML (parser, semantic schema, evolution)