ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
A new anomaly and a new artifact. And activation too.

1 2 | Next 10 events »| All Messages
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  02:50:47  14 March 2009
profilee-mailreply Message URLTo the Top
insanelazarez
Yeah, Good Luck With That...
(Resident)

 

 
On forum: 01/31/2009
Messages: 1070
A new anomaly and a new artifact. And activation too.

Hi guys,

Today i uploaded this to youtube:

[link]http://www.youtube.com/watch?v=-1huOg7uRaM&FMT=18[/link]

The idea is not easy for me to explain. I'm bad with english. But i want to upload to this forum a small .rar file, but i dont know how. Can i do it directly from my hardrive (like in filefront)? Or a 3rd site is required? If that's the case any sugestion? Thanks.

Then it will be easier to explain my problem. My real question is related with A new anomaly and a new artifact. And activation too. But without the files to show you... it's a problem. That's it guys. Thanks again.

Insanelazarez
  09:57:21  14 March 2009
profilee-mailreply Message URLTo the Top
DRIFTING PROPHET
Psi-Melder librarian and archivist
(Resident)

 

 
On forum: 03/29/2008
Messages: 2341
looks interesting, hope you cand find a anwser to your problem
  10:17:04  14 March 2009
profilee-mailreply Message URLTo the Top
Sajeezzar
Senior Resident
 

 
On forum: 03/16/2007
Messages: 1429
Upload it to www.rapidshare.com
  13:44:31  14 March 2009
profilee-mailreply Message URLTo the Top
insanelazarez
Yeah, Good Luck With That...
(Resident)

 

 
On forum: 01/31/2009
Messages: 1070
Got it...


---QUOTATION---
Upload it to www.rapidshare.com
---END QUOTATION---



Ok, weeks ago i found this:

[link]http://www.stalker-zone.ru/load/8-1-0-123[/link]

The mod was created by XiaNi, WarLord, BAC9-FLCL. It's an amazing work.

After a few changes i got this.
[link]http://rapidshare.com/files/209072900/NewArtifact_AnomalyTest.rar.html[/link]

The dialog with wolf will spawn the new artifact (NAME:af_test)... not one but 7 of them in you INV. And in wolf position we have scientists and (this is important) a new anomaly (NAME:test). The idea is to produce (with the dialog) the same result we have via activation of the artifact. My problem is simple (i think), there´s no damage at all. The only thing we have there is the beautifull green light. And we can hear the detector too. You should try this. And try to activate the new artifact in a dark place. Then you can see the same green light (you must keep your distance from it, right?). And is a good idea to use several artifacts in your belt. Remember this, the "hit_type" of the anomaly is "explosion". But if you use 2 artifacts in your belt you have 134% (67%x2) to explosion protection. Be carefull, when a npc shoots at you, your protection is lower (fire_wound of course). Just try it out for the fun. Now to produce the same result (with the dialog), do i need to create a new "zone_test.ltx" instead of the "zone_buzz.ltx" (the one i changed)? That's my problem guys. And my english is bad, sorry about that.

Remember, the activation mod was made by XiaNi, WarLord, BAC9-FLCL. NOT ME. The value changes are my fault.

That's it guys, thanks. Ideas please.

Insanelazarez
  19:22:10  14 March 2009
profilee-mailreply Message URLTo the Top
barin
scripter
(Resident)

 

 
On forum: 09/12/2007
Messages: 702

---QUOTATION---
My problem is simple (i think), there´s no damage at all.
---END QUOTATION---



There's no damage because the anomaly doesn't have shape, thus it doesn't known when actor is inside. To fix this you need to set shape, in case of spawning anomaly via script you need to update anomaly object via packets. Put this script (author: xStream) in scripts folder:

http://www.filefactory.com/file/af51fc6/n/xrs_utils_script

then you can set shape like this:

local pos = vector():set(-198.45, -17.99, -137.15)
local lvid = db.actor:level_vertex_id()
local gvid = db.actor:game_vertex_id()

-- spawn anomaly:
local obj = alife():create("test", pos, lvid, gvid)

