Author Topic: Modify original campaign  (Read 2528 times)

0 Members and 1 Guest are viewing this topic.

Modify original campaign
Hi, im pretty shure, this already came up quite often, but i wasnt able to find it.

I wanted to make some minor changes to the original campaign missions. So first i searched for the mission files, and thought i found them in the "root_fs2.vp" so i extracted the mission.fs2 in question, made my changes and "reincluded" the modified one into the "root_fs2.vp".

However the mission doesnt change ingame....

I even deleted ALL mission files inside the root file, and FS was still able to run any missions. So i guess there has to be another copy of those mission files. But where? i checked my .vp files, but found no matches. Any ideas?

I know FS still reads the root file, since removing it or removing the campaign files inside the mission folder results in some error messages. But the mission files themself appear to be totally unnecessary.
« Last Edit: December 25, 2007, 01:49:52 pm by Damocles »

 

Offline Jeff Vader

  • The Back of the Hero!
  • 212
  • Bwahaha
Re: Modify original campaign
1. Modifying original vp files is never fun. Or advisable. A better way would be to extract the desired mission, modify it, and then save/move it to the \freespace\data\missions folder, where it would override the vp.

2. If you have the mediavps installed, particularly a set that makes the missions to take full advantage of LightSpeed's Nebulae, the missions would play even if you happened to **** up root_fs2.vp.

3.
:welcomered:
23:40 < achillion > EveningTea: ass
23:40 < achillion > wait no
23:40 < achillion > evilbagel: ass
23:40 < EveningTea > ?
23:40 < achillion > 2-letter tab complete failure

14:08 < achillion > there's too much talk of butts and dongs in here
14:08 < achillion > the level of discourse has really plummeted
14:08 < achillion > Let's talk about politics instead
14:08 <@The_E > butts and dongs are part of #hard-light's brand now
14:08 <@The_E > well
14:08 <@The_E > EvilBagel's brand, at least

01:06 < T-Rog > welp
01:07 < T-Rog > I've got to take some very strong antibiotics
01:07 < achillion > penis infection?
01:08 < T-Rog > Chlamydia
01:08 < achillion > O.o
01:09 < achillion > well
01:09 < achillion > I guess that happens
01:09 < T-Rog > at least it's curable
01:09 < achillion > yeah
01:10 < T-Rog > I take it you weren't actually expecting it to be a penis infection
01:10 < achillion > I was not

14:04 < achillion > Sometimes the way to simplify is to just have a habit and not think about it too much
14:05 < achillion > until stuff explodes
14:05 < achillion > then you start thinking about it

22:16 < T-Rog > I don't know how my gf would feel about Jewish conspiracy porn

15:41 <-INFO > EveningTea [[email protected]] has joined #hard-light
15:47 < EvilBagel> butt
15:51 < Achillion> yes
15:53 <-INFO > EveningTea [[email protected]] has quit [Quit: http://www.mibbit.com ajax IRC Client]

18:53 < Achillion> Dicks are fun

21:41 < MatthTheGeek> you can't spell assassin without two asses

20:05 < sigtau> i'm mining titcoins from now on

00:31 < oldlaptop> Drunken antisocial educated freezing hicks with good Internet == Finland stereotype

11:46 <-INFO > Kobrar [[email protected]] has joined #hard-light
11:50 < achtung> Surely you've heard of DVDA
11:50 < achtung> Double Vaginal Double ANal
11:51 < Kobrar> ...
11:51 <-INFO > Kobrar [[email protected]] has left #hard-light []

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Modify original campaign
You can get the original root_fs2.vp in the HotU Crack Pack on my site. I advise you grab that wipe your version and then add your changes to the ones in the media VPs not by remaking the media VP but simply by placing them in Freespace2\Mediavps\Data\Missions where they'll safely override the originals.

I further advise using WinMerge to copy any large changes across to the enhanced missions much more quickly than repeating everything in FRED.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Modify original campaign
I've noticed on quite a few occasions that FS2 will not use the ones in the data\missions folder but continue to use the ones in the VP.  A quick rename of the extracted file solves the problem.  This is in the tech room. 
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

 
Re: Modify original campaign
Ah wrong folder! 



i copied the new files to : freespace2/data/missions/ folder.

like  FUBAR-BDHR said, he didnt recognize them. So when i tried it in the campaign it still used the original mission. When i renamed it, it became playable in mission simulator.

I safed the original .vp files, and tried removing the mission files, from both root_fs2.vp (freespace 2 root folder) and mv_core.vp (FreeSpace2\mediavps ) .  That had no effect, but when i copied the mission files files to FreeSpace2\mediavps\data\missions it worked, even with restored core files. So, i guess problem solved. Thx :)

