Error Messages When Fritzbot-ET Reads The Aiscript

From Bots-United Wiki

Jump to: navigation, search

Contents

[hide]

Error Messages: When Fritzbot ET Reads The Aiscript

Normal Messages

When ET loads the mod and the map, messages start appearing in the console,
related to the map script and then for the Fritzbot ET mod;

======================

Loading Fritzbot (ET) A.I.

======================

When Fritzbot ET runs and is about to begin the warmup it searches the
3 basic waypointing files .bots, .nav and .aiscript in that order.
As it does so it checks for errors. Fritzbot prints messages about the files
and any errors encountered to the console, doing the .bots and then the .nav.
It then finishes by processing the .aiscript.
If it loads the mapname.aiscript without errors just the following 3 or 4 lines
will appear in the console:

Reading bots/scripts/mapname.aiscript (length: .... )
A.I. script file loaded and running.....
Found N ACTION tests in script file
Found a DEFAULT test in script file! Executing.......

The AI script file must be located in the directory; bots/scripts/
and be of filetype; .aiscript

Aiscript Generated Error Messages

Should there be a error in the aiscript file or the file be corrupt or missing
then some of the following messages will appear...


CONSOLE MESSAGE:1

POSSIBLE CAUSES:

Error! Script file is empty!!

- Syntax error that aborts the aiscript being read.
- File Read Access is disabled. File locked by another program.
- File is empty.