-- get packet data
local tbl = xrs_utils.get_anomaly_data(obj)

-- set anom. shape
tbl.shapes = [shtype = 0, radius = 3, center = vector():set(0, 0, 0)]

-- update anom. data
xrs_utils.set_anomaly_data(tbl, obj)

  20:48:13  14 March 2009
profilee-mailreply Message URLTo the Top
insanelazarez
Yeah, Good Luck With That...
(Resident)

 

 
On forum: 01/31/2009
Messages: 1070

---QUOTATION---
My problem is simple (i think), there´s no damage at all.

There's no damage because the anomaly doesn't have shape, thus it doesn't known when actor is inside. To fix this you need to set shape, in case of spawning anomaly via script you need to update anomaly object via packets. Put this script (author: xStream) in scripts folder:

http://www.filefactory.com/file/af51fc6/n/xrs_utils_script

then you can set shape like this:

local pos = vector():set(-198.45, -17.99, -137.15)
local lvid = db.actor:level_vertex_id()
local gvid = db.actor:game_vertex_id()

-- spawn anomaly:
local obj = alife():create("test", pos, lvid, gvid)

-- get packet data
local tbl = xrs_utils.get_anomaly_data(obj)

-- set anom. shape
tbl.shapes = [shtype = 0, radius = 3, center = vector():set(0, 0, 0)]

-- update anom. data
xrs_utils.set_anomaly_data(tbl, obj)


---END QUOTATION---



Sorry barin, but this is to hard for me. You are saying i need to give this new code in the same function (in this case Give weapon to actor) in the escape_dialog.script? Or the new code must be inside of the "xrs_utils"? Can you help me on that, please? Thanks man.

Insanelazarez
  20:57:18  14 March 2009
profilee-mailreply Message URLTo the Top
barin
scripter
(Resident)

 

 
On forum: 09/12/2007
Messages: 702

---QUOTATION---
You are saying i need to give this new code in the same function (in this case Give weapon to actor) in the escape_dialog.script?
---END QUOTATION---



Yes, or if you are going to spawn more anomalies (differet types) you can create a function (escape_dialog.script):


function spawn_anom(name, pos)
  local lvid = db.actor:level_vertex_id()
  local gvid = db.actor:game_vertex_id()

  local obj = alife():create(name, pos, lvid, gvid)
  local tbl = xrs_utils.get_anomaly_data(obj)
  tbl.shapes = [shtype = 0, radius = 3, center = vector():set(0, 0, 0)]
  xrs_utils.set_anomaly_data(tbl, obj)
end



and then call that function:


function give_weapon_to_actor (trader, actor)
  spawn_anom("test", vector():set(-198.45, -17.99, -137.15))
end

  21:52:10  14 March 2009
profilee-mailreply Message URLTo the Top
insanelazarez
Yeah, Good Luck With That...
(Resident)

 

 
On forum: 01/31/2009
Messages: 1070

---QUOTATION---
You are saying i need to give this new code in the same function (in this case Give weapon to actor) in the escape_dialog.script?

Yes, or if you are going to spawn more anomalies (differet types) you can create a function (escape_dialog.script):


function spawn_anom(name, pos)
  local lvid = db.actor:level_vertex_id()
  local gvid = db.actor:game_vertex_id()

  local obj = alife():create(name, pos, lvid, gvid)
  local tbl = xrs_utils.get_anomaly_data(obj)
  tbl.shapes = [shtype = 0, radius = 3, center = vector():set(0, 0, 0)]
  xrs_utils.set_anomaly_data(tbl, obj)
end



and then call that function:


function give_weapon_to_actor (trader, actor)
  spawn_anom("test", vector():set(-198.45, -17.99, -137.15))
end


---END QUOTATION---



I'm doing something wrong, barin. I have a CTD when i tried to talk with wolf. And no log error. What the hell am i doing wrong? The "xrs_utils.script" is also there, so i dont know, man. Here:


---QUOTATION---

