Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Mar 29, 2024 1:43 pm
All times are UTC + 0
Gattling Laser Colour
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [21 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Agent Z
AA Infantry


Joined: 05 Sep 2013
Location: LocationNotFoundException at RealLife.Location.find() at line: -1

PostPosted: Sat Nov 23, 2013 9:56 pm    Post subject:  Gattling Laser Colour Reply with quote  Mark this post and the followings unread

I decided, that it was finally time to get rid of the IsHouseColor=yes on my Laser Cannon, then I found this bug:
This gattling weapon uses lasers, so I wanted it to change colour for each stage. Now when I tested it ingame, no matter what I did, it only uses the colour of the 1st of the weapons.
However, the laser shrapnel could use different colours for each stage.
Is this a known bug, and can it somehow be avoided and still use a diffrent colour for each stage? This happens with or without Ares.
Also, I found out I don't have to set the 1st weapons as primary/secondary for gattling logic to work.

Evidence:

Laser Cannon

[ZZLGUN]
IsGattling=yes
TurretCount=1
WeaponCount=6
Weapon1=LZGattling
EliteWeapon1=LZGattlingE      ;Do I need this?
Weapon2=LZGattlingAA
EliteWeapon2=LZGattlingAAE
Weapon3=LZGattling2
EliteWeapon3=LZGattling2E
Weapon4=LZGattling2AA
EliteWeapon4=LZGattling2AAE
Weapon5=LZGattling3
EliteWeapon5=LZGattling3E
Weapon6=LZGattling3AA
EliteWeapon6=LZGattling3AAE
WeaponStages=3
Stage1=200
Stage2=400
Stage3=650
EliteStage1=200
EliteStage2=300
EliteStage3=350
RateUp=1
RateDown=10

Weapons:
[LZGattling]         ;Just examples, not really going to use those colours when its finished, but images use those.
Projectile=LAZGP
LaserInnerColor=255,0,0
LaserOuterColor=150,0,0
LaserThickness=2
LaserOuterSpread=0,0,0
LaserDuration=10
IsLaser=true

[LZGattling2]
Projectile=LAZGP2
LaserInnerColor=0,255,0
LaserOuterColor=0,0,255
LaserThickness=3
LaserOuterSpread=0,0,0
LaserDuration=20
IsLaser=true

Ok won't add LZGatt 3 because this gattling system has a total of 9 real weapons (including fragment weapons), so this post would be too long if I add all. Those are enought for example.

Projectiles:
[LAZGP]
AA=no
AG=yes
ShrapnelWeapon=LAZGPFragment
ShrapnelCount=2

[LAZGP2]
AA=no
AG=yes
ShrapnelWeapon=LAZGPFragment2
ShrapnelCount=2

Fragments:

[LAZGPFragment]
LaserInnerColor=0,0,255
LaserOuterColor=0,0,255
LaserOuterSpread=0,0,0
LaserDuration=5
IsLaser=true

[LAZGPFragment2]
LaserInnerColor=0,255,0
LaserOuterColor=0,255,0
LaserOuterSpread=0,0,0
LaserDuration=5
IsLaser=true

I posted only relevant ini stuff not whole code, or else this post would be about 2 Meters long.
I suspect this might be a hardcoded issue, but I want to be sure if anything can be done about this.
Now ingame:



Stages.png
 Description:
All 3 stages of the Gattling laser. They look all the same.
 Filesize:  47.73 KB
 Viewed:  6140 Time(s)

Stages.png



shrapnel colour.png
 Description:
You can see the shrapnel colour changes for each stage.
 Filesize:  118.91 KB
 Viewed:  6140 Time(s)

shrapnel colour.png



Back to top
View user's profile Send private message
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Sun Nov 24, 2013 2:35 pm    Post subject: Reply with quote  Mark this post and the followings unread

Is the firer a vehicle at all?

_________________
"If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more...

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
mevitar
Missile Trooper


Joined: 31 Dec 2010

PostPosted: Mon Nov 25, 2013 8:19 am    Post subject: Reply with quote  Mark this post and the followings unread

It's a structure (i think it's pretty obvious, btw #Tongue ) . And structures apparently can't have changing lasers between their weapon stages. You can disable/enable lasers, but that's all.

Back to top
View user's profile Send private message
Atomic_Noodles
Defense Minister


Joined: 05 Oct 2011

PostPosted: Mon Nov 25, 2013 8:41 am    Post subject: Reply with quote  Mark this post and the followings unread

Have you tested this on a Vehicle if it works?

_________________
~ Excelsior ~

Back to top
View user's profile Send private message Visit poster's website
Agent Z
AA Infantry


Joined: 05 Sep 2013
Location: LocationNotFoundException at RealLife.Location.find() at line: -1

PostPosted: Mon Nov 25, 2013 5:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

Of course, that thing is a structure, you can clearly see the contrast between my OK vxl work and my weak shp.

The point of changing laser colour is surely pretty obvious, it is to show that it increases frequency of the laser over time, making it stronger.
(see http://en.wikipedia.org/wiki/Electromagnetic_spectrum#Types_of_radiation and the visible light spectrum.)


I have done some testing to find out where laser gattling colour work, and where it don't. In some cases, gattling logic did not work at all.
I let the images speak for mostly themselves. Its all the same weapon, but added omnifire in some cases.
If there is something I forgot to test then I would like to know. Also, it didn't matter if the unit was attacking a air or ground unit, the gattling worked exactly the same.



Vehicle Laser Test.png
 Description:
General Vehicle test.
 Filesize:  101.89 KB
 Viewed:  6013 Time(s)

Vehicle Laser Test.png



Jumpjet Laser Test.png
 Description:
Did this one too, just in case. It worked, unlike on usual non-jumpjet aircraft.
 Filesize:  281.87 KB
 Viewed:  6013 Time(s)

Jumpjet Laser Test.png



Naval laser test.png
 Description:
Probably unnecessary naval test...
 Filesize:  97.45 KB
 Viewed:  6013 Time(s)

Naval laser test.png



Aircraft Laser Test.png
 Description:
Nope. They don't want, just like infantry.
 Filesize:  478.1 KB
 Viewed:  6013 Time(s)

Aircraft Laser Test.png



Inf Laser Test.png
 Description:
 Filesize:  58.02 KB
 Viewed:  6013 Time(s)

Inf Laser Test.png



Back to top
View user's profile Send private message
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Mon Nov 25, 2013 8:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

Congratulations. I don't know how to say... but since I'm atm a bit drunk I'll say...

It's not the laser's fault. Gattling logic does NOT WORK ON BUILDINGS. It only works on the VehicleTypes, no matter if those are Naval or Jumpjet... as long as they're part of that list calld as [VehicleTypes].

_________________
"If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more...

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
Starkku
Cyborg Commando


Joined: 28 Dec 2007
Location: Finland

PostPosted: Mon Nov 25, 2013 8:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

Graion Dilach wrote:
I'm atm a bit drunk.


I can see that.

Graion Dilach wrote:
Gattling logic does NOT WORK ON BUILDINGS.



_________________

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID Twitter Channel URL
Agent Z
AA Infantry


Joined: 05 Sep 2013
Location: LocationNotFoundException at RealLife.Location.find() at line: -1

PostPosted: Mon Nov 25, 2013 10:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

It do work on buildings, just look at the first post I made, there the shrapnel weapon colour changed, only the Primary laser didn't change colour.

The objects Gattling didn't work at was infantry and aircraft like Harrier or Black Eagle (non-jumpjet aircraft).

So the bug seems to only apply to buildings who use Gattling logic with diffrently coloured lasers for each stage.
The same weapon works fine on vehicles/naval/jumpjet and changes colours.

Back to top
View user's profile Send private message
Aro
Alcohol Fueled


Joined: 10 Sep 2006

PostPosted: Mon Nov 25, 2013 10:11 pm    Post subject: Reply with quote  Mark this post and the followings unread

Starkku wrote:
Graion Dilach wrote:
I'm atm a bit drunk.


I can see that.

Graion Dilach wrote:
Gattling logic does NOT WORK ON BUILDINGS.




I can't stop laughing. Laughing

Back to top
View user's profile Send private message
FurryQueen
General


Joined: 24 Jul 2010
Location: Liyue

PostPosted: Mon Nov 25, 2013 10:35 pm    Post subject: Reply with quote  Mark this post and the followings unread

GD, I want to slap you. I mean honestly. From one Aspie to another, stahp it.

_________________
KGR | AT
AZUR
Discord: theastronomer1836
Steam

Back to top
View user's profile Send private message Skype Account
Atomic_Noodles
Defense Minister


Joined: 05 Oct 2011

PostPosted: Mon Nov 25, 2013 11:42 pm    Post subject: Reply with quote  Mark this post and the followings unread

Gatling always had some hiccups.

It behaved the same way IFVs with multiple passenger slots worked.

So its no surprise the Lasers only accepting the first stage would happen.

_________________
~ Excelsior ~

Back to top
View user's profile Send private message Visit poster's website
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Tue Nov 26, 2013 2:32 am    Post subject: Reply with quote  Mark this post and the followings unread

What the hell did I do in this topic?!

But this time... I agree, I need to be slapped. Tho I still take vodka better than wine.

Ahwell... gotta look into this later. And even I can't stop laughing now.

_________________
"If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more...

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
Atomic_Noodles
Defense Minister


Joined: 05 Oct 2011

PostPosted: Tue Nov 26, 2013 2:48 am    Post subject: Reply with quote  Mark this post and the followings unread

Are you trying to make a Rainbow Heat Ray or something though... just curious?

_________________
~ Excelsior ~

Back to top
View user's profile Send private message Visit poster's website
Agent Z
AA Infantry


Joined: 05 Sep 2013
Location: LocationNotFoundException at RealLife.Location.find() at line: -1

PostPosted: Tue Nov 26, 2013 12:04 pm    Post subject: Reply with quote  Mark this post and the followings unread

Atomic_Noodles wrote:
Are you trying to make a Rainbow Heat Ray or something though... just curious?


Not exactly.
Its a laser, with 3 stages.

1st stage = red laser = lowest frequency and longer wavelenght (of visible colours, not the whole electromagnetic spectrum) which again means the least strenght.

2nd stage = green or something around there = medium frequency and a bit shorter wavelenght which means a bit more powerful laser.

3rd stage = purple/blue laser = highest frequency and shortest wavelenght (of visible colours, not the whole electromagnetic spectrum) which would be the most powerful laser.

The colours will be like this when I finish this, those used in the examples are temporary.
This is something I just learned at school, this electromagnetic spectrum.
I might be using it to show laser strenght for many more weapons, which will be a nice reference to the spectrum.

1 More thing, is it correct to write Gattling or Gatling?

Back to top
View user's profile Send private message
PillBox20
Commander


Joined: 28 Sep 2013
Location: Plovdiv, Bulgaria.

PostPosted: Tue Nov 26, 2013 4:14 pm    Post subject: Reply with quote  Mark this post and the followings unread


Back to top
View user's profile Send private message Visit poster's website YouTube User URL Skype Account
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Tue Nov 26, 2013 4:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

Gatling is the correct spelling. Having it with two ts is Westwood can't spell.

_________________
"If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more...

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
Starkku
Cyborg Commando


Joined: 28 Dec 2007
Location: Finland

PostPosted: Tue Nov 26, 2013 4:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

Graion Dilach wrote:
Gatling is the correct spelling. Having it with two ts is Westwood can't spell.


Or because Gatling gun is a trademark. Could be either way honestly, given WW's track record.

_________________

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID Twitter Channel URL
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Tue Nov 26, 2013 4:59 pm    Post subject: Reply with quote  Mark this post and the followings unread

The last patent is from the 1800's. The trademarks have already expired, AFAIK.

_________________
"If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more...

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
Renegade
Cyborg Artillery


Joined: 21 May 2006
Location: Hamburg, Germany

PostPosted: Tue Nov 26, 2013 6:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

The Lawyers behind registration number 3387232 would likely disagree with you.

Though it admittedly would be a different kind of product. Laughing


There was an active application for the word "Gatling" in the realm of firearms from 2000 to 2001, and applications for "Gatling Gun Company" from 2001 to 2002 and 2008 to 2010.
So the term is popular enough that it's possible they shied away from it.

_________________
#renproj:renegadeprojects.com via Matrix - direct link

Back to top
View user's profile Send private message Visit poster's website
Dutchygamer
President


Joined: 18 Jun 2005
Location: Dordrecht, the Netherlands

PostPosted: Tue Nov 26, 2013 6:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

Renegade wrote:
The Lawyers behind registration number 3387232 would likely disagree with you.

Though it admittedly would be a different kind of product. Laughing


There was an active application for the word "Gatling" in the realm of firearms from 2000 to 2001, and applications for "Gatling Gun Company" from 2001 to 2002 and 2008 to 2010.
So the term is popular enough that it's possible they shied away from it.

That might explain a whole lot. Never knew that the term 'Gatling' would be trademarked.

Back to top
View user's profile Send private message Send e-mail Skype Account
PillBox20
Commander


Joined: 28 Sep 2013
Location: Plovdiv, Bulgaria.

PostPosted: Tue Nov 26, 2013 6:42 pm    Post subject: Reply with quote  Mark this post and the followings unread


Back to top
View user's profile Send private message Visit poster's website YouTube User URL Skype Account
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [21 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.2248s ][ Queries: 20 (0.0173s) ][ Debug on ]