Posted: 22 May 2024. At: 7:16 AM. This was 1 month ago. Post ID: 19628
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

How to fix hardsaves in Stalker New Arsenal 7.

Hard saves on level in Stalker New Arsenal 7 are broken in terms of using the feature on an English version of Windows. I get an error when I try and save the game using this feature. Replace the gamedata\scripts\jr_save_on_level.script file with this code below and this will be fixed.

gamedata\scripts\jr_save_on_level.script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
function attach(sm)
	sm:subscribe({signal = "on_key_down", fun = this.on_key_down})
end
 
function on_key_down( key, bind )
    if
      level.main_input_receiver()
      or bind ~= key_bindings.kNA_SAVE_ON_LEVEL
    then
      return
    end
 
    local game_time = game.get_game_time()
    local day = math.floor(game_time:diffSec(getStartTime()) / 86400)
 
    local inx = jr_xvars.get_value("jr_save_on_level.index", 0)
    if inx == 99 then
        inx = 1
    else
        inx = inx + 1
    end
    jr_xvars.set_value("jr_save_on_level.index", inx)
 
    local save_name = string.format("sav %03d - %s. %02d", day, game.translate_string( level.name() ), inx)
 
    cmd("save", save_name)
end
 
function getStartTime()
  local d = string.explode( ".", get_string( "alife", "start_date" ), true )
  local st = game.CTime()
  st:set( tonumber( d[ 3 ] ), tonumber( d[ 2 ] ), tonumber( d[ 1 ] ), 0, 0, 0, 0 )
  local temp = game.CTime()
  temp:setHMS( 24, 0, 0 )
  return (st - temp)
end
A build version of Radar. This is Stalker Oblivion Lost.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.