AI inactive after loading

AI inactive after loading

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
Codex
Posts: 13
Joined: 13 Aug 2006, 14:17

AI inactive after loading

Post by Codex »

Hi there,

I'm new to Spring but I'm trying to learn ;-)
I could get most things running by reading the forums, but there are still some things I cant get working:

- I started a singleplayer game with 1 NTAI bot and the mod AbsAnn2.11
- I played for a while then saved
- Later I started TAS with the spring.exe and chose Load test.sdf
- The map and my units loaded up fine, alos the enemy units, but now the enemy is inactive: it still shoots back wehn i attack it, but it does not move its units and does not buiold anything...

How can I restart / reset / activate the enemy AI?
This is very important for me because TAS happens to crash a lot and if I cant save/load properly I cant really play... /which would be terrible because I love TAS a lot!!!)

Thanx
Codex
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

First fo all

Svae/load game isnt fully supported and you shouldnt use it.

Secondly, the version fo NTai distributed with spring is XE7.5, whcih si months old. Since its release it has morphed from an unstable buggy build of around 5,000 lines of code to XE9RC19 which is a near 100% stable build of 12,000 lines of code mostly completely rewritten, and another version around 20,000 lines of code RC22 is due very soon.

http://www.darkstars.co.uk You'll need to update NTai.
Codex
Posts: 13
Joined: 13 Aug 2006, 14:17

Post by Codex »

Hi there,

thanx for the reply. I already use the newest NTAI XE9RC...

The problem really is: I love to play big maps, big battles and so forth - however even if TAS would not crash I couldn't spend like 5 hours playing... so saving and loading is essential for me (and everyone that loves single-player skirmishes I think)

I really hope save / load will be supported again soon...

Any other workarounds / tips on using the unsupported save and load?

Thanx a lot
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

It was never really supported properly to begin with.

I think you'll find AI gams get shorter as you get better to the point where the largest game is 30 mins at most.
User avatar
VonGratz
Posts: 471
Joined: 03 May 2005, 05:25

Re: AI inactive after loading

Post by VonGratz »

Codex wrote: - Later I started TAS with the spring.exe and chose Load test.sdf
- The map and my units loaded up fine, alos the enemy units, but now the enemy is inactive: it still shoots back wehn i attack it, but it does not move its units and does not buiold anything..
For an off-line battle you must to d/l SpringSP. :idea:
http://www.fileuniverse.com/?p=showitem&ID=2590
VonGratz :wink:
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

You should already ahve sprign SP if you downloaded the latest NTai. NTai relies on script.txt for some data and laoding it through spring.exe can directly affect it's operation badly. It also makes any logs it generates log bad data it's gained through parsing script.txt
Codex
Posts: 13
Joined: 13 Aug 2006, 14:17

Post by Codex »

Hmm... ok I see

So is there any way to load a game without using the spring.exe?
I usually use the SinglePlayer GUI to start new SP Skirmishes, but loading did only work withing the spring.exe GUI.

Is there a console command to load the game maybe? I tried
.load test.sdf but it doesn't work... (someone in the forums wrote that it would work that way...)

Thanx
Codex

P.S. I know this is unsupported but I really try to find a way using save and load, because TAS crashes to often for me (like every 20-40mins or so). So its luck if I can finish a game - believe me it starts to drive me mad if I just build up a base the battle starts to get hot and then *clack*
CTD aaarrggghhh
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I havent seen any crash reports from you on that...

For one are you using my groupAIs?? I've discovered since XE9RC19 that metal AI and ETA ai have crash bugs I've since fixed in rc22.

I did a largeish svn commit a few hours ago after that last post I made.
Codex
Posts: 13
Joined: 13 Aug 2006, 14:17

Post by Codex »

Well that might explain things...I use your metal AI a lot.

Looking forward to your rc22 then!!


Codex
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

The NTai recently commited to svn is going to play at XTA pretty much the same as the actual release, expt metatags will ahve been fixed by then, thats the onyl thign I have yet to fix. I havent tested the latest build tho with AA so it may already be fixed....
Codex
Posts: 13
Joined: 13 Aug 2006, 14:17

Post by Codex »

Err sorry - I'm new to TAS... what is "svn" or an "svn tagged version"?

I'm also still trying to find a way to somehow restart or reattach the AI after loading - any workaround? Actually saving / loading works ok for me: All the structures and untis are there also the units of the enemy - only problem is, that the enemy unitsdont do anything (my guess is that the AI is not started or attacjed to the bot after loading)



Thanx
Codex
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

NTai si event absed, if the untis fall fof of the emrrygo round cycle of tasks they wotn get back on again untill an event pushes them otno it.

Try using .cheat .team 1 and manually kickstartign the AI by doign ctrl+A, then issuing a stop command.

also to verify that NTai is actually running try typing .verbose and a few more messages of random cotnent. You shoudls ee messages returned fromt eh AI perhaps a great flood of logging emssages.
Codex
Posts: 13
Joined: 13 Aug 2006, 14:17

Post by Codex »

Cool, thanx
I will try that and report back if it worked...

Codex
Codex
Posts: 13
Joined: 13 Aug 2006, 14:17

Post by Codex »

Hmmm... tried what you said, but it seems like the AI is not running at all.
How is a AI attached to a team? Can it be done by console?

Seems like team 1 has no AI at all after loading. It will follow chained commands if I switch to team 1 and then back. But as soon as the command chain is over the commander sits there doing nothing...



Codex
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

In that case go bgu a core dev about it, you're out of luck big time...

This is dealign with code I have no knowledge or experience with so i cant make the encessary patches..........
Codex
Posts: 13
Joined: 13 Aug 2006, 14:17

Post by Codex »

Ok,

thanx anyway for your help!
I like your AI by the way - only hope it gets a bit "harder" in rc22

-cu
Codex
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

see the AI forums or http://www.darkstars.co.uk
Post Reply

Return to “Help & Bugs”