Custom object .req issues

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Custom object .req issues

Post by AnthonyBF2 »

A friend uses Sketchup program to create things and gave me a simple msh object to test in the BF2 Mod Tools, but it doesn't go correctly. I set up the object odf and everything I know that I should do.

This is a test to get more objects working after we can do 1, this model name is "fun"

The game results in loading with blackness background and no command posts.

Here is the munge log:
Hidden/Spoiler:
ERROR[levelpack MOD.req]:Expecting bracket, but none was found.
File : munged\pc\fun.model.req(1)...

ucft <--
ERROR[levelpack MOD.req]:Expecting bracket, but none was found.
File : munged\pc\fun.model.req(1)...

ucft <--
[continuing]
2 Errors 0 Warnings

ERROR[levelpack MOD_1flag.mrq]:Could not open munged\pc\mz.files for input. DOS reports:
No such file or directory
ERROR[levelpack MOD_1flag.mrq]:Could not open munged\pc\mz.files for input. DOS reports:
No such file or directory
[continuing]
ERROR[levelpack MOD_conquest.mrq]:Could not open munged\pc\mz.files for input. DOS reports:
No such file or directory
ERROR[levelpack MOD_conquest.mrq]:Could not open munged\pc\mz.files for input. DOS reports:
No such file or directory
[continuing]
ERROR[levelpack MOD_ctf.mrq]:Could not open munged\pc\mz.files for input. DOS reports:
No such file or directory
ERROR[levelpack MOD_ctf.mrq]:Could not open munged\pc\mz.files for input. DOS reports:
No such file or directory
[continuing]
ERROR[levelpack MOD_eli.mrq]:Could not open munged\pc\mz.files for input. DOS reports:
No such file or directory
ERROR[levelpack MOD_eli.mrq]:Could not open munged\pc\mz.files for input. DOS reports:
No such file or directory
[continuing]
8 Errors 0 Warnings

ERROR[levelpack MOD.req]:Expecting bracket, but none was found.
File : munged\pc\fun.model.req(1)...

ucft <--
ERROR[levelpack MOD.req]:Expecting bracket, but none was found.
File : munged\pc\fun.model.req(1)...

ucft <--
[continuing]
2 Errors 0 Warnings
Here is the odf setup:
Hidden/Spoiler:
[GameObjectClass]

ClassLabel = "prop"
GeometryName = "fun.msh"


[Properties]

GeometryName = "fun"

FoleyFXGroup = "metal_foley"
Since I did not create the object/textures I don't know what can go wrong. I have also rarely tried to import new objects.

Thanks.
Edit: I saw my mistake in the odf and corrected it, now the visualmunge just hangs at munging the odf, for ever, which is not a new result, it's happened before with the same object.

I've let it run for over an hour and it just hangs on munging the odf.
I can use taskmgr to terminated pc_modelmunge.exe and the munge will continue, but the object will not exist in the map.
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: Custom object .req issues

Post by MileHighGuy »

if it is just a prop it shouldn't need a .req file (not saying you have one)... Does the object show up in the msh viewer? If not then your friend messed up with the msh.
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Custom object .req issues

Post by AnthonyBF2 »

Yes the object works in MSH viewer.
I didn't know objects need a req... do they? :?
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Custom object .req issues

Post by Teancum »

Objects only need a req if they're not part of the map itself. So if your model is in data_[Mapname]/Worlds/[Mapname]/MSH and your odf is in data_[Mapname]/Worlds/[Mapname]/ODF and you've placed it as a prop somewhere on your map you don't need a req file. The munge knows to include it. What are you doing with this model?

By the way, if you have ANY munge errors (not warnings, errors) don't even bother trying to load your map.
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Custom object .req issues

Post by AnthonyBF2 »

Just wanted to test if it could be used... I placed the msh directly in zero editor without selecing the odf file.

Still, the munge hangs at some point or I get the munge issue I listed already.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Custom object .req issues

Post by Teancum »

How many polygons does the model have? It may also have other issues if the munge is hanging. You can try making a [meshname].msh.option with a text editor and adding the line

-nocollision

as the only line inside it. Save it to the same folder as your model and munge again. If it still doesn't munge you will need to do a manual clean via the tutorial below, then munge again.

viewtopic.php?f=27&t=9961
Post Reply