Soldak Home   Drox Operative   Din's Curse   Depths of Peril   Zombasite  

Go Back   Soldak Entertainment Forums > Din's Curse > Din's Curse modding
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread Tools Display Modes
Old 12-15-2010, 12:08 AM
jeremyosborne jeremyosborne is offline
Join Date: Oct 2010
Posts: 194
Default How to relocate MiniMap?


You're probably going to ignore me with all my mod questions

I want to move the actual MiniMap image around, but I can't figure out how to do that, nor can I find an associated UI Widget that relates to the MiniMap location.

Which widget needs to be edited to change the MiniMap position?


EDIT: Made a bit of headway. Using the magic power of "grep" and some guessing, I found that the texture used for the MiniMap is Textures/ui/minimap/circle2.tga, and that the shader itself is defined as MiniMapMask inside of shaders/interface.sdr, and that I can somewhat control the positioning of the MiniMap by dumping the following in a .gdb file in an Assets/Database folder that I created:

MiniMapRelocate overrides UISystem
    // This is the original positioning of the MiniMap
    //MiniMapMaskPosition "537.0 20.0"
    // I can move the minimap around within a constrained area.
    // The following shows a "pie piece" of the map, clipping the rest away
    //MiniMapMaskPosition "530.0 80.0" 
    // This doesn't work at all, probably something I'm missing in my understanding
    // of how shaders work together.
    MiniMapMaskPosition "0.0 100.0"
    MiniMapMaskSize "90.0 90.0"
As the comments indicate, I'm suffering from Operator Error. I'll see if I can figure out what's going on. If I can, I'll post it here.

EDIT AGAIN: Okay, I'm probably going to sound like a dumbass asking this question, but I'll ask it anyway:

Is the reason I can't move the minimap around due to the fact that the map is projected into a certain diamond shape area of the upper right of the screen, and what the shader is actually allowing me to do is to make visible a section, or rather a particular shape, within that section of the screen? Hence, when I move the shader around, there's nothing to view because the collision between the shader and the new area, like the upper left corner of the game screen, isn't projecting the view of the minimap?

Last edited by jeremyosborne : 12-15-2010 at 02:41 AM.
Reply With Quote
Old 12-15-2010, 09:38 AM
Shadow's Avatar
Shadow Shadow is offline
Super Moderator
Join Date: Jun 2007
Location: Dallas, TX
Posts: 9,441

The location that the actual minimap draws at is in code. It's fairly complex because it's not just a flat texture but a 3d projection.

The shader you found and the numbers in UISystem only deal with the round texture that surrounds the minimap.
Steven Peeler
Depths of Peril, Kivi's Underworld, Din's Curse, Drox Operative, Zombasite, Din's Legacy, & Drox Operative 2
Reply With Quote
Old 12-15-2010, 02:41 PM
jeremyosborne jeremyosborne is offline
Join Date: Oct 2010
Posts: 194

Cool. Thanks! I won't go trying to move it around, but if I'm feeling brave I might attempt my first ever texture/shader.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -4. The time now is 09:17 AM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright 2007 - 2019 Soldak Entertainment, Inc.