Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: MachManX on October 13, 2006, 11:17:23 am

Title: FRED Error! Can't open model file <none>
Post by: MachManX on October 13, 2006, 11:17:23 am
This is the error I get when I try to run any FRED created missions in Freespace 2:-

Error: Can't open model file <none>
File:C:\temp\fs2_open_3_6_9.t\code\Model\ModelRead.cpp
Line: 1870
[This filename points to the location of a file on the computer that built this executable]

Call stack:
--------------------------------------------------------
--------------------------------------------------------

[This info is in the clipboard so you can paste it somewhere now ]

Use OK to break into Debugger, Cancel exits.


I've tried the 3.6.9 Fred, the current CVS build Fred, and the default Fred, but they all have the same problem.  I've also tried the 3.6.9 FS2 Open and the current CVS build FS2 Open, but nothing works.  What must I do to make FRED created missions work?  Is there some kind of configuration I have to apply to Fred2 Open to work?  I've already used the -fredhtl command.  Help me.
Title: Re: FRED Error! Can't open model file <none>
Post by: Goober5000 on October 13, 2006, 12:11:43 pm
What mods are you using?
Title: Re: FRED Error! Can't open model file <none>
Post by: MachManX on October 14, 2006, 10:49:20 am
Just the stuff in my signature.
Title: Re: FRED Error! Can't open model file <none>
Post by: Goober5000 on October 14, 2006, 11:45:25 am
Try disabling them then.
Title: Re: FRED Error! Can't open model file <none>
Post by: MachManX on October 15, 2006, 06:30:50 pm
If I disable the mediaVPs, what is the point of using SCP?  I'm just curious on how this will solve the problem.  :yes:
Title: Re: FRED Error! Can't open model file <none>
Post by: Goober5000 on October 15, 2006, 07:57:24 pm
If I disable the mediaVPs, what is the point of using SCP?  I'm just curious on how this will solve the problem.  :yes:

It will determine whether the error is in the mediaVPs or in something else. :doubt:
Title: Re: FRED Error! Can't open model file <none>
Post by: karajorma on October 16, 2006, 01:19:03 am
It's not a complete solution so much as a step in diagnosing where the problem lies.

If disabling doesn't work run a search for *.tbl, *.tbm and *.vp in you main fs2 folder and all subfolders and tell us what you turn up.
Title: Re: FRED Error! Can't open model file <none>
Post by: MachManX on October 16, 2006, 01:13:04 pm
Well, I tried disabling the mediaVPs and still get the same error.  Now, instead of hitting cancel when I get that error message, I hit OK.  After a few seconds, the exact same error message shows up.  So that's 2 times the same error message shows up.  NOW, if I click OK again, I get a completely different error message:-

Error: Unable to swap buffers
Error code: 2
File:C:\temp\fs2_open_3_6_9.t\code\graphics\gropengl.cpp
Line: 1599
[This filename points to the location of a file on the computer that built this executable]

Call stack:
------------------------------------------------------------------
   fs2_open_3_6_9.exe 006a0d09()
   kernel32.dll 7c816fd7()
------------------------------------------------------------------

[ This info is in the clipboard so you can paste it somewhere now ]


Use OK to break into Debugger, Cancel exits.



I get this error with the optimized build (fs2_open_r-P420061003.exe) as well, with a few changes:-

Error: Unable to swap buffers
Error code: 2
File:\fs2_open\code\graphics\gropengl.cpp
Line:1606
[This filename points to the location of a file on the computer that built this executable]

Call stack:
------------------------------------------------------------------
------------------------------------------------------------------

[ This info is in the clipboard so you can paste it somewhere now ]


Use OK to break into Debugger, Cancel exits.



I tried using the plain old Freespace2.exe, which uses fs2.exe and tried to load the mission, but it says "Attempt to load mission Failed".

I just tried loading a FRED created mission with just 1 fighter and 1 Sathanas without any other customizations, and I get the same errors.  Hell, I couldn't even load a FRED created mission with just 1 Loki and put into Alpha wing.  WTH is going on?

My .tbl:-
ai.tbl, hud.tbl, music.tbl, ships.tbl, stars.tbl, weapon_expl.tbl, weapons.tbl

No .tbm files.

My .vp:-
root_fs2, smarty_fs2, sparky_fs2, sparky_hi_fs2, stu_fs2, tango1_fs2, tango2_fs2, tango3_fs2, warble_fs2, mp-710_adveffects, mp-710_effects, mp-710_models, mv_adveffects, mv_core, mv_effects, mv_models, mv_music, mv_textures

Hope this helps.  BTW, I played ITDoH 4 with no problems whatsoever.  No freezes, no kickback to desktop, NOTHING!  Gameplay was beautiful.  The problem only occurs when I create a mission in FRED2, whether it was the SCP or the one that came with the game.  Help me!
Title: Re: FRED Error! Can't open model file <none>
Post by: karajorma on October 16, 2006, 01:21:00 pm
Right. If you've installed everything correctly you should have a set up like this

