Tables, resources and other questions

Ask, answer and discuss any and all topics about the hows, whys, wheres and whens of playing Haven & Hearth.

Tables, resources and other questions

Postby flagmaster » Thu Oct 22, 2015 11:53 am

Hi guys.
I've tried my best to search the forum, but could'nt find an naswer on these.

1. How to make a table bonuses working?
What I did:
a) Built table and chair. Placed chair so I can open table while sitting on it
b) Put 4 items on table - cup, glass, plate and cutlery (about 20% satiation reduction)
c) put food on table
d) sat on chair, opened table right-clicked the food and chose "Eat"
Result
a) Satiation and energy gain were the same as when eating from inventory
b) In old Haven there was a button turning mouse pointer into fork and eating with it gave fep bonuses. Cannot find it here.
So what shld I do.

2. How to extract bear, boar, badger res files?
What I did
1) Extracred hafen-res.jar and builtin-res.jar (Got some ArrayIndexOutOfBounds while doing it, but AFAIR it was not under gfx directory)
2) Found fox, ants, dragonfly, frog in res/gfx/critter.
3) Searched by filename *boar* and all files containing tex *boar* in both packed and unpacked resources
What I am interested most is the resource responsible for bear icon on minimap

3. Can someone explain the order icons are drawn on minimap? Is there any z-index to define what is on top of other textures
I'm a bit tired of being attacked by boars hiding behind blieberries :D
So I'd like to make a minimap modification which draws aggressive animals on top of foragables


P.S. Minute of rage.
I hate people who are so goddamn lazy that they name variables like g,c,ul,sz,tsz,uld,brd,t!!!
C'mon, please learn Java! It does not give you any performance gain or jar size gain. And modern IDEs (like IntelliJ IDEA or Eclipse) have a very nice code completion, so you can get self-descriptive variable names with the same amount of letters typed.
Sorry 'bout that, but my brain hurts too much when I read the code.
flagmaster
 
Posts: 36
Joined: Fri May 17, 2013 8:03 pm

Re: Tables, resources and other questions

Postby Chiprel2 » Thu Oct 22, 2015 12:06 pm

1. When you sit in the chair and open the table you have the 'feast' button at the bottom of the table window.
3. Amber client draws player dots above the minimap icons it might be or might be not good place to start looking :p
Chiprel2
 
Posts: 125
Joined: Sun Nov 17, 2013 5:28 am

Re: Tables, resources and other questions

Postby tiarali » Thu Oct 22, 2015 12:06 pm

If you're sitting at the table and right click on it, you should see a 'feast' button underneath the food. Click that to get the fork icon.
tiarali
 
Posts: 144
Joined: Thu Aug 02, 2012 11:25 am
Location: Australia

Re: Tables, resources and other questions

Postby flagmaster » Thu Oct 22, 2015 12:08 pm

Thanks.

After minute of rage have ended, I've decided to note, that even though the readability of code is far from perfect, the game is awesome and Haven 2.0 is several times more awesome, so keep up the good work ;)


It was a chair placement!!! it was still too far from table
flagmaster
 
Posts: 36
Joined: Fri May 17, 2013 8:03 pm

Re: Tables, resources and other questions

Postby Tamalak » Thu Oct 22, 2015 2:40 pm

flagmaster wrote:It was a chair placement!!! it was still too far from table


The placement of furniture is ridiculously noob-unfriendly. Here's what you do.

1. Lift the object
2. Rightclick ON THE OBJECT above your head
3. Now when you move the cursor around the room, you'll see a little ghost of the object. You'll notice it aligns to a grid. The inside of a small cabin will be a 4x4 grid.
4. You can hold shift and scroll your mouse to change the facing of the ghost-object
5. Once you're happy with how it looks, left click to set it down (assuming the positioning of your hearthling is right, don't be right on top of where you want it to be and don't have anything in the way)

Using the above steps makes it "easy" to put the chair a correct distance from the table facing the right way.
Tamalak
 
Posts: 879
Joined: Sun Feb 20, 2011 12:31 am

Re: Tables, resources and other questions

Postby flagmaster » Thu Oct 22, 2015 3:27 pm

Tamalak wrote:
flagmaster wrote:4. You can hold shift and scroll your mouse to change the facing of the ghost-object

God bless you for this hint. :!:

True, the game lacks full list of all controls a bit.
flagmaster
 
Posts: 36
Joined: Fri May 17, 2013 8:03 pm

Re: Tables, resources and other questions

Postby Drevar » Thu Oct 22, 2015 6:23 pm

While you have the ghost image, you can also hold CTRL (on PC) to not have it align to grid and also allows full 360 rotation rather than snapping to 45s.
Drevar
 
Posts: 201
Joined: Mon Aug 16, 2010 9:38 pm

Re: Tables, resources and other questions

Postby MagicManICT » Thu Oct 22, 2015 8:28 pm

flagmaster wrote:True, the game lacks full list of all controls a bit.


have you looked at the stickies? I believe all the controls are listed somewhere in this thread: viewtopic.php?f=42&t=42999

For #2, best to check and discuss in The Wizards' Tower.

For #3, I've not noticed foraged items getting put over animals, but I've been mostly a home-body this world, so don't necessarily see all the possible situations.

As far as that code... yeah, when you're the only programmer on a project, and you really don't intend to share your code, variable names are meh. Also, loftar codes in emacs or vi (my mind is drawing a blank now). A lot of the bells and whistles are available, but you have to want to use them.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18436
Joined: Tue Aug 17, 2010 1:47 am

Re: Tables, resources and other questions

Postby flagmaster » Sat Oct 24, 2015 9:39 pm

MagicManICT wrote: Also, loftar codes in emacs or vi (my mind is drawing a blank now). A lot of the bells and whistles are available, but you have to want to use them.


Oh, that's a pain

Is there any chance I can do something to change that?
Maybe this: http://spin.atomicobject.com/2014/08/07/intellij-emacs/
IDEA can be configured to be emacs style. And a huge speedup and comfort of coding.
flagmaster
 
Posts: 36
Joined: Fri May 17, 2013 8:03 pm

Re: Tables, resources and other questions

Postby MagicManICT » Sun Oct 25, 2015 5:48 am

Maybe it's just because I'm an old school BASIC programmer that had two character variables to work with, so I don't have an issue. :ugeek:

flagmaster wrote:Is there any chance I can do something to change that?


You should read through the source code information here: http://www.havenandhearth.com/portal/doc-src
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18436
Joined: Tue Aug 17, 2010 1:47 am


Return to How do I?

Who is online

Users browsing this forum: Awario [Bot], Claude [Bot] and 18 guests