Custom Technology Effects

Place to get help with not working mods / modding interface.
ChuckyVon
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Feb 27, 2017 4:23 am
Contact:

Custom Technology Effects

Post by ChuckyVon »

Hello! I've fairly recently gotten into modding this game.

My first mod was the Easy Mode Mod, it changed a lot of ratios and times and made the game move quicker, and made oil easier.

My new mod is called Primative. I want the player to start with nothing, and learn how to craft basic things before all the tech, similar to a survival game.

The current problem is that I want there to be a tech that allows the player to mine stone. So far, I have put stone into its own mining category, and attempted to use the control file to no avail.
What I need to do, is have a custom technology effect that changes the player's mining_categories property during the game.

I'm not sure if this is possible, or ever will be, but I hope so because I'm starting to get really into this mod.

Thank you so much if anybody can help!
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Custom Technology Effects

Post by bobingabout »

currently, mining category is locked to the entity controlled by the player... or just hardcoded if you're playing in god mode.

There is actually quite a lot of things added that you can use that aren't used by the base game. For example, I make use of the inventory expansion research.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
User avatar
Astrinaar
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Jan 26, 2017 11:19 am
Contact:

Re: Custom Technology Effects

Post by Astrinaar »

I do not know if this will work with player characters, but I made a sneaky workaround to add custom tech to my mod.
It's basically a technology that does nothing, but on_research_finished I replace the entities with another version with the updated stats.
This will be hell if you want a lot of individual custom technologies, as you'd have to create a ton of entities for all combinations of research levels. That's why I chose to only have 1 research line to add the custom upgrades I want, keeping the amount of different entities to a minimum.

I haven't played around with changing the player character, so might not work for you, and it most likely requires some extra code to copy the inventory over and such, but if you're really determined, you could try it out =p
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Custom Technology Effects

Post by darkfrei »

When you don't know how to dig, you can dig, but very slow. Dig speed parameter is easy to change.
Post Reply

Return to “Modding help”