Posted: . At: 8:18 AM. This was 11 months ago. Post ID: 18053
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.

Fix save games in Stalker New Arsenal 7.

I had an issue in Stalker New Arsenal 7, I was using the “save on level” feature and this was causing issues as I had the Ukrainian language pack installed and this caused an issue when trying to save. But I edited the gamedata/scripts/jr_save_on_level.script and changed the Cyrillic text to English and this fixed the issue. The fixed script is below.

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("hardsave %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

Leave a Comment

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