Vehicle Wagon 2


Take with you a fully charged and battle-ready vehicle and take it on a rail trip. --------------------------------------------------------------------------------- Возьмите с собой полностью заряженный и готовый к бою транспорт и отправьте его в путешествие по железной дороге.

Content
5 days ago
0.17 - 2.1
28.5K
Transportation Trains Combat

b Factorio 2.1 support? :-)

a month ago

The title says it all. :-)

a month ago

It's coming, I'm taking next week off of work in part to finish updating mods. I have a lot of them. :)

a month ago

Thank you! No pressure, BTW. I just wanted to poke you in case you didn't realize there was a new release of Factorio base. :-)

a month ago

I'm glad to know you're looking forward to it!

a month ago
(updated a month ago)

I tried just fiddling the info.json file. That was not sufficient. I also had to cut a section out of the data-final-fixups.lua. Apparently cargo wagon entities have lost their max_speed attribute. I don't know where it went. That code was apparently for compatibility with some mod that modifies this attribute, a mod I don't have. So I felt fine diking out that code with if false then. :-) Just figured I'd warn you.

a month ago

I've got a whole list of things to look at. I'm partway through the library miss it depends on. There's a ton of changes everywhere.

a month ago

Another issue I noticed, and this is that even in 2.0, when youload a tank with expanded inventory, weird things happen. It cuts the inventory size down to that of a normal tank. The tank's inventory is expanded for two reasons. The first is that it's legendary. The second is that it has toolbelts in the equipment grid.

When I removed and added the toolbelts back again, the inventory went back to something like it's original size. It may have been smaller by the difference between the legendary and common tank inventory size, but I don't think so.

a month ago
(updated a month ago)

Thanks for the report. I'd like to fix any bugs in 2.0 before I upgrade. I haven't played much with quality so please let me know anything else you see!

a month ago

So, the Vehicle Wagon still truncates inventory. Here's a series of screenshots to show the effect:

Tank inventory before loading onto wagon: https://steamcommunity.com/sharedfiles/filedetails/?id=3756890073
Tank inventory after unloading from wagon: https://steamcommunity.com/sharedfiles/filedetails/?id=3756890985
Tank equipment grid: https://steamcommunity.com/sharedfiles/filedetails/?id=3756889549

Notice that the tank equipment grid contains some toolbelts. These toolbelts will increase the tank inventory size. They're a new equipment grid items from Factorio 2.0

a month ago

https://forums.factorio.com/viewtopic.php?t=134621&sid=ff226b46bdc68de5aac57c7b95b86e72

Waiting for 2.1.10 with the fix for the bug in the engine (that was easier than implementing a workaround on my end :)

a month ago

I'll probably release the workaround for 2.0 anyways, since it's easy to transfer the inventory to script bucket, teleport the tank, remove and replace the toolbelt, and transfer the inventory back. LMAO

a month ago

Hah! chuckle Well, I'm glad you found that bug. I haven't written any mods involving teleporting anything around, but I might someday, and you just saved every future person who writes that sort of mod a whole ton of confusion and dealing with weirdness. :-)

Alright, I'll wait patiently for the update. I really should write my version of the new BNW mod so I can flush out any latent bugs that would affect it while they're still inclined to pay attention to Factorio. Though, I sort of suspect the devs will forever be willing to spend time to fix bugs on this game, just, perhaps, not with the same alacrity as now.

a month ago

I think there was a bug awhile back where if a moving tank was picked up (I think you can make construction drones do this in 2.0) it's speed would be stored and so when it was placed again it would continue moving. :-)

a month ago

Oh yeah, that was fixed early in 2.0. I think it was specifically a corpse ghost created when a moving tank was destroyed that would save the speed, and when it was revived by a bot or the player it would start moving (and run over the player). Didn't affect Vehicle Wagon.

a month ago

My point in bringing it up wasn't about it affecting this mod, more about the fact that overall tank state is trickier to store and has more fun edge cases than you might expect. :-)

While I was mostly sharing an amusing story, I'm now wondering what would happen if someone timed a winch operation just right to load a tank onto a vehicle wagon while the tank was moving past the wagon? Would it continue moving on the invisible surface you teleport it to? Would that make it hard to find when it had to be teleported back? :-) Could it end up crashing into other vehicles that had been teleported to that same surface (presuming that you don't create a surface per wagon, since that would be really wasteful of surfaces).

a month ago

I already have a check for vehicle.speed==0 :-)

I just spend 2 hours trying my workaround, only to discover that having the script swap the equipment doesn't actually fix the inventory bonus. I can't spend any more time to figure this out so I'm just waiting for the engine fix to come out.

a month ago

That's really interesting, and sounds like another bug, honestly. It shouldn't matter how the toolbelt gets into the grid, if it's there, the inventory should have a bonus. Maybe the fix for the teleportation bug will also fix this bug. They may stem from the same root cause, or they may rework the code so that the inventory size bonus and grid contents are more closely linked.

13 days ago

BTW, the update came out, and it works now. :-) Thanks!

New response