Search Floor for Items (with source)

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
AdrTru
Posts: 223
Joined: Sat Jan 19, 2013 10:10 pm
Location: Trutnov, Czech Republic

Search Floor for Items (with source)

Post by AdrTru »

Edit 12.8.2013 - Script is rewriting
I am making new version inspired by JohnWordsworth QuickBar


Old version of script
SpoilerShow
--------------------------------------------------------------------------------
SearchFloor by AdrTru is mod for Grimrock for searching items on floor
http://grimrock.nexusmods.com/mods/289/?
--------------------------------------------------------------------------------
For self functions needs Gui framework
and Shop scripts by Alois
viewtopic.php?f=14&t=5351&hilit=shop
--------------------------------------------------------------------------------

This script managing items on floor when is magnifier picture blue.
It is useful for lost items and floor with models is above standard floor level
and items isnt visible ( debris, mud, long grass, fire, canvased rock, etc. on the floor )
Items in alcove isnt visible(for author made hidden items)
Use/Dont use is managed by clicking to magnifier picture.

Image


-----------------------------------------------------------------------------------------------------------------------
I upload version 1.1 with this new features:

It is possible to pick up items by clicking to button next to searched name.

Its able to use this modifiters:
gui.setVar("searchUse",true)
- true/false - Use/Dont use this script
gui.setVar("searchOn",true)
- true/false - simmilar to use but show magnifier icon if its able
gui.setVar("searchShowIcon",true)
- true/false - show/dont show magnifier icon when script is running
gui.setVar("searchIconOn","mod_assets/search/magnifier_blue.dds")
- path for alternative picture for search is enabled
gui.setVar("searchIconOff","mod_assets/search/magnifier_gray.dds")
- path for alternative picture for search is disabled
gui.setVar("searchForward",true)
- true/false - show items in front of party position (dont able to pick up items from script and text is gray)
gui.setVar("searchAlcoved",false)
- true/false - show items located in alcoves/altars (true is little faster)

Items in Torch holders is showing evetime becouse I dont know how get item.id for inserted torch.
--------------------------------------------------------------------------------

Image
Last edited by AdrTru on Mon Aug 12, 2013 8:24 pm, edited 2 times in total.
My LOG2 projects: virtual money, Forge recipes, liquid potions and
MultiAlcoveManager, Toolbox, Graphic text,
User avatar
AdrTru
Posts: 223
Joined: Sat Jan 19, 2013 10:10 pm
Location: Trutnov, Czech Republic

Re: Search Floor for Items (with source)

Post by AdrTru »

------------------------------------------------
-- Search Floor Script
http://grimrock.nexusmods.com/mods/289//?
--
-- Version: 3.0.0
-- Released: 12.8.2013
-- Author: AdrTru canibalized :) code
by JohnWordsworth QuickBar
--
In testing dung is used mod Flooded dungeon by Skuggasveinn
and fire particle effect from forum
--
------------------------------------------------

This script managing items on floor.
It is possible to pick up items on party position by clicking to button next to searched name.
It is useful for lost items and floor with models is above standard floor level
and items isnt visible ( debris, mud, long grass,fire, etc. on the floor )

-----------------------------------------------

Now is script much easily integrated to dugeons - see you Read.me

Image
Image
My LOG2 projects: virtual money, Forge recipes, liquid potions and
MultiAlcoveManager, Toolbox, Graphic text,
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Search Floor for Items (with source)

Post by Komag »

Wow, you've really put some work into this, looks good :)
Finished Dungeons - complete mods to play
User avatar
maneus
Posts: 246
Joined: Mon Jun 17, 2013 10:42 pm
Location: Switzerland

Re: Search Floor for Items (with source)

Post by maneus »

Fantastic work, AdrTru. That is damn good.
User avatar
AdrTru
Posts: 223
Joined: Sat Jan 19, 2013 10:10 pm
Location: Trutnov, Czech Republic

Re: Search Floor for Items (with source)

Post by AdrTru »

Thank you for your positive reaction.
My LOG2 projects: virtual money, Forge recipes, liquid potions and
MultiAlcoveManager, Toolbox, Graphic text,
User avatar
AdrTru
Posts: 223
Joined: Sat Jan 19, 2013 10:10 pm
Location: Trutnov, Czech Republic

Re: Search Floor for Items (with source)

Post by AdrTru »

--------------------------------------------------------------------------------
* v.3.1.0
- fix problems with crash game when finding object is missed during vizualization
every its do when you wos stay in front of some MultiAlcoveManager or SpikeTrap
- add table with item.names of object excluded from searching
sf_excludeItems
you find this definitions under header
dont worry to add there any items which you want excluded.
(eg. dont visible items for tricks)
--------------------------------------------------------------------------------
My LOG2 projects: virtual money, Forge recipes, liquid potions and
MultiAlcoveManager, Toolbox, Graphic text,
chaoscommencer
Posts: 119
Joined: Sun Jan 05, 2014 7:48 pm

Re: Search Floor for Items (with source)

Post by chaoscommencer »

This looks great man! Does it allow you to pick up items found via the search guide as well? Also does it only search the tile you're on, or adjacent tiles, or more?

By the way, are you using a different water texture for the flooded dungeon pic? It appears choppier and animated.
Working on a dungeon that displays a massive collection of assets while sorting them into convenient reusable plugin format (concept from some of leki's mods). Will contribute some of my own models as well eventually and follow that with custom dungeon.
Post Reply