Topic: literal Bug-Ghost Writer is messing with my mod code!  (Read 3423 times)


Dr.Hossa

« on: October 26, 2020, 12:48:36 PM »
Okay, Sorry guyz and especially dev's, i admit this is some bold clickbait...

and also sorry if there's no bug's involved, but i find this rather irrational behavior. i dont know...
but i decided to not post it in the bug section.

anyway, i am at the end of my wisdom here.

little explanation of my bowying mod:
Spoiler: show
Bow making gradually gets more laborious, with more seperate worksteps the better your bow should be.
the base items being the Green body, glue and bowstring.

for a shortbow, just tiller a green body.
for a long bow, carve it alittle longer and use a bowstring.
for a hunting bow, u need additional glue and birch bark for the composite effect
finally, the northern bow needs a special recurve green body, made out of the base green body also with glue and bark, and tiller this with a bowstring


I worked for days on every single item, used original items as blueprints for the modded ones, just changed out the parameters.
I tested all of them, all worked fine, then all of a sudden the submenu was messed up: I had two "Green Bodies" despite there is just one recipe for it.
and i couldnt find the "plain recurve bow body",  for the selfmade (northern) recurve bow
Somehow the textprogram just added "" to my plain recurve bow body code, looking like this:

Spoiler: show
//PHIL'S STONE AGE
.plain Recurve Bow Body. ""Staff"" [effort:2] [phys:stance,arms] *CARPENTRY*      /320/ \12h\ |2|
{Green Body} [remove]
{Birch-bark strip}  =60= [remove]
{Glue} #0.3# [remove]
{Axe} <Carving axe>
{Knife}
{Cord} =6= [remove]
[PRICE:132] 

It is the second time this happens, had this issue with another item before. there is no way i myself could have written those "" in the code myself, because after testing succesfully i didnt change anything...

after removing the surplus "" around the word ""Staff"", it has been working fine. but it's a puzzle for me, and i think it will happen again.
Could it be an issue for the game to use "Staff" as base item for both the green body and the plain Recurve Bow Body?

perhaps u need to have a seperate base item for every recipe in one submenu?
but then, how could the tests have been successful?...

It would be really nice if some more experienced modders could help out, (or thor and odin looking into this in case it should be in fact a bug)

here is the complete submenu bowying text.:
Spoiler: show


[SUBMENU_START:Bowying]

//PHIL'S STONE AGE
.Primitive bow. "Juniper bow" [effort:2] [phys:stance,arms]   %25%   *COMMON*      /80/ |0|
{Slender tree trunk} [remove]
{Knife}
{Cord} =5= [remove]

//PHIL'S STONE AGE
.Green Body. "Staff" [effort:2] [phys:stance,arms] *CARPENTRY*      /315/ |2|
{Board} [remove]
{Axe} <Carving axe>
{Knife}
[NAME:Green Body]
[WEIGHT:3.0]

//PHIL'S STONE AGE
.Bowstring. "Cord" [effort:1] [phys:hands,one-armed] *COMMON*     /120/ |-2|
{Cord} (3) =15= [remove]
{Knife}


//PHIL'S STONE AGE
.tiller Green Body. "Shortbow" [effort:1] [phys:stance,arms] *CARPENTRY*      /5/ |-2|
{Green Body} [remove]
{Cord} =5= [remove]
[NAME:Shortbow] 
 
////--------(YOU ARE HERE: SUBMENU_Bowying)-------////

//PHIL'S STONE AGE
.frugal Longbow. "Longbow" [effort:2] [phys:stance,arms] *CARPENTRY*            %-40%   /320/ |2|
{Green Body} [remove]
{Axe} <Carving axe>
{Knife}
{Bowstring} =7= [remove]
[PRICE:60] 

//PHIL'S STONE AGE
.unpretentious Composite Bow. "Hunting Bow" [effort:2] [phys:stance,arms] *CARPENTRY*       %-60%   /320/ \6h\ |2|
{Green Body} [remove]
{Birch-bark strip}  =60= [remove]
{Glue} #0.2# [remove]
{Axe} <Carving axe>
{Knife}
{Bowstring} =6= [remove]
[PRICE:107] 

//PHIL'S STONE AGE
.plain Recurve Bow Body. "Staff" [effort:2] [phys:stance,arms] *CARPENTRY*      /320/ \12h\ |2|
{Green Body} [remove]
{Birch-bark strip}  =60= [remove]
{Glue} #0.3# [remove]
{Axe} <Carving axe>
{Knife}
{Cord} =6= [remove]
[PRICE:132] 

//PHIL'S STONE AGE
.tiller plain Recurve Bow. "Northern Bow" [effort:1] [phys:stance,arms] *CARPENTRY*            %-70%   /20/ |-2|
{plain Recurve Bow Body} [remove]
{Bowstring} =6= [remove]
[NAME:plain Recurve Bow]

