Opened 2 years ago
Last modified 16 months ago
#6449 new enhancement
Add flag that will terminate 0ad after map loads
Reported by: | Andy Alt | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Backlog |
Component: | Core engine | Keywords: | |
Cc: | Patch: |
Description
When fixing or checking maps, it would be useful if 0ad terminated itself after the map is loaded.. exiting with true if no entity loading errors occur, false otherwise (or something along those lines).
For example, when using a script like this:
pyrogenesis -autostart=scenarios/Asian\ Campaign \ -quickstart -autostart-disable-replay \ -autostart-ai=1:petra -autostart-aidiff=1:5 \ -autostart-nonvisual
If 0ad returned true on entity errors (or other), one could make a script that checks every map.
I know there's that checkrefs.py script in source/tools/entity, but that didn't show any problems when I tried it with '-m community-maps-2-git'. Maybe I used it wrong somehow...
Change History (5)
comment:1 by , 2 years ago
comment:2 by , 2 years ago
Yes, I did. It's working now. I'm not sure what I was doing wrong before. (I was using -x before too).
Well, the svn version is working, but not the script in 0ad-0.0.25b-alpha/source/tools/entity
.
[andy@prometheus entity]$ ./checkrefs.pl -h ./checkrefs.pl: line 1: use: command not found ./checkrefs.pl: line 2: use: command not found ./checkrefs.pl: line 3: use: command not found ./checkrefs.pl: line 4: use: command not found ./checkrefs.pl: line 5: use: command not found ./checkrefs.pl: line 6: use: command not found ./checkrefs.pl: line 7: syntax error near unexpected token `(' ./checkrefs.pl: line 7: `use Getopt::Long qw(GetOptions);'
comment:3 by , 2 years ago
The options are a bit different for the perl script. IIRC they were in the readme. :)
Did you run checkrefs with the -x flag? You can run checkrefs -h to see all options.