The stand-alone mod S.T.A.L.K.E.R. Anomaly aims to be the most stable and customizable experience for fans of the S.T.A.L.K.E.R. games. It's powered by the Monolith 64-bit engine, a custom fork of the X-Ray engine.

Description

Small addon that adds the first ten letters of an items name to it's icon in the inventory.

Preview
Inventory Item Names (Anomaly 1.5.1/1.5.2)
Post comment Comments
Jumping_Hunter
Jumping_Hunter - - 102 comments

Hi, i love the idea of your mod, however i have a question: can you please give me link to the icons you used in the preview picture? They look very nice and kind "oldschool", and i would like to use them. Can you please publish it or give me a link to it if it already is published?

Reply Good karma Bad karma+1 vote
ravenascendant Author
ravenascendant - - 1,098 comments Reply Good karma+2 votes
Jumping_Hunter
Jumping_Hunter - - 102 comments

Thanks!

Reply Good karma Bad karma+1 vote
Guest
Guest - - 690,293 comments

awesome idea but hard to read on smaller objects, with more contrast and space between objects and text itd be more comfortable

Reply Good karma Bad karma0 votes
ravenascendant Author
ravenascendant - - 1,098 comments

what color is high contrast with any arbitrary color?

Reply Good karma+1 vote
Guest
Guest - - 690,293 comments

white text but with black outline

imgur com/PLSvFUJ.jpg

Reply Good karma Bad karma0 votes
ravenascendant Author
ravenascendant - - 1,098 comments

I said what color, not what colors.

Stalker does not give us outlined fonts.

Reply Good karma+1 vote
mapledpa
mapledpa - - 54 comments

Hey mate, in "rax_icon_layers.script" what happens if I increase/decrease these parameters:

line 110: local x = tbl.icon_layer_x or 0
line 111: local y = tbl.icon_layer_y or 0

I have a mod that changes Anomaly's font and it's causing icon names to be a bit lower than in the screenshots, my goal is to fix that. I'd appreciate some insight.

Reply Good karma Bad karma+1 vote
ravenascendant Author
ravenascendant - - 1,098 comments

nothing in that script should be changed.
First because it is used by several of my addon and you will break them.
Second this addon isn't even using any of it's functionality except as a way to get the at the inventory cells, the icon holders.

in the other script there is a line that looks like this but shorter, replace it with this:
cell:Add_CustomText(game.translate_string(SYS_GetParam(0,cell.section,"inv_name_short","")):sub(1, 9) , nil, 1 ,nil, nil)

the 1 between the two nil's can be set to 0,1 or 2 to change the vertical alignment of the text within the cell. see if any of those work

Reply Good karma+1 vote
mapledpa
mapledpa - - 54 comments

thank you, it is looking much better now but not quite there, I think the new gUI I'm using might be slightly off-axis. So I either change that or make the increments in the script smaller.

I doubt I can do that since I only had basic c++ programming in college and I'm very ignorant in the matter overall. You seem to know your field quite well, are there any sites you'd recommend to learn more on scripting in lua? like sample codes to get familiar with recalling functions, defining variables, and all the basics. I want to be able to make my own scipts for Anomaly.

Reply Good karma Bad karma+1 vote
ravenascendant Author
ravenascendant - - 1,098 comments

Lua dot org has programming in Lua firts addition on their website for free, it is lua 5.0 and stalker is 5.1 the changes are minimal. Far less than the changes from modern Lua to 5.1

Reply Good karma+1 vote
Stalker_Boss
Stalker_Boss - - 1,716 comments

Hello! Can you please made a script only for ammo? In russian on all items it looks not so good.

Reply Good karma Bad karma+1 vote
ravenascendant Author
ravenascendant - - 1,098 comments

make line 6 this:
if bags[cell.container.ID] and IsItem("ammo", cell.section) then

Reply Good karma+2 votes
Stalker_Boss
Stalker_Boss - - 1,716 comments

Thanks!

Reply Good karma Bad karma+1 vote
gabbriel
gabbriel - - 6 comments

Awesome mod. But there is a question whether it is possible to reduce the font size, just half of the text does not fit in Russian. Thank you in advance.

Reply Good karma Bad karma+1 vote
ravenascendant Author
ravenascendant - - 1,098 comments

cell:Add_CustomText(game.translate_string(SYS_GetParam(0,cell.section,"inv_name_short","")):sub(1, 9) , nil, 1 ,nil, GetFontSmall())

in the script there is a line that looks like this, but shorter, replace it with this.
the number 9 can be adjusted to show more or less text.

the number 1 between the two nil can be replaced with a 0 or a 2 to adjust the vertical position of the text.

a possible alternative font would be GetFontDI()

Reply Good karma+1 vote
ravenascendant Author
ravenascendant - - 1,098 comments

may be this "ui_font_arial_14"

or this "stat_font"

there are not many font options unfortunatly. and they are hardcoded into the engine.

Reply Good karma+1 vote
Guest
Guest - - 690,293 comments

This comment is currently awaiting admin approval, join now to view.

Lollan
Lollan - - 1 comments

Is it possible to disable the existing icon text when using this or maybe even the item count? Your mod is the only thing that I've found to make my stash usable but I would like to "clean up" some still.

see image: Imgur.com

Reply Good karma Bad karma+1 vote
ravenascendant Author
ravenascendant - - 1,098 comments

the text is part of the icon, get a different icon pack that doesn't add text.

Add this to the end of the script, it should disable the counter in staches. if you want to disable the counter everywhere delete the next to last line.

local baseAC = utils_ui.UICellItem.Add_Counter
function utils_ui.UICellItem:Add_Counter(xml, obj, sec)

-- Hide counter
if self.cnt then
self.cnt:Show(false)
end

-- don't make/show counter for staches
if (self.container.ID == "npc_bag" and ui_inventory.GUI.npc_is_box) then
return
end
--draw the counter normally otherwise
baseAC(self,xml, obj, sec)
end

Reply Good karma+1 vote
ThE_RaZeR
ThE_RaZeR - - 1 comments

Please say me name of addon for color icons?

Reply Good karma Bad karma+1 vote
ravenascendant Author
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account:

Tags

Inventory Item Names (Anomaly 1.5.1/1.5.2) has not been tagged yet.