gametechmods

Robot Arena => General Support => Topic started by: Stagfish on November 20, 2010, 12:23:58 PM

Title: Part is invisible.
Post by: Stagfish on November 20, 2010, 12:23:58 PM
I skinned an S3 wheel and put it in a drop down menu but the component seems to be invisible, any help?
Title: Re: Part is invisible.
Post by: Gazea2 on November 20, 2010, 12:27:22 PM
Did you edit the .gmf?
Title: Re: Part is invisible.
Post by: Stagfish on November 20, 2010, 12:28:30 PM
all I did to the gmf is change the bmp thing to my new skin.
Title: Re: Part is invisible.
Post by: Gazea2 on November 20, 2010, 12:30:46 PM
Ok. Wheels randomly mess up sometimes. Send the original .gmf to me and I'll take a look.
Title: Re: Part is invisible.
Post by: Stagfish on November 20, 2010, 12:31:29 PM
I decompiled the gmf and had another look, now it wont compile.
Title: Re: Part is invisible.
Post by: NFX on November 20, 2010, 12:32:43 PM
Are you sure you didn't decompile it twice? Someone did that and it wouldn't recompile it.
Title: Re: Part is invisible.
Post by: G.K. on November 20, 2010, 12:33:16 PM
Which compiler?
Title: Re: Part is invisible.
Post by: Gazea2 on November 20, 2010, 12:34:02 PM
Stag, send the original .gmf to me and I'll take a look. Afterwards, I'll tell you what happened to it.

@NFX - Wheels sometimes just randomly mess up. I remember a while back it happened to me and Joe and Serge helped me to fix it.
Title: Re: Part is invisible.
Post by: Stagfish on November 20, 2010, 12:34:16 PM
Dunno, the first decompilation wasnt succesful then I tried again and it was. Probabley the reason. I'll just make another.

@GK the one fixed by megabyte
Title: Re: Part is invisible.
Post by: G.K. on November 20, 2010, 12:35:23 PM
That's the problem. You have to use Serge's for wheels.
Title: Re: Part is invisible.
Post by: Gazea2 on November 20, 2010, 12:36:13 PM
^Yup. If you still have problems, send it to me and I'll take a look.
Title: Re: Part is invisible.
Post by: Stagfish on November 20, 2010, 12:37:10 PM
Oh.

And damnit because I attached the invisible part the bot now crashes, any way to remove it via BFE?

EDIT: Also, which is serges?
Title: Re: Part is invisible.
Post by: G.K. on November 20, 2010, 12:38:23 PM
just change the component name to something else.
Title: Re: Part is invisible.
Post by: Stagfish on November 20, 2010, 12:53:34 PM
Which wheel compiler is serges?
Title: Re: Part is invisible.
Post by: G.K. on November 20, 2010, 12:57:08 PM
wat
Title: Re: Part is invisible.
Post by: Stagfish on November 20, 2010, 12:59:34 PM
That's the problem. You have to use Serge's for wheels.
Title: Re: Part is invisible.
Post by: G.K. on November 20, 2010, 01:00:15 PM
Serge's GMF compiler.
Title: Re: Part is invisible.
Post by: Stagfish on November 20, 2010, 01:00:58 PM
It isnt in the tools section...
Title: Re: Part is invisible.
Post by: G.K. on November 20, 2010, 01:06:22 PM
https://gametechmods.com/forums/index.php/topic,3623.0.html (https://gametechmods.com/forums/index.php/topic,3623.0.html)
Title: Re: Part is invisible.
Post by: Stagfish on November 20, 2010, 01:14:00 PM
All it does is delete everything inside the file, making it blank.
Title: Re: Part is invisible.
Post by: G.K. on November 20, 2010, 01:15:03 PM
you have to manually add the .gmf when you save it.
Title: Re: Part is invisible.
Post by: Stagfish on November 20, 2010, 01:16:07 PM
Wa?

So I use dummies to open it, then copy an paste the stuff inside into the one that is blank?
Title: Re: Part is invisible.
Post by: Stagfish on November 20, 2010, 01:18:09 PM
DP

Never mind I figured it out.
Title: Re: Part is invisible.
Post by: Stagfish on November 20, 2010, 01:20:12 PM
TP
The component now crashes tha game, I dont know what i've done wrong.
Title: Re: Part is invisible.
Post by: G.K. on November 20, 2010, 01:28:13 PM
Neither do we.
Title: Re: Part is invisible.
Post by: Stagfish on November 20, 2010, 01:30:21 PM
swheel2.txt

name = S3 Wheel
preview = S3_preview.bmp
dir = s3
model = s3wheel2.gmf
type = mobility
base = Wheel
passthru = wheel
styles = Default
description = Nemesis's round things.
contact = wheel_traction
resistance = .2
grip = 1.0
damagesounds = sounds\rubber_collision2.wav
attachsound = sounds\cmp_wheels.wav
hitpoints = 10000
mass = 23
standard = 1
sort = 21

s3wheel.txt

