Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Stupid question about custom reaction  (Read 868 times)

Gobolinno

  • Bay Watcher
    • View Profile
Stupid question about custom reaction
« on: June 20, 2018, 07:10:37 pm »

Hi!.
I'm TRYING to get a custom (cheat) reaction in a savegame.

ok... I go to data -> save -> my world -> raw -> objects.

I modify the  entity_default, and I add this:

[PERMITTED_REACTION:ADAMANTINE_II]

just below all the other "permited_reaction" so I'm sure it's in the right place.

Now, I go to the reaction_smelter file, and I add this:


[REACTION:ADAMANTINE_II]
[NAME:New adamantine]
[BUILDING:SMELTER:NONE]
[REAGENT:A:REACTION_CLASS:JUNK]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:ADAMANTINE]
[PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]

(I followed more or less all the other reactions in this file).
With the obvious intention to use anything that I want to get rid of, to get the best metal).

But the option doesn't appear in the list, at all. =/

(I'm following this:
Quote
f you add a smelting reaction, you have to add the reaction to the "reaction_smelter.txt", you then have to make your reaction permitted on the "entity_default.txt".
When you add a reaction to the "entity_default.txt" it will be under the [ENTITY:MOUNTAIN] listing. Your permitted reaction should look like...
[PERMITTED_REACTION:XXXCUSTOM_REACTION_NAMEXXX]

So, anyone can point me where's the error, please?. =)
Logged

Sver

  • Bay Watcher
  • An army marches on its oiling and waxing
    • View Profile
Re: Stupid question about custom reaction
« Reply #1 on: June 20, 2018, 07:28:42 pm »

The reagent is really off. It should be defined like this:

Code: [Select]
[REAGENT:tag:amount:TYPE:SUBTYPE:MATERIAL:SUBMATERIAL]
If any item is ok to use, all the uppercase ones should be set to NONE, like this:

Code: [Select]
[REAGENT:A:1:NONE:NONE:NONE:NONE]
although, I'm not entirely sure if the reaction will work with not even an item type defined.

REACTION_CLASS:JUNK is not a valid reaction class in vanilla and can only be added manually - to certain materials, in their respective raws. In case you do mod it in, the reagent should look like this:

Code: [Select]
[REAGENT:A:1:NONE:NONE:NONE:NONE]
[REACTION_CLASS:JUNK]
« Last Edit: June 20, 2018, 07:31:34 pm by Sver »
Logged
DF Combat Reworked
No overpowered force transfer, no easy life without a kidney, more functional variety among the weapons and other improvements.

Gobolinno

  • Bay Watcher
    • View Profile
Re: Stupid question about custom reaction
« Reply #2 on: June 20, 2018, 08:47:32 pm »

Thanks!!!!

I'm looking at the inorganic_stone_mineral file...
Instead of adding the extra line to each one, is it possible to use the [IS_STONE] category?.
Unfortunately, is not a "reaction_class" so I'm trying to use that.

[Or another stupid question, can anyone point me out where are the doors? =P... As you can make doors from any rock (I think), I could use that one, but I can't find the mason txt file =/]

« Last Edit: June 20, 2018, 08:58:05 pm by Gobolinno »
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Stupid question about custom reaction
« Reply #3 on: June 20, 2018, 09:30:46 pm »

if you still dont see it make sure you permit it in the entity
Logged

Gobolinno

  • Bay Watcher
    • View Profile
Re: Stupid question about custom reaction
« Reply #4 on: June 20, 2018, 09:43:35 pm »

if you still dont see it make sure you permit it in the entity

That's the whole problem, I tried every combination, I even just copied one of the others reagents into this one.
My problem is that the game IS NOT reading the entity_default inside the save folder.
That's all... but how can I force the game to read it?. =/
And yes, I added the permitted_reaction, is just below the "normal one", so I'm sure it's there.

But the game just doesn't look at it. O.O

PS: Like this: (and these are the ones that are inside the "save" world).
https://imgur.com/a/be1u7kQ
« Last Edit: June 20, 2018, 09:48:02 pm by Gobolinno »
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Stupid question about custom reaction
« Reply #5 on: June 20, 2018, 10:19:59 pm »

If you're adding it to an existing world you have to regen (new world) or modify a reaction that was already there. You can't add new Reactions, and Permit new reactions when a world is made (save)
Logged

Gobolinno

  • Bay Watcher
    • View Profile
Re: Stupid question about custom reaction
« Reply #6 on: June 20, 2018, 10:56:51 pm »

If you're adding it to an existing world you have to regen (new world) or modify a reaction that was already there. You can't add new Reactions, and Permit new reactions when a world is made (save)

*OUCH!*
Ok... (Though now I have the problem that the game is kinda crashing to desktop (2 of 3 times O.o?) when creating a new world.
(I used the seed of the other one, I loved the place =P)

This is the one I used.... WHEN the game actually starts, the code works perfectly.
But I can't figure out why the crashes... O.O
(CPU: FX8320, windows 7, 64b).

Quote
[BUILDING:SMELTER:NONE]
[REAGENT:A:1:BOULDER:NONE:NONE:NONE]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:ADAMANTINE][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Stupid question about custom reaction
« Reply #7 on: June 20, 2018, 11:08:04 pm »

is this still purely a vanilla game? There are some "mod tweaks" that can just murder the game. Reactions are not one of them
Logged

Gobolinno

  • Bay Watcher
    • View Profile
Re: Stupid question about custom reaction
« Reply #8 on: June 20, 2018, 11:22:53 pm »

Lazy Newb pack. =).
No cave ins, No aquifers, windowed 800x600, FPS counter, Priority Above Normal (thought it would help?), and in dfhack only "Automatic job asignments" + "multilevel view" (will cancel that one as it says in the tooltip that can cause crashes... but I played all day yesterday in that "old" save without any problems).
Code: [Select]
[WORLD_GEN]
[TITLE:GATITO2 = 1543225]
[SEED:vj7zYK9k7O3B71tNLYwp]
[HISTORY_SEED:3G4ecS3riTRVB1N2RAbQ]
[NAME_SEED:SHjDt9XS8wzBeqJ1dgBe]
[CREATURE_SEED:oHWxeK5qJLD1a29p0Uqv]
[DIM:17:17]
[EMBARK_POINTS:1504]
[END_YEAR:1050]
[BEAST_END_YEAR:1050:-1]
[REVEAL_ALL_HISTORY:1]
[CULL_HISTORICAL_FIGURES:0]
[ELEVATION:1:400:401:401]
[RAINFALL:0:100:26:26]
[TEMPERATURE:25:75:26:26]
[DRAINAGE:0:100:26:26]
[VOLCANISM:0:100:26:26]
[SAVAGERY:0:100:26:26]
[ELEVATION_FREQUENCY:1:1:1:1:1:1]
[RAIN_FREQUENCY:1:1:1:1:1:1]
[DRAINAGE_FREQUENCY:1:1:1:1:1:1]
[TEMPERATURE_FREQUENCY:1:1:1:1:1:1]
[SAVAGERY_FREQUENCY:3:3:2:2:1:1]
[VOLCANISM_FREQUENCY:1:1:1:1:1:1]
[POLE:NORTH_OR_SOUTH]
[MINERAL_SCARCITY:100]
[MEGABEAST_CAP:0]
[SEMIMEGABEAST_CAP:1]
[TITAN_NUMBER:0]
[TITAN_ATTACK_TRIGGER:80:0:100000]
[DEMON_NUMBER:20]
[NIGHT_TROLL_NUMBER:10]
[BOGEYMAN_NUMBER:10]
[VAMPIRE_NUMBER:10]
[WEREBEAST_NUMBER:10]
[SECRET_NUMBER:20]
[REGIONAL_INTERACTION_NUMBER:20]
[DISTURBANCE_INTERACTION_NUMBER:20]
[EVIL_CLOUD_NUMBER:10]
[EVIL_RAIN_NUMBER:10]
[GENERATE_DIVINE_MATERIALS:1]
[GOOD_SQ_COUNTS:1:0:0]
[EVIL_SQ_COUNTS:1:0:0]
[PEAK_NUMBER_MIN:1]
[PARTIAL_OCEAN_EDGE_MIN:0]
[COMPLETE_OCEAN_EDGE_MIN:4]
[VOLCANO_MIN:1]
[REGION_COUNTS:SWAMP:0:0:0]
[REGION_COUNTS:DESERT:0:0:0]
[REGION_COUNTS:FOREST:0:0:0]
[REGION_COUNTS:MOUNTAINS:0:0:0]
[REGION_COUNTS:OCEAN:0:0:0]
[REGION_COUNTS:GLACIER:0:0:0]
[REGION_COUNTS:TUNDRA:0:0:0]
[REGION_COUNTS:GRASSLAND:0:0:0]
[REGION_COUNTS:HILLS:0:0:0]
[EROSION_CYCLE_COUNT:10]
[RIVER_MINS:1:1]
[PERIODICALLY_ERODE_EXTREMES:1]
[OROGRAPHIC_PRECIPITATION:1]
[SUBREGION_MAX:2750]
[CAVERN_LAYER_COUNT:3]
[CAVERN_LAYER_OPENNESS_MIN:0]
[CAVERN_LAYER_OPENNESS_MAX:100]
[CAVERN_LAYER_PASSAGE_DENSITY_MIN:0]
[CAVERN_LAYER_PASSAGE_DENSITY_MAX:100]
[CAVERN_LAYER_WATER_MIN:0]
[CAVERN_LAYER_WATER_MAX:100]
[HAVE_BOTTOM_LAYER_1:1]
[HAVE_BOTTOM_LAYER_2:1]
[LEVELS_ABOVE_GROUND:15]
[LEVELS_ABOVE_LAYER_1:5]
[LEVELS_ABOVE_LAYER_2:1]
[LEVELS_ABOVE_LAYER_3:1]
[LEVELS_ABOVE_LAYER_4:1]
[LEVELS_ABOVE_LAYER_5:2]
[LEVELS_AT_BOTTOM:1]
[CAVE_MIN_SIZE:5]
[CAVE_MAX_SIZE:25]
[MOUNTAIN_CAVE_MIN:1]
[NON_MOUNTAIN_CAVE_MIN:1]
[ALL_CAVES_VISIBLE:0]
[SHOW_EMBARK_TUNNEL:2]
[TOTAL_CIV_NUMBER:7]
[TOTAL_CIV_POPULATION:15000]
[SITE_CAP:18]
[PLAYABLE_CIVILIZATION_REQUIRED:1]
[ELEVATION_RANGES:36:72:36]
[RAIN_RANGES:0:0:0]
[DRAINAGE_RANGES:0:0:0]
[SAVAGERY_RANGES:72:36:9]
[VOLCANISM_RANGES:0:0:0]

I'm embarking alongside a river in the east side, just below a triangle (?). bottom right part of the section, in a 3x3 square.
1 appraiser, 1 diagnostician, 1 book keeper, 4 default dwarves.
2 female dogs, 1 male dog, 1 female cat, 1 male cat, 2 hens, 1 rooster.
items default and the rest of the points in drinks and plum helmets.
Change the name of the site to Abbeyroad (lol).
Change the group name to "The new dragons".
Change the symbol to "2 dragons and 1 eagle, the 2 dragons are falling, the 2 dragons are surrounding the eagle".
Press "e" to embark!
Game loads the message with the "Abbeyroad strikes the earth!" ending or something like that....

... and desktop.
Tried again.... desktop (didn't change anything).
Tried again.... worked fine (again, didn't change anything).

I'm kinda "afraid" of playing for long in this world...

Sigh... not my day, apparently.
(Neither here in DF, nor in War Thunder). =P
Logged