//PHIL'S STONE AGE
.Make Glue from fish skin. "rock" [effort:1] [phys:hands,one-armed] *COMMON*  /5/ \2h\ %50% |-2|
{Raw fish} #1# [remove]
{Pot}
{Fire}
{Water} #2#
{Knife} <Fisher's Knife>
[NAME:Glue]    #0.1#
[Raw fish] #0.8#

////--------(YOU ARE HERE: SUBMENU_Bowying)-------////

//PHIL'S STONE AGE
.Make Glue from bones. "rock" [effort:1] [phys:hands,one-armed] *COMMON*  /5/ \2h\ %50% |-2|
{Bone} #1# [remove]
{Pot}
{Fire}
{Water} #2#
{Knife} <Fisher's Knife>
[NAME:Glue]    #0.1#

//PHIL'S STONE AGE
.Make Glue from Birch Tar. "rock" [effort:1] [phys:hands,one-armed] *COMMON*  /5/ \7h\ %50% |-2|
{Birch-bark strip} =160= [remove]
{Pot}
{Fire}
[NAME:Glue]    #0.1#

[SUBMENU_END:Bowying]



THANKS a lot

a little off the side of this topic: Even when using not ideal tools and nerfing the skill by even 70 % in the best recipe, i end up with decent results most of the time, which i only want to happen when all the circumstances are perfect, it should not be that easy. so the mod is overpowered atm. dont have a solution to this either...

JP_Finn

  • Honorary Lifetime Supporter
  • Member
  • *
  • Posts: 1148
  • Total likes: 620
  • Thawed Finn in SoCal
    • View Profile
« Reply #1 on: October 27, 2020, 05:03:15 AM »
Some text editors can act strange, for example coding in Python, I prefer plain editors. Many (looking at you, Windows included editors) aren’t viable.

As for tillering a bow stave, Carving axe is maybe the last choice I’d go with, long narrow cutting blade isn’t very conducive to following the grain. I’d use hand axe, any non-small knife(to use like draw knife. Even woodsman’s axe, battle axe (it’s lighter so I presume slimmer blade, easier to  maneuver)

Carving axe for mortise&tenon joints, carving hollows. Anything else, hand axe would be “handier” option IME.

JP_Finn

  • Honorary Lifetime Supporter
  • Member
  • *
  • Posts: 1148
  • Total likes: 620
  • Thawed Finn in SoCal
    • View Profile
« Reply #2 on: October 27, 2020, 05:18:54 AM »
Also, a stave, as in usable as a quarter staff, a weapon, is too narrow/small for a bow stave with 1”-1-1/2” diameter.
You’d want around 2.5”-4” (6.5cm-10cm)  trunk split in half as your bow blanks. You have to cut/scrape/grind decent amount of material off and follow the grain on the back.

I’d personally use slender trunk directly as the ingredient, or mod in a split trunk. Likely give one higher quality half and one same, likely lower quality half. Or simply KISS and require a slender trunk for one bow stave.

(Not sure if you imply green as in fresh cuts? Preferred bow staves IRL are dried/cured for several months first. I store on the garage rafters prospective blanks for year+. Yes, one can use fresh cut as bow, but expect a catastrophic failure within few days/weeks)

Dr.Hossa

« Reply #3 on: October 27, 2020, 12:35:41 PM »
i use plain editor. but i have guess: as i modded the file, i was tabbing in and out of tha game, while the editor was open. i think that could have messed with it. still strange...

thanks for your contributions. consider that mod as a construction site, rather than a built house. so i focus mainly on functionality before i paint the walls, but i like the colors you suggested ;D
And i am well aware that without 'explanations' it's looking quite raw.

So i think i'll go with slender trunk then.
a big knife for carving also seems aunthentic to me, though i saw many ppl use an axe for a bow body, especially the rough work in the beginning. i think both will be needed, and i will change the ideal knife to <hunting knife>
I want to prevent modding in too many specialised interstage products, as i am currently building a quite all-embracing mod.
(the goal is to add more possibilities for "lone hermits" without any contact to civilisation. But traded and found weapons, tools and stuff always should be better)

My main concerns are tweaking the %-X% and the ideal tools for a product which should be of a just under average quality most of the time, unless you really have perfect tools and skill for the task.
In other words: I dont want a decent recurve bow as a result when the character works with a simple knife and a simple axe, and is NOT a carpentry master.

I was also wondering if the result is compromised in case you add optional ingredients in the recipe but craft the item without.
that would give me another option to influence the outcome. Any experiences are welcome

Btw:
the "green body" is just another word for rawling, wich i found fitting better in that context.
ofc you dont use green wood! demn did i soak up those bow making vids on YT... still not anywhere near to any expertise.