collapse

Author Topic: Questions about hammer tool  (Read 10830 times)

Offline Wesp5

  • Administratrix
  • Antediluvian
  • *****
  • Posts: 6159
  • Unofficial Patcher
Re: Questions about hammer tool
« Reply #30 on: September 10, 2015, 06:58:12 PM »
Some triggers, like the changelevel in this case, require a "model" "*1".

These models are brushes, if you want to use some with VPKTools you need to copy one that already exists on the map otherwise the map will crash with the cache error. Also you need to select one of a form that would work, so for a level transition, you should copy another *x model that already is a level transition and place it where you need it! If you use Hammer, just do the same, copy a level transition trigger from the same map or another one and modify it to fit your needs...
« Last Edit: September 10, 2015, 07:01:09 PM by Wesp5 »

Offline Aloysius

  • Methuselah
  • ****
  • Posts: 349
Re: Questions about hammer tool
« Reply #31 on: September 10, 2015, 07:42:27 PM »

These models are brushes, if you want to use some with VPKTools you need to copy one that already exists on the map otherwise the map will crash with the cache error. Also you need to select one of a form that would work, so for a level transition, you should copy another *x model that already is a level transition and place it where you need it! If you use Hammer, just do the same, copy a level transition trigger from the same map or another one and modify it to fit your needs...

It's what I did, more or less, example that is working:
{
"model" "*1"
"classname" "trigger_changelevel"
"targetname" "isaoffteleport"
"map" "hw_isaoffice_1"
"landmark" "isaofflandmark"
"spawnflags" "2"
"origin" "-864 -511.5 -988"
}
{
"classname" "info_landmark"
"targetname" "isaofflandmark"
"angles" "0 0 0"
"spawnflags" "1"
"origin" "-863 -511.5 -988"
}

These entities were placed on hw_hub_1 with vpk tool, since it is a troika map, and I didn't find the courage, or time, to fix the leaks errors on those. They are called via a dlg, and with the approriate info_landmark and trigger_changelevel placed with hammer on the destination map, hw_isaoffice_1, the transition work fine.

Now, let's take the transition that takes the pc on the wrong position, on the destination map:

sab_dogshaven:
{
"classname" "info_landmark"
"angles" "0 0 0"
"targetname" "church_landmark"
"origin" "-990 672 32"
}
{
"model" "*1"
"classname" "trigger_changelevel"
"targetname" "sab_diego_teleport"
"StartHidden" "0"
"StartDisabled" "0"
"Tip_Size" "0"
"spawnflags" "1"
"map" "sab_diego_1"
"landmark" "church_landmark"
}

Those are on sab_dogshaven, a Antitribu map, placed with VPKTool, because the map was made long ago and has leaks errors too.
And I placed appropriate infoland_mark and trigger changelevel on the destination map, sab_diego_1, with hammer. The transition works, but at the wrong starting position.

Now, let's say I change the "model" "*1" number to a other that already exist on sab_dogshaven, 6 or 7, either the transition takes me to a blank map (where there is nothing), or the sab_dogshaven crash with a precache error, even if the model" "*" number already exist in the map. A other strange fact, if I use a number from a pre-existing trigger, (can't remember which one at the moment) going to sab_dogshaven with the console will take me to sab_diego_1.

On new maps made with the latest versions of SDK hammer, I don't need to change triggers model numbers.


Offline Wesp5

  • Administratrix
  • Antediluvian
  • *****
  • Posts: 6159
  • Unofficial Patcher
Re: Questions about hammer tool
« Reply #32 on: September 10, 2015, 07:55:48 PM »
Now, let's say I change the "model" "*1" number to a other that already exist on sab_dogshaven, 6 or 7, either the transition takes me to a blank map (where there is nothing), or the sab_dogshaven crash with a precache error, even if the model" "*" number already exist in the map.

Well, I don't know anything about this ATM map, but the models *x could be anything from huge triggers that encompass half of the map and would take you to a wrong place to doors that are too small as a starting point. So you need to choose one of the right size!
« Last Edit: September 10, 2015, 08:02:43 PM by Wesp5 »

Offline 3Dell

  • Neonate
  • **
  • Posts: 54
Re: Questions about hammer tool
« Reply #33 on: March 09, 2016, 02:56:37 AM »
Hey all, I need a little help. It is my first work with hammer and not all I can understand without help.
So, I need to know is this: How to make NPC go to another point on the map after a certain phrase in the dialogue?
I understand, that in DLG of character I need write smth like "G.character_move" after the phrase. But how make her go in other place on the map?