Main folder
 root_fs2, smarty_fs2, sparky_fs2, sparky_hi_fs2, stu_fs2, tango1_fs2, tango2_fs2, tango3_fs2, warble_fs2

mediavps folder
 mp-710_adveffects, mp-710_effects, mp-710_models, mv_adveffects, mv_core, mv_effects, mv_models, mv_music, mv_textures

Your Mod folder\Data\tables
 ai.tbl, hud.tbl, music.tbl, ships.tbl, stars.tbl, weapon_expl.tbl, weapons.tbl

Your Mod folder\Data\Missions
 Any missions you've made.


If you don't have this kind of set up then we'll need to get you to something like that. If you do though I'd advise making a new FRED shortcut with no use of the -mod option. Then create a simple test mission in FRED (thereby not using the media VPs or your altered tables). Save that mission to Freespace2\Data\Missions

Now run the SCP launcher. Go to the mod tab and try to run the mission.
Title: Re: FRED Error! Can't open model file <none>
Post by: MachManX on October 17, 2006, 05:03:32 pm
Everything is already installed like that, so that's not the problem.  I tried the -mod option in the shortcut, but it is not bypassing my altered tables.  This is what my shortcut has:-

C:\Games\FreeSpace2\fred2_open_3_6_9.exe -fredhtl -mod

How do I get the -mod to work?
Title: Re: FRED Error! Can't open model file <none>
Post by: Turey on October 17, 2006, 10:26:53 pm
Everything is already installed like that, so that's not the problem.  I tried the -mod option in the shortcut, but it is not bypassing my altered tables.  This is what my shortcut has:-

C:\Games\FreeSpace2\fred2_open_3_6_9.exe -fredhtl -mod

How do I get the -mod to work?

you have to put the directory name after it.


C:\Games\FreeSpace2\fred2_open_3_6_9.exe -fredhtl -mod my_mod

where my_mod is the name of the folder inside of the freespace2 folder.
Title: Re: FRED Error! Can't open model file <none>
Post by: MachManX on October 17, 2006, 11:14:54 pm
OK, I seemed to have somewhat found the problem, but the fix is not really great.  I get everything to work by using DirectX instead of OpenGL, but the disadvantage is less impressive quality in graphics.  I prefer using OpenGL because of the visual quality it has over DirectX.  I still get the error listed as my first post 2 times, but after that the game runs.  It does not show that "Unable to swap buffers" error that openGL shows me and then abruptly exits the game.  It still sucks though, I really want to use OpenGL.

I was playing ITDoH 4 and used its tables to create FRED missions, but I get the error stated above.  Once I remove all the tables, I CAN run FRED created missions with NO problems whatsoever.  But I can't use the cool ships in ITDoH 4, unless I use the less stunning DirectX.

Try this:-
Install ITDoH 4 by extracting its .VP contents and inserting them directly to the correct folders within the data folder.  Then try to create a mission in FRED, like a Loki, make it Alpha wing, and save.  Then run the mission in the simulator.  Make sure you are using OpenGL.  Then you will experience my error.  Try the same with DirectX and you will experience the same error, except for the OpenGL error and the game will run.

Is there a way to fix this?
Title: Re: FRED Error! Can't open model file <none>
Post by: MachManX on October 18, 2006, 12:19:30 am
Update:  When I take out the weapons.tbl file, the errors go away.  So it seems like something is wrong with the ITDoH 4 weapons.tbl file.  Can someone verify this?
Title: Re: FRED Error! Can't open model file <none>
Post by: Turey on October 18, 2006, 12:54:40 am
Update:  When I take out the weapons.tbl file, the errors go away.  So it seems like something is wrong with the ITDoH 4 weapons.tbl file.  Can someone verify this?

it's not wrong, per say, just incompatible with how you're doing mods.
Title: Re: FRED Error! Can't open model file <none>
Post by: MachManX on October 18, 2006, 06:30:17 am
I can hardly see how text based files become incompatible with SCP, but I'll take your word for it  :yes: .  Looking at the error from this new angle, is it safe to assume that the error may be related to one of the weapons not having a model file specified?  Do weapons use model files?
Title: Re: FRED Error! Can't open model file <none>
Post by: Colonol Dekker on October 18, 2006, 07:50:10 am
Are you in possesion of any .tbl/.tbm files ( run a search if unsure) :) sounds like a rogue ship entry..
Title: Re: FRED Error! Can't open model file <none>
Post by: Goober5000 on October 18, 2006, 08:55:49 am
Update:  When I take out the weapons.tbl file, the errors go away.  So it seems like something is wrong with the ITDoH 4 weapons.tbl file.  Can someone verify this?

It sounds like you already did.  It's not unheard of for mods to have bugs in them.  Ask the designer of ITDoH.