Error (line #): expected 'bot_SightDist' found "text">
EVERY script MUST start with a 'bot_SightDist' cmd!

- line with bot_sightdist is missing from the aiscript file.
- bot_sightdist is not first executable line in the aiscript.
- A prior comment is being parsed as code because:
... // is incorrectly typed or missing from the start of the line.

Error (line #): expected 'spawnflag_is_priority' found "text"
EVERY script MUST have a 'spawnflag_is_priority' after the 'bot_SightDist' cmd!

- line with spawnflag_is_priority is missing from the aiscript file.
- spawnflag_is_priority is not the second executable line in the aiscript.
- A prior comment is being parsed as code because:
... // is incorrectly typed or missing from the start of the line.

Error (line #): the value for 'spawnflag_is_priority' is invalid!
SHOULD be 1 or 0, defaulting to 0!

- Value is missing after spawnflag_is_priority.
- Value is out of range.
- you typed a letter O not a zero 0 after the spawnflag_is_priority.
- You typed lower case L (l) instead of digit one (1).
- The character following the digit is not considered as whitespace.

Error (line #): expected 'cmdpost_is_priority' found "text"
EVERY script MUST have a 'cmdpost_is_priority' after the 'spawnflag_is_priority' cmd!

- Line with cmdpost_is_priority is missing from the aiscript file.
- cmdpost_is_priority is not the third executable line in the aiscript.
- A prior comment is being parsed as code because:
... // is incorrectly typed or missing from the start of the line.

Error (line #): the value for 'cmdpost_is_priority' is invalid!
SHOULD be 1 or 0, defaulting to 0!

- Value is missing after cmdpost_is_priority.
- Value is out of range.
- you typed a letter O not a zero 0.
after the cmdpost_is_priority.
- You typed lower case L (l) instead of digit one (1).
- The character following the digit is not considered as whitespace.

Error (line #): expected 'construct_is_priority' found "text"
EVERY script MUST have a 'construct_is_priority' after the 'cmdpost_is_priority' cmd!

- line with construct_is_priority is missing from the aiscript file.
- construct_is_priority is not the fourth executable line in the aiscript.
- A prior comment is being parsed as code because:
... // is incorrectly typed or missing from the start of the line.

Error (line #): the value for 'construct_is_priority' is invalid!
SHOULD be 1 or 0, defaulting to 0!

- Value is missing after construct_is_priority.
- Value is out of range.
- you typed a letter O not a zero 0.
after the construct_is_priority.
- You typed lower case L (l) instead of digit one (1).
- The character following the digit is not considered as whitespace.

Error (line #): expected 'map_has_vehicle' found "text"
EVERY script MUST have a 'map_has_vehicle' after the 'construct_is_priority' cmd!

- line with map_has_vehicle is missing from the aiscript file.
- map_has_vehicle is not the fifth executable line in the aiscript.
- A prior comment is being parsed as code because:
... // is incorrectly typed or missing from the start of the line.

Error (line #): the value for 'map_has_vehicle' is invalid!
SHOULD be a value between 0 and 2, defaulting to 0!

- Value is missing after map_has_vehicle.
- Value is out of range.
- you typed a letter O not a zero 0 after the map_has_vehicle.
- You typed lower case L (l) instead of digit one (1).
- The character following the digit is not considered as whitespace.

Error (line #): expected 'vehicle_entity_number' found "text"
EVERY script MUST have a 'vehicle_entity_number' if 'map_has_vehicle' is set to a value greater then 0!

- line with vehicle_entity_number is missing from the aiscript file.
- vehicle_entity_number is not the first executable line after map_has_vehicle 1.
- A prior comment is being parsed as code because:
... // is incorrectly typed or missing from the start of the line.

Error (line #): the value for 'vehicle_entity_number' is invalid!
Resetting 'map_has_vehicle' to 0!

- Value is missing after vehicle_entity_number.
- Value is out of range.
- you typed a letter O not a zero 0 after the vehicle_entity_number.
- You typed lower case L (l) instead of digit one (1).
- The character following the digit is not considered as whitespace.

Error (line #): expected 'vehicle_team_owner' found "text"
EVERY script MUST have a 'vehicle_team_owner' if 'map_has_vehicle' is set to any value other then 0!

- vehicle_team_owner is not the first executable line after vehicle_entity_number and map_has_vehicle 1.
- A prior comment is being parsed as code because:
... // is incorrectly typed or missing from the start of the line.

Error (line #): the value for 'vehicle_team_owner' is invalid!
Resetting 'map_has_vehicle' to 0!

- Value is out of range for the script_mover entity number.
vehicle_team_owner

Error: no '#EOF' command found or file too long!!!
Read the manual for more info!

- #EOF must be on a newline by itself at the end of the file.

Error: found more then 1 "DEFAULT" command in the aiscript!
There is only 1 allowed!!

- The default action test must be the first action test block after the 5 or 7 line
...priority /vehicle defines header.
- A comment may be broken by a newline resulting in the word default being at the start of the next line (Ok yeah it probably never happens, but now i get to point out how the world's global warming is a result of all the people who get paid by the word making the world's electricity companies have to build new coal-fired generating stations, that lead to global warming ultimately turning the place into water world (lousy movie) and dooming us all because some people just don't know where the period key is on their computer keyboards and filling the world's dynamic rams with power hungry drivel or spam like this ;)

Error (line #): ACTION # does not exist on this map!!

- Verify number after keyword action in aiscript exists in waypoints (nav).

Error (line #): expected '{' found "text"

- Action tests must start with an open brace after the line with action N, (where N is the number of the action triggering this code block). Even if only one line of code is required it must be after the opening brace and before the closing brace of the action test.
- Verify that the first brace if a opening brace { not a closing one }. - Check that the opening brace is not commented out (i.e. //{ ).

Error: no closing brace in script file for ACTION # or file too long!!!

- Verify that the brace at the end of the block is a closing brace } not a opening one {.
- Check that the closing brace is not commented out (i.e. //} ).
- Verify that the action test block for ACTION # does not exceed 64 keyword limit for a single test

Error (line #): too many conditional tests on same line! Only 2 allowed!

- conditional statements may use a single conditional keyword, or 2 conditional keywords separated by a and or a or. Conditional statements can not be cascaded or nested.

Error (line #): conditional action value N isn't a valid action!!

- Nummeric value following one of the conditional keywords is not a script-able type of action or does not correspond to the type needed by the condition.
- NOT all actions are script-able. Use Hobbits waypointing aiscript editor to verify aiscript with the nav file.
- Message applies to the following keywords;
if_action_true
if_action_false
if_fda_owner_allies
if_fda_owner_axis

Error (line #): conditional action value N isn't a ACTION_STEAL!!

- Message applies to the following keywords;
if_obj_home_true
if_obj_home_false

Error (line #): conditional action value N isn't a ACTION_CONSTRUCT!!

- The error occurs because value N links to an action that is neither action_construct_major (19) nor action_construct_major (2) type.
- Message applies to the following keywords;
if_construct_built_true
if_construct_built_false

Error (line #): conditional action value N isn't a ACTION_CMDPOST!!

- The error occurs because value N links to an action that is not an action_cmdpost (22) type.
- Message applies to the following keywords;
if_allied_cp_built_true
if_allied_cp_built_false
if_axis_cp_built_true
if_axis_cp_built_false

Error (line #): WAIT value N isn't a valid wait value. Must be between 1 and 500 seconds!

- Value is out of range 1..500.
- Did you type a lowercase L instead of the digit 1?

Error (line #): node value N for node_connect not valid, or missing!

- Statement should be of the form node_connect N1 N2 true/false. N1 and N2 must be numeric values matching one of the nodes respectively in the .nav file.

Error (line #): node_connect is missing a trailing 'true' or 'false' statement!

- Statement should be of the form node_connect N1 N2 true/false. The word following the N1, N2 values is misspelled or missing.

Error (line #): node value N for node_disconnect not valid, or missing!

- Statement should be of the form node_disconnect N1 N2 true/false. N1 and N2 must be numeric values matching one of the nodes respectively in the .nav file.
- One of the 2 values after "node_disconnect" is out of range for node IDs.

Error (line #): node_disconnect is missing a trailing 'true' or 'false' statement!

- Statement should be of the form node_disconnect N1 N2 true/false. N1 and N2 must be numeric values matching one of the nodes respectively in the .nav file.
- The word at the end of the line with "node_disconnect" is misspelled, wrong or missing.

Error (line #): value N for openNodeGrpToTeam isn't a valid node group!

- Statement should be of the form openNodeGrpToTeam NG NT true/false. NG must be a numeric value matching one of the nodes groups in the .nav file. NT must be equal to 0, 1 or 2.
- The value after "opennodegrptoteam" is out of range for node groups.

Error (line #): openNodeGrpToTeam is missing a team parameter!

- The second value after "opennodegrptoteam" is out of the range of 0..2 for node teams.

Error (line #): set_vehicle_owner has an invalid string for the value "team"!
.Should be "axis" or "allies"!

- The word following "set_vehicle_owner" is misspelled or wrong.

Error (line #): set_map_has_vehicle has an invalid string for it's value!
.Should be "true" or "false"!

- The word following "set_map_has_vehicle" is misspelled or wrong.

Error (line #): value N for set_vehicle_number isn't valid!
Use the entity number of the intended SCRIPT_MOVER!

- The value after "set_vehicle_number" does not refer to an entity of a script mover.

Error (line #): value N for kill_action isn't valid!
Must be a value between 0 and N

- The value after "kill_action" is out of range for the action IDs in the nav.

Error (line #): value N for resetnodeflag isn't a valid node group!

- The value after "resetnodeflag" is out of range for node IDs.

Error (line #): value N for activateAction isn't a valid action!

- The value after "activateaction" is out of range for action IDs.

Error (line #): value N for deactivateAction isn't a valid action!

- The value after "deactivateaction" is out of range for action IDs.

Error (line #): value N for activateAction_Group isn't a valid action!

- The value after "activateaction_group" is out of range for action groups.

Error (line #): expected a valid keyword, found "text"
Read the manual for a list of valid keywords!

- A keyword is misspelled.
- A comment is being parsed as code because the prefix // is mistyped.
- A comment has a carriage return in the middle placing part of it on the next line with out another //.
- Aiscript file is partly corrupt or contains a garbage character

WARNING: No script file found for this map!
The bot will not function properly without it!

- Aiscript file is missing.
- Aiscript file is in wrong directory (\fritzbot\bots\script)
- Aiscript filename does not match maps bsp filename.
- Aiscript filetype is incorrect. (Should be .aiscript)
- If using an unpacked file verify that /sv_pure is 0.


1(where # is replaced by the line number in the aiscript,
N is replaced by a numeric value and "text" by some text in the aiscript.)


No specific error messages for the following keywords;
if_obj_captured
and
or
deactivateaction_group

Other Errors Not Due To The Aiscript

Permanent link to this page