A list of questions I'm unsure about for my mod.
Posted: Mon May 11, 2020 2:09 am
I have a ton of questions, so I figured I'd ask here.
I'm working on a mod, probly ambitious for my current abilities, I dunno, but basically, I don't know much lua, I get the syntax of it all, more or less, and I'm learning just how versatile all the properties are and how they work, but for actual deep-dive programming, I'm still pretty much a noob.
Here's the context: My second mod, I'm working on a mod that adds an alternate faction to Factorio. Completely different technologies, recipes, items, entities, are basically how it is, with a different take on Factorio's general game flow and progression. I'm planning to maybe add multiple different factions, and so I wanna ask...
1. Is there a shortcut to disabling all base game technologies and recipes for a specific force, or do I have to disable each technology/recipe one at a time?
2. I know this is more complex, but how do I make it so that a Player, upon starting a normal singleplayer game, let alone a multiplayer one, can choose a force, and thus be given different starting items based on said force? I ask because each Force will be it's own Faction, which sometimes may have no use for things like drills or furnaces. I was personally thinkig it'd be like a "join/start the game, game asks the new player which force to join via a menu that pops up, not unlike Bob's Character Classes mod, except with a Force instead of something fully original, and they can click one of the premade forces I've already programmed in.
3. Can I create custom tech modifiers? I want to say... increase wall HP with technology, instead of going the traditional route of having different tiers of walls that earlier ones upgrade to as ingredients, or increase Drill mining speed, reduce consumption of assembling machines, or even modifying recipes slightly using tech bonuses. Also I don't know of many that do this, but can you add productivity or speed bonuses to assembling machines via technologies?
Or even maybe adding module slots to specific buildings or increasing the power production of structures, or improve the neighbor bonus between Reactors.
I know some mods add productivity to labs, hp to players, and increases crafting speed of players, but i just wanted to ask anyways, you never know if the answer will be different.
4. Can modules add more than just speed, productivity, consumption, or pollution modifiers? I have one idea that Wall hp could be improved via modules, since the faction features modularity in the original writing of it for a more complicated project (an RTS, and as world lore), also could I make it so that equipping a module, could give the building an energy shield? I know shields exist in the form of the Turret Shield mod, tho I'm unsure if it can be made into a Module effect, or if Module effects are a limited thing.
Other ideas would include modules that could allow a building ot generate power if it previously couldn't, or to increase the generation/neighbor bonus of Reactors.
5. Can I disable out-of-combat regeneration for only specific forces and maybe even add a slowly ticking de-generation, to make some sort of hunger system?
6. Can different forces have different character animations/graphics? Like to have the "Player" force have the normal, but to then have say... the "militaris" force to have a totally different animation?.
7. Is it possible to make it so that a building can generate a sort of fog that can damage buildings can immune to it, generated just like pollution, but it's also corrosive, so it damages units and buildings?
8. Can you add a charging state to a building? I ask because I'd like to make something like Red Alert 1's Tesla Tower in that you can hear it audibly charge up before shooting (like C&C Red Alert 1's Tesla Coil), or to add a wind-up time to a gun turret where the attack would start, but slowly, or weakly, but could grow stronger over time (sorta like a Starcraft 2 Void Ray)?
9. Also finally, and I'm sure this is a no, but would it be theoretically be possible to create a logsitics system based solely on teleportation of items to buildings that need it, within specific ranges? This isn't too needed, already planning around it, but if it could be done, that would definitely be a plan of mine.
My idea would essentially be that there'd be some kind of central storage that each section of a base would have, depending purely on power grid connections. Essentially drills would, instead of producing an item into the world, it would instantly just put them in this global storage, which furnaces could pull from based on what they're requesting and assembling machines would pull from it based on the recipe they're set to craft. Specific things would add slots to this storage system, such as the player themselves, adding one slot, a starting building I have already implemented into my mod, the Survival pod, would add another, with later buildings adding much more, like 10 or 20 slots each, adding said slot so long as they're within the powered range of an electric pole-type entity, not that they require power.
And the logistics system would be constrained within this power grid, a drill outside of it, even with a different power source, wouldn't be able to add anything to that storage system, as each separate power grid would have a different instance of this storage system.
Pretty sure that isn't possible in Factorio, and if it was, the coding required for it would be probably so ridiculous in scope that it'd require a developer's skill, so here's the next question...
10. Is it possible to have a lab and an assembling machine in one entity? I have a very strong feeling the answer is "No" since those are likely two different entity types. There might be hacky ways of doing it, like apparently an entity can spawn additional entities with different aspects, but that's both beyond me, and I'm unsure how it'd even work anyways.
I mostly ask because the Survival Pod was originally designed to be not just an assembling machine, but a very weak lab, and also a furnace of sorts that could convert resources into a single, centralized resource that the faction uses to create all of it's other stuff. Basically an entity that would be the single-most important part of your base until you can get the more specialized, and more powerful/spammable buildings later, able to basically do a tiny bit of everything, just not very well.
That question is also really more just a "It'd be cool if" that I've planned around, it's instead just an assembling machine with the previously implied furnace resource recipes instead just being ones that are usable only by specific assembling machines, ie. the Survival Pod, and a Furnace that's only a furnace by name and appearance, it's the simplest solution tbh.
11. My mod is designed around being played on Deathworlds, how's Deathtorio for a name? It's essentially going to play like Factorio, except it's kinda also a different thing all it's own too. Doesn't mean the stuff will be so powerful that it makes Deathworlds easy, but more like each faction will become self-sufficient at differing times, so running out of say... Iron doesn't mean they're doomed.
Personally, I know how ridiculously daunting this idea is, but I'm chipping away at it (which is really all anyone can ever do with any large project), so any and all help is appreciated, welcome, and honestly, I'd be extremely grateful. I'm still new at programming and all that.
I also haven't tested the mod yet, it doesn't have enough graphics to make that possible yet (I only have 2 rough graphics for things probly at the wrong angles, kinda only started a week and a half ago). I'm also unsure what protocol is when it comes to this kinda thing around here, also.
I'm working on a mod, probly ambitious for my current abilities, I dunno, but basically, I don't know much lua, I get the syntax of it all, more or less, and I'm learning just how versatile all the properties are and how they work, but for actual deep-dive programming, I'm still pretty much a noob.
Here's the context: My second mod, I'm working on a mod that adds an alternate faction to Factorio. Completely different technologies, recipes, items, entities, are basically how it is, with a different take on Factorio's general game flow and progression. I'm planning to maybe add multiple different factions, and so I wanna ask...
1. Is there a shortcut to disabling all base game technologies and recipes for a specific force, or do I have to disable each technology/recipe one at a time?
2. I know this is more complex, but how do I make it so that a Player, upon starting a normal singleplayer game, let alone a multiplayer one, can choose a force, and thus be given different starting items based on said force? I ask because each Force will be it's own Faction, which sometimes may have no use for things like drills or furnaces. I was personally thinkig it'd be like a "join/start the game, game asks the new player which force to join via a menu that pops up, not unlike Bob's Character Classes mod, except with a Force instead of something fully original, and they can click one of the premade forces I've already programmed in.
3. Can I create custom tech modifiers? I want to say... increase wall HP with technology, instead of going the traditional route of having different tiers of walls that earlier ones upgrade to as ingredients, or increase Drill mining speed, reduce consumption of assembling machines, or even modifying recipes slightly using tech bonuses. Also I don't know of many that do this, but can you add productivity or speed bonuses to assembling machines via technologies?
Or even maybe adding module slots to specific buildings or increasing the power production of structures, or improve the neighbor bonus between Reactors.
I know some mods add productivity to labs, hp to players, and increases crafting speed of players, but i just wanted to ask anyways, you never know if the answer will be different.
4. Can modules add more than just speed, productivity, consumption, or pollution modifiers? I have one idea that Wall hp could be improved via modules, since the faction features modularity in the original writing of it for a more complicated project (an RTS, and as world lore), also could I make it so that equipping a module, could give the building an energy shield? I know shields exist in the form of the Turret Shield mod, tho I'm unsure if it can be made into a Module effect, or if Module effects are a limited thing.
Other ideas would include modules that could allow a building ot generate power if it previously couldn't, or to increase the generation/neighbor bonus of Reactors.
5. Can I disable out-of-combat regeneration for only specific forces and maybe even add a slowly ticking de-generation, to make some sort of hunger system?
6. Can different forces have different character animations/graphics? Like to have the "Player" force have the normal, but to then have say... the "militaris" force to have a totally different animation?.
7. Is it possible to make it so that a building can generate a sort of fog that can damage buildings can immune to it, generated just like pollution, but it's also corrosive, so it damages units and buildings?
8. Can you add a charging state to a building? I ask because I'd like to make something like Red Alert 1's Tesla Tower in that you can hear it audibly charge up before shooting (like C&C Red Alert 1's Tesla Coil), or to add a wind-up time to a gun turret where the attack would start, but slowly, or weakly, but could grow stronger over time (sorta like a Starcraft 2 Void Ray)?
9. Also finally, and I'm sure this is a no, but would it be theoretically be possible to create a logsitics system based solely on teleportation of items to buildings that need it, within specific ranges? This isn't too needed, already planning around it, but if it could be done, that would definitely be a plan of mine.
My idea would essentially be that there'd be some kind of central storage that each section of a base would have, depending purely on power grid connections. Essentially drills would, instead of producing an item into the world, it would instantly just put them in this global storage, which furnaces could pull from based on what they're requesting and assembling machines would pull from it based on the recipe they're set to craft. Specific things would add slots to this storage system, such as the player themselves, adding one slot, a starting building I have already implemented into my mod, the Survival pod, would add another, with later buildings adding much more, like 10 or 20 slots each, adding said slot so long as they're within the powered range of an electric pole-type entity, not that they require power.
And the logistics system would be constrained within this power grid, a drill outside of it, even with a different power source, wouldn't be able to add anything to that storage system, as each separate power grid would have a different instance of this storage system.
Pretty sure that isn't possible in Factorio, and if it was, the coding required for it would be probably so ridiculous in scope that it'd require a developer's skill, so here's the next question...
10. Is it possible to have a lab and an assembling machine in one entity? I have a very strong feeling the answer is "No" since those are likely two different entity types. There might be hacky ways of doing it, like apparently an entity can spawn additional entities with different aspects, but that's both beyond me, and I'm unsure how it'd even work anyways.
I mostly ask because the Survival Pod was originally designed to be not just an assembling machine, but a very weak lab, and also a furnace of sorts that could convert resources into a single, centralized resource that the faction uses to create all of it's other stuff. Basically an entity that would be the single-most important part of your base until you can get the more specialized, and more powerful/spammable buildings later, able to basically do a tiny bit of everything, just not very well.
That question is also really more just a "It'd be cool if" that I've planned around, it's instead just an assembling machine with the previously implied furnace resource recipes instead just being ones that are usable only by specific assembling machines, ie. the Survival Pod, and a Furnace that's only a furnace by name and appearance, it's the simplest solution tbh.
11. My mod is designed around being played on Deathworlds, how's Deathtorio for a name? It's essentially going to play like Factorio, except it's kinda also a different thing all it's own too. Doesn't mean the stuff will be so powerful that it makes Deathworlds easy, but more like each faction will become self-sufficient at differing times, so running out of say... Iron doesn't mean they're doomed.
Personally, I know how ridiculously daunting this idea is, but I'm chipping away at it (which is really all anyone can ever do with any large project), so any and all help is appreciated, welcome, and honestly, I'd be extremely grateful. I'm still new at programming and all that.
I also haven't tested the mod yet, it doesn't have enough graphics to make that possible yet (I only have 2 rough graphics for things probly at the wrong angles, kinda only started a week and a half ago). I'm also unsure what protocol is when it comes to this kinda thing around here, also.