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

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  20:05:27  16 September 2012
profilee-mailreply Message URLTo the Top
The Xenus
(Senior)
 
On forum: 03/09/2011
Messages: 144
Teleport script

I need some help with a teleport script

I need a script that i can use in a dialog to teleport to a smart_terrain like in the guiders_table.script
  13:04:57  27 September 2012
profilee-mailreply Message URLTo the Top
The Xenus
(Senior)
 
On forum: 03/09/2011
Messages: 144
Okay i have try this script:


---QUOTATION---

function teleport_to(smartName)
guiders.selected_point = smartName
guiders.temp_points_table[ smartName ] = guiders_table.teleport_points[ smartName ]
guiders.action_teleport_to_point()
end

---END QUOTATION---



I found this in the mod "TFW". But when i used in my dialog script:

FATAL ERROR

[error]Expression : error handler is invoked!
[error]Function : handler_base
[error]File : E:\priquel\sources\engine\xrCore\xrDebugNew.cpp
[error]Line : 742
[error]Description : pure virtual function call


stack trace:

here is the script in the dialog:
function agr_teleport_actor_to_base()
bth_effect.teleport_to("mar_smart_terrain_csky_base"
end

Maybe the orginal Autor of the script can help me ?
  13:59:46  27 September 2012
profilee-mailreply Message URLTo the Top
smoq2
Forklift operator
(Resident)

 

 
On forum: 09/08/2008
Messages: 2433
I'm not really sure what could be causing the problem, as my function simply provides input for the guiders teleporting script and then runs it. Your problem might be with the guiders.script, guiders_table.script or some other script that interferes with the guiders.script (provided that you have those files moddified).

Teleporting might be looked at as tearing the actor away from other scripts that might monitor plot, status, etc. TFW has a sandbox environment and we can shuffle objects as we please. Not sure how it would work with the plot still in the game.

Try shutting down different scripts, especially those looped (updating) in the background, and see if it changes anything.
  20:27:49  27 September 2012
profilee-mailreply Message URLTo the Top
The Xenus
(Senior)
 
On forum: 03/09/2011
Messages: 144
Okay i try and try and it works. So my question is to you smoq have i your permission to use this teleport script in my Mod ?
you could be sure i credit you for your work

but can you tell me what this crash means ?

FATAL ERROR

[error]Expression : error handler is invoked!
[error]Function : handler_base
[error]File : E:\priquel\sources\engine\xrCore\xrDebugNew.cpp
[error]Line : 742
[error]Description : pure virtual function call


stack trace:

the game crash after the second use the teleport script.

here is the scriptline in the dialogs_agrprom script:

---QUOTATION---

function agr_teleport_actor_to_base()
local smartName = "mar_smart_terrain_csky_base"
init_teleport(smartName)
end

--teleport test
function init_teleport(smartName)
guiders.selected_point = smartName
guiders.temp_points_table[ smartName ] = guiders_table.teleport_points[ smartName ]
--local path = board:find_path(bth_effect.SmartName2id("mar_smart_terrain_csky_base" , bth_effect.SmartName2id(smartName), "stalker" )
--route_time = math.ceil(#path * 0.5)
guiders.temp_points_table[ smartName ].time = route_time
guiders.action_teleport_to_point()
end

---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 » Mod discussion
 

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


 

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