ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » Mod discussion
S.T.A.L.K.E.R: The Faction War

« Previous 10 events | 1 ... 5 6 7 8 9 10 11 12 13 ... 209 | Next 10 events »
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  17:00:16  3 February 2011
profilee-mailreply Message URLTo the Top
Rm4g3dD0v
Appointed Destroyer
(Resident)

 

 
On forum: 03/28/2010
 

Message edited by:
Rm4g3dD0v
02/03/2011 17:00:38
Messages: 206

---QUOTATION---
They seem to rip you off. Tell me again why not buy through steam?
---END QUOTATION---


no creditcard
  17:05:08  3 February 2011
profilee-mailreply Message URLTo the Top
gannebamm
has abondened XRay and uses Unity3D now
(Resident)

 

 
On forum: 05/02/2007
Messages: 1077

---QUOTATION---
Well, apparently the C stack overflow occurs in line 107 of the function below:

http://pastebin.com/6mntgmD7

Can anyone explain to me why?
---END QUOTATION---


http://pastebin.com/1uZp0B1c

my 2 cents. Im not that good in lua and didnt really know about the function calls in functions thingy (thats why i altered the way the iterate_items is executed to please my brain)
  20:02:36  3 February 2011
profilee-mailreply Message URLTo the Top
smoq2
Forklift operator
(Resident)

 

 
On forum: 09/08/2008
Messages: 2433

---QUOTATION---
Well, apparently the C stack overflow occurs in line 107 of the function below:

http://pastebin.com/6mntgmD7

Can anyone explain to me why?
http://pastebin.com/1uZp0B1c

my 2 cents. Im not that good in lua and didnt really know about the function calls in functions thingy (thats why i altered the way the iterate_items is executed to please my brain)
---END QUOTATION---



We'll you oversimplified it. Using your changes, the npc will simply pick a random gun out of his inventory. Lines 104-118 from my link try to determine the best gun the NPC has available to him in his inventory filtering out the weapons that he actually has ammunition for.
Lines 119-134(the ones you asked about in your link) are a safeguard check. If the first check produced no results, because eg. the npc has only weapons but no ammo for any of them, the function will then return the best of those weapons overlooking ammo reserves.
  20:02:38  3 February 2011
profilee-mailreply Message URLTo the Top
smoq2
Forklift operator
(Resident)

 

 
On forum: 09/08/2008
 

Message edited by:
smoq2
02/03/2011 20:19:23
Messages: 2433

---QUOTATION---
Well, apparently the C stack overflow occurs in line 107 of the function below:

http://pastebin.com/6mntgmD7

Can anyone explain to me why?
http://pastebin.com/1uZp0B1c

my 2 cents. Im not that good in lua and didnt really know about the function calls in functions thingy (thats why i altered the way the iterate_items is executed to please my brain)
---END QUOTATION---



We'll you oversimplified it. Using your changes, the npc will simply pick a random gun out of his inventory. Lines 104-118 from my link try to determine the best gun the NPC has available to him in his inventory filtering out the weapons that he actually has ammunition for.
Lines 119-134(the ones you asked about in your link) are a safeguard check. If the first check produced no results, because eg. the npc has only weapons but no ammo for any of them, the function will then return the best of those weapons overlooking ammo reserves.

[EDIT]

Altered the function a bit though:

http://pastebin.com/XPUjsGGb

@ Rm4g3dD0v - Might want to try this one:

http://www.filefactory.com/file/b543dbe/n/tools.script

Same drill as always, drop it into gamedata/scripts and post whatever will cause you to CTD.
  20:37:17  3 February 2011
profilee-mailreply Message URLTo the Top
gannebamm
has abondened XRay and uses Unity3D now
(Resident)

 

 
On forum: 05/02/2007
 

Message edited by:
gannebamm
02/03/2011 20:38:13
Messages: 1077

---QUOTATION---

http://pastebin.com/1uZp0B1c

my 2 cents. Im not that good in lua and didnt really know about the function calls in functions thingy (thats why i altered the way the iterate_items is executed to please my brain)

We'll you oversimplified it. Using your changes, the npc will simply pick a random gun out of his inventory.
---END QUOTATION---


i know, therefore i have written:

-- shouldnt there a kind of insert in temp table
-- and get best (highest value in weap_table) wpn
-- available for npc through a second iteration ?



---QUOTATION---

Lines 104-118 from my link try to determine the best gun the NPC has available to him in his inventory filtering out the weapons that he actually has ammunition for.
Lines 119-134(the ones you asked about in your link) are a safeguard check. If the first check produced no results, because eg. the npc has only weapons but no ammo for any of them, the function will then return the best of those weapons overlooking ammo reserves.
---END QUOTATION---


thx for the explanation. I now got it.
  02:07:35  4 February 2011
profilee-mailreply Message URLTo the Top
Rm4g3dD0v
Appointed Destroyer
(Resident)

 

 
On forum: 03/28/2010
Messages: 206

---QUOTATION---
http://www.filefactory.com/file/b543dbe/n/tools.script
---END QUOTATION---


filefactory ReCAPTCHA sucks.. i have to refresh them 20-30 times to get a readable one!!
  02:15:51  4 February 2011
profilee-mailreply Message URLTo the Top
Rm4g3dD0v
Appointed Destroyer
(Resident)

 

 
On forum: 03/28/2010
Messages: 206
Also a note about the companions AI. Somehow i think the companions became a lot dumber than before. they dont shoot enemies when they see them (in normal circumstances, not in blowout) even if i start shooting them they will not fire untill I get hit. Also sometimes there are mixups where a whole squad of the player's faction will shoot a companion (after a big shooting showdown) but he would walk carefree...
  04:25:33  4 February 2011
profilee-mailreply Message URLTo the Top
PhoenixHeart
Senior Resident
 

 
On forum: 10/22/2008
Messages: 1165
I've also been noticing some issues with the companions - their engagement distance seems to be really short. I dunno if it's new, or if I just never noticed before, but a lot of times I'll be having a gunfight with a squad and the companions won't attack unless I either get closer or tell them to attack that point (if the enemy squad is on one of the smarts, and not in transit)
  14:36:34  4 February 2011
profilee-mailreply Message URLTo the Top
smoq2
Forklift operator
(Resident)

 

 
On forum: 09/08/2008
 

Message edited by:
smoq2
02/04/2011 14:37:43
Messages: 2433
I have no idea where that came from, cause I can't remember changing anything regarding enemy detection between v2.0 and v2.5. You sure you don't have your companions on "Hold Fire"? Also Rm4g3dD0v, how is it possible that you are playing CS and buying CS at the same time?

Remember that crack/illegal copy + TFW = strange crap happen
  19:08:35  4 February 2011
profilee-mailreply Message URLTo the Top
Rm4g3dD0v
Appointed Destroyer
(Resident)

 

 
On forum: 03/28/2010
Messages: 206

---QUOTATION---
Also Rm4g3dD0v, how is it possible that you are playing CS and buying CS at the same time? Remember that crack/illegal copy + TFW = strange crap happen
---END QUOTATION---


it doesnt seem THAT strange like the bandit hostility bug. After all the crack should affect vanilla things, and companions are not in vanilla.

As for using crack, I tried to buy the game twice and it became out of stock in no time. However the game's publisher didnt give a rat's ass to refeed the market, so not my fault.
 
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 » Mod discussion
 

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


 

Copyright © 1995-2019 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.