OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Nasty Buttler on 30 Aug 2002, 05:08:54

Title: HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Nasty Buttler on 30 Aug 2002, 05:08:54


[attachment deleted by admin]
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Planck on 30 Aug 2002, 05:36:19
Placing the edited O.pbo in the original DTA folder works ok for getting resistance stuff onto your map in WrpEdit.........but.........you MUST remove it again before running the game.

If you have pbo'd your wrp file and want to view it in game it will not fail to load if you remove the edited O.pbo from the original DTA folder.  The original Resistance copy is used instead.

If you don`t remove it the game complains and bombs out.

Just remove it and put it somewhere safe or temporarily rename it, I use OO.pbo.........be aware though..........if you start to edit your wrp file in WrpEdit again, you must replace the O.pbo in the DTA folder or rename it back to O.pbo, failure to do so will mean WrpEdit won`t find the resistance objects you have added already and you won`t be able to add more of course.


Planck
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Nasty Buttler on 30 Aug 2002, 14:41:20
Sorry mate i dont have this problem......
i keep a copy of the new 46bytes less files in the dta dir in OFP and the originals in the resistance addons dir...and everything works peachy....
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: dwolf on 30 Aug 2002, 16:38:28
 Did I interpret this correct.
 You can actually use an island in-game using resistance objects and textures.Been waiting for the update for wrpedit to start using resistance objects.Understood how the load resistance  objects in wrpedit worked, but this is playable?
 
 Changing things in my wrpedit island after loading in
mission editor.Build some then check it,very monotonous,but
neccessary to get it like I want it.Would very much like to start using resistance objects also.

 
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Planck on 30 Aug 2002, 23:13:32
@Nasty

Maybe it depends on the machine or amount of memory, or how many addons you have in the Addons folder.......but.........it definitely bombs out on me.........maybe I should clean some stuff from my Addons folder.

Just so people know what to do if the same happens to them anyway.

@dwolf

If you can get Resistance objects onto your island using this method, they will work in game once you pbo your files and place it in the Addons folder.

Planck
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Nasty Buttler on 31 Aug 2002, 09:17:08
Yeah maybe, i got a p3 700 with 1GB of ram.....and no other user made addons installed
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: erfworm on 01 Sep 2002, 04:22:40
Ive got a problem using cutpbo. I put the proper files in a Temp folder and then drag one PBO onto cutpbo and it says it cut the first 46 bytes succesfully but it never makes the new.pbo Can anyone help me? Ive even done a search of files to see if it put it anywhere but there is nothing. Thanks
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Nasty Buttler on 01 Sep 2002, 06:48:59
are u running it in a dos box??
doesnt sound like it....
the cutpbo and the pbo itself need to be in the same directory, it creates a pbo called new-whatever.pbo in the same directory....

it works, u use a dos box
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: erfworm on 03 Sep 2002, 23:13:39
OK ive never heard of a DOS Box how do I make a DOS Box Im running XP Pro. Thanks
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Faculty on 06 Sep 2002, 20:30:17
You say for someone to play a wrp file thats been done like this will also have to do this process to play it?

coz i havent done it and ive played that new resistance island that came out

 
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Planck on 06 Sep 2002, 22:03:11
You only need to do it to get the objects onto an island in WrpEdit.

The actual game uses the Resistance copy of O.pbo, so there is no problem there.

WrpEdit at the moment can`t read the original Resistance O.pbo because the format of some Resistance pbo's was changed, including this one.  To enable WrpEdit to read the O.pbo the first 46 bytes need to be removed from a COPY of O.pbo.

The next version of WrpEdit apparently will be compatible with Resistance and be able to read all the pbo's.