function transfer_medikit_to_fox (player, wounded)
wounded:set_relation(game_object.friend, player)
db.actor:give_info_portion("escape_fox_heal"
end

function spawn_anom(name, pos)
local lvid = db.actor:level_vertex_id()
local gvid = db.actor:game_vertex_id()

local obj = alife():create(name, pos, lvid, gvid)
local tbl = xrs_utils.get_anomaly_data(obj)
tbl.shapes = [shtype = 0, radius = 3, center = vector():set(0, 0, 0)]
xrs_utils.set_anomaly_data(tbl, obj)
end



function give_weapon_to_actor (trader, actor)
dialogs.relocate_item_section(trader, "wpn_pm", "in"
dialogs.relocate_item_section(trader, "ammo_9x18_fmj", "in"
dialogs.relocate_item_section(trader, "wpn_fn2000", "in"
dialogs.relocate_item_section(trader, "ammo_5.56x45_ap", "in"
dialogs.relocate_item_section(trader, "ammo_5.56x45_ap", "in"
dialogs.relocate_item_section(trader, "ammo_5.56x45_ap", "in"
dialogs.relocate_item_section(trader, "ammo_5.56x45_ap", "in"
dialogs.relocate_item_section(trader, "ammo_5.56x45_ap", "in"
dialogs.relocate_item_section(trader, "ammo_5.56x45_ap", "in"
dialogs.relocate_item_section(trader, "af_test", "in"
dialogs.relocate_item_section(trader, "af_test", "in"
dialogs.relocate_item_section(trader, "af_test", "in"
dialogs.relocate_item_section(trader, "af_test", "in"
dialogs.relocate_item_section(trader, "af_test", "in"
dialogs.relocate_item_section(trader, "af_test", "in"
dialogs.relocate_item_section(trader, "af_test", "in"
dialogs.relocate_item_section(trader, "af_test", "in"
spawn_anom("test", vector():set(-198.45, -17.99, -137.15))
end

---END QUOTATION---



Where is the problem? Thanks again, barin.

Insanelazarez
  23:56:00  14 March 2009
profilee-mailreply Message URLTo the Top
barin
scripter
(Resident)

 

 
On forum: 09/12/2007
 

Message edited by:
barin
03/14/2009 23:57:23
Messages: 702

---QUOTATION---
I'm doing something wrong, barin. I have a CTD when i tried to talk with wolf. And no log error. What the hell am i doing wrong? The "xrs_utils.script" is also there, so i dont know, man.
---END QUOTATION---



Try this:


function spawn_anom(name, pos)
  local lvid = db.actor:level_vertex_id()
  local gvid = db.actor:game_vertex_id()

  local obj = alife():create(name, pos, lvid, gvid)
  local tbl = xrs_utils.get_anomaly_data(alife():object(obj.id))
  tbl.shapes = [shtype = 0, radius = 3, center = vector():set(0, 0, 0)]
  xrs_utils.set_anomaly_data(tbl, obj)
end



and if there is an error in log, post it here
  00:33:40  15 March 2009
profilee-mailreply Message URLTo the Top
insanelazarez
Yeah, Good Luck With That...
(Resident)

 

 
On forum: 01/31/2009
Messages: 1070

---QUOTATION---
I'm doing something wrong, barin. I have a CTD when i tried to talk with wolf. And no log error. What the hell am i doing wrong? The "xrs_utils.script" is also there, so i dont know, man.

Try this:


function spawn_anom(name, pos)
  local lvid = db.actor:level_vertex_id()
  local gvid = db.actor:game_vertex_id()

  local obj = alife():create(name, pos, lvid, gvid)
  local tbl = xrs_utils.get_anomaly_data(alife():object(obj.id))
  tbl.shapes = [shtype = 0, radius = 3, center = vector():set(0, 0, 0)]
  xrs_utils.set_anomaly_data(tbl, obj)
end



and if there is an error in log, post it here
---END QUOTATION---



It's the same result, barin. No log error. In fact i have the ctd in the bunker when i tried to talk to sid. Then i started the game (via savegame) close to wolf, and ctd again, in the dialog too. No log, again. But i believe you are realy close. But this is real hard to me, i dont know what to do now.
 
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.