name = S3 Wheel
preview = S3_preview.bmp
dir = s3
model = s3wheel.gmf
type = mobility
base = Wheel
passthru = wheel
styles = S3, s3wheel2.txt, Nemesis
description = Nice big wheels from S3.  3000 hitpoints.
contact = wheel_traction
resistance = .2
grip = 1.0
damagesounds = sounds\rubber_collision2.wav
attachsound = sounds\cmp_wheels.wav
hitpoints = 3000
mass = 23
standard = 1
sort = 21


Anything wrong with these?
Title: Re: Part is invisible.
Post by: G.K. on November 20, 2010, 01:32:17 PM
is the new one in the styles folder?
Title: Re: Part is invisible.
Post by: Gazea2 on November 20, 2010, 01:32:30 PM
Send me the .gmf of the original one and the edited one.
Title: Re: Part is invisible.
Post by: Stagfish on November 20, 2010, 01:33:36 PM
yes, It crashes when I choose Nemesis in the drop down bar.

@Gazea, i'll send just give me a moment.
Title: Re: Part is invisible.
Post by: Naryar on November 21, 2010, 04:48:51 AM
If your reskinned part is called s3wheel2 in the txt of the main S3 wheel BUT the styles's new txt is called swheel2, the program will not find "s3wheel2".
Title: Re: Part is invisible.
Post by: Stagfish on November 21, 2010, 04:55:16 AM
typo, it is called s3wheel2.
Title: Re: Part is invisible.
Post by: Gazea2 on November 21, 2010, 09:10:33 AM
I'm going to take a look now.
Title: Re: Part is invisible.
Post by: Gazea2 on November 21, 2010, 09:20:53 AM
DP!

The lighting is all messed up. I'm trying to fix it.
Title: Re: Part is invisible.
Post by: Stagfish on November 21, 2010, 09:29:48 AM
How did that happen?
Title: Re: Part is invisible.
Post by: Gazea2 on November 21, 2010, 09:35:15 AM
Here's the error report if anyone else wants to take a look:

"readFloat(): Expected *LIGHT_INTENS but found .000000 instead! Ignore and continue?"

"readFloat(): Expected *LIGHT_ASPECT, but found *LIGHT_INTENS instead! Ignore and continue?"

"readFloat(): Expected *LIGHT_ATTNSTART but found *LIGHT_ASPECT instead! Ignore and continue?"

"readFloat(): Expected *LIGHT_ATTNEND, but found *LIGHT_ATTNSTART instead! Ignore and continue?"

"readFloat(): Expected *LIGHT_TDIST, but found *LIGHT_ATTNEND instead! Ignore and continue?"

"readFloat(): Expected =, but found *LIGHT_TDIST instead! Ignore and continue?"

"closeBracket(): Expected closing bracket, found *USE instead!"

