Jump to content
Sign in to follow this  
chumysl

Magic error on load, but path is defined well

Recommended Posts

Hey.

 

Im trying to repath some weapons in order to replace some of the BIS ones. I already replaced some, but when Im trying to replace the M16, OFP displays a Magic error on load. Looking on the forums I found that it may be caused by a badly defined path. However, in my config the path is defined well, yet the error still displays. Is it an error on the model? (ODOL repathed with Notepad) Or is it an error on the config? Here is the config relevant part just in case, the PBO is named MEX_WP.

	class M16:Riffle
		{
		scopeWeapon=2;
		scopeMagazine=2;
		valueWeapon=0;
		valueMagazine=1;
		model="\MEX_WP\M16A2.p3d";
		modelOptics="optika_m16";
		optics=1;
		opticsZoomMin=0.35;
		opticsZoomMax=0.35;
		displayName="M16A2";
		displayNameMagazine="$STR_MN_M16";
		shortNameMagazine="$STR_SN_M16";
		drySound[]={"weapons\M16dry",0.01,1};
		magazines[]={"M16","Mortar"};
		modes[]={"Single","Burst"};

Thank you in advance.

Share this post


Link to post
Share on other sites

As the path to the file seems ok, it might be the method you chose for editing. By that I mean using notepad. 

I know it does work. But not consistently. You should always start with an MLOD. 

 

The Arma 2 sample packs will have some M16s in them, which are legally usable in the other engines. Including CWA.

 

Repath textures with TxtPathSwap or the mass texture renaming tool in O2PE.

Share this post


Link to post
Share on other sites

If You want to change texture path in ODOL model, don't use Notepad, but hex editor, like XVI32. Just remember that You need model author acceptance to tinker with it!

Share this post


Link to post
Share on other sites

Hi.

 

If You want to change texture path in ODOL model, don't use Notepad, but hex editor, like XVI32. Just remember that You need model author acceptance to tinker with it!

 

Tried with hex, but it still doesnt work. Funny thing is, that (and M16 GL) is the only model that gives me trouble, I already replaced most of the other. And yes, I do have permission (forgot to add that at the start, sorry). Thanks anyway.

 

 

As the path to the file seems ok, it might be the method you chose for editing. By that I mean using notepad. 

I know it does work. But not consistently. You should always start with an MLOD. 

 

The Arma 2 sample packs will have some M16s in them, which are legally usable in the other engines. Including CWA.

 

Repath textures with TxtPathSwap or the mass texture renaming tool in O2PE.

 

Out of curiosity, how do I convert A2 models to OFP? Do I need to own the game? Can I open them with the original O2? Or I don´t need the game to run the ArmA O2? Im seriously considering to use them if I cant get these models to work. Thank you in advance.

Share this post


Link to post
Share on other sites

There are 2 methods. Either Use O2PE or Blender with Alwarren's toolbox addon.

 

If you need O2PE to run with the viewer, then you will need to buy a copy of Arma 2. 

 

However O2PE can still open the A2 samples and export them to the older P3d format. From there you will obviously have a bit of work to do. :)

Share this post


Link to post
Share on other sites

Out of curiosity, how do I convert A2 models to OFP? Do I need to own the game?

 

Yes and no. What Macser said is 100% correct - You don't need to own the game, just run O2PE without viewer. However, BI Sample Models don't contain textures - and AFAIK the only place to get them is the game. Which kinda defeats the whole purpose of sample packs (as BI stated that it is legal to debinarise their game data to use it in another ArmA iteration).

 

I was wrong: binarised game data is available here. Sample packs (containing debinarised models in A2 format) are here. Bless the Czechs! (And other guys in 'Hemia)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×