Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Adding to Entitities without Regen  (Read 850 times)

Himmelhand

  • Bay Watcher
    • View Profile
Adding to Entitities without Regen
« on: December 07, 2008, 06:39:20 pm »

As in the topic, my human race doesn't have any trapcomps, which means i can't make screw pumps, which means my town on salt water almost died once due to running out of booze.  Can I add that stuff into the human civ without having to generate a new world?
Logged

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Adding to Entitities without Regen
« Reply #1 on: December 07, 2008, 07:02:28 pm »

Yeah, the only times that you have to regen are completely adding a new object/entity/creature or completely removing one. The only other things that I know of that require regen in the raws are clothing.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Himmelhand

  • Bay Watcher
    • View Profile
Re: Adding to Entitities without Regen
« Reply #2 on: December 07, 2008, 07:13:47 pm »

OK, I copied the trapcomp tags from the dwarven entity, but I'm still unable to forge iron corkscrews.  Or any trapcomps, for that matter.
Logged

Taritus

  • Bay Watcher
    • View Profile
Re: Adding to Entitities without Regen
« Reply #3 on: December 07, 2008, 07:25:11 pm »

Items and such for entities require regen.  Dunno why.
Logged



Greiger

  • Bay Watcher
  • Reptilian Illuminati member. Keep it secret.
    • View Profile
Re: Adding to Entitities without Regen
« Reply #4 on: December 07, 2008, 07:39:07 pm »

Entities determine what they can build and what they have access to during the worldgen finalization I think. 

Probably since it needs to do it all for plants, stone and animals anyway.

It may be possible to modify a reaction for it to output corkscrews but not sure.
« Last Edit: December 07, 2008, 07:40:44 pm by Greiger »
Logged
Disclaimer: Not responsible for dwarven deaths from the use or misuse of this post.
Quote
I don't need friends!! I've got knives!!!

Himmelhand

  • Bay Watcher
    • View Profile
Re: Adding to Entitities without Regen
« Reply #5 on: December 07, 2008, 07:51:48 pm »

How could I do that?  I'm not terribly good at modding..
Logged

userpay

  • Bay Watcher
    • View Profile
Re: Adding to Entitities without Regen
« Reply #6 on: December 07, 2008, 07:55:03 pm »

Can't you just import the stuff from the dwarves or something?
Logged

Himmelhand

  • Bay Watcher
    • View Profile
Re: Adding to Entitities without Regen
« Reply #7 on: December 07, 2008, 07:58:17 pm »

Unfortunately I have seen no dwarves in the life of this town.
Logged

Himmelhand

  • Bay Watcher
    • View Profile
Re: Adding to Entitities without Regen
« Reply #8 on: December 08, 2008, 12:56:07 am »

[REACTION:CORKSCREW]
[NAME:forge iron corkscrew]
[SMELTER]
[REAGENT:1:BAR:NO_SUBTYPE:METAL:IRON]
[PRODUCT:100:1:ITEM_TRAPCOMP:ITEM_TRAPCOMP_ENORMOUSCORKSCREW]
[FUEL]

Would this smelter reaction give me an iron corkscrew?
Logged

TettyNullus

  • Bay Watcher
    • View Profile
Re: Adding to Entitities without Regen
« Reply #9 on: December 08, 2008, 12:57:28 am »

IIRC, additions to reactions need regens, modifications don't.
Logged

Himmelhand

  • Bay Watcher
    • View Profile
Re: Adding to Entitities without Regen
« Reply #10 on: December 08, 2008, 01:48:09 am »

Hrmm.. Well if I replaced another reaction with this, would it work right?  Is the material of the corkscrew implied by the reagent material?
Logged

Footkerchief

  • Bay Watcher
  • The Juffo-Wup is strong in this place.
    • View Profile
Re: Adding to Entitities without Regen
« Reply #11 on: December 08, 2008, 01:57:45 am »

Hrmm.. Well if I replaced another reaction with this, would it work right?  Is the material of the corkscrew implied by the reagent material?

Yes, it'll work if you replace the REAGENT and PRODUCT stuff for an existing reaction.  You do need material crap in the product as well.  Use this:

[PRODUCT:100:1:ITEM_TRAPCOMP:ITEM_TRAPCOMP_ENORMOUSCORKSCREW:METAL:IRON]
Logged

TettyNullus

  • Bay Watcher
    • View Profile
Re: Adding to Entitities without Regen
« Reply #12 on: December 08, 2008, 01:58:44 am »

I think you need to add :METAL:IRON after the corkscrew product, then you can stick it into other reactions and have it as a byproduct

ed: sniped by Footkerchief  ;)
Logged

Himmelhand

  • Bay Watcher
    • View Profile
Re: Adding to Entitities without Regen
« Reply #13 on: December 08, 2008, 02:41:04 pm »

Tried adding that tag in, it will consume the resources but it won't put out a corkscrew.
Logged

Footkerchief

  • Bay Watcher
  • The Juffo-Wup is strong in this place.
    • View Profile
Re: Adding to Entitities without Regen
« Reply #14 on: December 08, 2008, 04:49:05 pm »

Oh, oops.  It's TRAPCOMP for the item type, not ITEM_TRAPCOMP.  So the full tag is:

[PRODUCT:100:1:TRAPCOMP:ITEM_TRAPCOMP_ENORMOUSCORKSCREW:METAL:IRON]

I tested that and it works.
Logged