Team Spartan Cookies & Milk Forums
Ship Mainframe / A.I [9.8.2015] - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: Ship Mainframe / A.I [9.8.2015] (/thread-1171.html)

Pages: 1 2 3


RE: Ship Mainframe / A.I [9.8.2015] - LocInt - 08-08-2015

(08-08-2015, 07:01 AM)tscm.Obiswagkenobi Wrote: is it just me or has the time been extended by one day? dammit adding things will create bugs in the final release

its just you.


RE: Ship Mainframe / A.I [9.8.2015] - Yuri6037 - 08-08-2015

(08-08-2015, 08:10 AM)SuperPlayer Wrote:
(08-08-2015, 07:03 AM)Yuri6037 Wrote: I have a few question :
"- You can divert shield power", how is that possible automaticaly ? I already tried with shield outputs but all outputs gives exactly the same values causing my AI to understand it's firing from every side !
"- Can't activate repairs.", you seriously arrived to fix Person's code ? Because as I know the ShipCore's Fire Repair Beam has never worked ! Same as the Stargazer Resource Valve.

Auto divert shield power works. It is pretty complicated though. And for the outputs all returning the same value: Never heard about it. I have my own auto divert code and it works fine.

For the repair beam it just works if you dont try to repair a ship you own.
And the Ressource valve also works just fine. You must be doing something wrong then.

Well to repair a ship I do :
Code:
Ship.Core["Fire Repair Beam"] = 1 Ship.Core["Repair Target"] = Target.Entity
But this does strictly nothing to my friends ship (General Oniel one, even when he has 2% hull).

The Stargazer Valve never worked on my side you can link it to someone else's network but it's not working, nothing happens.


And about the shield divert power, I'd like to know how you do it, what are you using exactly ? Are you using the shield's outputs (Left, Right, Top, Bottom, Front, Back) ? If that's then explain me how you're doing to avoid having those outputs descending at the same time ? Those outputs represents damages on each sides, I have an algorythm that is able to determine exactly what side is most damaged, however this algorythm won't work worrectly if all sides are damaged of the same amount at the same time even when you're not firing at all sides !


RE: Ship Mainframe / A.I [9.8.2015] - SuperPlayer - 08-08-2015

Evethough i dont think this is the right thread for this:
1) You have to set the repair target first. Also there is a range limitation
2) I think are interpreting the outputs wrong. They dont represent the damage taken. They represent the shield health of each side. So you have to check which side loses health the most. If you have more qustions contact me on steam.


RE: Ship Mainframe / A.I [9.8.2015] - rouing - 08-08-2015


if REPTARGET then
if AURA.INTERFACEABLE.Core:pos()Big GrinistToSqr(REPTARGET:pos()) < 67108864 then
AURA.INTERFACEABLE.CoreConfusedetRepairTarget(REPTARGET)
AURA.INTERFACEABLE.Core:fireRepairBeam(1)
bsay("Repairing " .. Owner:name() .. "'s ship!")[/code]
else
bsay("The repair target is too far away!")
AURA.UTILITY.PlaySound(AURA.SOUNDS.Deny,4)
end
else
NotImportantCodeHere

That is my repair


RE: Ship Mainframe / A.I [9.8.2015] - Yuri6037 - 08-08-2015

(08-08-2015, 06:46 PM)SuperPlayer Wrote: Evethough i dont think this is the right thread for this:
1) You have to set the repair target first. Also there is a range limitation
2) I think are interpreting the outputs wrong. They dont represent the damage taken. They represent the shield health of each side. So you have to check which side loses health the most. If you have more qustions contact me on steam.

1- Ok I'll try to invert order...
2- That's exactly what I wrote. I know they represents the damage per shield side. The thing I don't know is why does those values are same on each side ? Even when you attack the left side for example, it's like all sides are attacked.

EDIT : Thanks as well rouing for giving the maximum range. I'll first use inputs, and if it's not working I'll use the methods. For the moment I need to make a new library : lanaifiles. Indeed I'm preparing for a new Permission system where every players of the server will always have a rank from Unauthorized to Officer. (Unauthorized, Crew Guest, Authorized, Officer).