Author Topic: Particle trail script  (Read 30827 times)

0 Members and 1 Guest are viewing this topic.

Offline m!m

  • 211
Re: Particle trail script
Sorry for double post but I uploaded a new version that should hopefully fix the bug pointed out by Shivan Hunter.

 

Offline Deadly in a Shadow

  • 29
  • Buntu!
Re: Particle trail script
It's me again and I just ant to say it's working now (thanks to 7226).
But it's odd: The particle effect appears just before the Orion/another ship explodes. Shouldn't the particles appear during the explosion?
Despite that, there are no errors/crashes anymore.
"Ka-BOOOOOOOOM!!!!"
"Uh, Sir we can hear the explosion."
"No you can't, there is no air in space. Sound can't travel through a vacuum!"

 

Offline m!m

  • 211
Re: Particle trail script
It is intended to be that way, you can adjust the moment the particles will be emitted, look at the documentation at the value "+Emitstate"

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Particle trail script
Quote
all code in trunk     ... fail

Time to update this?  :p
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline m!m

  • 211
Re: Particle trail script
Fixed  :p

 

Offline Deadly in a Shadow

  • 29
  • Buntu!
Re: Particle trail script
It is intended to be that way, you can adjust the moment the particles will be emitted, look at the documentation at the value "+Emitstate"
Thanks, looks marvelous.
"Ka-BOOOOOOOOM!!!!"
"Uh, Sir we can hear the explosion."
"No you can't, there is no air in space. Sound can't travel through a vacuum!"

 
Re: Particle trail script
Hi,
could someone upload their particle config so us noobs doesn't have to create them themself? :)

Thanx

 

Offline Deadly in a Shadow

  • 29
  • Buntu!
Re: Particle trail script
Hi,
could someone upload their particle config so us noobs doesn't have to create them themself? :)

Thanx

Configuring that is very easy.
1.Copy the testeffect entry (particle.cfg) and paste it under the testeffect
2. change the name GTD Orion to GTC Fenris (just an example)
3. modify it as you want
4. watch a Fenris-class cruiser exploding with nice, crispy particles.

The only variables that are important for you: Size (the size of the particles), number (the number of the particles), emitstate (when the particles have to appear) and time (duration of the particles). The other variables are for more advanced pyro's
« Last Edit: June 04, 2011, 06:57:11 am by Deadly in a Shadow »
"Ka-BOOOOOOOOM!!!!"
"Uh, Sir we can hear the explosion."
"No you can't, there is no air in space. Sound can't travel through a vacuum!"

 

Offline m!m

  • 211
Re: Particle trail script
New version with density adjusting uploaded. Short summary: Now you can modify the density of the trail by adding "+Density" to the trail definition. This takes a value that it 0 > x >= 1 that will then specify the trail density (0.5 means that the trail is half a dense meaning that every second frame a particle is created).

 

Offline Deadly in a Shadow

  • 29
  • Buntu!
Re: Particle trail script
New version with density adjusting uploaded. Short summary: Now you can modify the density of the trail by adding "+Density" to the trail definition. This takes a value that it 0 > x >= 1 that will then specify the trail density (0.5 means that the trail is half a dense meaning that every second frame a particle is created).
It's time to make more screenshots.....
This will make the fireworks even more awesome.

Uh, it seems that something isn't working. When I start the game, I got two errors and another one during the mission loading.
When the Orion explodes, there are no trails. Even on standard density. I used the fresh .cfg from the download.

Unfortunately, I can't post a log because the nearly every debug build crashes when I put something into the debugger...

