Author Topic: The Minor JSON Questions Thread  (Read 6301 times)

Offline pisskop

  • Survivor
  • ***
  • Posts: 3616
  • Excitebike
    • View Profile
Re: The Minor JSON Questions Thread
« Reply #75 on: March 06, 2017, 04:16:08 PM »
also i want to know partially because i wish to add a new zombie attack into coregame.  since its been testing well in my mod

Offline Coolthulhu

  • Contributor
  • Survivor
  • ****
  • Posts: 3839
    • View Profile
Re: The Minor JSON Questions Thread
« Reply #76 on: March 06, 2017, 04:39:14 PM »
i dont quite understand how the definitions for the custom attacks work.

specifically the damage dealt.  let us pretend i wish to create an attack that deals a mons base damage plus 3 additional cutting damage.  how do?

does max damage overwrite possible damage for an attack?  say for a bite that does a max of 100 stab damage.

Adding damage isn't possible at the moment, you need to specify the exact damage for the whole attack.
Adding damage sounds simple, but the problem is that damage also has penetration, damage multiplier and armor multiplier. This is why the attacks use this multiplier scaling thing instead of being multiplied by a number or rolled.

So if you want to deal base damage + 3 cutting damage, you need to sum of the damage as a set number and set the multiplier so that lowest multiplier * set damage is the lowest damage and highest multiplier * set damage is the highest damage.
If you set damage higher, it will pierce armor better (armor is deducted before multiplier roll), if you control mostly the multiplier it will pierce armor less.

Offline fxckenstein

  • Zombie Food
  • *
  • Posts: 6
    • View Profile
Re: The Minor JSON Questions Thread
« Reply #77 on: March 09, 2017, 05:21:12 AM »
Is there a way to modify player's hit-point without changing the source? I see the health settings are hard-coded in character.cpp and wonder if it's possible to modify it by writing some lua code or even Json, I'd like to add a new mutation which modify player's hp by 222.22% (200hp at 10 str), it really upset me when a single grenade fragment kills my PC in full survivor gear with full hp. I don't think a higher health would help much with other things though, it's usually the pain or status ailment get you first, more health will only slow down the inevitable.
« Last Edit: March 09, 2017, 05:46:17 AM by fxckenstein »

Offline Coolthulhu

  • Contributor
  • Survivor
  • ****
  • Posts: 3839
    • View Profile
Re: The Minor JSON Questions Thread
« Reply #78 on: March 09, 2017, 01:51:02 PM »
Currently no.
The best you can get right now is giving self mutations that grant HP.

Offline fxckenstein

  • Zombie Food
  • *
  • Posts: 6
    • View Profile
Re: The Minor JSON Questions Thread
« Reply #79 on: March 10, 2017, 01:56:31 AM »
Currently no.
The best you can get right now is giving self mutations that grant HP.
Well thanks, but I don`t really like to break immersion. guess I`ll hold on until I find a workaround about it, I played too much cdda these days anyway.

Offline Taberone

  • NPC
  • **
  • Posts: 162
    • View Profile
Re: The Minor JSON Questions Thread
« Reply #80 on: March 14, 2017, 05:28:36 AM »
(1)What affects how long it takes for a gun to aim in the code, and what determines maximum effective range?

(2)How do I make a profession spawn with a fully loaded RM451 Flamethrower?
Something like 15:00-18:00 is good time to kill the children
This is art right here

Offline Coolthulhu

  • Contributor
  • Survivor
  • ****
  • Posts: 3839
    • View Profile
Re: The Minor JSON Questions Thread
« Reply #81 on: March 14, 2017, 07:06:14 AM »
Aim depends on handling stat, current weapon skill of the user, dexterity and perception of the user, hand encumbrance of the user, used sights and volume of the weapon used.
Effective range is just range at which the fully aimed (stability 100%) has a chance of good hit of 50% or more. Anything that affects accuracy affects effective range: perception, arm encumbrance, used sights, skill in used weapon and marksmanship, targeting bionic.

Offline wad67

  • Survivor
  • ***
  • Posts: 358
    • View Profile
Re: The Minor JSON Questions Thread
« Reply #82 on: March 26, 2017, 04:54:39 PM »
Is there a way for an item blacklist to remove items from the basegame?
It seems to disable crafting, and spawns although items still start with various professions are are still visible in the wish menu.

I was talking to some people on discord, and the main option appears to be redefining every base object that I don't want to 'none'.
« Last Edit: March 26, 2017, 04:58:00 PM by wad67 »

