project-navigation
Personal tools

Author Topic: What language?  (Read 12734 times)

Offline Legendman3

  • Sergeant
  • *****
  • Posts: 306
    • View Profile
What language?
« on: July 25, 2010, 09:11:11 pm »
What programming language is UFO: AI wrote in? Im learning a bit of C++ and I would like to know.

Offline Thrashard96

  • Squad Leader
  • ****
  • Posts: 260
    • View Profile
Re: What language?
« Reply #1 on: July 25, 2010, 09:16:29 pm »
Depends on which file are you trying to edit. Ones are info and directories, while others are commands and instructions.

Offline Legendman3

  • Sergeant
  • *****
  • Posts: 306
    • View Profile
Re: What language?
« Reply #2 on: July 25, 2010, 09:21:02 pm »
Well then thats odd to me.. but give me a list of languages the game uses then.

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: What language?
« Reply #3 on: July 25, 2010, 09:25:00 pm »
What programming language is UFO: AI wrote in? Im learning a bit of C++ and I would like to know.

The game is written in C. The map editor in C++.

PAUL1UZ5, may referred to ufo files, they're rather configuration files and have easy syntax.

-geever

Offline Thrashard96

  • Squad Leader
  • ****
  • Posts: 260
    • View Profile
Re: What language?
« Reply #4 on: July 25, 2010, 09:25:51 pm »
In the pk3 files:

//ANYTHING

Model ../dir/dir/file.extemsion
Ammo ANYTHING_ammo

and so on and so on

In .C files:

{
  {
   Command (parameter1, parameter2, parameter3)
   }
}

Offline Legendman3

  • Sergeant
  • *****
  • Posts: 306
    • View Profile
Re: What language?
« Reply #5 on: July 26, 2010, 12:01:07 am »
Well Im not gonna go learn C so ill stick with editing the editor.  ;D

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: What language?
« Reply #6 on: July 26, 2010, 11:20:59 am »
Well Im not gonna go learn C so ill stick with editing the editor.  ;D

C and C++ are quite similar, you just don't have classes here, no default value for function parameters and so. If you learn C++ I think you will be able to fix some bugs in a C code. ;)

-geever

Offline bayo

  • Professional loser
  • Project Coder
  • Captain
  • ***
  • Posts: 733
    • View Profile
Re: What language?
« Reply #7 on: July 26, 2010, 03:59:00 pm »
or add add some new ones

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: What language?
« Reply #8 on: July 28, 2010, 12:52:54 am »
Well Im not gonna go learn C so ill stick with editing the editor.  ;D
C++ is a *superset* of C. That is, if you know/learn C++, you can always do C.
NO excuse ;)

Offline Legendman3

  • Sergeant
  • *****
  • Posts: 306
    • View Profile
Re: What language?
« Reply #9 on: July 29, 2010, 08:46:29 pm »
Oh. Well im new dont kill me with it.

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: What language?
« Reply #10 on: July 29, 2010, 11:01:37 pm »
Don't worry, I'm not gonna try to talk you into coding for UFO:AI.
The ufo code is a rather bad starting point for beginners. The examples in your C++ classes will be much easier.
However, once you've done your classes, you'll be able to partially read & understand the ufo code.

Offline Destructavator

  • Combination Multiple Specialty Developer
  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1908
  • Creater of Scorchcrafter, knows the zarakites...
    • View Profile
Re: What language?
« Reply #11 on: July 31, 2010, 11:54:43 pm »
I'm the same way, having started with a C++ approach, although all that I know about it I've learned on my own, I did not sit in any class.

Offline Thrashard96

  • Squad Leader
  • ****
  • Posts: 260
    • View Profile
Re: What language?
« Reply #12 on: August 01, 2010, 09:23:07 pm »
Me too...

Offline Legendman3

  • Sergeant
  • *****
  • Posts: 306
    • View Profile
Re: What language?
« Reply #13 on: August 04, 2010, 11:02:21 pm »
The examples in your C++ classes...

Lol I havent used classes self taught.

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: What language?
« Reply #14 on: August 05, 2010, 01:10:13 am »
ok. change that to
The examples in your C++ books...