Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Knight Templar on January 23, 2003, 03:41:57 pm

Title: We are Tarded'
Post by: Knight Templar on January 23, 2003, 03:41:57 pm
to quote myself from the DatDB PF, i'm having some trouble with some models.

Quote
As a first, i have one. It has to do with the Archangel. Whenever I add one to a mission in Fred, it locks up, I get this

Error: Can't open file
File:E:\Languages\Visual Studio Projects\Visual C++\fs2_open\code\Model\ModelRead.cpp
Line: 1274

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

And my comp locks up for about 10 minutes. I tried it once with the stuff out of the VP and once with the one off Stratt's site and I got the same result.

Edit: Ok I tried it with normal fred and the same thing. I also get the same problem with the Raynor.


I put  er' in Fred and it locks up and this. Anyone wanna give it a try?
Title: We are Tarded'
Post by: Goober5000 on January 23, 2003, 05:10:45 pm
What version?

EDIT: This looks like it might be the problem.  Bobboau?

Code: [Select]
                     1299: //reads a binary file containing a 3d model
2.6           bobboau   1300: int read_model_file(polymodel * pm, char *filename, int n_subsystems, model_subsystem *subsystems, int ferror)
1.1           penguin   1301: {
                        1302:        CFILE *fp;
                        1303:        int version;
                        1304:        int id, len, next_chunk;
                        1305:        int i,j;
                        1306:
                        1307: #ifndef NDEBUG
                        1308:        strcpy(Global_filename, filename);
                        1309: #endif
                        1310:
                        1311:        fp = cfopen(filename,"rb");
2.15         |bobboau   1312:        if (!fp){
             |          1313:                if(ferror == 1)Error( LOCATION, "Can't open file <%s>",filename);
             |          1314:                return -1;
1.1           penguin   1315:        }                
                        1316:
                        1317:        // code to get a filename to write out subsystem information for each model that
                        1318:        // is read.  This info is essentially debug stuff that is used to help get models
                        1319:        // into the game quicker
Title: We are Tarded'
Post by: DTP on January 23, 2003, 05:13:08 pm
goober beat me to it
Title: We are Tarded'
Post by: Goober5000 on January 23, 2003, 05:15:53 pm
lol... ;)

Might be something Bobboau was working on in debug and never removed.  This "rb" whatever was added in the most recent code update, and if DatDB is using Bobboau's recent build, this might be the problem.
Title: We are Tarded'
Post by: phreak on January 23, 2003, 06:16:50 pm
"rb" is needed to read the model file.

from the looks of it, you may have spelt the model file wrong in the table
Title: We are Tarded'
Post by: StratComm on January 23, 2003, 06:31:54 pm
That could easily be the problem.  Both the ships that you're having the problem with KT have been through several different versions with several different filenames.  I'd double check those refrences just to be sure.  I still have all the pofs in my models directory together, and I haven't tried them in the FSOpen versions, so I don't know whether it's the models or the code.  I should also note, for the record, that both the Raynor and the Archangel are extremely high poly with a lot of UV maps.  They were also both converted using PCS version 1.1.01 and thus have some faces that are triangulated but still dissapear as if they were nonplaner.
Title: We are Tarded'
Post by: SKYNET-011 on January 23, 2003, 07:27:18 pm
Quote
We are Tarded'


Yes we are. :D
Title: We are Tarded'
Post by: Bobboau on January 23, 2003, 09:07:07 pm
rb == read binary

the thing I added was a flag to not show an error if it couldn't find the file, this was to help get past the warp model giveing an error mesage when not found
Title: We are Tarded'
Post by: Goober5000 on January 23, 2003, 09:09:41 pm
Um... :wtf:

Okay, well two things.  First, fix the error message, and second, fix the warp thing so that you don't need warp.pof.
Title: We are Tarded'
Post by: Knight Templar on January 24, 2003, 03:07:19 pm
Ok sorry, I missed the part where I am told what I can do to fix the problem So I can go back to Fredding :p
Title: We are Tarded'
Post by: phreak on January 24, 2003, 03:15:09 pm
he was talking to bob
Title: We are Tarded'
Post by: Knight Templar on January 24, 2003, 03:17:50 pm
Yea I know.. So what do I do? Is someone fixing whatever problem it is?

*Note: I'm not nagging, I just want to know
Title: We are Tarded'
Post by: StratComm on January 24, 2003, 04:19:11 pm
KT, you've had problems with those two ships in the past too, haven't you?  They both work perfectly well for me in Fred2_open and Fred2DTP and show up in-game fine.  On the flipside, I've run into an error on the latest official FS2_open build (don't know how far back it goes) but it won't open the mission simulator.  Whenever I try, it crashes.  This isn't helpful for model testing purposes, as making a dedicated campaign file isn't really feasable.
Title: We are Tarded'
Post by: Knight Templar on January 24, 2003, 04:32:05 pm
Yes I've had trouble with them, but that was because My version of modelview was 2 years old. Those are the only ships that don't work in Fred, and they don't work in Fred2 or the Latest Public Fred2_Open
Title: We are Tarded'
Post by: Martinus on January 24, 2003, 04:56:12 pm
Quote
Originally posted by Goober5000
Um... :wtf:

