Jump to content


Photo

Replacing a vehicle in one of the fire stations


  • Please log in to reply
255 replies to this topic

#81 Cosreski

Cosreski

    Senior Captain

  • Members
  • 372 posts
  • Gender:Male
  • Location:Delmarva Penninsula (USA)
  • Interests:Emergency Service's
    911 First Responders LA Mod
    PC Games
    Former Firefighter In California / Maryland

Posted 21 April 2010 - 05:20 AM

No idea, maybe the getshears command (or whatever it is called)?
How exactly did you add the jaws of life to the engines? If you checked the boxes in the traits menu of the editor, I'm not sure if that will work because hoppah's models are locked so they can't be changed.

I did, I also put jaws of life and hose in Hazmat at Station 2 and use it as a support unit as it doesn't do me any good @ sta 2 as a Hazmat. I feel that the Ladder truck should be at station 2 or something else but not a Hazmat unit. :gruebel:
Geposte afbeelding

#82 Xplorer4x4

Xplorer4x4

    Assistant Chief

  • Members
  • 4,972 posts
  • Gender:Male
  • Location:Evansville,IN

Posted 25 April 2010 - 01:26 AM

I have to agree, the Hazmat truck is virtually useless in the new map and even more useless being as FS2 as the only hazmat event I have found was at the port by FS1.

Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.

Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
MyDfQUt.jpg

Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE

If you appreciate my work, then please donate. Every little bit helps!
btn_donate_SM.gif


#83 Guest_njcjedi_*

Guest_njcjedi_*
  • Guests

Posted 18 May 2010 - 12:35 AM

For anyone that was vista and has the saving problem, all you have to do is right click on the script folder then go to properties, then click on the user you are singed in as then click edit then click full control. After all of that, you can now save the changes to the script. :holdglass:

#84 Guest_njcjedi_*

Guest_njcjedi_*
  • Guests

Posted 18 May 2010 - 03:21 PM

Hoppah I have a question, what part of the batallion cheif's scriptdo i have to change to fix this problem? As the batt. cheif I call the truck that i switched but instead of dipatching the truck from the firehouse, it automatically calls a new one.

#85 Tevion2GO

Tevion2GO

    Captain

  • Members
  • 119 posts
  • Gender:Male
  • Location:Germany

Posted 24 May 2010 - 11:58 AM

hello
i have found a old script here in the forum which replace the hazmattruck with an arial ladder
i want this script work for 2.0 so i copied the auto staff files from the LAfireStation.script to the old one and let the other two ( latofirestation.script and Lafiresationstart.script ) as they were

after i replaced them i tryed to play a little bit freeplay but at the beegining i got an script error and a BTD

do i forgot something to chance? or what?


greetings

#86 USman

USman

    Captain

  • Members
  • 185 posts
  • Gender:Male
  • Location:Iowa, United States
  • Interests:Kayaking, camping, hunting, stratygy, fire, 911 First Responders, Engineering, History

Posted 23 June 2010 - 08:38 PM

I am making the change of putting the HES in place of the HAZMAT. I have everything working except for when I call it by the BC it says not avalible and buys one, but in stead of it being a HAZMAGT truck it is the HES so where did I forget something?
Hi, I don't know what to put in my sig yet.

#87 Guest_piromaniac101_*

Guest_piromaniac101_*
  • Guests

Posted 23 July 2010 - 05:24 PM

Because it's one of the most asked questions on the forum I made a list of what files have to be changed when you want to replace a vehicle in one of the fire stations. This includes changing the command to call it from the fire station.
It's impossible to explain every detail in the script, so some scripting knowledge might be handy.
It's NOT adviced to make any changes to the (bays of the) engine's and ambulances, because they have a far more advanced script logic. Patience is required to do this.

Lets say you want to replace the USAR squad with the Watertender, because they have about the same size and only one of them can be parked in the bay.

-------------------------------------------------------------------------------------

Files which are necessary to change:

LAFireStationStart.script (to spawn the vehicle at start)
LAFireStation.script (for crew and gate information at fire station)
LAToFireStation.script (park command)
LABattalionChief.script (call command)

Other:
Adding the "Go to fire station" command to the new vehicle
Removing the "Go to fire station" command to the replaced vehicle

