Author Topic: How to build an Inferno build  (Read 3230 times)

0 Members and 1 Guest are viewing this topic.

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
How to build an Inferno build
Since I got tired of being asked by people who are capable of doing it themselves but don't know how I figured it was better to just explain how it's done than to keep being asked.

I'm assuming you already know how to check out and compile FS2_Open and are just stuck on how to make an Inferno build. I'm also assuming you're using MSVC 2005 or 2008 (which is what most new Windows coders use).


On the left hand side of the program you'll see the solution explorer/class view/whatever. Right click on code, choose properties, select C++->Preprocessor. At the top you'll see Preprocessor Definitions and it will have a line that looks something like this

Code: [Select]
_WINDOWS;WIN32;_DEBUG;USE_OPENAL;_CRT_SECURE_NO_DEPRECATE;NO_DIRECT3D;_SECURE_SCL=0;_HAS_ITERATOR_DEBUGGING=0;
All you do is add, INF_BUILD; at the end of that line, after the last semi-colon (if there isn't one, add it). That particular project will now be an Inferno build. Unfortunately it's only that configuration of that project that this changes. If you look in the configuration option you'll probably have debug selected, swap to release and do the same thing to the other one.

The game will now build Inferno into the code, but it won't build FS2_Open builds until you repeat this process with the the other projects. So right click on Freespace2 and Fred2 and repeat the process (remembering to do it for both release and debug builds).

Now just rebuild everything (it is best to rebuild. I've seen MSVC completely **** up by failing to notice that a now has changes that need to be compiled in).

Once you're done you will have to reverse your steps and remove the INF_BUILD; entry if you want to build standard builds again.

Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: How to build an Inferno build
You might also want to just copy your MSVC* project folder and create a new one for Inferno builds.  Do the build clean before you copy it though or you'll copy a bunch of crap you don't need, and it takes forever with all those little .o files floating around.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: How to build an Inferno build
Yeah. That's a pretty good alternative if you build them often. Takes up twice as much diskspace though.  :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 
Re: How to build an Inferno build
What's the difference between an normal build and an incendiary build :unsure:?
(Since I now have a nice oppertunity to ask it...)

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: How to build an Inferno build
Inferno builds were originally for the Inferno mod, and they have increased ship limits, among other things, but the pilot files are incompatible with normal ones and I believe it breaks multiplayer.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline asyikarea51

  • 210
  • -__-||
Re: How to build an Inferno build
What about multiplayer involving Inferno builds only (i.e. none of the clients use a standard build because maybe the mod already needs an Inferno build)?

Would those be affected?

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: How to build an Inferno build
At the moment Inferno won't run multiplayer at all AFAIK. We could fix that easily, but then we face a problem with Inferno builds corrupting the pilot files for non-Inferno build players.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline asyikarea51

  • 210
  • -__-||
Re: How to build an Inferno build
*makes mental note to stay within standard build limits rather than Inferno limits*

I've been using INF builds as of late. Thought maybe I could just send an Inferno build to my beta tester. With a fresh install I don't expect said tester to be using back any old pilot files, but oh well might as well run a setup with the lowest "probability of error" before actually doing anything...

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: How to build an Inferno build
The Inferno build won't corrupt your pilot files in single since it creates a separate directory for them.
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline CaptJosh

  • 210
Re: How to build an Inferno build
It used to, until they did that. IIRC, inferno builds are still capable of converting standard pilot files, though why you'd want to I don't know.
CaptJosh

There are only 10 kinds of people in the world;
those who understand binary and those who don't.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: How to build an Inferno build
The Inferno build won't corrupt your pilot files in single since it creates a separate directory for them.

Yep. It's only in multi that the danger exists. And even then I'm not certain it actually would corrupt the file. There's a good chance it would simply crash the client machine first instead.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline asyikarea51

  • 210
  • -__-||
Re: How to build an Inferno build
Beta testing for me usually means singleplayer for a long while, then a random 1v1 or tag session would be bound to happen sooner or later, so multi is definitely a part of it. Thanks for the note.

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
Re: How to build an Inferno build
I could add the inferno option to visual studio 2008.  I don't know who else builds using that other than me and chief.
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: How to build an Inferno build
Yeah I suppose it could be added to the existing project instead of creating a whole new project file.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline CaptJosh

  • 210
Re: How to build an Inferno build
I don't use Visual Studio, but I do use MSVC 2008 Express edition, which uses the same project file, AFAICT.
CaptJosh

There are only 10 kinds of people in the world;
those who understand binary and those who don't.

  

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: How to build an Inferno build
It's still basically Visual Studio, just without the MFC stuff and a couple other things.  Still gets the job done for the FS2 builds, just can't build FRED.  So yeah, it was designed to work with the same project files, etc.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays