My idea was to make a timer 1 second which updates a list of players inside the ship. The timer is intended to constantly run and never stop this is for 3 reasons :
- First of all, it's not intended to each one second TP/Jail players it just records them on a list.
- Second, this list is intended to be accessed by the interior sensor which will basicaly display those player positions on the 2D screen.
- Also the list will after be able to accessed by API. The TP system is handled by lanai/processor/beamdevice.txt which checks for stargate.isLocationJammed before running anything on the device's wire inputs.
The algorythm itself now is based on trace.trace : the idea is to trace two lines one from player to up vector * 9999 and a second line from player to down vector * 9999 those traces will have physics mask. If those 2 traces hits each an entity recorded inside SHIP_CONSTRAINTS (I will also probably establish two maps SHIP_CONSTRAINTS and SHIP_CONSTRAINTS_BOOL which will assign ConstrainedEntity->true during first startup process or ConstraintsRetriever V1.0) array then LanAI will consider the player as inside the ship and able to be then touched by the kickall command (of course if his rank is Unauthorized, as Guest is allowed but is not allowed to touch anything of LanAI not even open LanAI Next protection).
Also if LanAI Next auto analysis systems does something unexpected I can always stop it using !ai selfkill to force terminate LanAI Next processor. The Screen can't be stopped but it's a vulgary program that just obeys to another big program running on a processor, the Screen basicaly can't do anything by itself excluding switching screens, rendering, system sounds, windows, ...
But normaly the !ai selfkill command should not be needed because if the algorythm fails it will more likely push a nil error or something similar before I can even selfkill it...
I added that command due to the public API, there is a risk that someones finds a way to interact directly with the processor and maybe change some routines which would cause for example a fake number of players in the ship, and would also be able to cause instant self destruct in battle (yeah I realy said that someone which doesn't own any entities in my ship could access Ship.Core["Self Destruct"] wire input through LanAI public API, fortunatly this person will probably fail as he has not my access key). There is also something else behind the command, the case where the battle auto warp intended to save ship is starting to warp in loop or warps too quickly/too late (but in that case the ship would Explode...).
24-05-2016, 08:45 PM, (This post was last modified: 30-05-2016, 08:13 AM by warhammer.)
(17-06-2016, 11:12 PM)warhammer Wrote: Yea you have to spawn the collector then you can do the command eg /collector hiigara
"/collector" will do it chose the closest water spot from your ship
Btw, I have a bit of time to update the pcpu to version 2.2 and fixe some bugs and optimize stuff.. ,no new features.. i'm not into gmod like i used to.
So if you have any bug to report, or anything else, (i eard about a spelling mistake somwhere ?) tell me please
Hi, iNoPeRaTiVe here, I would like to report a bug with APTS. After I've wired everything correctly, when I go to hit R (Engage) it gives me the "Error" sound that says it can't teleport. I've wired Pod [WIRELINK] to my pod controller, which is connected to a chair. I've wired Drive [WIRELINK] to a Wire Teleporter. I figured it might be because I would materialize inside a wall? I'm not sure though, some help would be greatly appreciated.