Was that a change, that came with SCP? I have the retail version, and always thought that freespace2/data/mission/ was the usual  override folder?
« Last Edit: December 25, 2007, 07:33:49 pm by Damocles »

 

Offline Jeff Vader

  • The Back of the Hero!
  • 212
  • Bwahaha
Re: Modify original campaign
As far as I know, it has always been a plural form, or 'missions' if you want to put it that way. At least the HotU download has the data folder with all the subfolders installed, and among them is a folder named 'missions'. And I think it's logical. You know, you can put many missions there, so it's only proper to call it 'missions'.
23:40 < achillion > EveningTea: ass
23:40 < achillion > wait no
23:40 < achillion > evilbagel: ass
23:40 < EveningTea > ?
23:40 < achillion > 2-letter tab complete failure

14:08 < achillion > there's too much talk of butts and dongs in here
14:08 < achillion > the level of discourse has really plummeted
14:08 < achillion > Let's talk about politics instead
14:08 <@The_E > butts and dongs are part of #hard-light's brand now
14:08 <@The_E > well
14:08 <@The_E > EvilBagel's brand, at least

01:06 < T-Rog > welp
01:07 < T-Rog > I've got to take some very strong antibiotics
01:07 < achillion > penis infection?
01:08 < T-Rog > Chlamydia
01:08 < achillion > O.o
01:09 < achillion > well
01:09 < achillion > I guess that happens
01:09 < T-Rog > at least it's curable
01:09 < achillion > yeah
01:10 < T-Rog > I take it you weren't actually expecting it to be a penis infection
01:10 < achillion > I was not

14:04 < achillion > Sometimes the way to simplify is to just have a habit and not think about it too much
14:05 < achillion > until stuff explodes
14:05 < achillion > then you start thinking about it

22:16 < T-Rog > I don't know how my gf would feel about Jewish conspiracy porn

