Space Engineers

Space Engineers

AI Enemies - Waves of NPCs
 This topic has been pinned, so it's probably important
DarkkShadow0  [developer] 9 May, 2015 @ 4:00pm
Bug Reports
Post any bug you have found. Please try to be specific. Provide all relevant information.

Usually a detailed description of the problem is enough; however sometimes it may be necessary to look for the problem in the logs. If that is the case; please consult the following sections of this post.

The Mod Fails to Load
If the mod does not load (i.e. no "AI Mod Loaded" notification) and basic commands do not work (i.e. "ai sl 5"); it probably means that the SE devs have updated their code, and the mod is not compatible with the new update. If that is the case, be sure to let me know. In those instances a log is not required.

If the mod fails to load, but you believe that it works for other people, please provide me with the following information. When your world loads, press f11. This should open a dev interface, showing potential issues which occurred while loading the mod. There should be a button, allowing you to copy the errors to clipboard. Please paste those errors into the bug report, and I will investigate the issue.

Mod Crashes, Game Lives
This section describes instances where the mod reports a crash in-game (and stops working), however the game does not crash.

It may be useful if you provide the mod log file, or parts of it. Usually the last few lines will contain the most relevant information. The log file for this mod is usually located in: (Win7)
C:\Users\<user-name>\AppData\Roaming\SpaceEngineers\Storage\436731105.sbm_AiEnemiesV2\ai_enemies.log
However it may be easier to get there by pasting the following line directly into the file explorer's nav bar: (all versions of windows)
%appdata%\SpaceEngineers\Storage\436731105.sbm_AiEnemiesV2\
Note; This log does not contain any personal information, and as such it is safe to post.

Game Crash

This crash is more serious. When the game crashes; the mod log file is usually not relevant. In those instances it is often necessary to consult the game log file. Please note that this is only relevant if the game crashed gracefully. A graceful crash is one where the game offers the "Please send crash details to developer" message. The alternative is a windows process crash (i.e. this process has stopped working and is being terminated). In the event of a windows process crash, the game log will not contain relevant information.

This log can be located in: (Win7)
C:\Users\<user-name>\AppData\Roaming\SpaceEngineers\SpaceEngineers.log
However it may be easier to get there by pasting the following line directly into the file explorer's nav bar: (all versions of windows)
%appdata%\SpaceEngineers\
Please note that this log does contain some personal information (i.e. machine specs, username, etc), and that it is very large. As such; please do not post the full log. The relevant section of the log usually looks like:
2016-03-08 10:31:17.691 - Thread: 1 -> Exception occured: System.NullReferenceException: Object reference not set to an instance of an object. at AiEnemiesV2.MainLoop.UpdateBeforeSimulation() at Sandbox.Game.World.MySession.UpdateComponents() at Sandbox.Game.World.MySession.Update(MyTimeSpan updateTime) at Sandbox.MySandboxGame.Update() at Sandbox.Engine.Platform.Game.UpdateInternal() at Sandbox.Engine.Platform.Game.RunSingleFrame() at Sandbox.Engine.Platform.FixedLoop.<>c__DisplayClass1.<Run>b__0() at Sandbox.Engine.Platform.GenericLoop.Run(VoidAction tickCallback) at Sandbox.Engine.Platform.Game.RunLoop() at Sandbox.MySandboxGame.Run(Boolean customRenderLoop, Action disposeSplashScreen) at SpaceEngineers.MyProgram.RunInternal(String[] args) at SpaceEngineers.MyProgram.Main(String[] args)
This will usually be located towards the end of the log. The important details to look for are: "Exception occured" and "AiEnemiesV2". What is shown above is commonly known as a stack trace, and can be very helpful when debugging an error.

General

Please note that these logs are only valid right after the crash. If a crash occurs and the game is started again, the logs are overwritten with new information.

Remember; by posting a detailed bug report, you are helping me improve the mod.

Thank you.
Last edited by DarkkShadow0; 3 Sep, 2016 @ 4:09pm
< >
Showing 1-15 of 65 comments
Konather 10 May, 2015 @ 2:27pm 
i am unable to give you the log file as i can't find it, but after i did "ai clear" the game crashed. i had about 2 ai ships left. and also a question...what part of the ship is destroyed to count it as a kill?

also i did have tons of mods so that is probably what did it.
Last edited by Konather; 10 May, 2015 @ 2:28pm
generalbison 10 May, 2015 @ 2:46pm 
* when the "red ship" is spawned, its offline
* the "blue2 ship" has no weapons at all and should not be spawned
DarkkShadow0  [developer] 10 May, 2015 @ 6:11pm 
Ok. Thanks for the details. I will implement a safety check to ensure no more game crashes. It's better the command fails, than the game crashes. An AI ships is considered destroyed if any of the following conditions are met:
  • All reactors are destroyed (no power)
  • The cockpit or remote control block is destroyed (If there are several, an arbitrary one is chosen as the main one.)
  • All guns are destroyed (If the AI ship cannot fire, than there is no point in it following you around.)

Thanks for the feedback, I did not do a lot of testing with big ships. I am aware of the problem with the red ship. I cannot seem to figure out what causes that particular bug. For now I will apply a patch to not spawn it. Also I did not realize that the blue ship has no weapons. You are right. A bit pointless to spawn it. It will be removed from the spawn list.
Hydrall 11 May, 2015 @ 6:10pm 
Ships keep spawning with their generators off for me. It appears to be only large ships which do this, and only some of those - the red ship consistantly did it for me, but it wasn't the only one.

Edit: Oh, someone already reported that.
Last edited by Hydrall; 11 May, 2015 @ 6:11pm
DarkkShadow0  [developer] 11 May, 2015 @ 7:35pm 
Thanks for your bug report. It helped. Really. I just realized what's wrong. It's exactly like you said. They are off That's the big problem. I must have spent at least an hour looking for the problem, and it never occurred to me to check if they are actually turned on. I checked to see if they had fuel. Checked to see if the ship was using too much fuel. Checked everything, and they were off the whole time. Cheers. Bug fixed.
Darmandorf 18 May, 2015 @ 10:24pm 
I'm afraid I don't have a bug or crash report but unless I did something wrong when setting the custom lists, my custom large ships won't move or otherwise act the way the other large ships do. They still treat me as hostile but won't actively chase me.
DarkkShadow0  [developer] 20 May, 2015 @ 9:36pm 
Ok. That is strange. I am not sure what might be causing this (lack of) behavior. The custom ships are scripted to behave exactly like the Prefab ones. In fact they use the same code. Are you using any mods on them? Maybe some form of custom thruster mod? Can you get any large ship to move, or do all custom large ships exhibit this lack of behavior?
Darmandorf 20 May, 2015 @ 11:45pm 
Of the three custom large ships that I've tried it with, all three have remained stubbornly still. The small ships work like a dream though.
DarkkShadow0  [developer] 21 May, 2015 @ 12:06am 
I am currently working on an update. Will investigate this issue and hopefully have it solved promptly. Also I am adding the functionality you mentioned, regarding specifying amount of ships to spawn with "randomspawn".
Gadzooks739 6 Jun, 2015 @ 11:33am 
When I start a new game the notification doesnt pop up and tried all of the commands to spawn the ai
Janixos 6 Jun, 2015 @ 5:13pm 
i cant spawn any ships by typing ai s 1 or ai sl 1.
Mrmunchkins 6 Jun, 2015 @ 7:00pm 
same i cant spawn anything this mod must be broken or something
Mrmunchkins 6 Jun, 2015 @ 7:03pm 
i think the mod is shutting down or something
Magicalfungi 6 Jun, 2015 @ 8:46pm 
the last patch seemed to have broken it, I don't think its down for good. At least i hope, it was really fun.
Saobie 7 Jun, 2015 @ 4:06pm 
Yea, it used to work for me, but it stopped a few days ago. I never get the 'ai mod online' thing and none of the commands do anything.

I JUST got done making 3 heavy interceptors im finally proud of, and i wanted to see how they do against a base i made :/
< >
Showing 1-15 of 65 comments
Per page: 1530 50