|
|
#3031705 - 06/15/10 02:50 AM
Command line attributes for time of day
|
Member
Registered: 09/21/05
Posts: 172
Loc: Auckland, New Zealand
|
In previous versions of EECH there was a command line switch that went like this:
/pitod:0900
It set the time of day that the campaign started at. While you can set this campaign start time from a few options when you are starting the game yourself. This was the only way to set the time of the campaign, when calling the campaign on a dedicated server (using dedicate.bat for example)
So, the whole line would look something like this:
cohokum /pitod:0900 dedicated:1 game_type:2 gunship_type:2 path:..\common\maps\map6 directory:camp03 filename:yemen.chc
I'm not sure which version it stopped working in, either 1.12.x or 1.13, but it seems this command no longer works.
The result of this command not working is that every time my dedicated server starts a new campaign (either because the previous one has finished, or crashed) it starts the campaign at 00:00 on the first day of the campaign. While this is not a problem (the campaign still starts) it does mean that for the first hours of the campaign it is night, and since the game is known to crash and restart, I have seen it where for several crashed campaigns, only night missions are flown.
Do any of the people who have looked at the code, know if this command is still viable? I have tried it with and without the "/" in front of it. And have tried it at the beginning and end of the command line, and it does not seem to work. Any guidance or light that could be shed on the subject would be greatly appreciated.
Thanks, AMRAAM.
_________________________
"Don't worry soldier, they can stitch those back on"
[Ord.] General AMRAAM, Commander in Chief
|
|
Top
|
|
|
|
#3032090 - 06/15/10 12:07 PM
Re: Command line attributes for time of day
[Re: AMRAAM]
|
Member
Registered: 06/18/06
Posts: 2213
Loc: Oslo, Norway
|
It appears that option doesn't exist anymore, so no wonder it doesn't work for you. Probably dissapeared when firebird did a rewrite of the options, but don't think it was on purpose.
|
|
Top
|
|
|
|
#3032198 - 06/15/10 02:55 PM
Re: Command line attributes for time of day
[Re: arneh]
|
Member
Registered: 09/21/05
Posts: 172
Loc: Auckland, New Zealand
|
Thanks for the info Arneh. Not knowing much about the magic you coders do...would it be possible perhaps to get that option reinstated? P.S. I'll send the coder who does it a cake. (Everyone in IT likes cake right?  )
_________________________
"Don't worry soldier, they can stitch those back on"
[Ord.] General AMRAAM, Commander in Chief
|
|
Top
|
|
|
|
#3032236 - 06/15/10 03:59 PM
Re: Command line attributes for time of day
[Re: AMRAAM]
|
Member
Registered: 06/18/06
Posts: 2213
Loc: Oslo, Norway
|
Yes, shouldn't be hard to do. Though it's not going to be high priority, so don't expect anyone to rush out a new version just to fix this one problem  Could you report a bug in the bug database so we don't forget about this?
|
|
Top
|
|
|
|
#3032310 - 06/15/10 06:55 PM
Re: Command line attributes for time of day
[Re: arneh]
|
Member
Registered: 09/21/05
Posts: 172
Loc: Auckland, New Zealand
|
Thanks Arneh, I have logged a bug in the database.
_________________________
"Don't worry soldier, they can stitch those back on"
[Ord.] General AMRAAM, Commander in Chief
|
|
Top
|
|
|
|
#3032761 - 06/16/10 09:11 AM
Re: Command line attributes for time of day
[Re: AMRAAM]
|
Member
Registered: 12/03/09
Posts: 264
Loc: Chimacum, Wa
|
Cake? Did someone say cake???
|
|
Top
|
|
|
|
#3051638 - 07/13/10 05:11 PM
Re: Command line attributes for time of day
[Re: CHADDOGG]
|
Member
Registered: 06/10/05
Posts: 478
|
I searched the source code but have found no reference of such parameter. The only time setting I found is "Midday/Morning/..." in user menu, not a specific time. Are you sure you're talking about EECH?
|
|
Top
|
|
|
|
#3051651 - 07/13/10 05:24 PM
Re: Command line attributes for time of day
[Re: FireBird_[WINE]]
|
Member
Registered: 03/31/10
Posts: 327
|
]I searched the source code You can write how? Is it enough to a normal browser, As it was in DOS, whether it is appropriate for this tool? edit ok i found , sorry
Edited by BANITA (07/13/10 05:31 PM)
|
|
Top
|
|
|
|
#3051749 - 07/13/10 08:38 PM
Re: Command line attributes for time of day
[Re: BANITA]
|
Member
Registered: 09/21/05
Posts: 172
Loc: Auckland, New Zealand
|
Yep. It surely was.... I have used it successfully in my batch file for several years now... Just looking for some information on the net about it. it was listed in a strategy guide or some such. On page 43 of this guide is a list of the command line options and there is one that sets the time that the Players Tour of Duty starts. http://www.eechcentral.com/files/Manuals/EECH%20strategy%20guide.pdf
Edited by AMRAAM (07/13/10 08:41 PM)
_________________________
"Don't worry soldier, they can stitch those back on"
[Ord.] General AMRAAM, Commander in Chief
|
|
Top
|
|
|
|
#3051839 - 07/14/10 01:21 AM
Re: Command line attributes for time of day
[Re: AMRAAM]
|
Member
Registered: 06/10/05
Posts: 478
|
Hmmm... I haven't found player_initial_tour_of_duty too... Well, I'll search deeper.
|
|
Top
|
|
|
|
#3052260 - 07/14/10 01:10 PM
Re: Command line attributes for time of day
[Re: FireBird_[WINE]]
|
Member
Registered: 06/10/05
Posts: 478
|
The guide also says that "APACHE_HAVOC" environment variable is used for options. But EECH uses "COMANCHE_HOKUM" one. Are you sure it is not "copy-paste" from EEAH's manual?
I searched sources for 1.11.0 and 1.10.1 too but haven't found "pitod" too. Could you please specify any exact version where "pitod" worked?
|
|
Top
|
|
|
|
#3053303 - 07/15/10 10:31 PM
Re: Command line attributes for time of day
[Re: CHADDOGG]
|
Member
Registered: 09/21/05
Posts: 172
Loc: Auckland, New Zealand
|
Hi Firebird. I'll roll the server back through the version and see if I can confirm the last version that it worked on.
I believe from memory that the last time it worked was when the switches were changed from requiring "/" or not. But I can not remember what version that was.
I will test and let you know.
Okay. Have tested back to 1.12.0 which is far back as I have backups of the Server, and it seems to not be working. Perhaps it did disappear many versions ago and I have just not been checking it? I'm just looking to see if I have the exes to go back further than that.
Edited by AMRAAM (07/15/10 11:05 PM)
_________________________
"Don't worry soldier, they can stitch those back on"
[Ord.] General AMRAAM, Commander in Chief
|
|
Top
|
|
|
|
#3054792 - 07/17/10 09:54 PM
Re: Command line attributes for time of day
[Re: AMRAAM]
|
Member
Registered: 09/21/05
Posts: 172
Loc: Auckland, New Zealand
|
Well I'm going to have to reinstall the server from scratch to get it working with EECH 1.9 or earlier. And the switch has not been working in any of my tests for later versions. So perhaps it stopped working in/around 1.10?
_________________________
"Don't worry soldier, they can stitch those back on"
[Ord.] General AMRAAM, Commander in Chief
|
|
Top
|
|
|
|
#3055090 - 07/18/10 01:49 PM
Re: Command line attributes for time of day
[Re: AMRAAM]
|
Member
Registered: 06/10/05
Posts: 478
|
I believe the entire command line was parsed in the single file. I've got the oldest version of it from the repository and searched for "pitod" - and failed. So, it's all strange.
But I opened aphavoc.exe in text editor - and yes, it has pitod and player_initial_tour_of_duty inside.
|
|
Top
|
|
|
|
#3055326 - 07/19/10 12:57 AM
Re: Command line attributes for time of day
[Re: FireBird_[WINE]]
|
Member
Registered: 01/29/07
Posts: 1142
Loc: Australia
|
Perhaps if you start and save a campaign file then look within the save file for clues. There may be PITOD referance for loading the save file?
|
|
Top
|
|
|
|
|
|
|
| |