15:41 <-INFO > EveningTea [[email protected]] has joined #hard-light
15:47 < EvilBagel> butt
15:51 < Achillion> yes
15:53 <-INFO > EveningTea [[email protected]] has quit [Quit: http://www.mibbit.com ajax IRC Client]

18:53 < Achillion> Dicks are fun

21:41 < MatthTheGeek> you can't spell assassin without two asses

20:05 < sigtau> i'm mining titcoins from now on

00:31 < oldlaptop> Drunken antisocial educated freezing hicks with good Internet == Finland stereotype

11:46 <-INFO > Kobrar [[email protected]] has joined #hard-light
11:50 < achtung> Surely you've heard of DVDA
11:50 < achtung> Double Vaginal Double ANal
11:51 < Kobrar> ...
11:51 <-INFO > Kobrar [[email protected]] has left #hard-light []

 
Re: Modify original campaign
ah yes, that was just a typing error in this post. I copied them in the "missions" folder. But it works fine now, though i dont know, why i had to put it in this other directory.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Modify original campaign
Basically when the SCP added the mod system we had to change where FS2 looks for files slightly. In retail anything in Data\Missions overrode anything in a VP file in the main FS2 folder. This is still true.

However anything in a mod folder will override anything in either folder. If I start the game with mod -transcend,mediavps the search order will be something like this

\Transcend\Data\Missions
VPs in \Transcend
Mediavps\Data\Missions
VPs in \Mediavps
Data\Missions
VPs in Main FS2 folder

If you'd run the game with no mods active the missions you had made would have worked. But if you choose to run with -mod mediavps then they will have lower priority than the versions in the mediavps.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 
Re: Modify original campaign
Ah.. thank you for this nice explanation  :yes:

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Modify original campaign
Basically when the SCP added the mod system we had to change where FS2 looks for files slightly. In retail anything in Data\Missions overrode anything in a VP file in the main FS2 folder. This is still true.

However anything in a mod folder will override anything in either folder. If I start the game with mod -transcend,mediavps the search order will be something like this

\Transcend\Data\Missions
VPs in \Transcend
Mediavps\Data\Missions
VPs in \Mediavps
Data\Missions
VPs in Main FS2 folder

If you'd run the game with no mods active the missions you had made would have worked. But if you choose to run with -mod mediavps then they will have lower priority than the versions in the mediavps.

There might be a bug then.  Recently in testing in both FS2 and TBP with no mods the campaign missions in the .vp show up in the tech room not the modified ones in the data\missions folder.  I'll make sure that I can reproduce this.
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 FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Modify original campaign
Well of course I couldn't get it to do that now.  What I might have been experiencing was modifying a file with the same name as one in a campaign that the currently selected pilot had not played yet.  Won't show up unless you select the campaign and unlock the missions or you rename the file.  I'm still not 100% convinced that the .vp files don't take priority over the data/missions files sometimes.  I will keep an eye out for it happening.
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 ARSPR

  • Preys On Mantis
  • 29
Re: Modify original campaign
There might be a bug then.  Recently in testing in both FS2 and TBP with no mods the campaign missions in the .vp show up in the tech room not the modified ones in the data\missions folder.  I'll make sure that I can reproduce this.

How the hell can you tell them apart in tech room?  :confused: :confused:

FSOpen loading priority only ensures that the HIGHEST priority located version of each equal named file will be used. In this way if you have different versions of MyMission.fs2 in FS2\data\missions, (I suppose the fixed one), and packed in FS2\WhichEver.vp>>data\missions, (I suppose the original "bugged" one), you know that the game will use the unpacked one. But unless they have different mission titles, (set through FRED), you won't be able to notice the difference in tech room because the mission name and file name are the same. Only when you play it, you'll see your fixes/changes applied.

And if you have NewMission.fs2 in data subfolder and OldMission.fs2 in any vp, FSOpen will actually load them both. And unless you change the campaign file, OldMission.fs2 will still be the only one used in that campaign. NewMission.fs2 will only be available as single mission.



Although a bug can always happen, it's really strange that a bug like that hasn't been noticed before. If it were me who thought about FSOpen loading priority failing, I would probably recheck TEN times that I wasn't doing anything wrong myself.
IF YOU HAVE TROUBLES WITH FS2:
  • Please, please, please, READ and UNDERSTAND the sticky threads in FreeSpace & FreeSpace Open Support board.
    A lot of people are willing to help you, but, as anyone can understand, seeing the very same "issues" repeated again and again can become quite depressing. Please, spend a bit of time trying to solve the issue by yourself.
    (Lobo deserves a monument).
  • Then, if you aren't still able to solve your issue, feel free to ask for help in that same board.
    FYI, most of the troubles are caused by wrong mod installations which lead to either missing data or undesired cross-effects between them. Always follow the mod installation instructions and keep a clean FS2 installation as explained in the sticky threads. Two additional links about how the game handles game data:
  • If you think that you've discovered a bug, mantis it.
    Provide as much info as you can, and try to narrow it down. A lonely "FS2 doesn't work" is not a good report.

Whoever Hanlon was: Never attribute to malice that which can be adequately explained by stupidity.
Albert Einstein: Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe.

Dell Dimension 9200 - Vista 32-bit Ultimate
Core 2 Quad Q6600 @2.4GHz - RAM 2 GB DDR2
nvidia 8800 GTX - Integrated Sigmatel Audio

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Modify original campaign
You can't tell unless you change the title or actually play the mission.  When you make an obvious change and you go into the simulator and the change isn't there, you rename the file and then it is,  what conclusion would you draw?  Weird thing is I still have a bunch of missions files with "a" added to the end.  I was doing that to get so it wouldn't grab the one out of the .vp file. 
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 karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Modify original campaign
CFILE figures out what is present on game load. If you had FRED and FS2_Open running at the same time and only saved your mission to the folder after FS2 was running you'd see exactly what you describe until you restarted the game.

It's only if the mission files already exist in Data\Missions  that you can save them and have it work. Otherwise as far as the game is concerned the folder is empty.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Modify original campaign
CFILE is actually supposed to always hit the disk when looking for new files for certain locations, such as: /data, /data/cache, /data/players/*, /data/multidata, /data/missions.  But that is restricted to the default path only, so if you are using a mod then it will only physically check in those locations under that one moddir.  It will also always hit the disk if you are looking in one specific location (like it should for loading model textures, pilot files and a couple of other little things).  If it isn't doing that properly then it is actually a bug.

Of course, it will still cache files in those locations as well, so if you delete a file later on while the game is running, the game will still think that it's there and try to use it.  That's probably one of the bigger problems with the CFILE code, with the cache vs. disk issue not really being a problem if you are basically aware of how the game looks for things.