Okay, well two things.  First, fix the error message, and second, fix the warp thing so that you don't need warp.pof.


[color=66ff00]Please?
[/color]
Title: We are Tarded'
Post by: Knight Templar on January 29, 2003, 06:52:29 pm
So what's the word on this?
Title: We are Tarded'
Post by: Goober5000 on January 29, 2003, 07:20:49 pm
ask Bobboau
Title: We are Tarded'
Post by: Knight Templar on January 29, 2003, 07:24:51 pm
well , what's the word bob?
Title: We are Tarded'
Post by: Anaz on January 29, 2003, 08:30:21 pm
KT, the ships work fine for me in-game, do you want me to e-mail you my copies of them? As you may know, half of the shield *.anis don't work for me...
Title: We are Tarded'
Post by: Knight Templar on January 29, 2003, 08:35:21 pm
The shield ani's don't work for me either, but they all work for you ingame? the Raynor and Arch?

well go for it then. :sigh:
Title: We are Tarded'
Post by: Anaz on January 30, 2003, 05:51:16 pm
EDIT: Nm...
Title: We are Tarded'
Post by: Knight Templar on January 30, 2003, 08:31:57 pm
As in, feel free to send them over any time.
Title: We are Tarded'
Post by: Anaz on January 30, 2003, 08:46:51 pm
ah' did send em...
Title: We are Tarded'
Post by: Knight Templar on January 30, 2003, 08:48:29 pm
which email?

EDIT: errr I guess you somehow got my hotmail account..:sigh:
Title: We are Tarded'
Post by: Anaz on January 30, 2003, 08:51:20 pm
hangon...outlook is being *****y...
Title: We are Tarded'
Post by: Anaz on January 30, 2003, 08:53:49 pm
Quote
Originally posted by Knight Templar
which email?

EDIT: errr I guess you somehow got my hotmail account..:sigh:


I am sending to scoobymg -at- sonic -dot- net
Title: We are Tarded'
Post by: Knight Templar on January 30, 2003, 08:54:54 pm
Graci Senor :D
Title: We are Tarded'
Post by: Anaz on January 30, 2003, 08:57:11 pm
meh...outlook doesn't want to send it...I'll try splitting it into individual files...
Title: We are Tarded'
Post by: Knight Templar on January 30, 2003, 08:59:18 pm
:wtf:

how big is it?
Title: We are Tarded'
Post by: Anaz on January 30, 2003, 09:00:37 pm
outlook just flipped out on me...so you may have multiple copies of the e-mails...
Title: Yeeeeeeyyyy!!
Post by: Knight Templar on January 30, 2003, 09:01:28 pm
*lights a joint*



:thepimp:
Title: We are Tarded'
Post by: Anaz on January 30, 2003, 09:03:12 pm
Quote
Originally posted by Knight Templar
:wtf:

how big is it?

each model i ~800 kbytes...
Title: Re: Yeeeeeeyyyy!!
Post by: Anaz on January 30, 2003, 09:03:44 pm
Quote
Originally posted by Knight Templar
*lights a joint*



:thepimp:


did you get them..?
Title: We are Tarded'
Post by: Knight Templar on January 30, 2003, 09:05:12 pm
woa man you're liek all talking so fast man.. cill out mann...


no.
Title: We are Tarded'
Post by: Anaz on January 30, 2003, 09:06:48 pm
damn...I'll try again tomorrow...if all else fails I can upload them to an FTP...

gahh...I'm packing it in for tonight...see you peeps l8er...
Title: We are Tarded'
Post by: Knight Templar on January 30, 2003, 09:08:53 pm
:(


ok. Guess I wasn't going to use them anytime soon anyways :p

Laterz d00dz :thepimp:  *hiccup*
Title: We are Tarded'
Post by: phreak on January 31, 2003, 02:24:03 pm
so is this just confirmation of the title? j/k
Title: We are Tarded'
Post by: StratComm on January 31, 2003, 04:55:20 pm
KT, it may sound strange, but could I have a list of all files that you have in the following directories:


as well as the contents of the custom vp files that you have in the directory for the effected program.  I know we've tried fixing this thing before by resending the files, with little result, when it was a bug in modelview.  I have a couple of theories about the problem, but I need the file lists to point you toward possible solutions.
Title: We are Tarded'
Post by: Knight Templar on January 31, 2003, 06:20:54 pm
Main = nothing out of the ordinary oither than the VP

Models = zilch

Maps = notta

Oh, I fixed the model view problem awhile ago, My modelview was just outdated.. this only happens with the Raynor and Archangel and only in fred
Title: We are Tarded'
Post by: Knight Templar on January 31, 2003, 06:45:30 pm
well Crisis averted.. Anaz's models worked. Archanglebeta01 and Raynor work fine. I had regular Arch last time and Raynor 2 :doubt:
Title: We are Tarded'
Post by: StratComm on January 31, 2003, 09:53:37 pm
strange, very strange.  Must have been a corrupted transfer or something from the first time you picked those models up...
Title: We are Tarded'
Post by: Knight Templar on January 31, 2003, 10:09:03 pm
Nooobody Knows :confused: