Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 4 5 [6] 7 8 9

Author Topic: Extended item viewscreen, custom item descriptions and ASCII art 5.1 beta  (Read 31206 times)

pisskop

  • Bay Watcher
  • Too old and stubborn to get a new avatar
    • View Profile
Re: Extended item viewscreen, custom item descriptions and ASCII art 4.2 beta
« Reply #75 on: January 26, 2015, 10:34:36 am »

oh my
Logged
Pisskop's Reblancing Mod - A C:DDA Mod to make life a little (lot) more brutal!
drealmerz7 - pk was supreme pick for traitor too I think, and because of how it all is and pk is he is just feeding into the trollfucking so well.
PKs DF Mod!

Warmist

  • Bay Watcher
  • Master of unfinished jobs
    • View Profile
Re: Extended item viewscreen, custom item descriptions and ASCII art 4.2 beta
« Reply #76 on: January 27, 2015, 03:48:08 am »

Hmm now that i look at this, you are using default viewscreen and just adding new strings to it. Maybe it would be better to have a new screen alltogether (and then e.g. canceling would quit from both screens). Though you would need to re-implement old behavior (reaction products?) but you could have more features (e.g. hyperlinks for item material/syndromes/castes/whatever, inline ascii art).

If you would like that i could try to make tutorial-ish viewscreen example.

Raidau

  • Bay Watcher
    • View Profile
Re: Extended item viewscreen, custom item descriptions and ASCII art 4.2 beta
« Reply #77 on: January 27, 2015, 04:00:50 am »

Hmm now that i look at this, you are using default viewscreen and just adding new strings to it. Maybe it would be better to have a new screen alltogether (and then e.g. canceling would quit from both screens). Though you would need to re-implement old behavior (reaction products?) but you could have more features (e.g. hyperlinks for item material/syndromes/castes/whatever, inline ascii art).

If you would like that i could try to make tutorial-ish viewscreen example.

Well, dfhack screens are a big mystery for me. Are you talking about a full reimplementation of item view screen built inside a single DFHack screen? Hyperlinks and all that kind of stuff would be incredible, but that will take a lot of time (I am trying to finish my Natural Balance alpha and upload it ASAP).

There is an upside of using existing DF screen - it supports truetype.

All the modders (I suppose) would appreciate such tutorial :)
« Last Edit: January 27, 2015, 04:03:07 am by Raidau »
Logged
Marital status manipulator
Custom item descriprions
Natural Balance Mod (2013-2015) development suspended...

PeridexisErrant

  • Bay Watcher
  • Dai stihó, Hrasht.
    • View Profile
Re: Extended item viewscreen, custom item descriptions and ASCII art 4.2 beta
« Reply #78 on: January 27, 2015, 04:35:46 am »

My vote is to go for it - this would be amazing, and Truetype is no loss anyway, since it's buggy and utterly inferior to TwbT. Whoever want to do it, go crazy!
Logged
I maintain the DF Starter Pack - over a million downloads and still counting!
 Donations here.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Extended item viewscreen, custom item descriptions and ASCII art 4.2 beta
« Reply #79 on: January 27, 2015, 05:03:59 am »

Both the Starter pack and Masterwork use Twbt by default, which excludes truetype. I assume that most people play without ttf by now. Most people that use fancy utilities and mods, that is. :D
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

scamtank

  • Bay Watcher
    • View Profile
Re: Extended item viewscreen, custom item descriptions and ASCII art 4.2 beta
« Reply #80 on: January 27, 2015, 05:36:09 am »

Yo I caught a dumbass little bug in how soap materials are reported.



How silly it looks! Turns out, this:
Code: [Select]
table.insert(list,"Used to make soap"..dfhack.matinfo.decode(mat_type, mat_index).material.state_name.Liquid)
...should rather read like this:
Code: [Select]
table.insert(list,"Used to make "..dfhack.matinfo.decode(mat_type, mat_index).material.state_name.Solid)


All better now! I'm guessing there's still some snags left, I'll report any I find.
« Last Edit: January 27, 2015, 05:38:59 am by scamtank »
Logged

Raidau

  • Bay Watcher
    • View Profile
Re: Extended item viewscreen, custom item descriptions and ASCII art 4.2 beta
« Reply #81 on: January 27, 2015, 07:34:05 am »

Yo I caught a dumbass little bug in how soap materials are reported.


Looks like i was hasty adding those usage lines when decided to make it show actual result instead of just plain "used to make soap". Fixed that
« Last Edit: January 27, 2015, 07:54:49 am by Raidau »
Logged
Marital status manipulator
Custom item descriprions
Natural Balance Mod (2013-2015) development suspended...

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Extended item viewscreen, custom item descriptions and ASCII art 4.2 beta
« Reply #82 on: January 27, 2015, 11:52:07 am »

So... oil has a sharpness? Ok.

Edit: (to say something constructive at least): Do you think it makes sense to post so many numbers? People that know what the molar mass, shear yield, impact yield, etc, mean are usually the same that can read raws.

But this should be a help for players, easy to understand. Maybe it could be more user-friendly, using descriptions/adjectives instead of numbers?
« Last Edit: January 27, 2015, 11:53:47 am by Meph »
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Extended item viewscreen, custom item descriptions and ASCII art 4.2 beta
« Reply #83 on: January 27, 2015, 02:06:11 pm »

So... oil has a sharpness? Ok.

Edit: (to say something constructive at least): Do you think it makes sense to post so many numbers? People that know what the molar mass, shear yield, impact yield, etc, mean are usually the same that can read raws.

But this should be a help for players, easy to understand. Maybe it could be more user-friendly, using descriptions/adjectives instead of numbers?

All items have sharpness.

Molar mass isn't really important, but yields/fractures are all very important to understand how the material works relative to other materials, and in very specific circumstances. For example, BENDING afaik is only used with joint locks and TORSION with non-edged latches (of which there are 0 in vanilla DF)

scamtank

  • Bay Watcher
    • View Profile
Re: Extended item viewscreen, custom item descriptions and ASCII art 4.2 beta
« Reply #84 on: January 27, 2015, 02:57:37 pm »

Ooh hey I have a suggestion now.

Replace this:
Code: [Select]
table.insert(list,"Temperature: "..item.temperature.whole.."U")
...with this:
Code: [Select]
table.insert(list,"Temperature: "..item.temperature.whole.."U ("..math.floor((item.temperature.whole-10032)/1.8).." C)")
...for a temperature reading that humans can understand instantly.



(I can't make the °-sign appear right :()
Logged

Warmist

  • Bay Watcher
  • Master of unfinished jobs
    • View Profile
Re: Extended item viewscreen, custom item descriptions and ASCII art 4.2 beta
« Reply #85 on: January 27, 2015, 03:23:47 pm »

I made a tutorial (at least a start of it) here: thread about gui making.

Raidau

  • Bay Watcher
    • View Profile
Re: Extended item viewscreen, custom item descriptions and ASCII art 4.2 beta
« Reply #86 on: January 27, 2015, 10:23:41 pm »

Ooh hey I have a suggestion now.

Replace this:
Code: [Select]
table.insert(list,"Temperature: "..item.temperature.whole.."U")
...with this:
Code: [Select]
table.insert(list,"Temperature: "..item.temperature.whole.."U ("..math.floor((item.temperature.whole-10032)/1.8).." C)")
(I can't make the °-sign appear right :()

Well, right, I was thinking on that but somehow decided to just pass it by. The temperature grade in DF is strange in many places... Its just not like real-world temperature, U suits better XD. Gonna add this by your request.

The material data is currently shown for every item, but sometimes it does not make sence, I agree. Thats just one of the things I ignored for the start :) The ignored item type list can be done with ease
« Last Edit: January 28, 2015, 01:22:54 am by Raidau »
Logged
Marital status manipulator
Custom item descriprions
Natural Balance Mod (2013-2015) development suspended...

Raidau

  • Bay Watcher
    • View Profile
Re: Extended item viewscreen, custom item descriptions and ASCII art 4.2 beta
« Reply #87 on: January 28, 2015, 12:21:10 am »

So... oil has a sharpness? Ok.

Edit: (to say something constructive at least): Do you think it makes sense to post so many numbers? People that know what the molar mass, shear yield, impact yield, etc, mean are usually the same that can read raws.

But this should be a help for players, easy to understand. Maybe it could be more user-friendly, using descriptions/adjectives instead of numbers?

If someone provides me enough adjectives to express all the complexity of DF material properties, I will include this :) But I think the numbers and comarison percentages are good for the time being

UPDATE: updated the script  :)
« Last Edit: January 28, 2015, 01:19:20 am by Raidau »
Logged
Marital status manipulator
Custom item descriprions
Natural Balance Mod (2013-2015) development suspended...

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: Extended item viewscreen, custom item descriptions and ASCII art 4.2 beta
« Reply #88 on: January 28, 2015, 08:45:57 am »

Seeing this it feels like it should be like, a default part of the game as is, having the info down there for the material properties is too cool, art and such is a neat bonus, but yeah, despite knowing all the various stats mostly by memory (too many years of gming pen and paper games, I memorize useless stats reflexively) it's still very cool having it presented like that. awesome stuff!
Logged

Raidau

  • Bay Watcher
    • View Profile
Re: Extended item viewscreen, custom item descriptions and ASCII art 4.2 beta
« Reply #89 on: January 28, 2015, 09:45:06 pm »

I think thanks to Warmist now its possible. Behold! :D

Just recenly recognized that lua can convert character index into the character itself, and custom workshop editor creates the character based images! So I can use it as a simple DF ASCII image editor XD. It allows you to draw picture for any tileset and see how it will look.

Colors are on their way! (I hope, gonna check what I know about pens)

« Last Edit: January 29, 2015, 12:05:17 am by Raidau »
Logged
Marital status manipulator
Custom item descriprions
Natural Balance Mod (2013-2015) development suspended...
Pages: 1 ... 4 5 [6] 7 8 9