Community Forum

Creating a script to reduce the time to complete missions.

Forum Overview >> Scripting

Created19.12.2019 19:18

Aleksey Shumilin (Unknown) 19.12.2019 19:18
Hello, I don’t like the time limit allocated for missions. Of course, I can do this in FS19, but the disgusting graphics of this version discourage all desire. Is it possible to create a script that will reduce the time (or even disable it) for missions ?P.S. Script for FS17.

Gtx | Andy (GtX_Andy) 21.12.2019 10:39
Yes, this is possible with a custom lua script to overwrite the required variables as needed.

I always thought the time limit was quite long but I guess if you are walking away from the PC it may not be fine.
You would need to increase the 'timeLeft' variable that is part of the individual field job on load. This would be the simplest way to do as you wish.

Aleksey Shumilin (Unknown) 22.12.2019 10:42
Andy, thanks for the advice, could you help me create this script for PC? I think many players used it with pleasure.

Gtx | Andy (GtX_Andy) 24.12.2019 08:20
I just wanted to clarify, you want to be able to disable of extend the time needed to complete a mission.

For example instead of 4 minutes you would want 40 minutes?

Not sure if i did not understand correctly the first time. :-)

Aleksey Shumilin (Unknown) 24.12.2019 16:47
Andy,of course, the best option is to completely disable the time. If this is not possible, just increase the time. My option: 1 minute-1 hour. In the game, the time to complete a mission depends on the choice of game complexity and field size, as I understand it..

Gtx | Andy (GtX_Andy) 25.12.2019 11:37
Hey, Well I hope this is like a Christmas present and does as you wish.

To disable the time completely would be a little more work then I have time for at this stage sorry.
This script addon will allow you to choose a multiplier each time the game loads from 1 (normal) to 150 times. This is not saved with the game at this stage sorry but not sure this is an issue anyhow :-)

Basically all the script does is give you an extended time to complete the missions. The extra time reward however is still only available if you finish faster then the original time. This is shown in the UI for each job so you are aware of the limit. I think this keeps it a challenge and not a money cheat.

^^ I am not sure how I will release this yet (Giants modHub or GitHub) but I wanted you to have access now especially being Christmas and your idea. The link will remain active until you confirm you have the mod. I was not sure if you were on the Giants forums or Discord to send it but either way her it is. It is most important you get the mod so enjoy. :-)

GtX | Andy

Aleksey Shumilin (Unknown) 26.12.2019 20:30
Thank you so much,Andy! This is really a wonderful gift for me, thanks for taking the time to this mod. I confirm that I downloaded the file from your link. If you intend to develop this mod in the future, I will follow up on the project. Merry Christmas and Happy New Year to you !

Christopher Gamble (CobraOne) 09.08.2020 17:55
Hi Andy, I have an autistic brother who loves tractors and playing FS2011 missions but he gets frustrated when the time run out before he completes the mission.
Would it be possible to have a copy of the code so I can extend the timer for him. I have looked here and on GitHub but can't find it there.
Many Thanks in advance.

Christopher Gamble (CobraOne) 09.08.2020 17:56

Gtx | Andy (GtX_Andy) 13.08.2020 11:15
Hey Christopher,
Do you mean to say 2017 not 2011?

I will have a look for the script and get back to you, I have been meaning to add it to GitHub but life has been kicking me a bit so no time.
Happy to get you a copy though...


Christopher Gamble (CobraOne) 13.08.2020 13:30
Hi Andy, Sorry, I should have paid more attention when reading the post, he is using 2011 as the tutorials seem a little easier, ie you don't have to keep selecting which of the attached implements you wish to operate. If I could have a copy of the 2017 version which will hopefully give me a starting point in creating a 2011 version I would be most gratefull.

Many thanks

Christopher Gamble (CobraOne) 23.08.2020 18:46
Hi Andy
I have had a go at creating the script myself and have had a partial success. The script uses the print command to increment a counter and display the results. This works fine in career mode but does not work in a mission, can you help please. Here is my modDesc.xml

<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="4">
<author>Cobra One</author>
<de>This script extends the timer in the training missions.</de>
<en>This script extends the timer in the training missions.</en>
<multiplayer supported="true"/>
<sourceFile filename="MyMod.lua"/>

and here is the MyMod.lua file

MyMod = {}
cnt = 0
function MyMod:loadMap(name)

function MyMod:deleteMap()

function MyMod:mouseEvent(posX, posY, isDown, isUp, button)

function MyMod:keyEvent(unicode, sym, modifier, isDown)

function MyMod:update(dt)

function MyMod:draw()

function Test()
print("Mission Time = " , cnt, "\n")
cnt = cnt + 1


Thanks in advance

Note: Log in to post. Create a new account here.