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

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  03:52:49  4 April 2012
profilee-mailreply Message URLTo the Top
_NightRider_
(Senior)
 
On forum: 04/03/2012
Messages: 63
ZRP Tool

I try add new spawns to clear sky, but i need to know exactly position of new spawn, i find out that there is ZRP Tool for that, anyone know link for it???

tnx
  04:01:09  4 April 2012
profilee-mailreply Message URLTo the Top
SetaKat
Ex modder, Zones only ferret and will someday release a game
(Resident)

 

 
On forum: 02/20/2010
 

Message edited by:
SetaKat
04/04/2012 4:01:24
Messages: 6340
Extract the gamedata from the archives, get a copy of ui_main_menu.script, and add it to your gamedata.

Next, open it, and add this to the bottom of the file:

function main_menu:coordinates_to_message()  
	-- Put a message about our location on screen
	local a    = db.actor:position()        -- Our position's coordinates
	local lvid = db.actor:level_vertex_id() 
	local gvid = db.actor:game_vertex_id() 
	local d = db.actor:direction()
	local text = "Position:\\nX= "..a.x.."\\nY= "..a.y.."\\nZ= "..a.z.."\\nlevel_vertex= "..lvid.."\\ngame_vertex_id= "..gvid.."\\nDirection:\\nX= "..d.x.."\\nY= "..d.y.."\\nZ= "..d.z
	local text2 = level.name()
	local text3 = "position = "..tostring(a.x)..","..tostring(a.y)..","..tostring(a.z)
	local text4 = "game_vertex_id = "..tostring(gvid)
	local text5 = "level_vertex_id = "..tostring(lvid)
	local text6 = "direction = "..tostring(d.x)..","..tostring(d.y)..","..tostring(d.z)
	news_manager.send_tip(db.actor, text, nil, nil, 30000)
	-- Save our location to the log file
	error_log( string.format( text2 ) )
	error_log( string.format( text3 ) )
	error_log( string.format( text4 ) )
	error_log( string.format( text5 ) )
	error_log( string.format( text6 ) )
end

This is a function which will get the current co-ordinates, display a note onscreen, and save the co-ords to the log.
To use it, add this block of code to main_menu.OnKeyboard(dik, keyboard_action) at the bottom of the method

if level.present() and ( db.actor ~= nil ) and db.actor:alive() then
			if dik == DIK_keys.DIK_C then
				self:coordinates_to_message()
			end
		end


Save, and go ingame and stand at the point where you want the co-ordinates, go to the menu, and press the C button. If all goes well, you'll get a message onscreen, and the co-ords will be written to the log file.

Look here http://sdk.stalker-game.com/en/index.php?title=Spawning_through_script#Solution_B (and C) and here http://sdk.stalker-game.com/en/index.php?title=Code_execution_by_button for further help on setting this up.
  15:13:33  4 April 2012
profilee-mailreply Message URLTo the Top
_NightRider_
(Senior)
 
On forum: 04/03/2012
Messages: 63

---QUOTATION---
Extract the gamedata from the archives, get a copy of ui_main_menu.script, and add it to your gamedata.

Next, open it, and add this to the bottom of the file:

function main_menu:coordinates_to_message()  
	-- Put a message about our location on screen
	local a    = db.actor:position()        -- Our position's coordinates
	local lvid = db.actor:level_vertex_id() 
	local gvid = db.actor:game_vertex_id() 
	local d = db.actor:direction()
	local text = "Position:\\nX= "..a.x.."\\nY= "..a.y.."\\nZ= "..a.z.."\\nlevel_vertex= "..lvid.."\\ngame_vertex_id= "..gvid.."\\nDirection:\\nX= "..d.x.."\\nY= "..d.y.."\\nZ= "..d.z
	local text2 = level.name()
	local text3 = "position = "..tostring(a.x)..","..tostring(a.y)..","..tostring(a.z)
	local text4 = "game_vertex_id = "..tostring(gvid)
	local text5 = "level_vertex_id = "..tostring(lvid)
	local text6 = "direction = "..tostring(d.x)..","..tostring(d.y)..","..tostring(d.z)
	news_manager.send_tip(db.actor, text, nil, nil, 30000)
	-- Save our location to the log file
	error_log( string.format( text2 ) )
	error_log( string.format( text3 ) )
	error_log( string.format( text4 ) )
	error_log( string.format( text5 ) )
	error_log( string.format( text6 ) )
