? Smart_Train and/or func_train tutorial ?

Discussions about modding, questions, mod requests or just show off what you're working on.
Post Reply
User avatar
imnotwhoyouare
Posts: 34
Joined: 09 Jun 2016, 17:54
Location: NY

? Smart_Train and/or func_train tutorial ?

Post by imnotwhoyouare » 19 Jun 2016, 10:48

Can anyone point me to Smart_Train and/or func_train tutorials?
Or does anyone know how to use them properly that can help me out?

Im making a Ms. Pacman level3 map. I'd say I'm close to done, thanks to the jk2.info forum and boothand that made me the "8bitguy" player model.
But i want to have r2d5s come out of the box where ghosts come out and something cross the screen like the cherry and strawberry would... but for the life of me i cant get _train to work.
Attachments
shot0001.jpg
shot0001.jpg (137.54 KiB) Viewed 7221 times
/=.=\
Nubulous12 -Low Gravity- Space Map
http://tinyurl.com/nubulous12map

Fulton St Station Map
http://tinyurl.com/fsstationmap

Kejimstein Valley Map
http://tinyurl.com/kejimsteinvalley

User avatar
Boothand
Administrator
Posts: 960
Joined: 24 Feb 2015, 08:21
Contact:

Re: ? Smart_Train and/or func_train tutorial ?

Post by Boothand » 19 Jun 2016, 11:10

[Topic moved to Modding discussion]

(Don't have time to check this out now, just moving it into place)

User avatar
Boothand
Administrator
Posts: 960
Joined: 24 Feb 2015, 08:21
Contact:

Re: ? Smart_Train and/or func_train tutorial ?

Post by Boothand » 19 Jun 2016, 17:15

What have you tried so far, and what happens?

The way I remember it, the func_train needs to have an origin brush as part of the train, at where you want the pivot point to be, and be connected to the first path_corner in the chain. A model can be connected to the train to move with it, to make it appear to be the train itself (again, that's how I remember it).
That would be:
  1. Place a brush in the middle (or at pivot) of your train construction and give it the system/origin texture. If you want a misc_model (like a droid) to function as a train, you obviously can't convert it to a train like that. But you can instead make a caulk brush the size of the droid and let that be your train, which will function as the 'invisible collision box'. Once you have selected the caulk brush and the origin brush, make it a func_train. Now select the misc_model (the droid) and connect it to the train (ctrl K or matching target/targetname). You might have to place it correctly afterwards, not sure.
  2. Make a path_corner at every waypoint, and connect them together in the right order. Don't know the details of what you can do with them and trains though.
  3. Connect the train to the first path_corner.
Also if you haven't come across it yet: https://jkhub.org/mapping/richdiesal/Br ... 01lsn6.htm

If it gives no results, I can test out my theory, though barely have JK2 installed atm, let alone modding tools.

User avatar
imnotwhoyouare
Posts: 34
Joined: 09 Jun 2016, 17:54
Location: NY

Re: ? Smart_Train and/or func_train tutorial ?

Post by imnotwhoyouare » 19 Jun 2016, 17:27

I tried that almost exaclty. Tho i used a clip brush instead of a caulk brush.

Rr: Actually i didnt connect the model to the train i actually selected the model with the brushes and made it all func train.
Im going to try making the train then targeting the model to it.. And use caulk. right now.

Thanks

No luck. X_X
Its drivin me nuts.
I tried it with no model just a wall textured brush and an origin and and it still wont move.


Rerere: OH SnaP! I made a a button to activate it and it moved! It didnt move right haha but it moved! Its a start
Last edited by imnotwhoyouare on 19 Jun 2016, 17:48, edited 4 times in total.
/=.=\
Nubulous12 -Low Gravity- Space Map
http://tinyurl.com/nubulous12map

Fulton St Station Map
http://tinyurl.com/fsstationmap

Kejimstein Valley Map
http://tinyurl.com/kejimsteinvalley

User avatar
Boothand
Administrator
Posts: 960
Joined: 24 Feb 2015, 08:21
Contact:

Re: ? Smart_Train and/or func_train tutorial ?

Post by Boothand » 19 Jun 2016, 17:29

That shouldn't matter then. I'll try it out quickly to see if I can manage.

User avatar
Boothand
Administrator
Posts: 960
Joined: 24 Feb 2015, 08:21
Contact:

Re: ? Smart_Train and/or func_train tutorial ?

Post by Boothand » 19 Jun 2016, 17:48

trainexample.zip
(21.45 KiB) Downloaded 123 times
Works perfectly for me, with the instructions above. Check this to see how it's done.

User avatar
Daggolin
Administrator
Posts: 789
Joined: 23 Feb 2015, 13:05

Re: ? Smart_Train and/or func_train tutorial ?

Post by Daggolin » 19 Jun 2016, 18:29

Ah, just saw this. I still have some kind of "techDemo" I made for some friends where I added several different func_ objects. I am not on my computer, but if you are interested I could look sometime whether I still have it or not. Maybe sparks an idea or two. ;)

User avatar
imnotwhoyouare
Posts: 34
Joined: 09 Jun 2016, 17:54
Location: NY

Re: ? Smart_Train and/or func_train tutorial ?

Post by imnotwhoyouare » 19 Jun 2016, 19:21

I dont know what it is. I see yours... I rebuilt a fresh one. Everything links up but i just see nothing.

You know something else i thought i was crazy but i cant red dfa... I load this new map and i cant. I loaded your train example and i could. I guess somethings screwed and i have to start fresh maybe
/=.=\
Nubulous12 -Low Gravity- Space Map
http://tinyurl.com/nubulous12map

Fulton St Station Map
http://tinyurl.com/fsstationmap

Kejimstein Valley Map
http://tinyurl.com/kejimsteinvalley

User avatar
imnotwhoyouare
Posts: 34
Joined: 09 Jun 2016, 17:54
Location: NY

Re: ? Smart_Train and/or func_train tutorial ?

Post by imnotwhoyouare » 19 Jun 2016, 19:23

Daggolin wrote:Ah, just saw this. I still have some kind of "techDemo" I made for some friends where I added several different func_ objects. I am not on my computer, but if you are interested I could look sometime whether I still have it or not. Maybe sparks an idea or two. ;)

