Topic: 3.70 p1 problems with [WEIGHT:###] command  (Read 5820 times)


Brygun

« on: May 02, 2023, 08:31:40 PM »
For modding in our own items the Weight command lets us set a custom weight. Will post the code shortly.

In the BAC for making a boat the Finnish punt I'm seeing wrong weights coming out. The code phrasing appears correct to me and others. These middle steps are using the base item container. A dug out log could actually be used to hold liquids etc.


Instead of the 150 lbs or 100 lbs of steps its coming in at 23.2 pounds.
At 99 lbs it came in at 22.2 lbs.
Is it wierd that it has a decimal weight?

Guesses I 've made are
= that it using the base object but then 99 lbs came at at 22.2 not 23.2.
= That it has trouble with 3 digit weights but again 99 lbs also was wrong

I'm particularily concerned if the final weight will be wrong as it using a boat type base object whose ability to float is currently a mutiplier on weight. A tiny 22-23 lb weight will be a serious fail.

I am reasonably sure that in early versions this was tested as BAC was being built up but it has been some time since then.

>>>>>

// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
// Finnish dug out punt
// uses 6 steps
//
// Brygun's inspiraton based on discussions at
// https://www.unrealworld.fi/forums/index.php?topic=4661.0
// espicially Erkka (co-dev of UrW) sharing a youtube
// https://www.youtube.com/watch?v=kW7BdhOZZ_c&t=4s
//
// Requires a Stone adze axe or Iron adze axe
//

//Start with "log" not trunk

.Pointed log. "Log" *TIMBERCRAFT* [effort:4] [phys:arms legs stance] /2.5h/ [assist:3]
{Log}      [remove] [ground] [noquality]    '+as a log smoothed on sides'
{Axe}<Broad axe>
[TYPE:timber]
[MATERIAL:wood]
[WEIGHT:350]
[TILEGFX:bc-trunkhalf]

//Shallow log (first cuttings)
.Shallow dug hull. "Wooden tub" *CARPENTRY* [effort:4] [phys:arms legs stance] /6h/ \4h\ [assist:3]
{Pointed log} (1) [ground] [remove]
{Axe} <Hand axe>
{Fire} '+to start a burn'
{Firewood} (12) [remove] '+to but in area to weaken'
[TYPE:container]
[CONT_CAPACITY:150]
[PRICE:3]
[MATERIAL:wood]
[WEIGHT:200]
[TILEGFX:bc-trunkhalf]
// Here a hand axe can be used as you are at the open top

.Medium dug hull. "Wooden tub" *CARPENTRY* [effort:4] [phys:arms legs stance] /6h/ \4h\ [assist:3]
{Shallow dug hull} (1) [remove] [ground]
{*adze axe} '+to dig out deeper weakened burned material'
{Fire} '+to continue the burn'
{Firewood} (12) [remove] '+to but in area to weaken'
[TYPE:container]
[CONT_CAPACITY:200]
[PRICE:4]
[MATERIAL:wood]
[WEIGHT:150]
[TILEGFX:bc-trunkhalf]
// here the adze axe is needed due the confined interior space
// this stage could also be used for a trough for
// food or water laid out for herd animals

.Deep dug hull. "Wooden tub" *CARPENTRY* [effort:4] [phys:arms legs stance] /6h/ [assist:3]
{Medium dug hull} (1) [remove] [ground]
{*adze axe} '+to dig out deeper weakened burned material'
[TYPE:container]
[CONT_CAPACITY:250]
[PRICE:5]
[MATERIAL:wood]
[WEIGHT:100]
[TILEGFX:bc-trunkhalf]
// here the adze axe is needed due the confined interior space
// This stage could also be used as a trough for soaking leather

.Expanded log hull. "Wooden tub" *CARPENTRY* [effort:3] [phys:arms legs stance] /6h/ \6h\ [assist:3]
{Deep dug hull} (1) [remove] [ground]
{*glue} #3# [remove] [ground] '+to mix into steaming sealer'
{Water} #12# [remove] [ground] '+to mix into steaming sealer'
{*pot} [ground] '+to hold hot mix' [noquality]
{Fire} '+nearby to start heating'
{Firewood}  (6)'+to sustain fire for heating' [noquality]
{Wooden stake} (6) [ground] '+as first spreader pairs' [noquality]
{Slender trunk} (6) [ground] '+as later spreader pairs' [noquality]
{Block of wood} (3) [ground] '+as weights' [noquality]
{Tying equipment} =45= [ground] '+to secure weights to spreaders' [noquality]
[TYPE:container]
[CONT_CAPACITY:500]
[PRICE:10]
[MATERIAL:wood]
[WEIGHT:100]
[TILEGFX:bc-trunkhalf]

//Final trimming
//pun: Finish the Finnish Punt
.Finish a Finnish punt. "Punt" *CARPENTRY* [effort:2] [phys:arms legs stance] /6h/ [assist:3]
{Expanded log hull} (1) [remove] [ground]
{Knife} <Small knife> '+for planing and smoothing'
{Rock} (1) '+to hammer knife as a chisel' [noquality]
{*glue} #2# [remove] [ground] '+to seal defects' [noquality]
{*pot} [ground] '+to hold hot glue' [noquality]
{Fire} '+to soften glue'
[NAME:Finnish punt]
[PRICE:60]
[WEIGHT:90]
[MATERIAL:wood]
[TYPE:vehicle]
// desired flotation 1800 lbs
// Log had 800,
// expanding gets 2/3 more per side or 800 x .66 x 2 = 1056
// ends got shaped -50,
// can haul 1 - 2 tree trunks plus crewman and gear



Brygun

« Reply #1 on: May 02, 2023, 10:38:06 PM »
I checked and a vanilla wooden tub has a weight of 2 lbs.

So where the heck is 100 lbs -> 23.2 lbs and 99 lbs -> 22.2 lbs coming from?


Brygun

« Reply #2 on: May 02, 2023, 10:44:57 PM »
Confirming the report the finished punt does weigh 90 as intended.

It thus seems in some way connected to using a container object, wooden tub, as the base object.

Why?

I dunno.  :o

Brygun

« Reply #3 on: May 02, 2023, 11:01:05 PM »
Game files are to big to post here. If needed I can email them for testing.

One can bypass the item list by changing them all to just {Rock}

It really does seem there is a weird base code thing about containers and changing the weight of the object (not its capacity)


Tinker

« Reply #4 on: May 03, 2023, 10:05:33 AM »
Just to confirm, this weight problem is also in 3.80 beta.