Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to International Emergency & 911: First Responders Fan Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Stan

      Maintenance update   02/07/2016

      Dear community,   After three weeks of issues we moved our site to a new dedicated root server. We fixed a lot of bugs with this release. All downloads up to 1Gb filesize should be downloadable for everyone.   Encountering any kind of issues? Make a post in the website/forum support.   Regards, Stan
    • Stan

      Paid Referral Links   02/11/2016

      Hello,     From now on we will be disallowing any referral links on our site. This is not the place to earn money directly or indirectly. Anyone found sharing paid shortened links or referral links to earn money might lose his account.     Reason for this:     We are providing this service free of charge, putting our own free time in this and paying monthly fees on our own costs to keep this free service running. So why should anyone else make money from something they don’t pay to use?     So in short from now on we will be warning and banning users abusing or misusing referal links.     Regards,     Stan          
    • randomperson139

      Signatures   03/04/2016

      Hi everyone. It appears that the update to the new forum has affected the format of the majority of signatures (adding extra spaces, changing sizes etc.). Due to this, could everyone please check their own signature, ensuring that it complies with the site rules. See the http://www.emergency-planet.com/tos.html/ or http://www.emergency-planet.com/topic/16848-acceptable-signature-sizes/ for more information.  We'll give it a few weeks to give enough time to edit signatures, after that the unnecessarily large signatures will simply be removed. Thanks for your cooperation. Regards, EMP Staff.
Hoppah

[Released] Limited Water Supply Logic

304 posts in this topic

Surely you could rename the mission script to 'fp_freeplay' and it would hopefully work in freeplay right?

No it is two completely different ways of writing the script, 

 

Also I worked out my previous issue and believe i will have a working free play version some time later this after noon! 

 

Will post updates later but for now its time for sleep!

0

Share this post


Link to post
Share on other sites

Hello Nathan, congratulations for the script, it would be possible to spend a tank of water to support another tank??.

0

Share this post


Link to post
Share on other sites

Oh, that's a good point, routing water through trucks to other trucks in general

0

Share this post


Link to post
Share on other sites

@ NathanDollinger,

 

Nice try, but that's not gonna work I'm afraid. If you'd execute your command the second time, it will reset the water level back to ETL (1000). The script has to be set up to check the water levels like once per second so it can update and save the water level for each vehicle and thats not very easy to realise. One of the few ways to do that is using a hidden dummy object which keeps track of the vehicles.

 

However, I've got some good news. Got a little bit bored today and did it myself. That means:

 

You can have limited water supply in freeplay too now

 

So shit just got real.

 

Pictures first:

 

Original TLF on the default EM4 freeplay map:

wu2rk4.jpg
 
Fire Engine with supply line on the EM4 deluxe map:
206n5g1.jpg

 

As you can see the vehicles have an extra command (instead of the information panel) which shows the relative water tank level in 100, 80, 60, 40, 20 or 0% by changing the icons. In game, you can click the command and it will inform you of the actual water levels in gallon and the exact relative amount (as shown in the screenshots too). To make the logic as useful as possible for everyone, I decided to use the vehicleclasses (TLF, LPF and GTF) as references for the maximum water tank amounts. That means it should work with ALL vehicles that are either a TLF, LPF or GTF type and that's it. Other than that, the limited water supply works the exact same as in the demo mission, although the logic is implemented differently. I still need to give the freeplay logic a few extra tests and will release the entire functionality tonight or tomorrow.

 

Hoppah

0

Share this post


Link to post
Share on other sites

This is why we love you Hoppah!

0

Share this post


Link to post
Share on other sites

Oh Hoppah. How do I send you my money?

0

Share this post


Link to post
Share on other sites

Oh Hoppah. How do I send you my money?

 

money-envelope-l.jpg

0

Share this post


Link to post
Share on other sites

:OOOOO. Hoppah you're epic :D

 

Question: So in the freeplay all vehicles that are TLF, LPF or GTF can have limited water supply? 

0

Share this post


Link to post
Share on other sites

