PDA

View Full Version : Prefab and Lighting help


Xenoff
05-27-2004, 07:30 PM
Okay, I sat through the tutorials that Remedy gives, and I am still very, very lost. First off, I have no clue what "SharedDir" that the tutorial talks about for the lighting. Everything "seems" to go right up until that point, then I get completely lost.

Next, how do I make prefabs? Is this something I can do with MaxEd2 or do I need something else like 3DSMax or something? They assume I have some experience with this... ha! Complete and total n00b am I.

Thanks for all the help so far guys.

Random -> http://forums.3drealms.com/ubbthreads/images/graemlins/woot.gif

Xenoff
05-27-2004, 07:56 PM
Now I feel like a total idiot.... I found the directory for the lighting results... its the same place for all the other levels that I saved... Lol... that answers that question... http://forums.3drealms.com/ubbthreads/images/graemlins/woot.gif

still, I need help on the prefabs

daromar
05-27-2004, 08:23 PM
the prefab are made with maxed. Bt you can insert trimesh (3 dsmax things) in a level.

Ghast
05-27-2004, 09:31 PM
I updated a whole slew of MP1 prefabs, the textures need replacing with something better, but good reference for beginning FSM practice *G*

Download Gimme_Wodka.pre (190 kb) (http://ghastmanor.fragland.net/prefabs/Gimme_Wodka.zip)

Download soda_machine. pre (113 kb) (http://ghastmanor.fragland.net/prefabs/soda_machine.zip)

Download New & Improved TV_20.pre (http://ghastmanor.fragland.net/prefabs/TV_20.zip)

Download cupboard.pre (http://forums.3drealms.com/ubbthreads/download.php?Number=453698)

Download old_shower.zip (http://forums.3drealms.com/ubbthreads/download.php?Number=452661)

Download Subway_toilet.pre & Garbagecan.pre (176kb) (http://ghastmanor.fragland.net/subway_toilet.zip)

StartRoom081_done.lv2 Download (http://ghastmanor.fragland.net/StartRoom081_done.zip)

BasicRoom115_done.lv2 Download (http://ghastmanor.fragland.net/BasicRoom115_done.zip)

Download locker01.pre (http://ghastmanor.fragland.net/prefabs/locker01.zip)

Download Ceiling_Fan_001.pre (small white fan) (http://forums.3drealms.com/ubbthreads/download.php?Number=447768)

Xenoff
05-27-2004, 10:50 PM
Okay, so I can use MaxEd2... but how? Is there a site I can visit that can give me a better tutorial or is there a simple button I need to press or something?

Ghast
05-28-2004, 01:32 AM
scroll down to maxed2 & prefabs help? (http://aknott.free.fr/mp2/maxpayne2_en.htm)


Made my bed & will sleep on it too - WIP *G*

Joonas
05-28-2004, 08:12 AM
To insert a pre-fabricated object into your level: F3, P.
To make one: Do whatever, F3, N, "Prefab parent", group the "do whatever" part to the prefab parent, bring up the menu by click the prefab parent with the middle mouse button in F5 mode, "Save Prefab"

Xenoff
05-30-2004, 02:50 PM
http://forums.3drealms.com/ubbthreads/images/graemlins/woot.gif Thanks guys, I "think" I can take it from there. http://forums.3drealms.com/ubbthreads/images/graemlins/woot.gif

(Been away for awhile. Time to get back into the swing of things.)

Ghast
05-30-2004, 04:48 PM
bathtub_castiron.pre (http://www.levels4you.com/cdc/ghastmanor/index.l4y?page=1018)

Needed this for my own level, WIP, player yearns to ski some stairs asap *G*
Do what you will with this - took half a day to reach this point, add clawfeet and plumbing?

Ghast

The textures in this file are property of Remedy Entertainment Ltd., and can be used only as long as the work is recognized as original artwork by Remedy, and no financial profit is made in the process.

(C)1998-2004 Remedy Entertainment

Xenoff
05-31-2004, 03:42 PM
Now I randomly get this error.... how do I fix this sucker?

Ghast
05-31-2004, 06:22 PM
done ain't always done. exits make for more rooms more "dones" displayed. Perhaps the temp file couldn't/wouldn't/didn't cross all its i's and dot all its t's?

Usually renaming the blahblah_done.lv2 (shortening it - blah001.lv2) and GISing again works?

Xenoff
05-31-2004, 08:10 PM
The GIS thingy doesnt like the underscore. This is very good to know. Thanks again Ghast! http://forums.3drealms.com/ubbthreads/images/graemlins/woot.gif

Xenoff has discovered that lighting is required if Xenoff wants to distinguish walls from each other with the same texture.

Xenoff also likes to talk about himself in the third-person.

Random -> http://forums.3drealms.com/ubbthreads/images/graemlins/woot.gif

Canada_Dry
05-31-2004, 09:32 PM
yeh i had that error when it was like "level 1 done_done_done_done_done........

Ghast
05-31-2004, 09:44 PM
its not the underscore, I use underscore all the time, its renaming the file and a workaround for a "feature" that I don't really understand yet *G*

MrUniq
05-31-2004, 10:28 PM
spaces in file or directory names doesn't work at all with these tools.

Xenoff
06-02-2004, 09:17 PM
And now, I being again on two very interesting questions.

How do I make glass? Ya know... for windows and such... do not need to be breakable... just clear, seethrough, and obvious that this is glass.

and

How do I remove the 9mm that Max starts out with so that he hold no weapons when the level is first loaded? (For this one... explain to me where all those ".txt" files are and how they work intandem with MaxEd2... well... basically for I know it has to do something with that.)

Once again, many thanks.

Not so random -> http://forums.3drealms.com/ubbthreads/images/graemlins/woot.gif


P.S. I screwed around with it abit, and the GIS thingy does not like it for me... *shrug* so whatever. I'll just not use it and keep the filename very short... like bob.lv2 and jedd.lv2 and whatnot http://forums.3drealms.com/ubbthreads/images/graemlins/grin.gif

Mr Splinter Cell Guy
06-02-2004, 09:23 PM
For the second question, use this:

"this->C_RemoveAllWeapons(empty);"

where this is the character that you are referring to, and empty is a weapon that you would want to give to character with infinite ammo. Use empty as parameter if you do not want to give any weapon.

Sayantan
06-02-2004, 09:38 PM
If you have ripped the official textures with ldb2rip, you have a subfolder in it known as "plain_glass". U'll find a very good glass texture in there. Trust me you wont need anything better than that.
In MAX-ED2, insert the texture in the "glass" category. Open its properties and change its type from "normal" to "alpha compare". Check the "Edge Blend" option and make the reference value to say "1". That works for me. If u r clever enuf, u can mess up with the reflection map and the gloss map.
*I never used that coz my GFX card doen't have Pixel shader & I wont even be able to see the effect* http://forums.3drealms.com/ubbthreads/images/graemlins/frown.gif

Xenoff
06-03-2004, 04:14 AM
Okay, my responses:

"this->C_RemoveAllWeapons(empty);" where is heck that?! (knows nothing about anything about the text code files)

and finally...

Ldb2rip... dont have it... is there some place where I can get it so I can grab that glass file?

theHunted
06-03-2004, 04:25 AM
extensive tutorial on how to create .dds textures, which also explains how to do semi-transparent (e.g.: glass) textures:
http://dynamic6.gamespy.com/~mpm/index.php?ID=mp2_tut03e&c=5

the screenshots of the save-dialogue still show the old .dds codec but the important settings are all in the new one as well. choosing file type as dxt5 is the only real important thing actually.

Uisor
06-03-2004, 06:15 AM
Okay, my responses:

"this->C_RemoveAllWeapons(empty);" where is heck that?! (knows nothing about anything about the text code files)

and finally...

Ldb2rip... dont have it... is there some place where I can get it so I can grab that glass file?



1. Nowhere, before you write it in maxed2. And because you want to add it to player, right click the hierarchy tree and choose "edit player fsm" (or Shift + B). After the fsm log opens add that message to startup part.

2. Level 4 You and it's somewhere here too, just search it.

Playa
06-03-2004, 11:05 AM
to make it so that maxpayne doesn't have a weapon in any level you play go to the maxpayne.txt in data/database/skins

once its opened look for oninit. Then change this:
[OnInit]
{
[Message] String = "this->c_removeallweaponsmelee( beretta );";
[Message] String = "this->c_pickupammo ( beretta, 20);";
[Message] String = "this->c_pickupweapon ( painkiller );";
[Message] String = "this->c_sethealth( 1 );";

To this:

[OnInit]
{
[Message] String = "this->c_pickupweapon ( painkiller );";
[Message] String = "this->c_sethealth( 1 );";

what you have done is take away the two lines which have told maxpayne to 'pickup' beretta and also 'pickup' ammo.

Ghast
06-03-2004, 11:30 AM
so many suggestions! What's wrong with putting this in the levels.txt?



[SingleLevelInit]
{
[Message] String = "player->c_removeallweaponsmelee( empty );";
[Message] String = "maxpayne_gamemode->gm_storeplayerinventory(1);";
[Message] String = "maxpayne_gamemode->gm_storeplayerinventory(2);";
}
}

right after
SurvivalMode = FALSE;


Oh and the Physical_objects.lv2 from Remedy has two lovely glass textures!



to make it so that maxpayne doesn't have a weapon in any level you play go to the maxpayne.txt in data/database/skins




IN ANY LEVEL!?!

What does Max use, harsh words? *G*

Kozak
06-03-2004, 11:55 AM
And Playa that's not totally correct.
First of all multiple skins are used for Remedies levels.
Second of all, Max' weapons are defined inside levels.txt, as Ghast notes.

One thing I don't know is why they use gm_storeplayerinventory(1) and (2) and not restore the inventory.

Xenoff
06-04-2004, 12:05 AM
Many thanks guys. Now Payne has no weapon to defend himself with, which is a good thing in this case.

I still don't quite understand on how to get the glass texture thingy... could you spell it out for a dummy (for I am more than one could even imagine)?

And another great question: How do I export this file into a file that the non-dev version of MP2 can recognize and run (not unlike downloading a mod and installing it into a game)?

And again... many thanks http://forums.3drealms.com/ubbthreads/images/graemlins/woot.gif

Ghast
06-04-2004, 12:24 AM
Kipsta's tut worked for me! (http://paynekiller.kipsta.net/showtutorial.php?id=2&page=1)

Murphysk8
06-04-2004, 12:27 AM
OMMFG!! Kipsta's site is back!?!?!!?!! http://forums.3drealms.com/ubbthreads/images/graemlins/eek.gif

Sayantan
06-04-2004, 01:38 AM
I still don't quite understand on how to get the glass texture thingy... could you spell it out for a dummy (for I am more than one could even imagine)?



Okay here's the thing you want.
1> Unzip both the file in a single folder.
2> Unrar the first rar file only and u'll be able to extract the *.lv2.
3> Open MAXED2 and open ur level.
4> go to File->Insert.
5> Open this "Glass.lv2" and u'll see a stupid planar box in your level.
6> Just delete the stupid box & go to ur material category.
7> U'll see a new "Glass" category already made and the pre-made glass texture is right there.
8> Now u'll just have to assign that material to an object. http://forums.3drealms.com/ubbthreads/images/graemlins/wink.gif
ENJOY!

Sayantan
06-04-2004, 01:48 AM
Here's the second part. http://forums.3drealms.com/ubbthreads/images/graemlins/rolleyes.gif

Playa
06-04-2004, 11:00 AM
IS KIPSTAS SITE BK!!!!!!!!!!! http://forums.3drealms.com/ubbthreads/images/graemlins/eek.gif http://forums.3drealms.com/ubbthreads/images/graemlins/eek.gif http://forums.3drealms.com/ubbthreads/images/graemlins/eek.gif http://forums.3drealms.com/ubbthreads/images/graemlins/eek.gif

EDIT: yeaup it is http://forums.3drealms.com/ubbthreads/images/graemlins/woot.gif http://forums.3drealms.com/ubbthreads/images/graemlins/woot.gif

i think i shood put a link on my site

Xenoff
06-05-2004, 09:37 PM
Hmmm... going to have to pick up WinRar again...

Another question: how do you make it so you can "union" a prefab into an object?

I made the counter for the sink, and I want to place the sink into the counter, "union" everything out of the way and leave me with the counter, and the sink nicely placed into the counter.

Is this even possible?

Again, many thanks

Getting less random and more commonplace -> http://forums.3drealms.com/ubbthreads/images/graemlins/woot.gif

Xenoff
06-05-2004, 10:10 PM
Hmmm... should I be worried about this (see picture)?

Is there anyway I can fix those... degenerate tris?

Ghast
06-05-2004, 10:36 PM
sink prefab?

Playa
06-06-2004, 03:52 AM
"union"



its not union, its subtract. http://forums.3drealms.com/ubbthreads/images/graemlins/wink.gif (which is by pressing 's' instead of 'u', and anoter thing,

you cant "union a prefab" you have to right click on the prefab and go to prefab then go to "remove prefab". now what you have left is the mesh.

simply place it where you want it in the counter and select the sink and press 's', then click on the counter.

but the sink will dissappear (subtracted), so i suggest before you use subtract, highlight the sink and press "ctrl + c" (copy) then when the subtraction is done press "ctrl + v" (paste) and it puts the sink mesh back to where you had copyed it.

you dont have to worry about that degenerate thing btw,

Xenoff
06-06-2004, 03:36 PM
What you said Playa.

I was going to "Union" out the hole and then "Subtract" the same prefab back into the hole. Lol... now I am so confused.

But to help Ghast out:

Let's take yer lovly bathtub. In my house (the project I am working on) I have no free standing tubs. All my tubs are set into some sort of glossy granite or tile stuff. So, what I was hoping to do is build the box that the tub will be set in, union out the area that the tub will sit in using the prefab tub and then place a copy into the hole I just made. Something quick and dirty for those who are now on a time crunch.

Did I fix the confusion or just make it worse? Lol... all this backwards talk is messing me up. Why couldn't they have just made it the "right" way in which subtraction took stuff out and "union" put stuff in?

The Totally Confused -> http://forums.3drealms.com/ubbthreads/images/graemlins/woot.gif

biXen
06-06-2004, 03:44 PM
The easiest thing to do when you want to do things like that if I understand you correctly is to lower the bathtub to where you want it into the ground, make a copy of it, and subtract one of them by pressing S in f5 mode, clicking it, and then clicking the ground. Then the other one will be standing there in the same position.

Ghast
06-06-2004, 08:02 PM
tub hole?

Ghast
06-06-2004, 08:03 PM
Download tub hole? (http://forums.3drealms.com/ubbthreads/download.php?Number=562817)