Age | Commit message (Collapse) | Author |
|
operations for the current tick
|
|
100.000 opcodes for free
|
|
|
|
the AI filenames, so record it differently. Also removes some of the hackery to get the tar's filename
|
|
|
|
allocation. (monoid)
|
|
|
|
|
|
their allowed amount of operations by subtracting the amount they went over "budget" from the budget for the next "tick".
|
|
the ifndef/define/endif lines.
|
|
also getting settings and such from info.nut, would not be interrupted after a while causing OpenTTD to seem to not respond
|
|
some headers
|
|
for the forseeable future
|
|
already happened.
|
|
definitions
|
|
|
|
if a header require a header make it include that header
|
|
|
|
for eg. 64bit systems, don't use them
|
|
left untouched and then freed. Make sure this doesn't happen by ensuring it starts out as NULL instead of 'garbage'.
|
|
savegames by crashing them when they tried
|
|
|
|
|
|
which were sometimes missing and sometimes just typos
|
|
code from the global scope
|
|
|
|
stack were leaked
|
|
|
|
/ Sleep instead of just printing an error message in the AI Debug Window
|
|
parameter allow every squirrel type and convert to a string
|
|
non-ASCII strings were received from OpenTTD failed. The number of bytes in an UTF-8 encoded string isn't always the same as the number of characters in the decoded (into wchars) string
|
|
|
|
can't crash OpenTTD
|
|
called (indirectly) via call/acall/pcall OpenTTD crashed. Fix this by disallowing AIs to be suspended while called via call/acall/pcall.
IMPORTANT FOR AI WRITERS: AIs can no longer call any DoCommand functions (change anything, build vehicles, etc.) in a function called (indirectly) via call/acall/pcall. Where possible, please rewrite your code so it doesn't use call/acall/pcall
|
|
|
|
for months. All attempts to do another workaround failed.
|
|
initialize or load
|
|
|
|
When an AI returns false, it'll never be chosen as random AI.
|
|
info.nut. If AIs implement it, that url is shown when the AI crashes and also in the AI selection window.
|
|
to their own file.
|
|
classes ScriptScanner/ScriptFileInfo.
|
|
|
|
to the API, not strings passed from the API to squirrel.
|
|
|
|
calls typechecking as stated in squirrel docs
|
|
caught it or not.
|
|
available in-game.
|
|
single opcode method of doing lots of the same thing. This should resolve most of the hiccups caused by AIs.
|
|
references (by enabling the GC).
|