I am engaged in the restructuring of Vesuvius.
Already added 4 dialogue and 2 character. As well as all the dancers changed Skins.
Piece of that.

Offline Wesp5

  • Administratrix
  • Antediluvian
  • *****
  • Posts: 6159
  • Unofficial Patcher
Re: Questions about hammer tool
« Reply #34 on: March 09, 2016, 08:26:57 AM »
I understand, that in DLG of character I need write smth like "G.character_move" after the phrase.

That's not the important part, just a variable set for a Python script to check whether the NPC should move. You need to call the script after the dialogue and when the variable was set, enable the NPC to use a interesting point to which he will move. You can do that inside the map or outside. Just check how Misti is moved in Vesuvius...

Offline 3Dell

  • Neonate
  • **
  • Posts: 54
Re: Questions about hammer tool
« Reply #35 on: March 10, 2016, 12:19:37 AM »
I still can't understand... Yes, I try to copy all like Misti have. I try abouth 5 times, and today try again abouth 10! I just can't understand where I'm wrong :(
This is scheanshots of Misti and my Hostess


And them intr-place


Well, I'm not shure that I know what is "mistiState()" ?
_________________________
In Misti DLG write:
(Starting Condition)   }{   }{   61   }{   G.Misti_Follow == 3   
61 lines: "So, now we are here bla bla bla......"   }{   #   }{   }{   }{   }{   }{   }{   }{   }{   }{   }

And in mine:
(Starting Condition)   }{   }{   61   }{   G.V_hostess_come == 1
61 lines: "We are come, meet with Misti, please"

What I need to change?

p.s. With dialoge everything is Ok, they work without any problems.
« Last Edit: March 10, 2016, 08:20:21 AM by 3Dell »

Offline Wesp5

  • Administratrix
  • Antediluvian
  • *****
  • Posts: 6159
  • Unofficial Patcher
Re: Questions about hammer tool
« Reply #36 on: March 10, 2016, 08:28:24 AM »
Well, I'm not shure that I know what is "mistiState()" ?

That's the critical part, it's a Python script in hollywood.py that tells Misti what to do! You need to copy that for your new girl as well as all the other logics, interesting places and scripts called in there. It's not as easy as you think...

Offline 3Dell

  • Neonate
  • **
  • Posts: 54
Re: Questions about hammer tool
« Reply #37 on: March 10, 2016, 02:28:02 PM »
That's the critical part, it's a Python script in hollywood.py that tells Misti what to do!

Oooh, yes, that what I need to add.
Ok, I did it and write in hollywood.py this part after all abouth Misti:

"............    else:
        print("G.Misti_Follow <> 1")
        misti_floor = Find("misti_floor")
        misti_floor.Trigger()

# TJP - 01/28/04
#VESUVIUS: Determines if Hostess goes to Misti or not. I hope she does! changed by 3Dell
def V_hostessState():
    print("V_hostessState called")
    if(G.V_hostess_Follow == 1):
        print("shes going!")
        V_hostessgo = Find("V_hostess-logic_walk_back")
        V_hostessgo.Trigger()
    else:
        print("G.V_hostess_Follow <> 1")
        V_hostess_floor = Find("V_hostess_floor")
        V_hostess_floor.Trigger()
"

But now Console write to me:
"V_hostessState called
G.V_hostess_Follow <> 1"


And abouth Misti Console write:
"mistiState called
shes going!"

So, my Hostess still can't go :(
When I said to Misti "ok, go" I write in Consol "G.Misti_follow" and it ansver to me 2 (when she come in "Misti-intr_place" Console write to me G.Misti_follow = 3.
When I do it to my hostess: "G.Misti_follow" in console and it answer "1". What need to change? I made Hostess DLG as like Misti GLD, I'm sure.


And I want to cheange that thing: When I said to Misti "ok, go" and hse go I can't begin dialoge wint she again. It's okey, byt with my Hostess to. I need opportunity to start gialoge with her in eny time.
Can you help me, please?
« Last Edit: March 10, 2016, 05:36:14 PM by 3Dell »

Offline Wesp5

  • Administratrix
  • Antediluvian
  • *****
  • Posts: 6159
  • Unofficial Patcher
Re: Questions about hammer tool
« Reply #38 on: March 10, 2016, 05:29:39 PM »
I have no time to analyse all of your stuff, but the G variables are case sensitive...

Offline 3Dell

  • Neonate
  • **
  • Posts: 54
Re: Questions about hammer tool
« Reply #39 on: March 11, 2016, 11:03:00 PM »
I cheange "if(G.V_hostess_Follow == 1)" to "if(G.V_hostess_Follow >= 1)" and Console write to me "shes going!". It is good, but the model still don'move :) (Before it write "G.V_hostess_Follow <> 1")

May be I wrong in this peace: "Mistigo = Find("misti_logic_walk_back")"
What is "mistigo"?

_______________________________
Oookay... In "class info" of my Hosstes model I choose "use int. places - yes" and "Group of int. places - 31" (add all int. places of my Hostes in group "31". And now she finaly can walk!) I'm very happy, but I stil need she go in one int. place after my words. Anyway I will trying again. (Now she walk without Phyton add)


Other questions: some stripper we can see in Vesuvius not every time. I need to cheange it for one model (stripper bj), for opportunity to speak with her every time.

Else. I want to add fight with some character. I need it look that: I choise phrase in the dialoge and the screan go dark and we see loading to other map. On this map we begin to fight and when npc will have 10-20% of healbar we automatic begin the dialoge and choise to kill him or stay alive... It will give +/- humanity. I have ready write the DLG and 90% of new map, but I dont know how to make a teleport on new map after to talk.
Thanks for attention )
« Last Edit: March 14, 2016, 09:34:19 PM by 3Dell »

Offline Wesp5

  • Administratrix
  • Antediluvian
  • *****
  • Posts: 6159
  • Unofficial Patcher
Re: Questions about hammer tool
« Reply #40 on: March 15, 2016, 08:49:29 AM »
Other questions: some stripper we can see in Vesuvius not every time. I need to change it for one model (stripper bj), for opportunity to speak with her every time.

Two different sets of NPCs are switched when the map loads, check the MapLoad section.

Quote
Else. I want to add fight with some character. I need it look that: I choise phrase in the dialoge and the screan go dark and we see loading to other map.

Wow! Why don't you start doing simple things instead of going full force to other maps and stuff. We can't explain everything to you here, it's learning by doing with Bloodlines ;)!

Offline 3Dell

  • Neonate
  • **
  • Posts: 54
Re: Questions about hammer tool
« Reply #41 on: March 18, 2016, 08:54:08 PM »
Two different sets of NPCs are switched when the map loads, check the MapLoad section.

Wow! Why don't you start doing simple things instead of going full force to other maps and stuff. We can't explain everything to you here, it's learning by doing with Bloodlines ;)!

Seriously?) It is not interesting, don't you think?
Well, I did this teleport to level after the dialoge, but I broke  something on new map and when loading finished my PC stay in darkness)) with link on others Maps it work ok. So tomorrow I just add little cheanges to my new map... I don't know what else simple I can do, I have done skins 3-4 weeks ago, but now it's boring. I did Phyton for my NPC and now they can walk :)

