Home » PLAYER'S HQ 1.13 » JA2 Complete Mods & Sequels » Stracciatella Project (Platform Independent JA2) » how to speed up "only" enemy turns?
how to speed up "only" enemy turns?[message #362304] Thu, 04 February 2021 00:42 Go to next message
zozgom is currently offline zozgom
Messages:2
Registered:February 2021
How can i speed up the enemy turns ?

Thanks

Report message to a moderator

Civilian
Re: how to speed up "only" enemy turns?[message #362659 is a reply to message #362304] Mon, 15 March 2021 08:51 Go to previous messageGo to next message
luk3Z is currently offline luk3Z

 
Messages:68
Registered:December 2006
Location: Metavira
According to this (3. От чего зависит скорость игры/боя):

http://forum.ja2.su/cgi-bin/yabb/YaBB.pl?board=ja2v113;action=display;num=1466674138

Translated:
Quote:

3. What determines the speed of the game / battle
The battle speed changes in two places:
- Menu item "auto-acceleration battle", emnip on the second page of options
- Options in ja2_options.ini that determine normal game speed (no acceleration).
CLOCK_SPEED_PERCENT = 150 (it is recommended to change to about 120)
ENEMY_CLOCK_SPEED_PERCENT = 150 (recommended value 120-160)
- Options in ja2_options.ini that define auto-acceleration mode:
AUTO_FAST_FORWARD_ENEMIES = 0
AUTO_FAST_FORWARD_MILITIA = 0
AUTO_FAST_FORWARD_CIVS = 0
AUTO_FAST_FORWARD_CREATURES = 0
Depending on the settings, you can auto-accelerate only invisible opponents, or only militias, etc. Useful for large battles with dozens of opponents and militias.
- You can also always press '-' in the game to temporarily speed up the game timer.
In 1.13 Mod there is a file Ja2_Options.ini. Currently it is speeded up.

[Clock Settings]

;******************************************************************************************************************************
; These settings control the speed behavior of the game.
;******************************************************************************************************************************

;------------------------------------------------------------------------------------------------------------------------------
; Change in Clock Speed from base clock speed in percent
; Range: 100 - 300   Default: 150
;------------------------------------------------------------------------------------------------------------------------------

CLOCK_SPEED_PERCENT = 120

;------------------------------------------------------------------------------------------------------------------------------
; Clock speed percent during enemy turns
; Range: 100 - 300   Default: 150
;------------------------------------------------------------------------------------------------------------------------------

ENEMY_CLOCK_SPEED_PERCENT = 120

;------------------------------------------------------------------------------------------------------------------------------
; Improved auto fast forwarding.
; AUTO_FAST_FORWARD_ENEMIES:
; 0 - default behaviour
; 1 - auto fast forward only enemies that are not seen by player's team
; 2 - auto fast forward only invisible enemies
; 3 - auto fast forward all enemies
; AUTO_FAST_FORWARD_MILITIA:
; 0 - default behaviour
; 1 - auto fast forward only militia that does not see enemies
; 2 - auto fast forward militia always
; AUTO_FAST_FORWARD_CIVS, AUTO_FAST_FORWARD_CREATURES:
; 0 - default behaviour
; 1 - auto fast forward only invisible
; 2 - auto fast forward always
; Note: only movement is accelerated, most of specific actions like shooting and tossing grenades are performed at normal speed
;------------------------------------------------------------------------------------------------------------------------------

AUTO_FAST_FORWARD_ENEMIES = 2
AUTO_FAST_FORWARD_MILITIA = 1
AUTO_FAST_FORWARD_CIVS = 1
AUTO_FAST_FORWARD_CREATURES = 1

In vanilla JA2 there is no such a file, so you can't.



JA2 Vault (Repositories): https://pastebin.com/MJFckiaq
JA2 v1.13 - Starter Documentation: https://github.com/aimnas/1.13_starter_documentation
JA2 1.13 Hot Keys: https://pastebin.com/EHLMuk1k

Report message to a moderator

Corporal
Re: how to speed up "only" enemy turns?[message #362971 is a reply to message #362304] Sat, 24 April 2021 00:00 Go to previous messageGo to next message
lynxlynxlynx is currently offline lynxlynxlynx

 
Messages:109
Registered:September 2005
Location: Slovenija
You can edit a setting in game.json in the new release. Search for ms_per_time_slice.


If you like what I do, consider supporting this non-profit.

Report message to a moderator

Sergeant
Re: how to speed up "only" enemy turns?[message #364637 is a reply to message #362971] Tue, 10 May 2022 19:29 Go to previous messageGo to next message
Robsoie is currently offline Robsoie

 
Messages:5
Registered:April 2007
Thank you for pointing this !

I tried by halving this ms_per_time_slice value (from 10 to 5)
It improve a lot the AI turns that were sometime atrociously slow (those battle in Alma were really annoyingly slow due to the AI turn taking forever) in some busy environment (especially with some AI deadlocking time).

I wish there was a "AI turn speed" setting instead that global ms_per_time_slice as the unfortunate side effect is that it speeds up even the real time movements that weren't bad by themselves. I hope that's some option that will appears at some point of development.

[Updated on: Tue, 10 May 2022 19:30]

Report message to a moderator

Private
Re: how to speed up "only" enemy turns?[message #364643 is a reply to message #364637] Sun, 15 May 2022 22:03 Go to previous messageGo to next message
Inveris is currently offline Inveris

 
Messages:32
Registered:September 2020
  GAME.JSON

  //  Number of milliseconds for one game cycle.
  //  25 ms gives approx. 40 cycles per second (and 40 frames per second, since the screen is updated on every cycle).
  //  Decreasing this value will increase the speed of the game (enemy movement, bullets speed, etc).
  //  Stracciatella standard value: 25
  
"ms_per_game_cycle": 25,



  //  Number of milliseconds for one game time slice.
  //  Decreasing this value will speed up UI transitions and soldier animations.
  //  Stracciatella standard value: 10
  
"ms_per_time_slice": 10,
1.) "ms_per_game_cycle" - this option is responsible for speed for only NON visible enemies. Change to one and there is no more waiting.

2.) "ms_per_time_slice" - this option is responsible for speed for EVERY visible enemies and also our mercenaries and also for UI speed in every aspect.

In your case change first option to value=1 and second one leave untouched.

[Updated on: Sun, 15 May 2022 22:04]

Report message to a moderator

Private 1st Class
Re: how to speed up "only" enemy turns?[message #364647 is a reply to message #364643] Tue, 17 May 2022 20:50 Go to previous messageGo to next message
Robsoie is currently offline Robsoie

 
Messages:5
Registered:April 2007
Thank you for the additional explanation. Going to turn that value down for my next battle !
After several battles i also got used to ms_per_time_slice = 5 , nearly feels natural now happy

Report message to a moderator

Private
Re: how to speed up "only" enemy turns?[message #364649 is a reply to message #364647] Thu, 19 May 2022 01:20 Go to previous messageGo to next message
Robsoie is currently offline Robsoie

 
Messages:5
Registered:April 2007
Sadly while those settings works truly great they don't seem to help with stracciatella problems with AI deadlock as i see a -lot- of "aborting AI deadlock" and "breaking AI deadlock" entrance in the log during nearly every battles , it seems that as long as there's any kind of obstacle or a house, those AI deadlock will multiply (some of the battles i had in several of the towns were taking incredibly long due to that).

Wouldn't be that a problem if everytime such a deadlock happened it would not freeze the game for near a dozen of seconds. I wish there was a setting somewhere that would allow you to lower the amount of seconds (during which the pathfinding is failing) of those waiting time until stracciatella decide to break the AI deadlock so it would be shorter.

[Updated on: Thu, 19 May 2022 01:22]

Report message to a moderator

Private
Re: how to speed up "only" enemy turns?[message #364883 is a reply to message #364649] Sun, 18 September 2022 19:06 Go to previous message
lynxlynxlynx is currently offline lynxlynxlynx

 
Messages:109
Registered:September 2005
Location: Slovenija
If you find reliable ways to cause an AI deadlock, please report them to the issue tracker, so they can be fixed. As you can see the forum is rarely checked.


If you like what I do, consider supporting this non-profit.

Report message to a moderator

Sergeant
Previous Topic: Intership at JA Stracciatella
Next Topic: JA2-Stracciatella 0.20.0
Goto Forum:
  


Current Time: Fri Apr 19 06:16:23 GMT+3 2024

Total time taken to generate the page: 0.01053 seconds