Code: Select all
"C:\Program Files\TASpring\spring.exe" aiscript.txt
Code: Select all
"C:\Program Files\TASpring\spring.exe"
Moderator: Moderators
Code: Select all
"C:\Program Files\TASpring\spring.exe" aiscript.txt
Code: Select all
"C:\Program Files\TASpring\spring.exe"
Aha, thanks very much. Thought you needed a / or a +, or something.Alantai Firestar wrote:I'd doOr better yet, create the shortcut asCode: Select all
"C:\Program Files\TASpring\spring.exe" aiscript.txt
And just drag drop the script onto itCode: Select all
"C:\Program Files\TASpring\spring.exe"
Taking control of AI (And the builders in particular) will crash it. It will hit an assertion and in a release mode that's just a crash. The BSOD is weird though.I just got a nasty BSOD when i tried to take control of the AI using .team 1.
Maybe you didn't set the working directory correctly, it usually causes such "file not found" problems with me.hm. With that script i constantly get "map not found" errors, even though it IS present....
You ment global ai script right?When i start the group ai script, if frezzes as soon as i push enter...
I was already planning on storing map info on disk, but the info structures have to be somewhat more mature otherwise I can keep rewriting it.You might want to create a cache routine for your AI zaphod. Might enable you to do preload files for maps to get rid of the startup freeze and at the same time allow savegames to function correctly with the AI.
Sure..., first code it before you can claim it ok. But where did I bring up exception handling actually?Also exception handling. I wont have that problem though as Lua scripts throw exceptions which get caught by luabind and presented on a silver platter.
IHCCOM is the Mospact Commander (Core) and I made a SpringWD.cfg file which looks like this:Log started.
AIConfig: Ordertimeout=80, Debug=off, ForceEnergyRatio=0.800000, ForceMetalRatio=1.300000, DefaultMinDist=6
Running mod xta_se_v061.sdz on map smalldivide.smf
Infomap of 8x8 created - high metal val=169
Build table constructed: 96 unit definitions
No profile for side of IHCCOM
Closing logfile...
Code: Select all
//------------------------------------------------------------------------------------------
// General
//------------------------------------------------------------------------------------------
info
{
CellSize=64
DefaultMinDist=6
BuildOrderTimeout=80
Debug=0
SafeSectorRadius=15
MexSectorRadius=15
Handicap=0 // handicap percentage
ForceEnergyRatio=0.8
ForceMetalRatio=1.3
ihccom="wd_mospact.cfg"
armcom="xta_arm.cfg"
}