I still have questiont with 3D model in Blender, but no one want answer to me😔

Anyway thank to all people, who help me doing all this :)
I'm sure, in next 2-3 weeks I will ask for instructions again...
___________
Still can't understand how to make npc be on the map every time :( bcs stripper in Vesuvius appear in 50% of cases once and in 50% others.

Offline 3Dell

  • Neonate
  • **
  • Posts: 54
Re: Questions about hammer tool
« Reply #42 on: April 06, 2016, 04:08:58 PM »
I have made new little map for S-M, but I can't made teleport to this map frof sm_hub_1. My Hammer can't complit this map with add door  :facepalm:
Wesp5, I hear you know how made a teleport wiht help VPKTool. Can you explained to me how?






Offline Wesp5

  • Administratrix
  • Antediluvian
  • *****
  • Posts: 6159
  • Unofficial Patcher
Re: Questions about hammer tool
« Reply #43 on: April 06, 2016, 09:03:09 PM »
Wesp5, I hear you know how made a teleport wiht help VPKTool. Can you explained to me how?

That's not easy, you need to copy triggers and landmarks to a fitting place and both must be the same inside your own map. Please read a source tutorial on this!

Offline Entenschreck

  • Methuselah
  • ****
  • Posts: 250
Re: Questions about hammer tool
« Reply #44 on: April 06, 2016, 10:08:39 PM »
Nice job! Is this a part of a bigger project you're working on? If not, well, I could really use another mapper to work on a mod with me.
And did you create those HUD textures yourself, or is it a mod I haven't heard of? They're awesome and almost exactly what I've been looking for.

About level-to-level teleports, there're tutorials which are ten times better at explaining how the trigger_changelevel entity works than I am. Probably even on Youtube.