Planck
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Faculty on 07 Sep 2002, 13:56:15
Help me ive done that but when i go to wrpedit it say something like no such object found or something :( helpy helpy helpy


  TIA
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Planck on 07 Sep 2002, 14:18:04
Faculty

If you have shaved the 46 bytes from a COPY of O.pbo.....and you have put the copy in the original OFP Dta folder, WrpEdit can see it and you are able to add objects to your map from it.  The copy MUST have the original name  i.e. O.pbo.

However, in most cases OFP will refuse to run, or run erratically if it comes across 2 files called O.pbo in its search path.

So when you finish editing your island and placing Resistance objects on it, either remove the copy of O.pbo from the Dta folder, or rename it temporarily.

You don`t need to worry about the game not finding it, it will use the original O.pbo.

If your copy of O.pbo was renamed after adding objects to your map, but before playing in game, you will need to rename it back to O.pbo before continuing to edit in WrpEdit.

If you do not rename it back to O.pbo, WrpEdit will complain about object not found.

If none of this helps, send it to me and I will look.......the .wrp file that is.....not the O.pbo......hahahahahahahahahahaha.



Planck
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Planck on 07 Sep 2002, 14:21:26
And that address is:

mcnicoll7@yahoo.com

I was just testing to see if you were paying attention.........honest.


Planck
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: HK on 11 Sep 2002, 22:53:14
Sounds like a hell of a lot of hassle, simple enough but just hassleworthy swap this file, move it swap it back check it  :-\, i'll wait till new wrpedit, and then i'll finish off island i started months ago, bridges n all  ;D......
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Faculty on 17 Sep 2002, 21:17:11
Ok Planck thanx so far but problem ive got it in to thie Hex editor but how do i know what to take off u say the first 46 but how do i do that count 46 numbers is it 46 lines, 46 monkeys,banana's  or what please help coz clearly u r da man

:)   thanx  :)
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Planck on 17 Sep 2002, 21:56:01
Faculty.......

Make sure your hex editor is displaying in hex mode:


The first 46 bytes of the original O.pbo are:


00 73 72 65 56 00 00 00 00 00 00 00 00 00 00 00

00 00 00 00 00 70 72 6F 64 75 63 74 00 4F 46 50

3A 20 52 65 73 69 73 74 61 6E 63 65 00 00


These are the bytes you need to remove.

The edited O.pbo will then start with:


41 6E 69 6D 5C 61 74 32 70 6B 6C 65 6B 31 2E 72


Hope this helps.



Planck
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Faculty on 17 Sep 2002, 22:47:50
Soi do that then all i have to do is save it then wack it in the dta folder in OFP dir right then loads Wrp.edit then add away with res objects?

Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Planck on 18 Sep 2002, 00:06:08
that is right........save it after removing the 46 bytes........then place it in the OFP Dta folder.......WrpEdit will be able to see it then
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Gummi on 13 Dec 2002, 20:09:56
where is this O.pbo ?????
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Planck on 13 Dec 2002, 23:20:52
You can find O.pbo in your OperationFlashpoint\Res\Addons folder.



Planck
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: SpecOpsBoy on 11 Feb 2003, 23:07:10
HELP i'm new to addons and I just found out that my addons file is read only. What should i do cause i can't take it off read only. :-\
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: EL Presidente on 19 Feb 2003, 15:25:28
hmmm where can i get this hex editor ??
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Hadrian-21VB on 19 Feb 2003, 20:43:08
I've got a problem:

I can see the buildings ect. in the WRP edit tool, but when I load the map in OFP they are gone.

I have
Further more I have tryed:

Where am I messing it up here ?

Another error I get is when Trees are picked in WRP edit I get this:

(http://www.21vb.dk/images/shots/error.jpg)

Hopefully someone out there can give me a little hand here  ;)
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Hadrian-21VB on 19 Feb 2003, 23:48:46
Helped:

Renamed O.pbo in RES\ addons
Copyed the cuted O.pbo to RES\ addons

Switched back to original when testing in OFP.
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Garcia on 20 Feb 2003, 22:11:30
errr, u should not have the cuted O.pbo in the addons folder...u should have it in the DTA folder, and then remove it when playing OFP...if u have it in the addons folder it sometimes happen that it fucks it up and the res stuff doesn't show in game...

Garcia

btw, if u change it to DTA folder after having it in addons folder the buildings etc u have placed will not show up in game....
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Hadrian-21VB on 23 Feb 2003, 02:17:46
Well thanks for the hint Carcia, that worked offcourse nicely  ;D

I'm still having trouble with that stream read error though..... anybody ?
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Planck on 23 Feb 2003, 05:43:15
Just to clarify here.

Your edited O.pbo should be placed in the OFP original Dta folder.  WrpEdit will see it ok, but, before running OFP, rename it or remove it somewhere that is not in OFP's file path.  Alternatively, you can rename it temporarily.

Remember to reverse whichever procedure you carried out when you want to continue editing your island in WrpEdit.
i.e. Put it back, or rename it back to O.pbo.
Failure to do this will result in WrpEdit complaining that it can't find any of the objects from O.pbo that you may have added to your island.

Another point,

The original O.pbo must NOT be moved elsewhere, it lives in the Res\Addons folder.
If you have moved it elsewhere, put it back.
It MUST be named O.pbo, if you have renamed it to something else, rename it back again.

Hope this helps.

Planck
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Hadrian-21VB on 23 Feb 2003, 22:32:42
Yup, I did understand that correct and everything is now working fine except for these files that gives me the "Stream read error".

Example;
I browse the O folder in wrp edit holding some more folders and a bunch of .paa for texturering ground.
About the first 50 .paa's or so works fine until I try from n1.paa and downwards, then it hits me with  "stream read error".

Its the same with the rest of the folders under O, some works fine and others dont.
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Planck on 23 Feb 2003, 23:05:20
I tried n1.paa and various others further down. and all works fine here.

Maybe you could try starting again with O.pbo, in other words make a new edited version.

If that doesn't fix it, it might be a problem with your map file or WrpEdit.

Try editing a different map file and see if the problem persists.

and/or

Try downloading WrpEdit again and re-installing it.

Just a thought, but, make sure you only have the textures you need in WrpEdits texture list.  It might be that if you have to many textures in the list, it becomes 'full up'.


Planck
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Hadrian-21VB on 24 Feb 2003, 22:59:47
Allright thanks - I'l try make a new O.pbo
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: deadshotscott on 09 Mar 2003, 18:43:51
i can't seem to get the "CutPBO" part to work of the process...I have the cutpbo and copied O.PBO in the same directory...I dragged O.PBO into the cutpbo.exe and it opens up in DOS window and it says "All Ok 46 bytes cutted"  If i hit any button or try to close it crashes and it never made a new pbo file....any ideas?
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Gielovic on 17 Mar 2003, 18:48:56
I've the same problem!!!!!!!!
Don't know what to do
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: taasinge on 18 Mar 2003, 01:24:38
When I try to cutpbo the file it complains about memory?

My stats...

P4 Northwood 1.8 GHz
512 MB DDR 2700

?????
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: deadshotscott on 13 Apr 2003, 06:24:07
anyone going to help?
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Planck on 13 Apr 2003, 15:10:07
Well, I have never used this Cutpbo tool.

So unfortunately I am unable to advise on its use.

Why not try using a hex editor as detailed earlier in this thread, to make a suitable O.pbo.


Planck
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: deadshotscott on 13 Apr 2003, 20:39:11
where can i obtain a hex editor???
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Planck on 13 Apr 2003, 21:44:55
Ok......try here:

http://download.com.com/3000-2352-10016142.html

And remember......only work on a copy of the O.pbo, DO NOT edit the original O.pbo.


Planck
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: deadshotscott on 13 Apr 2003, 22:08:05
RGR THAT, thx bro
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Garcia on 05 Jun 2003, 14:47:41
mhm...ok, I did this once before, but I don't remember how :-\ I need to use the bridge from res, not the big one, but the small one which is in the res data3d. How do I do this? I think I did something in hexedit the last time I did this.

Garcia
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Colonel_Klink on 12 Jun 2003, 01:02:45
Sounds like this thread is fun. :)
Ok. I have made my first island (looks crappy, but at least its a start). I have cut the first 46 bytes out of a copy of O.pbo in the OFP/DTA folder.Now Wrpedit sees the new o.pbo, and load it in.
THe problem I have is that when I insert an object Wrpedit tells me that the object is not loaded. The object instance shows on the map, but in Wrpedit viewer the land is as barren as before. Yet! In OFP the object is standing nice and pretty where it should be.
Any suggestions to overcoming the elusive Resistance objects not being loaded for view in Wrpedit Viewer.
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Planck on 13 Jun 2003, 00:27:54
@Colonel Klink

Just to check a few points here:

Your edited O.pbo file should now begin:

41 6E 69 6D 5C 61 74 32 70 6B 6C 65 6B 31 2E 72
74 6D 00 00 00 00 00 00 00 00 00 00 00 00 00 B1


It should be in the original OFP\Dta folder

It should still be named O.pbo

The original O.pbo should still be in Res\Addons


If all the following is correct then I am at a loss to explain why this is so.

How do you add the Resistance objects?
Do you use the 'O' folder entry in the Pb Manager in WrpEdit?
If so, this is correct.


Planck
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Colonel_Klink on 13 Jun 2003, 04:05:22
Everything is exactly as you say Planck. I'm at a total loss too. Will experiment some more.
Thanks anyway.
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Colonel_Klink on 14 Jun 2003, 04:19:46
Problem solved. I was using Hexedit to cut the bytes. When I used cutpbo it worked perfectly.
Title: Re:HOW TO get Resistance Buildings and textures into WrpEdit
Post by: Planck on 14 Jun 2003, 16:40:27
Hmmmmm........I used Hexedit also.....worked fine.

Ah well.......Glad you got it working.


Planck