« Last Edit: June 06, 2011, 02:03:15 pm by Deadly in a Shadow »
"Ka-BOOOOOOOOM!!!!"
"Uh, Sir we can hear the explosion."
"No you can't, there is no air in space. Sound can't travel through a vacuum!"

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Particle trail script
Error while processing file "particles.lua". Errormessage:
[string "particles.lua"]:556: 'end' expected (to close 'if' at line 554) near 'elsee'
ntdll.dll! NtWaitForSingleObject + 21 bytes
kernel32.dll! WaitForSingleObjectEx + 67 bytes
kernel32.dll! WaitForSingleObject + 18 bytes
fs2_open_3_6_13r_INF_SSE2-20110602_r7226.exe! <no symbol>
fs2_open_3_6_13r_INF_SSE2-20110602_r7226.exe! <no symbol>
fs2_open_3_6_13r_INF_SSE2-20110602_r7226.exe! <no symbol>
fs2_open_3_6_13r_INF_SSE2-20110602_r7226.exe! <no symbol>
ntdll.dll! RtlInitUnicodeString + 356 bytes
fs2_open_3_6_13r_INF_SSE2-20110602_r7226.exe! <no symbol>
fs2_open_3_6_13r_INF_SSE2-20110602_r7226.exe! <no symbol>
fs2_open_3_6_13r_INF_SSE2-20110602_r7226.exe! <no symbol>
fs2_open_3_6_13r_INF_SSE2-20110602_r7226.exe! <no symbol>
fs2_open_3_6_13r_INF_SSE2-20110602_r7226.exe! <no symbol>
fs2_open_3_6_13r_INF_SSE2-20110602_r7226.exe! <no symbol>
fs2_open_3_6_13r_INF_SSE2-20110602_r7226.exe! <no symbol>
fs2_open_3_6_13r_INF_SSE2-20110602_r7226.exe! <no symbol>
fs2_open_3_6_13r_INF_SSE2-20110602_r7226.exe! <no symbol>
fs2_open_3_6_13r_INF_SSE2-20110602_r7226.exe! <no symbol>
fs2_open_3_6_13r_INF_SSE2-20110602_r7226.exe! <no symbol>
kernel32.dll! BaseThreadInitThunk + 18 bytes
ntdll.dll! RtlInitializeExceptionChain + 99 bytes
ntdll.dll! RtlInitializeExceptionChain + 54 bytes


is what im getting with the latest particle build
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline m!m

  • 211
Re: Particle trail script
 :banghead: Argh, stupid typo. Download link updated.

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Particle trail script
Latest version works quite nicely  :nod:
Excellent work m!m  :yes:
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

  
 

Offline Deadly in a Shadow

  • 29
  • Buntu!
"Ka-BOOOOOOOOM!!!!"
"Uh, Sir we can hear the explosion."
"No you can't, there is no air in space. Sound can't travel through a vacuum!"

 

Offline 666maslo666

  • 28
  • Artificial Neural Network
Re: Particle trail script
Shots?

Yeah, you dont have to tell me twice!!   :nod:

"For once you have tasted flight you will walk the earth with your eyes turned skywards, for there you have been and there you will long to return." - Leonardo da Vinci

Arguing on the internet is like running in the Special Olympics. Even if you win you are still retarded.

 

Offline Nighteyes

  • 211
Re: Particle trail script
some problems I found while using the latest version of the script:
density dosnt work right, before it looked nicer, even with density set to 0 it dosent give a nice full trail like before.
is it possible to go below 1? (0.25,0.5)
trail size calculation isnt right, it goes according to the ship its used on, meaning if a big ship and a small ship both use the same trail, the actual size will be much smaller on the smaller ship as opposed to the size of the big ships particles...

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Particle trail script
All size calculation is based on the size of the ship that is exploding. Actually makes a lot of sense to me. In the very least it prevents needing to have a lot of seperate trail entries!
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline Nighteyes

  • 211
Re: Particle trail script
All size calculation is based on the size of the ship that is exploding. Actually makes a lot of sense to me. In the very least it prevents needing to have a lot of seperate trail entries!

in theory it makes sense, but in practice it doesn't work right, what would look good for a trail on a destroyer sized ship would look tiny on a cruiser, even when you would probably want more or less the same size of fire trail for both ship types, thus, making you to have a lot of separate trail entries...

 

Offline Nighteyes

  • 211
Re: Particle trail script
Shots?
You mean screenshots?

here are a few, still working on it to make it look right: