Units fire red lines (instahit)

Moderators: Uveso, burnie222

Re: Units fire red lines (instahit)

Postby Sprouto » 15 Dec 2017, 01:43

If you have two custom units, one at 60 and one at 20 then you'll get this result;

60% of the time you'll get a custom unit. (The AI generates a value of 60 or below)

1/3 of that time, it will be the unit at 20.( If the AI generates a value below 20, this choice will be available in addition)

Hope that makes sense.
Sprouto
Priest
 
Posts: 312
Joined: 08 Sep 2012, 05:40
Has liked: 52 times
Been liked: 62 times
FAF User Name: Sprouto

Re: Units fire red lines (instahit)

Postby CSI » 15 Dec 2017, 10:02

Oh right I get it
CSI
Avatar-of-War
 
Posts: 100
Joined: 09 Apr 2017, 18:59
Has liked: 18 times
Been liked: 5 times
FAF User Name: CSI

Re: Units fire red lines (instahit)

Postby CSI » 16 Dec 2017, 00:31

Nothing to do with the topic but the Tech by time mod doesn't work, do you know why ?
CSI
Avatar-of-War
 
Posts: 100
Joined: 09 Apr 2017, 18:59
Has liked: 18 times
Been liked: 5 times
FAF User Name: CSI

Re: Units fire red lines (instahit)

Postby Uveso » 16 Dec 2017, 04:36

Do you have a link for me ? Can't find a mod called "Tech by time".
User avatar
Uveso
Evaluator
 
Posts: 965
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 34 times
Been liked: 137 times
FAF User Name: Uveso

Re: Units fire red lines (instahit)

Postby CSI » 16 Dec 2017, 14:07

Indeed it's time to tech sorry, I found it on the vault y searching 'tech' ^^

Also I was wondering if there could be a simple edit to a survival map to make modded units spawn :?:
CSI
Avatar-of-War
 
Posts: 100
Joined: 09 Apr 2017, 18:59
Has liked: 18 times
Been liked: 5 times
FAF User Name: CSI

Re: Units fire red lines (instahit)

Postby CSI » 18 Dec 2017, 00:03

Hum, how do I tell a gunship to stay in the air like a spaceship ?
CSI
Avatar-of-War
 
Posts: 100
Joined: 09 Apr 2017, 18:59
Has liked: 18 times
Been liked: 5 times
FAF User Name: CSI

Re: Units fire red lines (instahit)

Postby CSI » 18 Dec 2017, 22:21

I figured it out nevermind.

Now I checked if everything was alright on the console but I have the following message :
access to nonexistent global variable "TIFCommanderDeathWeapon""
from here
Code: Select all
local TerranWeaponFile = import('/lua/terranweapons.lua')
local TIFCommanderDeathWeapon = TerranWeaponFile.TIFCommanderDeathWeapon


It does exist so I don't understand
CSI
Avatar-of-War
 
Posts: 100
Joined: 09 Apr 2017, 18:59
Has liked: 18 times
Been liked: 5 times
FAF User Name: CSI

Re: Units fire red lines (instahit)

Postby Uveso » 19 Dec 2017, 18:02

Oh yes, the old TIF weapons no longer exist in FAF.

Remove:
Code: Select all
local TIFCommanderDeathWeapon = TerranWeaponFile.TIFCommanderDeathWeapon

Add:
Code: Select all
local TIFCommanderDeathWeapon = import('/lua/sim/defaultweapons.lua').DeathNukeWeapon
User avatar
Uveso
Evaluator
 
Posts: 965
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 34 times
Been liked: 137 times
FAF User Name: Uveso

Re: Units fire red lines (instahit)

Postby CSI » 19 Dec 2017, 21:38

Okay thank you ! ^^

I would like to take fild engis from BrewLAN and separate stuff between civilian and military.
First thing is that I copied the engis but I cannot build them in game, they appear in the unit list when I check the restrictions in the pre-game lobby tho.
BrewLAN is quite a special mod, Balthassar has created amazing mechanics but it's difficult to use outside :c
If I manage to make the field engis work I will try to import his walls mechanics too.

If you are not familiar with it take a look ! https://github.com/the-balthazar/brewlan

EDIT : Looks like another thing has been replaced by FAF patches :
Code: Select all
local CybranWeaponsFile = import( '/lua/cybranweapons.lua')
local CDFHeavyMicrowaveLaserGeneratorDefense = CybranWeaponsFile.CDFHeavyMicrowaveLaserGeneratorDefense
CSI
Avatar-of-War
 
Posts: 100
Joined: 09 Apr 2017, 18:59
Has liked: 18 times
Been liked: 5 times
FAF User Name: CSI

Re: Units fire red lines (instahit)

Postby Uveso » 20 Dec 2017, 04:42

I am sorry, i don't have the brewlan mod installed.
Maybe next year! ;)

Not a FAF patch: :mrgreen:
I can't find any "CDFHeavyMicrowaveLaserGeneratorDefense" in FAF or the unmodified ForgedAlliance game.
The only place where i found it was inside the "XtremeWars" mod from the author "Team-Asdrubaelvect".
Hooked from here:
Code: Select all
Mods\XtremWars\hook\lua\cybranweapons.lua
User avatar
Uveso
Evaluator
 
Posts: 965
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 34 times
Been liked: 137 times
FAF User Name: Uveso

PreviousNext

Return to Total Mayhem

Who is online

Users browsing this forum: No registered users and 1 guest