end

This is a function which will get the current co-ordinates, display a note onscreen, and save the co-ords to the log.
To use it, add this block of code to main_menu.OnKeyboard(dik, keyboard_action) at the bottom of the method

if level.present() and ( db.actor ~= nil ) and db.actor:alive() then
			if dik == DIK_keys.DIK_C then
				self:coordinates_to_message()
			end
		end


Save, and go ingame and stand at the point where you want the co-ordinates, go to the menu, and press the C button. If all goes well, you'll get a message onscreen, and the co-ords will be written to the log file.

Look here http://sdk.stalker-game.com/en/index.php?title=Spawning_through_script#Solution_B (and C) and here http://sdk.stalker-game.com/en/index.php?title=Code_execution_by_button for further help on setting this up.
---END QUOTATION---



Tnx fluffy22, it works like a charm!!!
  20:34:37  6 April 2012
profilee-mailreply Message URLTo the Top
_NightRider_
(Senior)
 
On forum: 04/03/2012
Messages: 63

---QUOTATION---
Extract the gamedata from the archives, get a copy of ui_main_menu.script, and add it to your gamedata.

Next, open it, and add this to the bottom of the file:

function main_menu:coordinates_to_message()  
	-- Put a message about our location on screen
	local a    = db.actor:position()        -- Our position's coordinates
	local lvid = db.actor:level_vertex_id() 
	local gvid = db.actor:game_vertex_id() 
	local d = db.actor:direction()
	local text = "Position:\\nX= "..a.x.."\\nY= "..a.y.."\\nZ= "..a.z.."\\nlevel_vertex= "..lvid.."\\ngame_vertex_id= "..gvid.."\\nDirection:\\nX= "..d.x.."\\nY= "..d.y.."\\nZ= "..d.z
	local text2 = level.name()
	local text3 = "position = "..tostring(a.x)..","..tostring(a.y)..","..tostring(a.z)
	local text4 = "game_vertex_id = "..tostring(gvid)
	local text5 = "level_vertex_id = "..tostring(lvid)
	local text6 = "direction = "..tostring(d.x)..","..tostring(d.y)..","..tostring(d.z)
	news_manager.send_tip(db.actor, text, nil, nil, 30000)
	-- Save our location to the log file
	error_log( string.format( text2 ) )
	error_log( string.format( text3 ) )
	error_log( string.format( text4 ) )
	error_log( string.format( text5 ) )
	error_log( string.format( text6 ) )
end

This is a function which will get the current co-ordinates, display a note onscreen, and save the co-ords to the log.
To use it, add this block of code to main_menu.OnKeyboard(dik, keyboard_action) at the bottom of the method

if level.present() and ( db.actor ~= nil ) and db.actor:alive() then
			if dik == DIK_keys.DIK_C then
				self:coordinates_to_message()
			end
		end


Save, and go ingame and stand at the point where you want the co-ordinates, go to the menu, and press the C button. If all goes well, you'll get a message onscreen, and the co-ords will be written to the log file.

Look here http://sdk.stalker-game.com/en/index.php?title=Spawning_through_script#Solution_B (and C) and here http://sdk.stalker-game.com/en/index.php?title=Code_execution_by_button for further help on setting this up.

Tnx fluffy22, it works like a charm!!!
---END QUOTATION---



Just wondering, will it work on Call of Pripyat???
  00:19:39  7 April 2012
profilee-mailreply Message URLTo the Top
SetaKat
Ex modder, Zones only ferret and will someday release a game
(Resident)

 

 
On forum: 02/20/2010
Messages: 6340
Yes, but the error_log calls don't work the same. There is a thread over in the CoP forums describing a workaround.
 
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-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.