"FAR ATTENUATION 1063766528
}
*LIGHT
{
*NODE_NAME Omni02"

All of it's messed up.
Title: Re: Part is invisible.
Post by: Stagfish on November 21, 2010, 09:36:30 AM
What the?

So, should I remake the gmf again?
Title: Re: Part is invisible.
Post by: Gazea2 on November 21, 2010, 09:37:31 AM
No. It wasn't anything that you did. I got that from the clean .gmf.

I'll try to fix it but you may need someone more experienced (Serge or Joe) to look at it.
Title: Re: Part is invisible.
Post by: Trovaner on November 21, 2010, 11:55:17 AM
There shouldn't be any issues as long as you change all 6 "*USE FAR ATTENUATION" to "*USE FAR ATTENUATION =" because Serge's compiler and decompiler are not compatible unless you do this when before recompiling. In normal notepad, just hit CTRL-H and enter the above into the search and replace input boxes (then click "Replace All" once).
Title: Re: Part is invisible.
Post by: Gazea2 on November 21, 2010, 12:26:28 PM
^Ok. I'll try that. Cheers, Trovaner. That could help me with lots of wheels.

EDIT: I still got the same error messages. Anything else that I could try?
Title: Re: Part is invisible.
Post by: Trovaner on November 21, 2010, 11:29:32 PM
I decompiled the standard s3wheel.gmf, changed the name of bmp, and replaced all the "USE FAR ATTENUATION" before recompiling with no problems. Did you mess with anything else?

If I had to guess, I think a mistake was made around line 2043. It should read:
Code: [Select]
      *LIGHT_COLOR   0xFFFFFF
Title: Re: Part is invisible.
Post by: Stagfish on November 23, 2010, 11:07:39 AM
So, I just have to change line 2043 to that?
Title: Re: Part is invisible.
Post by: Trovaner on November 23, 2010, 11:35:46 AM
What does yours read? As long as you did everything like I did (as described in my previous post) and didn't add any additional objects/sections/changes, it should be exactly the same as what I posted.
Title: Re: Part is invisible.
Post by: Stagfish on November 23, 2010, 11:38:26 AM
Ok thanks, i'll do it now.
Title: Re: Part is invisible.
Post by: Stagfish on November 23, 2010, 11:44:16 AM
*LIGHT_COLOR   0xFFFFFF was already there and I dont know what to replace the USE FAR ATTENUATION's with.
Title: Re: Part is invisible.
Post by: Trovaner on November 23, 2010, 02:27:13 PM
OK, send me the GMF and I'll take a quick look.

From the error that Gazea posted, there appears to be an issue around that line for him (not necessarily you unless you are getting the same error).

As for the *USE FAR ATTENUATION thing, you need to add a " =" (one space and one equals sign) before the tab and value. So it should read:
Code: [Select]
*USE FAR ATTENUATION = 0
instead of:
Code: [Select]
                *USE FAR ATTENUATION 0
You don't necessarily need to automate things by using the replace feature but be sure to replace all 6 of the *USE FAR ATTENUATIONs.
Title: Re: Part is invisible.
Post by: Stagfish on November 23, 2010, 02:32:58 PM
Ok, now they dont crash the game but they are still invisible.
Title: Re: Part is invisible.
Post by: G.K. on November 23, 2010, 02:33:50 PM
What compiler did you use?
Title: Re: Part is invisible.
Post by: Stagfish on November 23, 2010, 02:37:07 PM
I decompiled one with dummies, then used serges to put the decompiled one on the compiled one then I edited the now not compiled one and compiled it with dummies.

I just dont think I understand serges.
Title: Re: Part is invisible.
Post by: G.K. on November 23, 2010, 02:39:05 PM
dummies compiler doesn't do wheels. Compile with serge's.
Title: Re: Part is invisible.
Post by: Stagfish on November 23, 2010, 02:40:31 PM
I dont know how to use it though >.<
Title: Re: Part is invisible.
Post by: Trovaner on November 23, 2010, 08:26:43 PM
For Serge's Decompiler:
1. Double click the decompiler's EXE (gmfdec.exe).
2. Select the compiled GMF in the explorer dialog and click open.
3. Then when the second explorer dialog opens, go to the folder where you found the compiled GMF and enter a name into the "File name" input box (this will be the name of the decompiled file). After entering a name, click save.
4. Unless there were problems with the compiled GMF, the next popup should say that you were successful in making a decompiled version of the file.

For Serge's Compiler:
1. Double click the decompiler's EXE (GMFComp.exe).
2. Select the decompiled GMF in the explorer dialog and click open.
3. Then when the second explorer dialog opens, go to the folder where you found the decompiled GMF and enter a name into the "File name" input box (this will be the name of the decompiled file). After entering a name, click save.
4. Unless there were problems with the decompiled GMF, the next popup should say that you were successful in making a compiled version of the file.

ASCII means that it is readable for humans (aka decompiled).
Binary means that it is readable for the computer (aka compiled).


Unless your computer is incapable of using Serge's (de)compiler or you plan to use self-illumination, always use Serge's (de)compiler. The other compilers don't support nearly as much. The fixes that I suggested ONLY work for Serge's compiler and decompiler.
Title: Re: Part is invisible.
Post by: Clickbeetle on November 24, 2010, 09:47:55 PM
Alternatively, you can just delete the lights... there is no reason for them to be in there; they don't do anything on components.  You just have to be sure not to mess up the {} brackets or the indentation after deleting, and reduce the object count at the top by however many lights you deleted.


Doing Trov's thing might be easier though.
Title: Re: Part is invisible.
Post by: Stagfish on November 26, 2010, 12:45:44 PM
Nope, still cant get it to work.
Title: Re: Part is invisible.
Post by: Trovaner on November 28, 2010, 01:08:28 AM
Did you use Serge's compiler AND decompiler?
Are you doing anything besides changing the name of the bmp and applying my suggested fixes?

Considering that I was able to edit the wheel without experiencing ANY errors, you are either doing something wrong or doing something that I'm not. Sending me the GMF would allow me to figure it out a lot quicker than guessing but its your call.
Title: Re: Part is invisible.
Post by: Stagfish on November 28, 2010, 05:36:19 AM
I'm uploading a video of what happens when I compile it, I get a couple of messages.
Title: Re: Part is invisible.
Post by: Stagfish on November 28, 2010, 05:45:45 AM
DP

Here you go :D
http://www.youtube.com/watch?v=83NOLrsnYRc#ws (http://www.youtube.com/watch?v=83NOLrsnYRc#ws)
Title: Re: Part is invisible.
Post by: Trovaner on November 28, 2010, 05:55:29 PM
From that, it looks like you're missing something at the top. After decompiling an untouched s3wheel.gmf with Serge's decompiler, this should be at the top of your file:

Code: [Select]
GMA
*GABRIEL_ASCIIEXPORT 3
*MODEL_TYPE Basic Model
*SCENE
{
*SCENE_FILENAME wheelworking.max
*SCENE_FIRSTFRAME 0
*SCENE_LASTFRAME 100
*SCENE_FRAMESPEED 30
*SCENE_TICKSPERFRAME 160
*SCENE_BACKGROUND_STATIC 0xFFFFFF
*SCENE_AMBIENT_STATIC 0x000000
}
*MATERIAL_LIST
{
*MATERIAL_COUNT 1

Next scroll down and change the name of the bmp to whatever. Then replace all the "*USE FAR ATTENUATION" with "*USE FAR ATTENUATION =". Lastly save the file and recompile it using Serge's compiler.