ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
How to add context menu entry in inventory

« Previous 10 events | 1 2 3 | Next 10 events »| All Messages
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  09:35:45  23 May 2012
profilee-mailreply Message URLTo the Top
Bangalore
Robberbaron
(Resident)

 

 
On forum: 02/17/2008
 

Message edited by:
Bangalore
05/23/2012 9:36:58
Messages: 1159

---QUOTATION---
I don't believe that's possible. Not without manipulating xrGame (by xray-extensions, for example).
---END QUOTATION---



More detail please - how to manipulate?

https://www.gsc-game.com/index.php?t=community&s=forums&s_game_type=xr&thm_page=165&thm_id=20724&sec_id=16&page=1

The latest x-ray extensions for SOC is downloadable from here, dated to jan 27 2012, and it's developed by Malandrinus and Kolmogor:

http://code.google.com/p/xray-extensions/downloads/detail?name=xray_ext_bin_3312_020.zip&can=2&q=

The changes list (dunno which r** to choose):
http://code.google.com/p/xray-extensions/source/list

The patcher overwrites an xrGame.dll for 1.0006 version - not the best choice, because only few ppl build mods for this patch.
But i know, what is the reason behind this, why the russians editing the 1.0006 binaries - a pre-release 1.0006 patch exists with pdb files, which makes possible a better binary reverse engineering:

http://www.stalker-portal.ru/datas/files/patch_1.0006.zip

http://stalker-portal.ru/page.php?id=3793

http://stalker-portal.ru/list.php?c=patch_soc
  12:02:31  23 May 2012
profilee-mailreply Message URLTo the Top
Meltac
messing with code
(Resident)

 

 
On forum: 01/21/2010
 

Message edited by:
Meltac
05/23/2012 12:07:23
Messages: 1519
I agree. Despite some guys keep recommending xray extensions they simply won't work in most scenarios because modders usually don't build on patch 1.0006. That's why I abandoned that approach already some while ago.

EDIT:
So if it's not possible to add inventory context menu entries without xray extension, I assume it's also impossible to change an existing menu entry's label by script? Or is it?
  13:42:50  23 May 2012
profilee-mailreply Message URLTo the Top
mnn
Senior Resident
 

 
On forum: 06/12/2009
Messages: 2694

---QUOTATION---
I agree. Despite some guys keep recommending xray extensions they simply won't work in most scenarios because modders usually don't build on patch 1.0006. That's why I abandoned that approach already some while ago.
---END QUOTATION---


I've never modded SoC (only CoP, but sometimes I used to look up some stuff how it was done in SoC/CS).


---QUOTATION---
So if it's not possible to add inventory context menu entries without xray extension, I assume it's also impossible to change an existing menu entry's label by script? Or is it?
---END QUOTATION---


AFAIK string table is static and the only way to change it, is manually edit string table files and restart the game.
  13:55:12  23 May 2012
profilee-mailreply Message URLTo the Top
Meltac
messing with code
(Resident)

 

 
On forum: 01/21/2010
Messages: 1519

---QUOTATION---
I've never modded SoC (only CoP, but sometimes I used to look up some stuff how it was done in SoC/CS).
---END QUOTATION---



Didn't mean to offend you, mnn. I appreciate any help, however it's just sort of unnerving sometimes when ppl (in general) keep on recommending something that is out of relevance for most modders. It's like you'd say "hehe, I got something that could solve all your problem but you won't ever be able to use it". xray extensions is a great project, tested some things a while ago, but as said in most scenarios it's out of reach due to patch incompatibility.


---QUOTATION---
AFAIK string table is static and the only way to change it, is manually edit string table files and restart the game.
---END QUOTATION---



I feared so. Thanks anyways.
  14:34:00  23 May 2012
profilee-mailreply Message URLTo the Top
mnn
Senior Resident
 

 
On forum: 06/12/2009
Messages: 2694

---QUOTATION---
Didn't mean to offend you, mnn. I appreciate any help, however it's just sort of unnerving sometimes when ppl (in general) keep on recommending something that is out of relevance for most modders. It's like you'd say "hehe, I got something that could solve all your problem but you won't ever be able to use it". xray extensions is a great project, tested some things a while ago, but as said in most scenarios it's out of reach due to patch incompatibility.
---END QUOTATION---


Well, even xray-extensions might not be solution to this problem, because I don't think it has this kind of functionality.
  15:11:24  24 May 2012
profilee-mailreply Message URLTo the Top
Lijenstina
Doom metal in the shade of the flying radiators
(Resident)

 

 
On forum: 07/23/2005
Messages: 1902
You can change them if it was controlled by a script - by using the game.translate_string function or a table of string entries that will link an another one. Sadly, because the whole screen area is taken by the inventory menu that excludes the possibility of having invisible buttons - with no texture attached that can be used with the ui events calls to have context menus or hover over ones.
  15:27:31  24 May 2012
profilee-mailreply Message URLTo the Top
Meltac
messing with code
(Resident)

 

 
On forum: 01/21/2010
 

Message edited by:
Meltac
05/24/2012 15:27:58
Messages: 1519

---QUOTATION---
You can change them if it was controlled by a script - by using the game.translate_string function or a table of string entries that will link an another one.
---END QUOTATION---



Sorry, I don't get that. Is it now possible or not? And if yes, could you please provide some example or link or maybe whatever additional info?
  15:59:47  24 May 2012
profilee-mailreply Message URLTo the Top
Lijenstina
Doom metal in the shade of the flying radiators
(Resident)

 

 
On forum: 07/23/2005
 

Message edited by:
Lijenstina
05/24/2012 16:02:21
Messages: 1902
It is an engine call.

I was thinking in the vein of a potential.
To my knowledge, the inventory's active area excludes interactivity for other huds (it takes over the whole screen) and has priority over others. You could only have a button that displays text (by setting its alpha in the xml) when the cursor hovers over by using an hud that is updated when the inventory is active.
  16:15:52  24 May 2012
profilee-mailreply Message URLTo the Top
mnn
Senior Resident
 

 
On forum: 06/12/2009
Messages: 2694
Lijenstina: Yes, you can use game.translate_string() to dynamically retrieve a string. However you can't modify string table itself on-the-fly.

Also, inventory, dialog screen, HUD (except custom statics) - all of them are hardcoded and you can't get handle to them (without modifying game engine).
  16:47:25  24 May 2012
profilee-mailreply Message URLTo the Top
Meltac
messing with code
(Resident)

 

 
On forum: 01/21/2010
Messages: 1519

---QUOTATION---
Also, inventory, dialog screen, HUD (except custom statics) - all of them are hardcoded and you can't get handle to them (without modifying game engine).
---END QUOTATION---



Ok, sounds like it's time to start modifying the game engine
 
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-2022 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.