Oh great and powerful Hoppah we thank your for your work. Would it be possible to make trucks connect to each other so something like a tanker could be made practical. Since I''m not sure of your familiarity with US fire engines it might work like this. A truck with a 500 gallon tank attacks a fire and soon the tank drops to 200. A tanker arrives and is connected to the first truck, the tanker has a 2000 gallon tank. The water level in the tanker now starts to drop while the water level in the first truck stays steady (since the water is now coming from the tanker). Once the tanker is out of water the water level in the first truck starts to drop again. In theory could this be done? I can think of at least one mod that would benefit greatly from a functional tanker script.

0

Share this post


Link to post
Share on other sites

@ NathanDollinger,

 

Nice try, but that's not gonna work I'm afraid. If you'd execute your command the second time, it will reset the water level back to ETL (1000). The script has to be set up to check the water levels like once per second so it can update and save the water level for each vehicle and thats not very easy to realise. One of the few ways to do that is using a hidden dummy object which keeps track of the vehicles.

 

However, I've got some good news. Got a little bit bored today and did it myself. That means:

 

You can have limited water supply in freeplay too now

 

So shit just got real.

 

Pictures first:

 

Original TLF on the default EM4 freeplay map:

 
 
Fire Engine with supply line on the EM4 deluxe map:
 

 

As you can see the vehicles have an extra command (instead of the information panel) which shows the relative water tank level in 100, 80, 60, 40, 20 or 0% by changing the icons. In game, you can click the command and it will inform you of the actual water levels in gallon and the exact relative amount (as shown in the screenshots too). To make the logic as useful as possible for everyone, I decided to use the vehicleclasses (TLF, LPF and GTF) as references for the maximum water tank amounts. That means it should work with ALL vehicles that are either a TLF, LPF or GTF type and that's it. Other than that, the limited water supply works the exact same as in the demo mission, although the logic is implemented differently. I still need to give the freeplay logic a few extra tests and will release the entire functionality tonight or tomorrow.

 

Hoppah

 

 

.... Grr lol 

 

Good job Hoppah! 

Hope to see it soon!

0

Share this post


Link to post
Share on other sites

@ NathanDollinger,

 

Nice try, but that's not gonna work I'm afraid. If you'd execute your command the second time, it will reset the water level back to ETL (1000). The script has to be set up to check the water levels like once per second so it can update and save the water level for each vehicle and thats not very easy to realise. One of the few ways to do that is using a hidden dummy object which keeps track of the vehicles.

 

However, I've got some good news. Got a little bit bored today and did it myself. That means:

 

You can have limited water supply in freeplay too now

 

So shit just got real.

 

Pictures first:

 

As you can see the vehicles have an extra command (instead of the information panel) which shows the relative water tank level in 100, 80, 60, 40, 20 or 0% by changing the icons. In game, you can click the command and it will inform you of the actual water levels in gallon and the exact relative amount (as shown in the screenshots too). To make the logic as useful as possible for everyone, I decided to use the vehicleclasses (TLF, LPF and GTF) as references for the maximum water tank amounts. That means it should work with ALL vehicles that are either a TLF, LPF or GTF type and that's it. Other than that, the limited water supply works the exact same as in the demo mission, although the logic is implemented differently. I still need to give the freeplay logic a few extra tests and will release the entire functionality tonight or tomorrow.

 

Hoppah

 

By the power of greyskull...

tumblr_m9jmrvGatD1qlvd4eo1_250.gif

0

Share this post


Link to post
Share on other sites

Hai,

 

Looks great!!! But unfortunately for you this script was once made by a german modder for freeplay too...

But this one is less buggy i hope!

Can't wait to use it!

0

Share this post


Link to post
Share on other sites

You're the beast hoppah has a script in manhatan the firefighter engages a hose on a truck on the other, it would be possible to put together with the water supply?

0

Share this post


Link to post
Share on other sites

:OOOOO. Hoppah you're epic  :D

 

Question: So in the freeplay all vehicles that are TLF, LPF or GTF can have limited water supply? 

 

 

Yes, the script runs in the background and automatically recognizes those vehicle types and assignes the limited water supply logic to them. I'm currently making it compatible with DLK types too, because I forget about the basket's water cannon.

 

 

Hai,

 

Looks great!!! But unfortunately for you this script was once made by a german modder for freeplay too...

But this one is less buggy i hope!

Can't wait to use it!

 

Why would it be 'unfortunately'? I'm not claiming I'm the first one to do this and I can't really care about it either. Hell, the first post even mentions something about other mod-creators doing a similar logic. I wrote my own scripts so I could alter it to my own wishes (for the US Army Mod and NYC Mod) and so I could release a version to the public without having to deal with possible copyright claims. As far as I know, my script isn't buggy at all and works flawlessly. The only possible issue might be a performance issue when you're dispatching like 20 fire engine's, but I haven't tested that yet.

 

 

Oh great and powerful Hoppah we thank your for your work. Would it be possible to make trucks connect to each other so something like a tanker could be made practical. Since I''m not sure of your familiarity with US fire engines it might work like this. A truck with a 500 gallon tank attacks a fire and soon the tank drops to 200. A tanker arrives and is connected to the first truck, the tanker has a 2000 gallon tank. The water level in the tanker now starts to drop while the water level in the first truck stays steady (since the water is now coming from the tanker). Once the tanker is out of water the water level in the first truck starts to drop again. In theory could this be done? I can think of at least one mod that would benefit greatly from a functional tanker script.

 

I do think it's possible, but it's not on my to-do list yet. I don't have a tanker model either, but I guess you could hook up a hose to the tanker first and then to the fire engine's supply line connector to get it work.

 

Hoppah

0

Share this post


Link to post
Share on other sites

Glad to hear it's possible! In the future if/when such a script is made it should really help a couple of small town mods and will add more realism to all mods and connecting fire trucks is common practice when their are no hydrants available.

0

Share this post


Link to post
Share on other sites

Hows the testing coming hoppah? 
Hope we see this today!

 

Can't wait to start working with it! 

 

It will with out a doubt go down as one of the best modding scripts in EM4 History!

0

Share this post


Link to post
Share on other sites

Hows the testing coming hoppah? 

Hope we see this today!

 

Can't wait to start working with it! 

 

It will with out a doubt go down as one of the best modding scripts in EM4 History!

 

Had to fix a couple of bugs and was having troubles with the DLK (The ladder) and the water cannon on its basket, but it seems to work fine.

0

Share this post


Link to post
Share on other sites

Had to fix a couple of bugs and was having troubles with the DLK (The ladder) and the water cannon on its basket, but it seems to work 

 

Thats great! Any ideas on when will get to see it=D

0

Share this post


Link to post
Share on other sites

Thats great! Any ideas on when will get to see it=D

 

Within 24 hours definitely, but I rather deliver something bugfree instead of rushing this.

0

Share this post


Link to post
Share on other sites

Had to fix a couple of bugs and was having troubles with the DLK (The ladder) and the water cannon on its basket, but it seems to work fine.

How will we handle supplying ladder trucks? As far as I know, no mods out there have added hose connections to them.

 

Great work, Hoppah.

0

Share this post


Link to post
Share on other sites

Within 24 hours definitely, but I rather deliver something bugfree instead of rushing this.

Agreed will be looking forward to it! 

 

Script on my friend!

0

Share this post


Link to post
Share on other sites

Another version of that would be an engine connecting to a ladder truck or another engine (sometimes the first arriving engine goes right in and starts fighting the fire, while the second due engine sets up a supply line for the first due engine to use. More common in urban areas where response times are much less.)

Another idea I just had is to turn the pump on/off, whereas when it's on the truck won't move and it checks the water levels, and the rest of the stuff works, and when turned off it saves that number of the tank level and stops checking until turned on. Would help with any potential lag and be more realistic

0

Share this post


Link to post
Share on other sites

@ Axxif, I like the idea to be able to turn off the pump. Thanks

 

 

 

I've released v1.1 of the demo mod which includes the entire functionality for freeplay too. Check out the first post for more information. I will write instructions how to implement the freeplay functionality into other mods tomorrow.

 

Hoppah

0

Share this post


Link to post
Share on other sites

Along with the pump idea could you make it so one firefighter was required to be still in the vehicle for the pump to operate? Like in the US Army mod where a unused Firefighter was required to operate the water cannon... I know all the department's I have had experience with require 1 firefighter to be running the pump at all times. So if the truck has 6 firefighters 1 sets up the filler line (nearest truck or hydrant), 4 get hoses and attach them. Then on a command (button on menu) the remaining firefighter inside the truck appears outside by the control panel and then the hoses will work.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now