Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Expression 2 v
1 2 3 4 5 … 8 Next »
Release PCPU Rev2
Thread Closed 
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Release PCPU Rev2
13-01-2016, 06:59 PM,
#41
Yuri6037 Offline
TSCM Member
***
Posts: 216
Threads: 45
Joined: Feb 2015
RE: PCPU Rev2
Ok. Thanks.

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...).
Find
« Next Oldest | Next Newest »
Thread Closed 


Messages In This Thread
PCPU Rev2 - by pho - 12-09-2015, 09:13 PM
RE: PCPU Rev2 - by TheOneAndOnlyTee - 12-09-2015, 11:03 PM
RE: PCPU Rev2 - by pho - 13-09-2015, 06:42 AM
RE: PCPU Rev2 - by TheOneAndOnlyTee - 13-09-2015, 09:53 AM
RE: PCPU Rev2 - by Destiny's Player - 13-09-2015, 01:45 PM
RE: PCPU Rev2 - by pho - 13-09-2015, 02:44 PM
RE: PCPU Rev2 - by Destiny's Player - 13-09-2015, 03:09 PM
RE: PCPU Rev2 - by тѕсм.[SG-1] Teal'c - 14-09-2015, 12:40 PM
RE: PCPU Rev2 - by rouing - 14-09-2015, 01:56 PM
RE: PCPU Rev2 - by pho - 14-09-2015, 04:58 PM
RE: PCPU Rev2 - by тѕсм.[SG-1] Teal'c - 14-09-2015, 02:06 PM
RE: PCPU Rev2 - by rouing - 14-09-2015, 02:53 PM
RE: PCPU Rev2 - by тѕсм.[SG-1] Teal'c - 15-09-2015, 02:19 PM
RE: PCPU Rev2 - by SuperPlayer - 15-09-2015, 02:47 PM
RE: PCPU Rev2 - by тѕсм.[SG-1] Teal'c - 15-09-2015, 03:58 PM
RE: PCPU Rev2 - by pho - 15-09-2015, 04:42 PM
RE: PCPU Rev2 - by rouing - 15-09-2015, 04:48 PM
RE: PCPU Rev2 - by тѕсм.[SG-1] Teal'c - 15-09-2015, 04:57 PM
RE: PCPU Rev2 - by pho - 15-09-2015, 05:04 PM
RE: PCPU Rev2 - by тѕсм.[SG-1] Teal'c - 15-09-2015, 05:20 PM
RE: PCPU Rev2 - by pho - 15-09-2015, 06:06 PM
RE: PCPU Rev2 - by rouing - 15-09-2015, 06:39 PM
RE: PCPU Rev2 - by Obi - 15-09-2015, 06:53 PM
RE: PCPU Rev2 - by pho - 15-09-2015, 07:19 PM
RE: PCPU Rev2 - by warhammer - 19-09-2015, 06:15 PM
RE: PCPU Rev2 - by warhammer - 19-09-2015, 07:35 PM
RE: PCPU Rev2 - by TheOneAndOnlyTee - 20-09-2015, 03:39 AM
RE: PCPU Rev2 - by pho - 20-09-2015, 07:57 AM
RE: PCPU Rev2 - by pho - 20-09-2015, 09:10 AM
RE: PCPU Rev2 - by warhammer - 22-09-2015, 04:28 PM
RE: PCPU Rev2 - by pho - 22-09-2015, 04:31 PM
RE: PCPU Rev2 - by udop1 - 05-12-2015, 04:08 PM
RE: PCPU Rev2 - by Person8880 - 05-12-2015, 04:46 PM
RE: PCPU Rev2 - by udop1 - 05-12-2015, 05:04 PM
RE: PCPU Rev2 - by warhammer - 06-12-2015, 06:39 PM
RE: PCPU Rev2 - by Infiniti1085 - 26-12-2015, 10:12 PM
RE: PCPU Rev2 - by pho - 26-12-2015, 10:20 PM
RE: PCPU Rev2 - by Yuri6037 - 13-01-2016, 01:19 PM
RE: PCPU Rev2 - by pho - 13-01-2016, 04:56 PM
RE: PCPU Rev2 - by TheOneAndOnlyTee - 13-01-2016, 03:14 PM
RE: PCPU Rev2 - by Yuri6037 - 13-01-2016, 06:59 PM
RE: PCPU Rev2 - by warhammer - 24-05-2016, 08:45 PM
RE: PCPU Rev2 - by warhammer - 30-05-2016, 08:13 AM
RE: PCPU Rev2 - by TheOneAndOnlyTee - 30-05-2016, 08:30 AM
RE: PCPU Rev2 - by pho - 13-06-2016, 11:06 PM
RE: PCPU Rev2 - by warhammer - 17-06-2016, 11:12 PM
RE: PCPU Rev2 - by pho - 18-06-2016, 12:26 AM
RE: PCPU Rev2 - by тѕсм.Tradedoodle - 03-08-2016, 04:59 PM
RE: PCPU Rev2 - by iNoPeRaTiVe - 22-01-2017, 05:05 PM
RE: PCPU Rev2 - by The17thDoctor - 23-01-2017, 06:36 PM
RE: PCPU Rev2 - by pho - 23-01-2017, 06:54 PM
RE: PCPU Rev2 - by kris999 - 18-02-2017, 07:30 PM
RE: PCPU Rev2 - by Knight - 19-02-2017, 03:32 AM
RE: PCPU Rev2 - by Delta!Molfar - 16-11-2017, 04:28 PM
RE: PCPU Rev2 - by Knight - 16-11-2017, 05:03 PM
RE: PCPU Rev2 - by Skeleton - 16-11-2017, 06:45 PM
RE: PCPU Rev2 - by Knight - 17-11-2017, 03:54 AM
RE: PCPU Rev2 - by Spock - 16-11-2017, 10:27 PM
RE: PCPU Rev2 - by Spock - 17-11-2017, 10:18 PM
RE: PCPU Rev2 - by Skeleton - 17-11-2017, 11:43 AM
RE: PCPU Rev2 - by TheOneAndOnlyTee - 17-11-2017, 12:29 PM
RE: PCPU Rev2 - by pho - 17-11-2017, 09:34 PM
RE: PCPU Rev2 - by Person8880 - 18-11-2017, 11:41 AM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.