Offline pisskop

  • Survivor
  • ***
  • Posts: 3616
  • Excitebike
    • View Profile
Re: The Minor JSON Questions Thread
« Reply #83 on: March 26, 2017, 05:12:40 PM »
not take them out no.  their ids will always exist.


To 'take them out' youd have to also override the item's unique id and make them into ... well, whatever.  Be it turn them into bees or chunks of meat or single frozen tear drops lamenting their lose.

overwriting their ids will change their displayed name and properties so that while the item's ids exist, its akin to taking the soul and personality out of one person and putting it into another's body.

Offline Coolthulhu

  • Contributor
  • Survivor
  • ****
  • Posts: 3839
    • View Profile
Re: The Minor JSON Questions Thread
« Reply #84 on: March 26, 2017, 05:22:27 PM »
Is there a way for an item blacklist to remove items from the basegame?
It seems to disable crafting, and spawns although items still start with various professions are are still visible in the wish menu.

That sounds like a bug

Offline wad67

  • Survivor
  • ***
  • Posts: 358
    • View Profile
Re: The Minor JSON Questions Thread
« Reply #85 on: March 26, 2017, 05:59:09 PM »
not take them out no.  their ids will always exist.


To 'take them out' youd have to also override the item's unique id and make them into ... well, whatever.  Be it turn them into bees or chunks of meat or single frozen tear drops lamenting their lose.

overwriting their ids will change their displayed name and properties so that while the item's ids exist, its akin to taking the soul and personality out of one person and putting it into another's body.

I'm aware of this method, however it is a bit of a monumental task to replace every article of clothing in the game, putting together the blacklist was time consuming enough.
I have been experimenting with makeshift vehicle parts, so far I have completed a makeshift alternator and I'm considering which other vehicle systems would be feasible to bodge.
(click to show/hide)

Pastebin with the blacklist if anyone would like it: http://pastebin.com/sLvbKTTM

I'm also trying to define a new type of vehicle part, hint: It involves tinder as a fuel type
But that's another headache for another day

Additionally, is there an output log for json errors? Game stopped showing errors during load for some reason.
Seems to be an issue
« Last Edit: March 26, 2017, 08:47:22 PM by wad67 »

Offline Zhilkin

  • NPC
  • **
  • Posts: 218
    • View Profile
Re: The Minor JSON Questions Thread
« Reply #86 on: March 29, 2017, 10:20:25 AM »
Is there a way for an item blacklist to remove items from the basegame?
It seems to disable crafting, and spawns although items still start with various professions are are still visible in the wish menu.

I was talking to some people on discord, and the main option appears to be redefining every base object that I don't want to 'none'.
I beleive you can just create new core mod and start new game without dda.

Offline wad67

  • Survivor
  • ***
  • Posts: 358
    • View Profile
Re: The Minor JSON Questions Thread
« Reply #87 on: March 30, 2017, 07:48:19 PM »
Is there a way for an item blacklist to remove items from the basegame?
It seems to disable crafting, and spawns although items still start with various professions are are still visible in the wish menu.

I was talking to some people on discord, and the main option appears to be redefining every base object that I don't want to 'none'.
I beleive you can just create new core mod and start new game without dda.

This made my life a couple of thousand times easier, thanks!
Made a new core mod, removed all the clothing. Started a new game, skipped a couple thousand error messages and then lo and behold. No clothing!
Now all I have to do is come up with a set of material & bodypart based generic clothing, then redefine everything that referred to the old clothing list.


I don't really want to have overlapping items, articles of clothing with multi materials might be considered. Might use some functionality similar to the MBR vest.
« Last Edit: March 30, 2017, 10:08:20 PM by wad67 »

Offline GrapeSquid

  • Zombie Food
  • *
  • Posts: 1
    • View Profile
Re: The Minor JSON Questions Thread
« Reply #88 on: April 01, 2017, 07:47:40 AM »
where can i find the code for the kilns and fermentation vats that tells them to store materials in them and then convert it into another item after some time. Also i can't seem to find the recipe for tinder anywhere, not that it matters really I can use other recipes.

Offline Coolthulhu

  • Contributor
  • Survivor
  • ****
  • Posts: 3839
    • View Profile
Re: The Minor JSON Questions Thread
« Reply #89 on: April 01, 2017, 02:46:28 PM »
where can i find the code for the kilns and fermentation vats that tells them to store materials in them and then convert it into another item after some time.

iexamine.cpp

Quote
Also i can't seem to find the recipe for tinder anywhere, not that it matters really I can use other recipes.

Survival tools mod