ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » Bugs & Tech support
EyesOfARaven's Unofficial Patch for 1.5.04

1 2 3 4 5 6 ... 30 | Next 10 events »
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  03:40:16  20 September 2008
profilee-mailreply Message URLTo the Top
EyesOfARaven
(Senior)
 
On forum: 01/13/2008
 

Message edited by:
EyesOfARaven
09/22/2008 0:02:43
Messages: 52
EyesOfARaven's Unofficial Patch for 1.5.04

If anyone wants to thank me, visit my blog at http://infotaxis.net and read/comment around, and if you REALLY want to thank me, click the donate button there and give me some cash - unemployed STALKER fans need money too!

I've archived the contents of the first post so that I can use this one to keep you guys up to date. I've fixed boatloads of CTDs! Here are the download links:

Last Update - 9/20/08 - 2:27PM
Stable Patch - http://www.mediafire.com/?zxynzwtgzhm
Experimental Patch - http://www.mediafire.com/?zxwmmrymjxh

9/21/08
If you are having issues with this error, I made a fix for it in a new compilation with all of the previous ones:

---QUOTATION---

[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\priquel\sources\engine\xrServerEntities\script_engine.cpp
[error]Line : 180
[error]Description : <no expression>
[error]Arguments : LUA error: ....e.r. - clear sky\gamedata\scripts\sim_combat.script:725: attempt to index local 'squad' (a nil value)

---END QUOTATION---


http://www.mediafire.com/?w3jnfznzuj1

The difference between these is simple - The stable patch only contains fixes for errors that I received myself before starting community fixes, and I can confirm that the fixes work. The experimental patch has fixes for the community that I can't test because I don't get the CTDs. To the best of my knowledge these fixes will not crash your game or anything, so I recommend the experimental, and if that causes issues, then try the stable.

The patch is in the form of a script mod, install it as you would any STALKER mod. This includes the fixes by others for similar problems, but these didn't fix my errors, so I took them, and continued to edit and add files as necessary.

Thanks to Eahl for typing out how to use STALKER mods:

---QUOTATION---

In your Stalker Clear Sky archive create a folder named gamedata.
Inside that another one called scripts.
Copy the fixed scripts in there (... \Deep Silver\S.T.A.L.K.E.R.\gamedata\scripts)

Then open up fsgame.ltx ( ... \Deep Silver\S.T.A.L.K.E.R. - Clear Sky) with the windows editor or notepad and search for this line:

$game_data$ = false| true| $fs_root$| gamedata\

and edit it like so:

$game_data$ = true| true| $fs_root$| gamedata\

Save the file and try if the scripts you downloaded are working.

---END QUOTATION---



If you have a CTD that I haven't fixed, first check to see if it happens more than once, then goto <stalker game directory>\_appdata_\logs\xray_<your user name> and post the bit between "FATAL ERROR" and "stack trace:". This will allow me to try to fix the bug for us. So far I've been fixing nil LUA errors, but I'll take a crack at anything that is CTDing your game (assuming I have the time!).

I love this series, and was sick of waiting for a patch, and thus this effort was born. I hope you all enjoy my removal of CTDs from the Zone!

Finally, thanks to siberx who fixed one of the bugs during my off time!

PS - If you're curious how someone who never touched LUA before is managing to do this, check out post #9.

Original Post Contents:

---QUOTATION---

The other post glitched due to length (I put the whole script in there...)

Anyway I don't even know LUA! I know Python and my general knowledge of programming helped me figure this out. There was no check to see if obj was nil, so I added one with a bit of trial and error on line 662. There was a comment on line 688 of commented out code that was throwing the line to that one for the error, when it wasn't actually that line!

You can find the fix here: http://pastebin.com/f2f150752

It worked for me, and it should work for many others with this error:

---QUOTATION---

FATAL ERROR

[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\priquel\sources\engine\xrServerEntities\script_engine.cpp
[error]Line : 180
[error]Description : <no expression>
[error]Arguments : LUA error: ...\stalker clear sky\gamedata\scripts\sim_board.script:688: attempt to index local 'obj' (a nil value)

---END QUOTATION---



If GSC is looking for a bug fixer guy or otherwise, I'm unemployed.. >.>

*Shameless advertizement*

Check out my blog if you want, I like visitors: http://infotaxis.net

---END QUOTATION---

  03:50:00  20 September 2008
profilee-mailreply Message URLTo the Top
EyesOfARaven
(Senior)
 
On forum: 01/13/2008
Messages: 52

---QUOTATION---
LUA OBJ NIL INDEX BUG FIXED! NO MORE CTDS! (REPOST)

The other post glitched due to length (I put the whole script in there...)

Anyway I don't even know LUA! I know Python and my general knowledge of programming helped me figure this out. There was no check to see if obj was nil, so I added one with a bit of trial and error on line 662. There was a comment on line 688 of commented out code that was throwing the line to that one for the error, when it wasn't actually that line!

You can find the fix here: http://pastebin.com/f2f150752

It worked for me, and it should work for many others with this error:

FATAL ERROR

[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\priquel\sources\engine\xrServerEntities\script_engine.cpp
[error]Line : 180
[error]Description : <no expression>
[error]Arguments : LUA error: ...\stalker clear sky\gamedata\scripts\sim_board.script:688: attempt to index local 'obj' (a nil value)


If GSC is looking for a bug fixer guy or otherwise, I'm unemployed.. >.>

*Shameless advertizement*

Check out my blog if you want, I like visitors: http://infotaxis.net
---END QUOTATION---



SON OF A BITCH - ANOTHER BUG POPPED UP AFTER!

FATAL ERROR

[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\priquel\sources\engine\xrServerEntities\script_engine.cpp
[error]Line : 180
[error]Description : <no expression>
[error]Arguments : LUA error: ... clear sky\gamedata\scripts\sim_squad_generic.script:322: attempt to index local 'npc' (a nil value)

Working on that...
  03:52:02  20 September 2008
profilee-mailreply Message URLTo the Top
Gnomus
Senior Resident
 

 
On forum: 10/21/2007
Messages: 427
This is the CTD I am getting as well. Thanks for finding it.
Fogive my ignorance, but, how do I useit?
  04:05:33  20 September 2008
profilee-mailreply Message URLTo the Top
EyesOfARaven
(Senior)
 
On forum: 01/13/2008
Messages: 52
Hey, I'm still wrestling with more bugs that cropped up when I fixed that first one. They all seem to be a lack of GSC deciding to check if something was nil before using it, so it shouldn't take long to fix (unless there are tons of them). When I've got it solid, I'll post a fix with instructions. This will also include the scriptfix posted elsewhere before mine.

With that said, with the last error fixed, I was able to get to Limansk without a crash, but when I stepped through, I got this one:


FATAL ERROR

[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\priquel\sources\engine\xrServerEntities\script_engine.cpp
[error]Line : 180
[error]Description : <no expression>
[error]Arguments : LUA error: ... clear sky\gamedata\scripts\sim_squad_generic.script:327: attempt to call method 'rank' (a nil value)

Again a nil value error, hopefully easy to fix! Into the code I go, trusty AKM74 ready...
  04:12:52  20 September 2008
profilee-mailreply Message URLTo the Top
Gnomus
Senior Resident
 

 
On forum: 10/21/2007
Messages: 427
Well I guess it was a little ambitious for them to get a new game out only slightly more than a year after the previous one. And we all know how long that one took!

Good thing for the community cause they are otherwise great games!
Looking forward to your fix. Thanks.
  04:16:13  20 September 2008
profilee-mailreply Message URLTo the Top
EyesOfARaven
(Senior)
 
On forum: 01/13/2008
 

Message edited by:
EyesOfARaven
09/20/2008 4:16:36
Messages: 52
I love this series, and my drive to play it is what has driven me to help fix it! Regardless of bugginess, GSC does great work - they really just need to have betas (or more thereof) so they can isolate these bugs before release.

Anyway I *THINK* I've fixed all the bugs, 4 in all... It involves two script files, but I included the previous fixes by others in here as well, so three are patched. Just download this file, and extract to stalkerfolder\gamedata, and then do the fsgame.itx gamedata true thing to enable mods.

http://www.mediafire.com/?sharekey=f12bd0b2b065af65d2db6fb9a8902bd

If anyone gets another FATAL ERROR in their log (stalkerfolder\_appdata_\logs\xray_<yourusername> ), post it here and I'll take a look if I get the chance. Meanwhile I'm going to continue playing unless I encounter more bugs, in which case I'll fix them (if I can) and post any fixes here.

Enjoy!

  04:19:10  20 September 2008
profilee-mailreply Message URLTo the Top
Gnomus
Senior Resident
 

 
On forum: 10/21/2007
Messages: 427
THanks heaps. At the moment Mediafire is reporting the link as bad............... blah!
  05:05:41  20 September 2008
profilee-mailreply Message URLTo the Top
Rodya234
(Senior)
 
On forum: 09/19/2008
Messages: 54
Well, I just recently got this crash:

FATAL ERROR

[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\priquel\sources\engine\xrServerEntities\script_engine.cpp
[error]Line : 180
[error]Description : <no expression>
[error]Arguments : LUA error: ... clear sky\gamedata\scripts\sim_squad_generic.script:1445: attempt to index local 'squad' (a nil value)


Seems to occur on the same line as another one of the crashes. Would the fix be the same?
I'd also like to know how you manage to fix these crashes. I'm a starting programmer and I always like to learn something new
  05:59:33  20 September 2008
profilee-mailreply Message URLTo the Top
EyesOfARaven
(Senior)
 
On forum: 01/13/2008
 

Message edited by:
EyesOfARaven
09/20/2008 6:03:21
Messages: 52
My fixes got me all the way to the end of Limansk (the place where I think it's duty men are hiding out). I then got this:

FATAL ERROR

[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\priquel\sources\engine\xrServerEntities\script_engine.cpp
[error]Line : 180
[error]Description : <no expression>
[error]Arguments : LUA error: ...stalker clear sky\gamedata\scripts\sim_combat.script:950: attempt to index a nil value


I fixed another error or two without logging (gah! my bad)...

This was one, upon entering Limansk:


FATAL ERROR

[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\priquel\sources\engine\xrServerEntities\script_engine.cpp
[error]Line : 180
[error]Description : <no expression>
[error]Arguments : LUA error: ... clear sky\gamedata\scripts\sim_squad_generic.script:327: attempt to call method 'rank' (a nil value)

The way I'm fixing these errors, is I look at the error, and see the script name - I'll take the above as an example - sim_squad_generic.script - and get that from the db files using an extractor tool (I've them all extracted). I then open the file, and navigate to the line in question (in this case 327). If that line is a comment, then I erase the comment, because it's a false report of the line number, and play until receiving the error again, then repeat for the new line number. Then I go into the code, and see some kind of value being checked on that line, such as obj, npc, etc. - you can see this in the error, in our example it is "rank". I add a line like this to the beginning for starters, to see if it fixes it (simplest fix):

if rank == nil then
return
end

If that works, great, if not, there are usually a few areas below it that also check the variable. If that is the case then I do this:

if rank == nil then
return
else
<--do things that check the variable-->
end
<--rest of the code in the function-->

The crazy part is I don't even know LUA (I suppose I do now...), it's really similar to Python though.

I've always wanted to mod STALKER - this is getting me into it, maybe I'll even write a guide on my blog when I've completed the game and learned more! (Blog is http://infotaxis.net/)

Thanks for your appreciation guys. This fix so far may well cover all of the repeating crashes I've been getting, but I'm going to fix the non-repeating ones too, whatever causes a CTD. Maybe GSC can use my code to help make the next patch.

I'm done for tonight, a bit tired - I'll continue to fix and release as I go in this thread, so stay tuned if you get a CTD.

Guidelines for those who are relying on my patches - if you get a bug that I haven't fixed, try just playing through the part again, to see if it happens only once, and if it happens again, post the error here. This way I can fix all of the major errors for us, and we can all make it to the NPP and back to play the faction wars without incident. I've sure as hell waited long enough, haven't you!?

BTW - SO SORRY! I posted the wrong link! http://www.mediafire.com/?4gmndmzznaz is the correct one. I'm going to update the first post too!
  06:11:48  20 September 2008
profilee-mailreply Message URLTo the Top
Shodan_Reincarnate
(Senior)
 
On forum: 08/01/2007
Messages: 53
Where do I put the script folder if I have the STEAM version of this game? There is no game data folder, or any of these script files to replace....













---QUOTATION---
My fixes got me all the way to the end of Limansk (the place where I think it's duty men are hiding out). I then got this:

FATAL ERROR

[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\priquel\sources\engine\xrServerEntities\script_engine.cpp
[error]Line : 180
[error]Description : <no expression>
[error]Arguments : LUA error: ...stalker clear sky\gamedata\scripts\sim_combat.script:950: attempt to index a nil value


I fixed another error or two without logging (gah! my bad)...

This was one, upon entering Limansk:


FATAL ERROR

[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\priquel\sources\engine\xrServerEntities\script_engine.cpp
[error]Line : 180
[error]Description : <no expression>
[error]Arguments : LUA error: ... clear sky\gamedata\scripts\sim_squad_generic.script:327: attempt to call method 'rank' (a nil value)

The way I'm fixing these errors, is I look at the error, and see the script name - I'll take the above as an example - sim_squad_generic.script - and get that from the db files using an extractor tool (I've them all extracted). I then open the file, and navigate to the line in question (in this case 327). If that line is a comment, then I erase the comment, because it's a false report of the line number, and play until receiving the error again, then repeat for the new line number. Then I go into the code, and see some kind of value being checked on that line, such as obj, npc, etc. - you can see this in the error, in our example it is "rank". I add a line like this to the beginning for starters, to see if it fixes it (simplest fix):

if rank == nil then
return
end

If that works, great, if not, there are usually a few areas below it that also check the variable. If that is the case then I do this:

if rank == nil then
return
else
<--do things that check the variable-->
end
<--rest of the code in the function-->

The crazy part is I don't even know LUA (I suppose I do now...), it's really similar to Python though.

I've always wanted to mod STALKER - this is getting me into it, maybe I'll even write a guide on my blog when I've completed the game and learned more! (Blog is http://infotaxis.net/)

Thanks for your appreciation guys. This fix so far may well cover all of the repeating crashes I've been getting, but I'm going to fix the non-repeating ones too, whatever causes a CTD. Maybe GSC can use my code to help make the next patch.

I'm done for tonight, a bit tired - I'll continue to fix and release as I go in this thread, so stay tuned if you get a CTD.

Guidelines for those who are relying on my patches - if you get a bug that I haven't fixed, try just playing through the part again, to see if it happens only once, and if it happens again, post the error here. This way I can fix all of the major errors for us, and we can all make it to the NPP and back to play the faction wars without incident. I've sure as hell waited long enough, haven't you!?

BTW - SO SORRY! I posted the wrong link! http://www.mediafire.com/?4gmndmzznaz is the correct one. I'm going to update the first post too!
---END QUOTATION---

 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » Bugs & Tech support
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2020 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.