project-navigation
Personal tools

Author Topic: Help on /base/ufo/medals.ufo (Pls Move and Ignore)  (Read 4035 times)

odie

  • Guest
Help on /base/ufo/medals.ufo (Pls Move and Ignore)
« on: March 12, 2009, 07:41:20 am »
*Edit*
My bad. Posted on wrong forum. Should be in coding section.

Pls ignore post. Thanks.

Hi,

A quick query. Been looking into the .UFO files

Came across medals.ufo and got some queries:

Code: [Select]
rank sergeant
{
name "_Sergeant"
shortname "_Sgt"
image "ranks/rank_04"
mind 60
killed_enemies 10
killed_others 7
type EMPL_SOLDIER
factor 0.5
}

I already know from the header comments what mind and killed_enemies and killed_other are.
I figured out what are the types too.

Query 1:
Does the name and shortname requires the "_" ?? What does it do??

Query 2:
What is the factor??

Query 3:
I noticed at the top of this file are codes paving for "Medals" and "Coins". What have the programmers / developers in mind for this pls?

Query 4:
I have noticed in some hacks (my own....), i have designated my characters to start with 100 attributes for some cases, and realised even after missions their stats are not improved. Is the max limit capped at 100 for each attribute? Where can i find the max attributes for diff states pls? I intend to see if i can help with balancing certain stuff. :)

PS: For noobs, pls dun clutter this thread with unnecessary comments. Its meant for developers and those who have played around this file. Thanks for cooperation.
« Last Edit: March 12, 2009, 07:54:31 am by odie »

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Help on /base/ufo/medals.ufo (Pls Move and Ignore)
« Reply #1 on: March 12, 2009, 08:08:29 am »
Query 1:
Does the name and shortname requires the "_" ?? What does it do??

"_" At the start tells the game: this string should be translated.

-geever

odie

  • Guest
Re: Help on /base/ufo/medals.ufo (Pls Move and Ignore)
« Reply #2 on: March 12, 2009, 08:16:20 am »
"_" At the start tells the game: this string should be translated.

-geever
OOOooo. Thanks geever! That was fast!

How abt the other queries, would u have ani ideas on those too pls? :)

PS: a lil sidetrack, do u have ani idea if the NSIS script query is missing somethings? I cant compile it again and it says missing file (See other thread). :P

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: Help on /base/ufo/medals.ufo (Pls Move and Ignore)
« Reply #3 on: March 16, 2009, 09:20:11 pm »
Q3:
Searching the code, I found this:
   float factor;      /**< a factor that is used to e.g. increase the win
                   * probability for auto missions */

odie

  • Guest
Re: Help on /base/ufo/medals.ufo (Pls Move and Ignore)
« Reply #4 on: March 17, 2009, 04:21:19 am »
Q3:
Searching the code, I found this:
   float factor;      /**< a factor that is used to e.g. increase the win
                   * probability for auto missions */


Eh Duke....
Wat was that float factor for?? *lost* haha.

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: Help on /base/ufo/medals.ufo (Pls Move and Ignore)
« Reply #5 on: March 17, 2009, 11:03:05 pm »
Now I looked it up in the code.
That part of the code is rather ...uhm...*unfinished*.
atm the factor has virtually NO effect on the outcome of a battle.

Do you happen to know of any discussion or concept (forums ? wiki ?) how the result of an auto-mission should be calculated ?

Offline Kildor

  • Project Artist
  • Captain
  • ***
  • Posts: 757
  • Project mapper and some other stuff`er
    • View Profile
    • http://ufoai.nx0.ru
Re: Help on /base/ufo/medals.ufo (Pls Move and Ignore)
« Reply #6 on: March 18, 2009, 03:26:04 am »
Duke, try to search at IRC-logs and Proposal section in wiki.

odie

  • Guest
Re: Help on /base/ufo/medals.ufo (Pls Move and Ignore)
« Reply #7 on: March 18, 2009, 03:26:46 am »
Now I looked it up in the code.
That part of the code is rather ...uhm...*unfinished*.
atm the factor has virtually NO effect on the outcome of a battle.

Do you happen to know of any discussion or concept (forums ? wiki ?) how the result of an auto-mission should be calculated ?

Actually i dun, Duke.

Perhaps you could post a new thread and see if BTAxis or geever gang can rig up something on this?
I know that auto mission paras are still very raw. In fact, i am exploring the codes on this... lol. Still on my medals and stuff, trying to rig something up.