SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop > SH4 Mission Designers' Forum
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 05-24-10, 08:02 AM   #1
fred8615
Saint of the seas
 
fred8615's Avatar
 
Join Date: Mar 2004
Location: Sorrento, Louisiana
Posts: 1,305
Downloads: 265
Uploads: 127
Default Just when I think I've got this all figured out...

...I can't get time triggers to work!

It refuses to do anything it's supposed to if a time trigger is involved. Every other type of trigger works fine.

I did do a search here and saw where it was reported that it doesn't work with multiplayer missions. I double checked my parameters and all that's checked is "Single Player" so it shouldn't be that.

I'm trying to update objectives and send a message on a specific date and time. Any ideas?

Last edited by fred8615; 05-24-10 at 10:46 AM.
fred8615 is offline   Reply With Quote
Old 05-24-10, 11:44 AM   #2
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by fred8615 View Post
...I can't get time triggers to work!

It refuses to do anything it's supposed to if a time trigger is involved. Every other type of trigger works fine.

I did do a search here and saw where it was reported that it doesn't work with multiplayer missions. I double checked my parameters and all that's checked is "Single Player" so it shouldn't be that.

I'm trying to update objectives and send a message on a specific date and time. Any ideas?
It hard to say without seeing what you have done. Did you check all the start dates? Did you change the start date of the mission AFTER you set the time trigger? That will cause the time trigger to change.
Time trigger do work. But they don't happen at the EXACT minute of the time trigger. Usually within a few minutes, maybe as much as 5 minutes late.
If you have somewhere you could post it, I could take a look at it.

Peabody
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody is offline   Reply With Quote
Old 05-24-10, 12:59 PM   #3
fred8615
Saint of the seas
 
fred8615's Avatar
 
Join Date: Mar 2004
Location: Sorrento, Louisiana
Posts: 1,305
Downloads: 265
Uploads: 127
Default

Quote:
Originally Posted by peabody View Post
It hard to say without seeing what you have done. Did you check all the start dates?
Checked, re-checked, double checked, triple checked. I'm using the default start of 1940-1-1 anyway.

Quote:
Did you change the start date of the mission AFTER you set the time trigger? That will cause the time trigger to change.
Not in in the first half dozen times I tried them. I did try using a start date of 1941-2-1 to see if that would help, noted the changed date in the trigger, and fixed it back, but still nothing. I even tried starting all over again from scratch, and that didn't work.

Quote:
Time trigger do work. But they don't happen at the EXACT minute of the time trigger. Usually within a few minutes, maybe as much as 5 minutes late.
I waited days (using time compression) and the message never showed.

Quote:
If you have somewhere you could post it, I could take a look at it.
PM me your e-mail address and I can send it as an attachment. It's in a JSGME mod so it won't require messing up your install or anything.
fred8615 is offline   Reply With Quote
Old 05-24-10, 04:14 PM   #4
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Fred,

Got your mission, you can relax, your time trigger works fine. The problem is Time triggers, at least from what I know are hard to use in Campaigns. Simple reason, you don't know when they are going to send you on the mission.

Time trigger do not use the actual date you enter, they use the difference between the mission start date and the time trigger date. So when the mission start changes the times trigger "time" changes.

Here is the time trigger in your mission.

[Trigger 1]
TrigName=Find and Engage
Type=1
Time=1017210

Time= 1.9+ years !!

The mission was written with a start date of 1940-1-1 and the trigger is set for 1941-12-7. BUT when the mission starts Dec 1, 1941 or Dec 2 the time trigger moves ahead 1.9+ years.
I changed the mission start date but because of when they started me, the message did not arrive until Dec 8, by that time the Task Force is gone.



I just ran it again and it started me on Dec 2 at 1400 hrs. That makes the message 38 hours late.

The message.txt file did give a message in the "message box" stating that Pearl was attacked, unfortunately the message on the clipboard was "message content". So there must be a mistake in that file. It's the stock file.

A possible solution is to give a message when they arrive at their Patrol zone of opening sealed orders and intelligence suspects the Japanese may attack. Negotiations are not going well, partol the area blah.....blah....blah.... rather then try to get a time trigger to work. Unless someone else knows something I don't about them. Also suggest making the area bigger.

Anyway, it was not a mistake on your part, the message trigger works fine, you just had to wait 2 years to get it.

Peabody
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody is offline   Reply With Quote
Old 05-24-10, 05:27 PM   #5
fred8615
Saint of the seas
 
fred8615's Avatar
 
Join Date: Mar 2004
Location: Sorrento, Louisiana
Posts: 1,305
Downloads: 265
Uploads: 127
Default

Well that blows!

The other two patrols I wanted to use a time trigger in I can get around not having it. But this one really needed it. Oh well, can't have everything I guess.

BTW, that empty PH attack message you got is a bug in the stock messages.txt. There's mods out there that fix it.

Thanks again for all your help.
fred8615 is offline   Reply With Quote
Old 05-25-10, 01:01 PM   #6
fred8615
Saint of the seas
 
fred8615's Avatar
 
Join Date: Mar 2004
Location: Sorrento, Louisiana
Posts: 1,305
Downloads: 265
Uploads: 127
Default

I got it!

I got it!

I got it!

It turns the start date for the mission in the PatrolObjectives.cfg has an influence. Also, the start dates in both it and the mission need to be when the patrol actually starts. In the case of what I'm doing, it's always Dec. 2nd. For some reason the message is 14 hours later than the time set, but that can be dealt with by subtracting those hours from the time you want it to display. Otherwise, it works perfectly!
fred8615 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:04 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.