Posted: Tue Apr 21, 2015 7:53 am Post subject:
Wild attempt at railgun logic
So, i decided i finally wanted to test making a more realistic railgun...
The concept is to have a laser be beige or grey coloured to give the impression of a bullet going by super fast creating condensation... and the particle effect being a no radius small smoke to come off where the laser was.
now i don't get an internal error, i get a fatal error. i have no idea what i'm doing here, and no idea what is... disagreeing.
is there something i'm completely missing or perhaps 2 tags that can't get along?
i'm also not entirely sure if that gattling is set up right, though it wouldn't cause the crash. (i do intend to add a buzzing charge-up sound, but i might just have to do it with a dummy weapon in the gattling)
note: i do NOT want traditional railgun ambiant damage. i only want impacts on walls and buildings and cliffs, not units. _________________ ????????MyAnimeList my Last.fm QUICK_EDIT
Joined: 22 Nov 2010 Location: Iszkaszentgyorgy, Hungary
Posted: Tue Apr 21, 2015 10:14 am Post subject:
WeaponStages=2, WeaponCount=2... that's bad.
TBH your whole setting is bad. Gattling basics (since you didn't grasped this at Gattling Tank): Count is Stages*2, with every odd weapon used as anti-ground and every even as anti-air (use dummyweapons at slots which you don't intend to use), so if you keep 2 stages, use 4 weapons.
If you don't use AmbientDamage then replace IsRailgun=yes with UseSparkParticles=yes (decreases lag, since it does not enable ambientdamage logic, only railgun drawer logic if used along with a railgun particlesystem). Tho that railgun setup will still be laggy as hell - since it'll still draw all particles in a line - if you want smoke only appearing at the target location, you have to spawn that directly there, pick one from here http://modenc.renegadeprojects.com/Particles_and_ParticleSystems#Spawning
AFAIK this is the preferred lagfree railgun setup anyway:
Besides... particlesystems can have lasers on their own - IIRC SmallRailgunSys has one already.
And finally: Fatal Error is the same as Internal Error, except it got a different name in Ares. Always use the "-log" option in the launching method (add to RunAres.bat, etc.) to generate debug.logs into your RA2/debug folder which can give you hints why the game crashed. (Your except.txts will also end up under your RA2/debug folder with a timestamped crashdump if you told it to save that (99% of times it's unneeded) and a timestamped debug.log if "-log" was enabled). _________________ "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... QUICK_EDIT
I'm well aware it was copletely bad, hence why it exploded on me.
I want a line of smoke puffs to come from the laser itself, not from the target. I don't have any lag issue with any amounts of transparencies or anything. ddraw solves all of that. The only time i experience lag is when really excessively spamming the ion-cannon particle effect (the one where the spark particles go in and out crossing at point of origin)
gattling tank showed 6 total weapons, 3 ground and 3 air (elites included) and 3 stages per.
so does it have to have "air weapons" (holdable by dummies) as well or something?
(as in requirement 1:1 ratio ground/air weapons)?
my previous attempts at fixing up gatling hasn't gotten me far... it's easy to make 1 weap, did it for my laser gatling, but i wanted to have an additional laser that occasionally lit a fire (otherwise it'll spam fires everywhere)
ingame if this is set up right, having a ever so slgihtly slowed invisible cannonball will hit buildings and walls almost on the frame that it gets to firing the actual "railgun" effect weapon... which i intend to have it as a laser with smoke coming off it instead of pixel particles (obviously i want to lower the spawn count or i'd get hundreds of overlapping smokepuffs..)
again, i'm brand new to particles systems so i'm just winging it.
i know people often make smoke particles come from impacts, but i don't care about that really.
simplified concept: railgun = magnetically propelled ordnance through the railgun mechanism. mass driver logic allows extremely fast travelling projectiles, several times mach. hence, condensation. using laser logic to imitate a condensation trail. similar to TS railgun, except less quake-y.
I don't intend for this to be a numerous arsenal weapon, more like a hero unit type deal, so even if it gets a little bogged down after you got like 4 or more on the screen, it doesn't matter cuz that's hardly ever gonna happen. _________________ ????????MyAnimeList my Last.fm QUICK_EDIT
Joined: 22 Nov 2010 Location: Iszkaszentgyorgy, Hungary
Posted: Tue Apr 21, 2015 1:12 pm Post subject:
It requires the slots be used. By anything. I prefer this method. Chinese usually double them - so they'd throw the same weapon to 1-2 another to 3-4 etc.
_________________ "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... QUICK_EDIT
so you need to use all 6? or can you do less but just make sure you put a dummy in between? i just want a very simplified sense of how this works so i don't find myself going with crazy redundancies or wondering why it's not working...
do i need a dummy in between each weapon?
do i need to always have 2:1 weaponcount:weaponstages, or always 6:3? does that cause a loop or does it repeat last one till forever? can you make it loop? lol
-
edit: making a random guess here, are dummy weapons used in between as things that can't target anything in order to force it to move to the next weap in the cycle? (like dummy weap at the end making it restart for example?) but then thinking about that what would make it go onto the dummy weapon?
i just need to know how gattling works at a fundamental basis, i can figure out how to work out the numbers myself.
-
(ps: i've gotten internal errors with ares as well...)
as far as the weapon itself, i'm trying to make it fire a laser -with- smoke particles along it's trail, smoke instead of pixel particle spiral, NOT railgun ambiant damage, i have the inviso cannon to do that with different effects. making a weapon akin to a real life railgun, rather than the laser-swirly-kill-everything-in a-line gun) when i bummed up gattling before it just only did first weapon... i'm trying to find out what caused the error. _________________ ????????MyAnimeList my Last.fm QUICK_EDIT
Weapons at slot 1 3 5 7 9 11 will be fired against ground targets only.
Weapons at slot 2 4 6 8 10 12 will be fired against air targets only.
You must define a weapon for all slots you're using.
Damn, it was a while ago since I had to go such level of spoonfeeding. This was my last aid for a while, you need to get some brainz, dude. _________________ "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... QUICK_EDIT
Yeah, you can figure out.... really... I can totally see that.
the point in asking is to avoid spending needless hours testing and figuring out what's already been tested and figured out, and sooner get to working out things maybe others haven't done yet.
i totally glossed over than it was staggered between air and ground, my mind kept seeing AG,AG,AG,AA,AA,AA >.<
and yes i do feel like an idiot for not noticing that. but not everyone notices the same patterns naturally.
i'm not used to thinking with this sort of script logic stuff, i'm usually in the realm of physics and philosophy. if you don't want to help, you don't have to, i'd be more than willing to await if someone else answered.
"needs ground,air,ground,air ... 2:1 weap:stages" was all i needed to know lol. _________________ ????????MyAnimeList my Last.fm QUICK_EDIT
This won't happen if you have ever checked the original gattling tank's code.
And the explanation notes in the original ini are sufficient enough imo. Ctrl+F and all is done. _________________ Aka DirtyChicken QUICK_EDIT
ah, yeah, my version didn't have those notes heh... and looking in the proper one now i didn't know there was this much notes O.o i only ever saw bits and bobs... random tiny side notes and section overviews and that was it...
definitely feel like a twit. i prob woulda gone and looked if someone told me to go find the original rules notes :X
that said the problem still lies within my crashing weapon build.
edit: lol now it explodes just by me clicking on it in the sidebar XD my gawd.
edit2:progress!!! it's not exploding! but it's not doing what i wanted at all XD _________________ ????????MyAnimeList my Last.fm QUICK_EDIT
-------------weaps:
[RailgunAmb] ;invisible cannon ball shot to impact on buildings and walls etc
Damage=100
ROF=100
Range=10
Speed=90
Projectile=InvisibleCannonLow
Warhead=RailShotPre
Bright=yes
[Railgun] ;actual rail shot that goes through
Damage=200
ROF=100
Range=10
Speed=100
Projectile=InvisibleMedium
Warhead=RailShot
LaserInnerColor=200,150,150
LaserOuterColor=200,150,150
LaserOuterSpread=200,150,150
LaserDuration=8
IsLaser=true
Bright=yes
IsRailgun=true
Anim=flashy2 ;gave fire sound to muzzle to get around sound glitch issue
AttachedParticleSystem=RailgunSys
so, where i'm at now, i doubt the particles and warheads have anything to do with it...
but there's the 2 weapons RailgunAmb, and Railgun
what i'm trying to do: have Railgun fire 1 frame after RailgunAmb
what is happening: Railgun is firing on ROF and RailgunAmb never fires
whenever i mess with the ROF's of the 2 weapons, i get a lot of things where like one weapon fires 3 times and the other fires once, and then the one fires 5 times and the other once, and then the one fires ones and th eother 3 times, it gets all random....
i'll keep working at it, but if anyone has any fantastic insight... _________________ ????????MyAnimeList my Last.fm QUICK_EDIT
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