-------------------------------------------------------------------------------------

LAFireStationStart.script

First thing you can try is to let it spawn at the right spot with crew when you start a new game. LAFireStationStart.script does nothing more than that. Some analizing of LAFireStationStart.script reveals that the prototype of the USAR squad is mentioned in line 23. Changing that prototype to any other prototype is enough to spawn another object. in this case "water_tender.e4p".
You don't need to change the constants or anything else. Same thing counts for other things explained later.

When you further look for USAR, you should eventually find line 230 which should say

ActorList l12 = Game::GetActors(VO_USAR);
The lines below are important. They set number of passengers (and sometimes transports), speed and the crew that enters the vehicle at start. Notice the numer that is used in the crew line. The code of that line refers to another script and calls a single unit for that vehicle. The numbers refer to the certain unit (USAR firefighter in this case).
List of possible units:
1 = FF/PM with case
2 = FF/PM's with stretcher
3 = FF/EMT
4 = Battalion Chief
5 = FF HAZMAT
6 = USAR FF
7 = FF/EMT's with stretcher

-------------------------------------------------------------------------------------

Important tips: You can do millions of things with C++, it's impossible to explain everything, just compare your code with other codes in the scripts. For example: When you want to add 4 firefighters instead of 2 just look at other parts in the script. Besides that, testing is very important. If you fail first time, please try it again before going to the forum. And remember kids, it's like sex, you don't immediatly run to mommy and daddy when you can't get it up at your first date.

That's it for now. I hope most people understand this. When I have more time I will see if I can explain the other scripts.



#88 Guest_piromaniac101_*

Guest_piromaniac101_*
  • Guests

Posted 23 July 2010 - 05:26 PM

ive tried to add three vehicles in the parking lot. one at station one. and two at station two, ive gone through all the scripts im supposed to change but i cant get to work can someone give the correct scripts to make it work properly

#89 Xplorer4x4

Xplorer4x4

    Assistant Chief

  • Members
  • 4,972 posts
  • Gender:Male
  • Location:Evansville,IN

Posted 23 July 2010 - 05:52 PM

ive tried to add three vehicles in the parking lot. one at station one. and two at station two, ive gone through all the scripts im supposed to change but i cant get to work can someone give the correct scripts to make it work properly

Firstly, theres an edit button.

Second you dont have to quote some huge post, as you can see, to reply.

Third how can we help you? You havent provided us the scripts. You havent told us what the exact problem is. Nor have you even told us what vehicles you want at the fire stations. You havent told us if you placed virtual objects for the new units, etc. We need some indication of what you have or havent done to help you.

Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.

Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
MyDfQUt.jpg

Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE

If you appreciate my work, then please donate. Every little bit helps!
btn_donate_SM.gif


#90 Guest_piromaniac101_*

Guest_piromaniac101_*
  • Guests

Posted 24 July 2010 - 11:32 PM

didnt mean to put a long quote in the post. its my first time using this trying to get the hang of it. and im trying to add two water tenders and a brush unit. i did put virtual obects in the editor and as for the scripts that i put in i dont have them any more, had to delete them to play free play properly, because the game would stop working after it loaded up because of the errors in the scripting.

#91 Xplorer4x4

Xplorer4x4

    Assistant Chief

  • Members
  • 4,972 posts
  • Gender:Male
  • Location:Evansville,IN

Posted 25 July 2010 - 01:05 AM

Give it another go, and post your scripts and we can try to see where you went wrong. I am not going to do it for you as I have enough going on, but I will try to teach you whats wrong so you can learn from your mistake for the next time you want to add units.

Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.

Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
MyDfQUt.jpg

Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE

If you appreciate my work, then please donate. Every little bit helps!
btn_donate_SM.gif


#92 engineermdh

engineermdh

    Firefighter

  • Members
  • 8 posts

Posted 26 August 2010 - 07:40 AM

Hmm, I still need to finish this 'tutorial', but I think it's too much work to descrive the necessary changes in the other scripts (especially the battalion chief script). I might write something down to add vehicles to the parking lot of fire station instead. Something that was already done in one of the submods.



i've been working for the past couple of days trying to understand exactly how these scripts work without too much success. i'm sure a walk through for adding vehicles to the parking lot would be more than greatly appreciated when you have time to help us.

#93 vl1

vl1

    Firefighter

  • Members
  • 15 posts

Posted 08 September 2010 - 10:23 PM

i've been working for the past couple of days trying to understand exactly how these scripts work without too much success. i'm sure a walk through for adding vehicles to the parking lot would be more than greatly appreciated when you have time to help us.


i agree, i also tried to change the really unneeded hazmat with the very needed foam tender with no luck.
it would be really nice if someone of the gurus could make a nice step-by-step walkthrough from the first step to the last.

thanx!

p.s. SOLVED!

there is a nice explanation in the second post in this thread here:
http://forum.emergen...e-water-tender/

and a zip file with changed scripts ))

#94 Kawu

Kawu

    Firefighter

  • Members
  • 1 posts

Posted 15 September 2010 - 09:59 PM

First of all - Hello all!

I made few vehicle changes and one gives me unsolved problem. I switched BLS for Brush patrol in Station 2. Everything works fine until Brush unit is send back to the station. It goes correctly via the back door (which works ok), then through the garage and parks just in front the station facing the garage.

I will be thankful if someone can give me some help. I attach 2 moded scripts which problably cause a problem - LAtoFireStation and LAFireStation.


Attached File  scripts.zip   0bytes   96 downloads

#95 ff_emt_820

ff_emt_820

    Firefighter

  • Members
  • 13 posts

Posted 03 February 2011 - 12:05 AM

I'm getting confused when I go to change the staffing of the new vehicle. I've replaced the BLS ambulance with an ALS ambulance atg station 2, but when I go to the LAFireStationStart.script, I can't figure out where to change the staffing. From Hoppah's post, It seemed like you just put in the numbers for the people you wanted, but when I do that, I get a message that the script is undefined. any ideas?


i have the same issue...i have searched the forums and read everything i have found and still can not get it figured out...i am also wanting to replace the USAR with HAZMAT @ FS1 and replace HAZMAT with Aerial Ladder @ FS2

#96 Texas_DPS

Texas_DPS

    Battalion Chief

  • Members
  • 792 posts
  • Gender:Male

Posted 03 February 2011 - 01:36 AM

to change the staffing you need to adjust the people attached to the vehicles in the firestation and firestationstart scripts. to change vehicles you need to adjust all three (3) firestation scripts. ie firestation, firestationstart and tofirestation

@Kawu i have no idea why your brush would do that, i see nothing wrong with the scripts but i will look at them harder and see what i can come up with using my own mod and scripts.
- Jon

#97 ff_emt_820

ff_emt_820

    Firefighter

  • Members
  • 13 posts

Posted 03 February 2011 - 07:35 AM

I have changed the first script but I have not been able to find where/what to change in the latter 2 scripts.

#98 ff_emt_820

ff_emt_820

    Firefighter

  • Members
  • 13 posts

Posted 10 February 2011 - 01:19 AM

I have the LAFireStationStart script changed. I have messed with it several times and still no luck. This is what I am trying to do: replace BLS Ambulance at FS2 with ALS Ambulance (got this completed), replace HazMat @ FS2 with Aerial Ladder (not worked on yet), spawn correct staffing (can't get to work right for FS2), stage various units around the city (2 Rescue Amb and 1 HES). The issue I have with the replacement ALS Amb at FS2 is that it will not go back to FS2. Can anyone PM me and help me figure this out? I am, in the mean time, continuing to figure this out.

#99 Texas_DPS

Texas_DPS

    Battalion Chief

  • Members
  • 792 posts
  • Gender:Male

Posted 10 February 2011 - 06:23 AM

if you change the firestation script you need to change the firestationstart and tofirestation. these three scripts need to be adjusted for you to spawn, staff and return to station.
- Jon

#100 ff_emt_820

ff_emt_820

    Firefighter

  • Members
  • 13 posts

Posted 10 February 2011 - 08:42 AM

I know this but am getting lost on where the lines I need to change are...that is what is throwing me off...I have very very little scripting experience (what I do have is what I have learned by making small changes in the mod such as call volumes and unit staffing)