Yes please im interested :-). I love to see it.
/=.=\
Nubulous12 -Low Gravity- Space Map
http://tinyurl.com/nubulous12map

Fulton St Station Map
http://tinyurl.com/fsstationmap

Kejimstein Valley Map
http://tinyurl.com/kejimsteinvalley

User avatar
Boothand
Administrator
Posts: 960
Joined: 24 Feb 2015, 08:21
Contact:

Re: ? Smart_Train and/or func_train tutorial ?

Post by Boothand » 19 Jun 2016, 22:23

If you send me or upload the map file, I could take a look.

I know it's not possible to DFA from certain entities. Like when standing on someone's head. I've also noticed on map-modded servers with models placed around.

User avatar
imnotwhoyouare
Posts: 34
Joined: 09 Jun 2016, 17:54
Location: NY

Re: ? Smart_Train and/or func_train tutorial ?

Post by imnotwhoyouare » 19 Jun 2016, 22:36

Boothand wrote:If you send me or upload the map file, I could take a look.


I know it's not possible to DFA from certain entities. Like when standing on someone's head. I've also noticed on map-modded servers with models placed around.

Thats interesting. I do have small.sheilds as the pac man pellets.. Everywhere. If your intersted ill upload the map shortly


.
Last edited by imnotwhoyouare on 20 Jun 2016, 06:05, edited 1 time in total.
/=.=\
Nubulous12 -Low Gravity- Space Map
http://tinyurl.com/nubulous12map

Fulton St Station Map
http://tinyurl.com/fsstationmap

Kejimstein Valley Map
http://tinyurl.com/kejimsteinvalley

User avatar
Boothand
Administrator
Posts: 960
Joined: 24 Feb 2015, 08:21
Contact:

Re: ? Smart_Train and/or func_train tutorial ?

Post by Boothand » 20 Jun 2016, 00:09

Did you want a model to take the place of the blue ghost-like train? I don't see a misc_model or anything in your map file. I looked through the entity list (L).

You can't DFA because the level is made out of player clips. Try to use caulk instead for the floor. You can leave the walls as clips, or else there's a chance the vis stage when compiling would mess up stuff in-game.

User avatar
imnotwhoyouare
Posts: 34
Joined: 09 Jun 2016, 17:54
Location: NY

Re: ? Smart_Train and/or func_train tutorial ?

