Renai Transportation


The most unhinged ways to transport items and yourself around your factory. Fling items around with Thrower Inserters, launch your trains off ramps, and soar through your base on electric ziplines!

Content
a day ago
0.18 - 2.0
43.3K
Transportation Logistics Trains

b Bug with modded planets

a month ago

I saved the game right before a bug, it consistently happens every time after reloading, and before that there was a lag spike every 2 mins and 2 secs exactly. the error I can't progress past, after trying a few things like deconstructing all the thrower inserters. I think this is also an incompatibly with the blueprint sandbox mod, however I have not tested this. this also happens in all versions I can load, (versions beyond 2.0.15 give an error before the game loads) here is the error:

The mod Renai Transportation (2.0.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event RenaiTranportation::on_nth_tick(1)
value for required field 'position' is missing
start traceback
[C]: in function 'spill_item_stack'
RenaiTransportation/script/event/FlyingItems.lua:512: in function
'handle_items'
RenaiTransportation/script/event/on-tick.lua:8 in function
<RenaiTransportation/script/event/on_tick.lua:5>

(that is the one in-game)

the one at the start of the game, with newer versions, is this:

Failed to load mods: Reached id limit for entity. The game can't conatin more than 65535 instances of this prototype due to hardcoded limits of the engine. see the log file for more detail.

if you are the mod creator, I can post the log file or a list of mods, or anything else you need.

a month ago

It looks like that first crash is coming from a pile up of items spilling onto the ground, if the code can't find a spot to spill the items it will crash. But apparently they added some new commands I can use to limit the spilling of items if no position is found. I'll add that to the next update.

About your other one, for each item in the game, I generate 3 projectile entities, a slow, normal, and fast projectile (the API does not let you adjust projectile speed dynamically in game) so if you're playing with a ton of mods with loads of items I guess I can see how you might reach 65535 entities. I dont know how that can be fixed.

a month ago

is there a way that you only generate the projectile entities under certain conditions? ideas: when it is crafted, when it is in a thrower inserter, etc. it could also be a mod setting in case it is buggy.

a month ago
(updated a month ago)

well, I need the second one to be fixed but it didn't happen in older versions and I'm not sure why, although you might be able to look at the difference and use that to your advantage.
also I tried all settings for spilled items (destroy, spill, and spill and mark) none worked.

a month ago

is there a way that you only generate the projectile entities under certain conditions? ideas: when it is crafted, when it is in a thrower inserter, etc. it could also be a mod setting in case it is buggy.

All the projectiles have to be generated as the game is loading, it doesnt let you generate new ones while the game is running. I used to do the projectiles entirely with sprites which CAN be generated on the fly. That would reduce the number of projectiles but would also make the game more laggy

a month ago

could you have it be a mod setting?

a month ago

also, how does there get to be more than 65k instances? wouldn't that require that there is more than 20k items throughout all the mods? It's not like I have every mod in existence, I have less than 100, a few of which are mods that add new planets, is it for some reason creating entities for signals or something?

a month ago

It's actually more than that, for the Item cannon I also generate a projectile for each item and quality combination because there is no way in the API to link information between the spawning and landing of item shells, meaning all the information has to be in the name lol. So if you just have the 5 base expansion qualities, that's 8 projectiles (3 thrown and 5 item shell) per item.

I just added a new setting in 2.2.4 that will disable the 3 thrown item projectiles per item and instead use sprites like I mentioned. You can try that to see if it frees up enough slots

a month ago

oh, it's because I had the infinite qualities mod, which adds an additional 250 qualities for every item, but I'm sure that setting will help someone because I don't really like that mod anyway, also thanks for the changes.

a month ago

oh, it's because I had the infinite qualities mod, which adds an additional 250 qualities for every item, but I still want to keep that mod, also thanks for the changes.

a month ago

lol that would explain it 😅

New response