project-navigation
Personal tools

Author Topic: Help needed with ufo scripts...  (Read 12890 times)

Offline MCR

  • PHALANX veteran
  • ******
  • Posts: 1244
    • View Profile
Help needed with ufo scripts...
« on: April 23, 2010, 09:57:42 am »
First I have to admit publicly here that I do not yet understand the syntax of the ufo files  ::), after reading those, I am not even 100% sure if there is a syntax to be used there...

1.)
I need some help  :-\.
I would need links where I can find the syntax of the ufo scripts or documentation on how exactly those scripts work...
Please do not give me this link: http://ufoai.ninex.info/wiki/index.php/UFO-Scripts#Scriptfiles
as I cannot find anything there...  :-[ :P ???

2.)
Maybe someone knowing stuff already could take a look @ that:
https://sourceforge.net/tracker/index.php?func=detail&aid=2991126&group_id=157793&atid=805245#

Take a look here also:
http://ufoai.ninex.info/forum/index.php?topic=4713.msg37203#msg37203

I want to see those great textures in-game  ;)!
Thank you in advance.

« Last Edit: April 24, 2010, 09:06:18 pm by MCR »

Offline Kildor

  • Project Artist
  • Captain
  • ***
  • Posts: 757
  • Project mapper and some other stuff`er
    • View Profile
    • http://ufoai.nx0.ru
Re: Help needed with ufo scripts...
« Reply #1 on: April 23, 2010, 10:38:01 am »
All information about .ufos is in wiki or comments in that files.
Ask precise questions if you have ones.


And that textures are in game. Just play a bit, and you will fight with ortnoks in medium armour. That`s all.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Help needed with ufo scripts...
« Reply #2 on: April 23, 2010, 10:59:50 am »

Offline MCR

  • PHALANX veteran
  • ******
  • Posts: 1244
    • View Profile
Re: Help needed with ufo scripts...
« Reply #3 on: April 23, 2010, 11:42:39 am »
@Kildor: Question: Why is Taman armor defined in armour.ufo, but Ortnok armor is not ?
« Last Edit: April 23, 2010, 11:56:05 am by Mattn »

Offline MCR

  • PHALANX veteran
  • ******
  • Posts: 1244
    • View Profile
Re: Help needed with ufo scripts...
« Reply #4 on: April 23, 2010, 11:54:58 am »
Why is medium armor for tamans not defined here, when light armor is (team_aliens.ufo) ?

   models {
      neutral {
         aliens/taman body01 head01 0
         aliens/taman body01 head01 1
      }

« Last Edit: April 23, 2010, 12:00:42 pm by Mattn »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Help needed with ufo scripts...
« Reply #5 on: April 23, 2010, 11:57:38 am »
what the heck are you talking about? in armour.ufo is light and medium armour for aliens defined. they should not appear in team_*.ufo (and are not in your paste).

Offline MCR

  • PHALANX veteran
  • ******
  • Posts: 1244
    • View Profile
Re: Help needed with ufo scripts...
« Reply #6 on: April 23, 2010, 12:00:41 pm »
It is only defined for the TAMAN, but not for the ORTNOK ?!?

How can this directories in team_aliens.ufo ever work for the Ortnok when the imagepath for them is NOT defined in armour.ufo ?
   models {
      neutral {
         aliens/ortnok body01 head01 0
         aliens/ortnok body01 head02 0
         aliens/ortnok body01 head03 0
         aliens/ortnok body01 head01 1
         aliens/ortnok body01 head02 1
         aliens/ortnok body01 head03 1
         aliens/ortnok body01 head01 2
         aliens/ortnok body01 head02 2
         aliens/ortnok body01 head03 2
      }

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Help needed with ufo scripts...
« Reply #7 on: April 23, 2010, 12:02:25 pm »
which image path are you now talking about? there is no image path. and there is everything right for the ortnok (except i'm not seeing something, which might of course be the case)

Offline MCR

  • PHALANX veteran
  • ******
  • Posts: 1244
    • View Profile
Re: Help needed with ufo scripts...
« Reply #8 on: April 23, 2010, 12:04:31 pm »
Quote armour.ufo:

//weights 100
item armour_light_alien
{
   name      "_Alien Body Armour"
   image      armour/taman_light

//weights 120
item armour_medium_alien
{
   name      "_Medium Alien Armour"
   image      armour/taman_medium
   type      armour

But NO PATH to Ortnokarmor...

Offline MCR

  • PHALANX veteran
  • ******
  • Posts: 1244
    • View Profile
Re: Help needed with ufo scripts...
« Reply #9 on: April 23, 2010, 12:08:01 pm »
But maybe I am completely wrong here, I do not know  :-[ :-\, but I am sure there is something 'fishy' there, like Duke would say...

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Help needed with ufo scripts...
« Reply #10 on: April 23, 2010, 12:11:00 pm »
ah, you posted team_*.ufo content but were refering to armour.ufo content - that's what had confused me.


that doesn't matter - as the image would be only used for displaying it in the menu. We don't have armour per race yet, only per team. But that does not have any impact on the values from team_*.ufo

Offline MCR

  • PHALANX veteran
  • ******
  • Posts: 1244
    • View Profile
Re: Help needed with ufo scripts...
« Reply #11 on: April 23, 2010, 12:17:33 pm »
It is just that Tamans are spawned (only in light armor), but ortnoks are not spawned in any armor when playing skirmish for example...
But when changing the definition to:
   models {
      neutral {
         aliens/ortnok body01 head01 0
         aliens/ortnok body01 head02 0
         aliens/ortnok body01 head03 0
         aliens/ortnoklight body01 head01 1
         aliens/ortnokmedium body01 head01 2
      }
You will suddenly see different kinds of (high-resolution, good looking) Ortnoks on the battlefield in Skirmish Mode...
Also the definition for Taman Medium Armor in team_aliens.ufo is missing:

aliens/taman body01 head01 2

I hope that helps you to understand, sometimes I feel like speaking Chinese language here  ;)

Offline MCR

  • PHALANX veteran
  • ******
  • Posts: 1244
    • View Profile
Re: Help needed with ufo scripts...
« Reply #12 on: April 23, 2010, 12:25:05 pm »
Mattn, thanks for the link.
There I found this:
Quote:
The model file name is the name for the unarmoured model. If the actor was equipped with an armour, the path is extended with the values from the particular armour definitions

Quote end.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Help needed with ufo scripts...
« Reply #13 on: April 23, 2010, 12:26:22 pm »
again, there should be NO armour references in team_*.ufo - they are only added  if the actor has any armour equipped

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Help needed with ufo scripts...
« Reply #14 on: April 23, 2010, 12:34:03 pm »
extended the wiki article a little bit on this topic.