demipixel / autotorio

autotorio.com
autotorio.vercel.app
GNU General Public License v3.0
67 stars 17 forks source link

Support for bobs mods #34

Open Telokis opened 5 years ago

Telokis commented 5 years ago

Hey!

I tried generating an oil outpost using bobs pumpjacks but it didn't work. For reference, here is the string I used: 0eNqdl9uO2jAQht9lruOK8SEJeZVVVXGwWLcQoiSsFqG8ewOsnUpNtP9wBUHmiw/zzYxvtD1efNOGuqfqRmF3rjuq3m7UhUO9Od5/66+Np4pC70+UUb053Z+2561qLqfm92b3RzENGYV67z+p4uFnRr7uQx/8k/R4uP6qL6etb8cBS4yMmnM3/u1c3986oqz94TK6UqXM+G0Ysv9YGmZpjixdzrMMzkrz0vnIymgfWr97DrAzZAuTTZnIFiE7mOym9TuEnONznsgGIRf4+ecyconP2SUyI+Q1vs8mkVcImVc4OpJ5DZH5hSPkEkLj3imd0MW8d4yLVyQWZAfbF0INROPmqQm9WtiB/IUYwKILl41ZiMZt09O5QbYxrpsxMrTGdVPriF4oGHoSrOvbTTi892r8OM6gXP5FmuVIbEqlZ8Emjduk2H0HswJYKl1uASZQ5h6CT9hS4c/lSQOqe7p4IawxcilYfwprs7B+XBFOcayRaRqBISl+oIxhBAUpzhmbspZvBpTlDS5TTPJQQ2hwr1iLwE6e3qCKb3I5mLHDK+SVFCTjwsV0w1CfaXD5VMzXDOUIi8sX0y3Wr1jcvdgHPPq178GCK1g6PijkrBEfH3ZNsAL7YobTUMRZJ2+3zAx5vEE/btvVP5fzjD582z0G5GWhdcnrVaGH4S9S7gFI

The error is Error: bob_pumpjack_1 does not exist! You can add it by putting it into entityData..

It would be nice to be able to choose exactly what entities are generated. For example, I would prefer using Bob's fluid tanks mk3 instead of the vanilla ones. Same for turrets and so on. What about defining some kind of alias where (advanced) users can define entity data for custom objects/mods?

For example, I could write the json file defining all Bob's pumpjacks and make it public or even give it to you so that you can incorporate it inside Autotorio.

demipixel commented 5 years ago

Do these entities have different sizes/different connections? For the most part it should be pretty easy to add support for them, the only issue is if they start to get bigger/smaller so we have to change the layout for them.

Telokis commented 5 years ago

Most of the mk2, mk3, mk4, ... from Bob's mods are simply better versions of the vanilla (named mk1 when the mods are used) machines. They are faster and consume more but they keep all the properties of the vanilla one.

What could be more complicated is for underground belts and poles since those have bigger ranges. Maybe the generator can be smarter if we give him the range of poles/underground belts we want to use?

gigajum commented 5 years ago

I just wanted to open another issue and suggest that every used entity is exchangeable with a given name from a mod.

As I also enjoy plaing with bob's mods :) it's a bit annoying create the string with this tool and then use upgrade planer ingame or decode the generated string and replace the entity names by hand.

I would not care about different sizes/different connections. To support if they are bigger or smaller/have other connections it screws up the code more then it is currently.

Non-modable entities i have found so far:

If we can give the oil outpost generator a string of a modded pump jack he could use that instead of the default one and continue generating.