Advertisement
Guest User

Untitled

a guest
Jan 13th, 2014
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. HOW TO FIX AMK SAVE CORRUPTION
  2.  
  3. - Backup gamedata/scripts/bind_stalker.script
  4. - Open bind_stalker.script
  5. - Find the following in the script file:
  6.  
  7.  
  8.  
  9. --[[local bad_object_names = {"wpn_lr30053522", "wpn_lr30058409" } --"wpn_lr30025601", "wpn_lr30028817","wpn_lr30033589"
  10.  
  11. local i, se_name, se_obj
  12.  
  13. for i, se_name in ipairs(bad_object_names) do
  14.  
  15. se_obj = alife():object(se_name)
  16.  
  17. if se_obj then
  18.  
  19. news_manager.send_tip(db.actor,"Удалили глючный ствол:"..se_name,nil,nil,1000) alife():release(se_obj, true)
  20.  
  21. end
  22.  
  23. end]]
  24.  
  25.  
  26.  
  27. - Remove --[[ and ]] at the beginning and end of this portion.
  28. - Replace the examples (wpn_lr30053522) with the object that is corrupting your save (which you can find in the log file in the logs folder next to your savegames folder, presumably in Documents/stalker-shoc, or in the console when you're running the game)
  29.  
  30. It should look something like this, as an example:
  31.  
  32.  
  33.  
  34. local bad_object_names = {"boar_normal59941" }
  35.  
  36. local i, se_name, se_obj
  37.  
  38. for i, se_name in ipairs(bad_object_names) do
  39.  
  40. se_obj = alife():object(se_name)
  41.  
  42. if se_obj then
  43.  
  44. news_manager.send_tip(db.actor,"Удалили глючный ствол:"..se_name,nil,nil,1000) alife():release(se_obj, true)
  45.  
  46. end
  47.  
  48. end
  49.  
  50.  
  51.  
  52. After you alter the script, load a save from a map before the corruption occured.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement