project-navigation
Personal tools

Author Topic: UFO scripting: guide to changing scriptable parameters  (Read 10046 times)

Offline cannonfodder558

  • Rookie
  • ***
  • Posts: 27
    • View Profile
UFO scripting: .ufo files are not permitted for upload
« Reply #15 on: February 20, 2015, 06:57:43 am »
Hello. The extracted files cannot be uploaded. The filetype (*.ufo) is not permitted.
« Last Edit: February 20, 2015, 07:00:06 am by cannonfodder558 »

Offline ShipIt

  • Project Artist
  • Captain
  • ***
  • Posts: 906
    • View Profile
Re: UFO scripting: guide to changing scriptable parameters
« Reply #16 on: February 20, 2015, 09:29:05 am »
Using 7zip to compress the needed files would be a workaround. Also makes the up-/download size smaller.

Offline DarkRain

  • Project Coder
  • Captain
  • ***
  • Posts: 746
    • View Profile
Re: UFO scripting: guide to changing scriptable parameters
« Reply #17 on: February 20, 2015, 05:05:48 pm »
BTW just to answer the question: we are using the highest compression level (but it isn't required), besides that pk3 files are just renamed zip files, but need to contain the directory, so for example if you modified files from the 'ufos' directory then your pk3 must contain an 'ufos' directory with your modded files, if you additionally added files to 'pics/sfx/weapons' then your pk3 must have said directory with the added files in it, but as stated it is easier to just zip them all attach the zip here and tell people where each of them go

Offline cannonfodder558

  • Rookie
  • ***
  • Posts: 27
    • View Profile
Re: UFO scripting: guide to changing scriptable parameters
« Reply #18 on: February 21, 2015, 01:25:19 pm »
Thanks, ShipIt and DarkRain.

After experimenting a bit with lightcolour, lightintensity and particle size, here we go:
(s. attachment).

Just replace the 0ufo.pk3 in \UFOAI-2.5\base directory with the one attached.
Start the game.
Have fun.

------------------------------------

Fore more details:
The absolutely ONLY thing that has been changed in the game files is the appearance of ep ammo shots of the assault rifle/ heavy machine gun/ sniper rifle.

------------------------------------

That is exactly and only:
file 1 - weapons_plasma.ufo
modified
lines 389, 410, 433, (assault rifle)
lines 455, 497, 520, (heavy machine gun)
lines 543, 587, 609  (sniper rifle)
=> changed projectile def to bullet_ep / bullet-hmg_ep / bullet-sniper_ep

file 2 - ptl_weaponsfx.ufo
added
lines 258-324
=> new bullet definitions for ep_ammo
copied the standard bullet definitions,
changed picture to "plasmaPulse"
(used as pic for shots of alien plasma rifle),
changed the lightcolour to the one of ContinousBeam particle,
changed lightintensity to 0.9,
increased the lenght of the bullet_ep / bullet-hmg_ep from 40 to 50.

----------------------------------------
« Last Edit: February 21, 2015, 01:54:25 pm by cannonfodder558 »