ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
[PoC] Progressive weapons

« Previous 10 events | 1 2 3 4 5 | Next 10 events »| All Messages
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  13:45:10  14 February 2010
profilee-mailreply Message URLTo the Top
Vintar
a bit of this and a lot of that
(Resident)

 

 
On forum: 08/08/2008
Messages: 6349
I have a use for this feature in my mega mod. I'll come over and have a little chat
  13:53:05  14 February 2010
profilee-mailreply Message URLTo the Top
notanumber
mod abuser & exploiter
(Resident)

 

 
On forum: 03/22/2008
 

Message edited by:
notanumber
02/14/2010 13:58:58
Messages: 2822
Update:
http://zhat.dk/stalker/files/progressive_weapon_mod_v0.2.zip
- the weapon will not be swapped during a fight unless player holsters the weapon
- the progress function slightly rebalanced

Known bug: dying or otherwise dropping the weapon from the slot might cause the game to crash due to missing ranks... not sure how to fix this though (adding thousands of section names to the config lines in mp_ranks seems like a bad idea).
  15:27:26  14 February 2010
profilee-mailreply Message URLTo the Top
NatVac
Senior Resident
 

 
On forum: 06/15/2007
Messages: 4286
Great idea, and I <3 PoCs.*

My recommendation on the rank issue: Destroy the weapon on your death. Edit: You might have to store it in your backpack and then destroy it. Or just place it in the pack.

Maybe replace it with a spawned generic equivalent that is ranked. It's not that big a deal for the NPCs to get a weapon with normal dispersion; the improvement is supposed to be tied to your "leveling up".

And you're dead. You just need to keep the game from crashing until the next reload or ragequit.

__________
*Today is Valentine's Day. I <3 my VSO. Different kinds of <3.
  21:52:56  14 February 2010
profilee-mailreply Message URLTo the Top
notanumber
mod abuser & exploiter
(Resident)

 

 
On forum: 03/22/2008
Messages: 2822
Thanks NatVac

New improved version... sort of:
http://zhat.dk/stalker/files/progressive_weapon_mod_v0.3.zip

Includes an on_item_drop handler that's supposed to prevent the crashes, but this has not yet been sufficiently tested (well... I was fighting mercs, got killed and game didn't crash.. guess that's something).

NatVac, I have a specific problem... if I call db.actor:transfer(weapon, db.actor) in the on_item_drop handler the game crashes when I try to exit the game or load a savedgame. Any idea why? It doesn't crash when I drop the gun...

EDIT: my fix for weapon drop issues broke the arena anti-exploit code... fixed in this version:
http://zhat.dk/stalker/files/progressive_weapon_mod_v0.4.zip
  06:19:12  15 February 2010
profilee-mailreply Message URLTo the Top
Vintar
a bit of this and a lot of that
(Resident)

 

 
On forum: 08/08/2008
Messages: 6349
What does the log say?
  08:55:11  15 February 2010
profilee-mailreply Message URLTo the Top
notanumber
mod abuser & exploiter
(Resident)

 

 
On forum: 03/22/2008
Messages: 2822
The log's gone baby, log's gone...

  09:32:39  15 February 2010
profilee-mailreply Message URLTo the Top
Vintar
a bit of this and a lot of that
(Resident)

 

 
On forum: 08/08/2008
Messages: 6349

---QUOTATION---
The log's gone baby, log's gone...


---END QUOTATION---



Dude, for the love of Pete, look at your log more often

Maybe the game is trying to save a weapon that is not existing anymore, or maybe you got the trying to index (actor) a nil value.

If this is the case, it is trying to access actors inventory before it is initialised. I had this before. You can try adding a statement like:

if db.actor then 
   db.actor:transfer(weapon, db.actor)
end

  11:40:07  15 February 2010
profilee-mailreply Message URLTo the Top
notanumber
mod abuser & exploiter
(Resident)

 

 
On forum: 03/22/2008
Messages: 2822
Vintar, the log message was something like "parent:0 entity bla bla bla".
db.actor was not nil, I checked for this before calling transfer_item().

Anyway, I think that the current implementation works OK
  12:07:42  15 February 2010
profilee-mailreply Message URLTo the Top
Vintar
a bit of this and a lot of that
(Resident)

 

 
On forum: 08/08/2008
Messages: 6349

---QUOTATION---
Vintar, the log message was something like "parent:0 entity bla bla bla".
db.actor was not nil, I checked for this before calling transfer_item().

Anyway, I think that the current implementation works OK
---END QUOTATION---



LOL, missed your edit
  19:46:16  15 February 2010
profilee-mailreply Message URLTo the Top
Vintar
a bit of this and a lot of that
(Resident)

 

 
On forum: 08/08/2008
Messages: 6349
So i was wondering what your PoC meant, then it hit me "DOH!"
"Pirates of the carribean" right?
 
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.: Shadow of Chernobyl Forum » Mod discussion
 

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.