Post by imnotwhoyouare » 20 Jun 2016, 01:09

Well i like the idea of a model being the ghost.. But it didnt rotate with the path. It stays looking in one direction so i am working on something faceless made of brushes that doesnt look so odd moving around. And i have to do some rethinking the whole idea because train cant be linked with a trigger hurt.. It will only do crushing damage.

Thats great. Thanks. I would have never thought clip brush was doing that.
/=.=\
Nubulous12 -Low Gravity- Space Map
http://tinyurl.com/nubulous12map

Fulton St Station Map
http://tinyurl.com/fsstationmap

Kejimstein Valley Map
http://tinyurl.com/kejimsteinvalley

User avatar
Daggolin
Administrator
Posts: 789
Joined: 23 Feb 2015, 13:05

Re: ? Smart_Train and/or func_train tutorial ?

Post by Daggolin » 20 Jun 2016, 05:45

The shaders you use have influence on the the properties of the ground below you. They decide whether the ground is slippery, no-falldamage, water, non-dfa-able, ... They also affect the sounds you hear.

Sadly func_train can't turn around, making a faceless brush your best option. And as you can't make a trigger follow the train your best option is probably using a func_train that crushes someone, dealing instant kill damage. I've seen such a pacman on Shirc's Bowling. And Shirc solved it pretty well.

User avatar
imnotwhoyouare
Posts: 34
Joined: 09 Jun 2016, 17:54
Location: NY

Re: ? Smart_Train and/or func_train tutorial ?

Post by imnotwhoyouare » 20 Jun 2016, 13:19

I only hope its worth playing aftr putting you guys to work in the process haha.
Thanks

Well i wouldnt compare this too Shircs Bowling. Thats another class in another league.
But i will say in my pacman youre not so much in the game inside the maze not able to see your way thru. As much as you being at the arcade and you jump on top of the big old game and start slapping the screen screaming "I Moved!! This Crappy Joystick is F'in F'ed up!!" After a ghost catches you and the sound of Bew Wew Woop drounds out the owners screams. Hes yelling "Dont bang da bideo game!!" and comes over and grabs your arm and you exclaim: " I still have quarters up!!" And he replies " You get tout of my store my friend!" And you pull out your light saber and cut his head off... Then you slip in his puddling blood in your converse chucks as you dismount the 6foot tall arcade game box and bang your head on the controller panel and the joystick pushes your eyeball back into your brain and it triggers an lsd flashback and you have a hallucination as your brain quivers, of george lucas getting butt raped by Tron as Lando holds him down, in 1984
Yeah. Thats it. Like that. (*_*)

Thanks again. You guys are some of the most decent jk2ers ive met in a long time. Glad i played on your sever and found this forum
/=.=\
Nubulous12 -Low Gravity- Space Map
http://tinyurl.com/nubulous12map

Fulton St Station Map
http://tinyurl.com/fsstationmap

Kejimstein Valley Map
http://tinyurl.com/kejimsteinvalley

User avatar
Daggolin
Administrator
Posts: 789
Joined: 23 Feb 2015, 13:05

Re: ? Smart_Train and/or func_train tutorial ?

Post by Daggolin » 20 Jun 2016, 14:59

Your imagination is really... Uhmmm... Uuhh.. Strange?

You can ask for help anytime. That's what this place is for. And good luck with the map. ;)

User avatar
ouned
Administrator
Posts: 587
Joined: 23 Feb 2015, 13:03
Location: Gliese581c

Re: ? Smart_Train and/or func_train tutorial ?

Post by ouned » 20 Jun 2016, 15:40

lol

User avatar
imnotwhoyouare
Posts: 34
Joined: 09 Jun 2016, 17:54
Location: NY

Re: ? Smart_Train and/or func_train tutorial ?

Post by imnotwhoyouare » 20 Jun 2016, 15:44

:!: :roll:
/=.=\
Nubulous12 -Low Gravity- Space Map
http://tinyurl.com/nubulous12map

Fulton St Station Map
http://tinyurl.com/fsstationmap

Kejimstein Valley Map
http://tinyurl.com/kejimsteinvalley

Post Reply
Created by Matti from StylesFactory.pl and Warlords of Draenor (modified by jk2.info)
Powered by phpBB® Forum Software © phpBB Limited
GZIP: On