Author Topic: Looking for this...  (Read 7185 times)

0 Members and 1 Guest are viewing this topic.

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
I'm trying to find where this is defined:
Code: [Select]
P_SF_INVULNERABLE  Does anyone know where it is?

It is part of the following larger statement/function/code thingy, (just to give people a better idea of what it is):  
Code: [Select]
parse_obj = mission_parse_get_arrival_ship( ship_name );
if ( parse_obj ) {
if ( invulnerable )
parse_obj->flags |= P_SF_INVULNERABLE;
else
parse_obj->flags &= ~P_SF_INVULNERABLE;
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline DTP

  • ImPortant Coder
  • 28
    • http://www.c4-group.dk
E:\FS2projects\freespace2_public\code\Parse\SEXP.CPP(5780):               parse_obj->flags |= P_SF_INVULNERABLE;
E:\FS2projects\freespace2_public\code\Parse\SEXP.CPP(5782):               parse_obj->flags &= ~P_SF_INVULNERABLE;
E:\FS2projects\freespace2_public\code\Mission\MissionParse.cpp(1534):   if ( objp->flags & P_SF_INVULNERABLE ) {
E:\FS2projects\freespace2_public\code\Mission\MissionParse.h(434):#define P_SF_INVULNERABLE         (1<<11)

that would be missionparse.h
VBB member; reg aug 1999; total posts 600.
War is a lion, on whos back you fall, never to get up.
Think big. Invade Space.

 

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
Great, thanks!
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline RandomTiger

  • Senior Member
  • 211
If you are using VC6++ use Edit:Find inn files, its very powerful.

 

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
I'm using the Web CVS and notepad.  :lol::nervous::(

Now I just have to find someone to compile this and see if my shield on/off sexps worked.
« Last Edit: October 19, 2002, 07:40:40 am by 448 »
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline RandomTiger

  • Senior Member
  • 211
Bloody hell, get yourself a compiler and edittor.
I started out with a demo copy of VC++ that I got with a book.

 

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
How much do they cost?  If it is more than $10, I'm too poor.  Anyway, I have three things I'd love to have quickly compiled and tested if you would be so good as to do so.
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline RandomTiger

  • Senior Member
  • 211
What are they?
Are they things that should be there by default?

I doupt I will want to compile your stuff, to be honest Im a lot more interested in my stuff.

If you want testers use the tester list.

 

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
Sexp.cpp, sexp.h, and sexp_tree.cpp are all the affected files.  Does it take much energy/resources to compile them?

Basically, I've attempted to write two sexps, one that turns on a ships shields in the middle of a mission, and one that turns them off.
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
As you can tell, I don't have any prior experience in the world of computer code, but I do have daveB's article about writing sexps and a good brain, so it wasn't too hard (or so it seems as yet:))
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline RandomTiger

  • Senior Member
  • 211
Can fs2_open be compiled with any free compilers for the PC (Im guessing).
I really think you are going to have to do your own work.

If theres even the smallest mistake you'll have to change it and someone will have to compile it and test it. Get yourself a compiler!

 

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
Okay, okay! :)  I've just done a search and am downloading one now.  I guess I'll have to download all the other code files to, so I suppose WinCVS is my next stop.  (right?)
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline RandomTiger

  • Senior Member
  • 211
Yep, Im not trying to be mean, this really is the best way :)
Give us a shout if you need any help, you might have to talk to Inquistor about cvs write access.

 

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
Okay, I guess I'm still unsure about how this works.  I've downloaded a compiler, but I'm not sure how to proceed now.  I can open all the source code files individually, and there is a nice friendly buttion called "compile", but if the output of the thing is going anywhere, I don't know where that is, and I have no idea how I'm supposed to make an operational exe from this.

Sorry to make people deal with a n00b. :)
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline RandomTiger

  • Senior Member
  • 211
Im not sure either, you will probably have to use the makefile I imagine.

 

Offline Inquisitor

Which compiler did you get? Currently, it only works with GCC and MS VS 6.
No signature.

 
 

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
Something called PIC-C.  It was a 30-day trial.

Going to download DJGPP now.  This is all in C, not C++, right?
« Last Edit: October 19, 2002, 10:53:38 am by 448 »
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline RandomTiger

  • Senior Member
  • 211
The code is most C sytle but is compiling with C++ and used some of its features.

 

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
Okay, so I'll get C and C++ for DJGPP then.
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting