[dead] Wagons: More train stuff

Topics and discussion about specific mods
Rahjital
Filter Inserter
Filter Inserter
Posts: 435
Joined: Thu May 29, 2014 10:44 am
Contact:

Re: [beta] Wagons: Electric Trains and Logicistics Carriages

Post by Rahjital »

Tank wagons would work with any liquid, including those added by mods, and would keep their temperature. Barrels lack this versatility - even if you add recipes just for filling and emptying barrels with the fluids added in vanilla Factorio, the crafting menu becomes rather cluttered, and mods like DyTech or Yuoki Industries would make that even worse. It's the thing I'm looking towards to the most in this mod, although the other things are really useful as well.
JamesOFarrell
Filter Inserter
Filter Inserter
Posts: 402
Joined: Fri May 23, 2014 8:54 am
Contact:

Re: [beta] Wagons: Electric Trains and Logicistics Carriages

Post by JamesOFarrell »

Allotrope wrote:I'm aliiive.
Good to hear. I have also been AWOL the last few days but I am back on track (haha, track) with the mod
Allotrope wrote:Here is the .blend for the accumulator carriage. http://www.filedropper.com/accum
OK, i worked on this today. I managed to get it sorted quite early on but I had to run a full render a few times and the latest version takes my machine about an hour to run. Here is a rundown of the changes I made

I set the animation end to be 256, a full rotation as the power wagon is not symmetrical. I set a keyframe at 257 that had a rotation on the Camera/Light node of Z:360. I also deleted the plane you were using for what I assume was a nicer light source, not because I didn't think it looked good but because I had no idea what it did until it was way too late and I didn't want to start from scratch again. I added a new dun and messed with the angle of the light. I also changed the render size to be 285x215 (what I thought was the same as the current wagon, it should be 218... whoops....) and the camera to a orthographic camera, not sure why put there is a factorio modding tutorial that says to use this camera so I did.

That sorted the animation out for the sprite but we were still missing the ground shadow. I moved the plane.02 (the ground) to a different scene and gave it a default material. I also enabled shadow rendering in it. Then i created a bunch of nodes so it overlays a transparent version of that shadow onto the ground. I found this image, it is a great example of how to set it up. I added an alpha scale into it as well as the shadow was way too harsh, you can see that in the blend file.

Once that was done I installed Spritify and ImageMagick (needed for spritify) and set it to 4 tiles across (rows) and 0 offset. I am not sure if this gets saved into the blend file or if you will have to do it yourself but you will defiantly need to install ImageMagick.

Once you render the animation and you get a huge sprite sheet you need to cut it up. You can use Image Magick if you are lazy like me, this command should do it, just run it in windows from the command line. You will need to be in the correct directory:

Code: Select all

convert sprites.png +gravity -scene 1 -crop 1140x1744  cargo-wagon-spritesheet-%d.png
Right, that covers the changes I made... I think, if I missed anything or you need my explanation to be clearer just let me know. I'll probably write a tutorial on this at some point, if i do is it OK to use your blend file as an example? This should work now for all the wagons you want to make if you leave the animation and the scenes alone, just replace the model. if the model you have is symmetrical you can get away with only half the frames so set the end of the animation to be 128 before rendering to save a buttload of time.

Download the blend file here and the updated version of Wagons (0.0.8) https://drive.google.com/file/d/0B5wuQo ... sp=sharing. The only change in 0.0.8 is the new sprite and the associated fixes to the entity for the new sprites. I'm not going to update the first post with it because I am not sure how happy you are with the model. I think it is ready and if you are happy I'll make the edit asap, just let me know what you want to do.
Allotrope wrote:How were you handling the liquid storage wagons? Attaching a storage tank to them essentially?
I basically was dropping an invisible tank when the carriage was stopped. It would connect to a near by pipe and fill up. Then when you started to move I read the amount of the liquid in the tank and stored it so it could be restored later. The issue come up that I can't actually write that value to the tank when it gets put down, there is just no function call for it sadly. I did think of a really dodgy hack involving an invisible assembly machine and a bunch of recipes that create liquids, then an invisible pump that had a really high pump rate to fill the storage tank but it was to dirty, even for my standards. I have not given up but unless I come up with less dodgy plan it will have to stay out.
GewaltSam wrote:Looks good, I think I'll try this out :)
Awesome, let us know of any bugs or issues. It is pretty stable now but I am sure i missed some
starxplor wrote:As for liquid carts, isnt that the point of using barrels? fill barrels, stick em on a cart, and empty at the destination.
It is at the moment but it feels like a quick fix. The development road map talks about oil wagons so I assume that will replace barrels long term. It would have been cool to see it working though.
starxplor wrote:Any chance it might be uploaded somewhere else at a later date?
Here is a non google drive link, it is version 0.0.8. The only change from 0.0.7 is a awesome new sprite. Any reason you don't like google drive? I use it because I have an account and I know the file won't disappear in 6 months time. Is there a better option?
Rahjital wrote:It's the thing I'm looking towards to the most in this mod, although the other things are really useful as well.
As mentioned above I can't think of an easy way to implement this. I will get off my ass and request the feature be added to the API asap but I am not sure if/when they will happen. Maybe I could try my dodgy idea with the crafting recipes...
starxplor
Fast Inserter
Fast Inserter
Posts: 164
Joined: Sun May 18, 2014 11:25 pm
Contact:

Re: [beta] Wagons: Electric Trains and Logicistics Carriages

Post by starxplor »

JamesOFarrell wrote:
starxplor wrote:Any chance it might be uploaded somewhere else at a later date?
Here is a non google drive link, it is version 0.0.8. The only change from 0.0.7 is a awesome new sprite. Any reason you don't like google drive? I use it because I have an account and I know the file won't disappear in 6 months time. Is there a better option?
Just a personal aversion to google. This includes blocking cookies and scripts from any domain associated with google, which breaks things like google drive/docs, even if the uploader makes a conscious effort to not require a google account(by default, google docs require a google account to view unless specified otherwise by uploader)

As for alternatives, I do not know. I run my own personal server that I can drop into the few things I need to get out there so I have never had to look into file upload services.

I got the mod downloaded, thanks for the link. I will be trying it out with a new world either later tonight or tomorrow depending on how many biter bases I can wipe out in my current world.
JamesOFarrell
Filter Inserter
Filter Inserter
Posts: 402
Joined: Fri May 23, 2014 8:54 am
Contact:

Re: [beta] Wagons: Electric Trains and Logicistics Carriages

Post by JamesOFarrell »

starxplor wrote:Just a personal aversion to google.
I can understand that, they are getting pretty big and they love tracking users.
starxplor wrote:I run my own personal server...
Yeah, this is the best option, i used to do it for everything but I have become lazy for hosting files.

Right. I have uploaded v0.0.9 and updated the first post, non google drive link is available as well. Now with Requester Carriages which were not possible before 0.10. Sadly I requested the liquid API change to late so we didn't get to see it in this version but there is another user, Rahjital, who is also after this change and seems to be popping up to ask the devs about it in a few threads so I feel pretty comfortable that something will happen soon. Thanks Rahjital!
Rahjital
Filter Inserter
Filter Inserter
Posts: 435
Joined: Thu May 29, 2014 10:44 am
Contact:

Re: [beta] Wagons: Electric Trains and Logicistics Carriages

Post by Rahjital »

I just want to see the oil wagons. :D I already grew completely dependent on the logistic trains to resupply my defensive outposts and gas stations, and with a tank wagons I could finally separate rafineries from production areas. I don't want to bug the devs too much about including the liquid interface, but if it's not in the next bugfix update, I'll try to make sure they know about it.
JamesOFarrell
Filter Inserter
Filter Inserter
Posts: 402
Joined: Fri May 23, 2014 8:54 am
Contact:

Re: [beta] Wagons: Electric Trains and Logicistics Carriages

Post by JamesOFarrell »

Rahjital wrote:I just want to see the oil wagons. :D I already grew completely dependent on the logistic trains to resupply my defensive outposts and gas stations, and with a tank wagons I could finally separate rafineries from production areas. I don't want to bug the devs too much about including the liquid interface, but if it's not in the next bugfix update, I'll try to make sure they know about it.
I am glad I am not the only one using this mod. I only wrote it as an execute to play with the API and didn't expect to use the mod much but I have found the features really useful. I now run all my trains electric and load/unload them via logistics bots. Because there is no need for inserters train stations can be compact. You have to re-think how you use your logistics network but it is pretty awesome. I have a new mod that I am playing with for shits and giggles at the moment using some of the ideas from wagons to make setting up outposts even easier. Hopefully I'll have an initial release soon.
Rahjital
Filter Inserter
Filter Inserter
Posts: 435
Joined: Thu May 29, 2014 10:44 am
Contact:

Re: [beta] Wagons: Electric Trains and Logicistics Carriages

Post by Rahjital »

I still tend to use inserters for unloading trains in stations, since I usually unload trains straight into furnaces and assembly lines and inserters are both cheaper and more reliable for that. Or maybe it's just because I like my train stations big. :D What I really love about this mod is all the new stuff it allows me to do, things like needing just some rails and a stop next to anything I want repaired, or not having to make a massive system for refuelling my gas stations automatically by trains.

The pocket bots mod is really cool as well, really saves one the need to carry a roboport with himself just to clear a road through a forest. (among other useful things, of course. :) )
Colombo
Long Handed Inserter
Long Handed Inserter
Posts: 76
Joined: Mon May 19, 2014 11:25 am
Contact:

Re: [beta] Wagons: Electric Trains and Logicistics Carriages

Post by Colombo »

Can you make artilery wagon?
JamesOFarrell
Filter Inserter
Filter Inserter
Posts: 402
Joined: Fri May 23, 2014 8:54 am
Contact:

Re: [beta] Wagons: Electric Trains and Logicistics Carriages

Post by JamesOFarrell »

Colombo wrote:Can you make artilery wagon?
Artilery or turret wagon? Turrets should be easy and I was thinking of adding them.
Colombo
Long Handed Inserter
Long Handed Inserter
Posts: 76
Joined: Mon May 19, 2014 11:25 am
Contact:

Re: [beta] Wagons: Electric Trains and Logicistics Carriages

Post by Colombo »

JamesOFarrell wrote:
Colombo wrote:Can you make artilery wagon?
Artilery or turret wagon? Turrets should be easy and I was thinking of adding them.
Both:D

Artilery could be good alternative to tower creep or megaultrapowerarmor. Just make armoured train and rails near enemy base and use it to shell spawners while gunning down bitters with turret wagons:)
JamesOFarrell
Filter Inserter
Filter Inserter
Posts: 402
Joined: Fri May 23, 2014 8:54 am
Contact:

Re: [beta] Wagons: Electric Trains and Logicistics Carriages

Post by JamesOFarrell »

Colombo wrote:Both:D

Artillery could be good alternative to tower creep or megaultrapowerarmor. Just make armoured train and rails near enemy base and use it to shell spawners while gunning down bitters with turret wagons:)
I think Artillery would be awesome but I think to limit it to wagons would be a waste. this is a great post about implementing Artillery in a way that would work in factorio. I think the different shells for range make it a little too complicated but I like the idea of having to manually aim your shots. Now, if I was going to mod artillery into the game it would be like that.

I will do laser, gun and missile carriages though. The code for adding them is mostly done. I should just be able to add a few entities and see them in game, it also gives me a change to play with projectiles which I have been looking for an excuse to do
starxplor
Fast Inserter
Fast Inserter
Posts: 164
Joined: Sun May 18, 2014 11:25 pm
Contact:

Re: [beta] Wagons: Electric Trains and Logicistics Carriages

Post by starxplor »

Are they going to be auto targeting and work while moving? it could be bad to have a train go by a random roaming band of bitters, spit a few lasers, and then get trashed when the bitters catch up after it stops at the nearby station to load up.
JamesOFarrell
Filter Inserter
Filter Inserter
Posts: 402
Joined: Fri May 23, 2014 8:54 am
Contact:

Re: [beta] Wagons: Electric Trains and Logicistics Carriages

Post by JamesOFarrell »

starxplor wrote:Are they going to be auto targeting and work while moving? it could be bad to have a train go by a random roaming band of bitters, spit a few lasers, and then get trashed when the bitters catch up after it stops at the nearby station to load up.
I hadn't actually thought about it. The mod mostly works by spawning things when the wagons are stopped so that is really the best option. If I try to do it while it is moving the projectiles would come from very strange locations.
JamesOFarrell
Filter Inserter
Filter Inserter
Posts: 402
Joined: Fri May 23, 2014 8:54 am
Contact:

Re: [beta] Wagons: More train stuff

Post by JamesOFarrell »

Battle wagons are in, see the first post
starxplor
Fast Inserter
Fast Inserter
Posts: 164
Joined: Sun May 18, 2014 11:25 pm
Contact:

Re: [beta] Wagons: Electric Trains and Logicistics Carriages

Post by starxplor »

JamesOFarrell wrote:
starxplor wrote:Are they going to be auto targeting and work while moving? it could be bad to have a train go by a random roaming band of bitters, spit a few lasers, and then get trashed when the bitters catch up after it stops at the nearby station to load up.
I hadn't actually thought about it. The mod mostly works by spawning things when the wagons are stopped so that is really the best option. If I try to do it while it is moving the projectiles would come from very strange locations.
Spawning when stopped is great, so a player can stop a train mid-route if they want to screw with some bitters, but an automated train wont lure them back to the base.

Thanks for the update!
kolli
Inserter
Inserter
Posts: 27
Joined: Tue Jun 10, 2014 11:23 am
Contact:

Re: [beta] Wagons: More train stuff

Post by kolli »

I hope I'm not stepping on anyones toes here, but I've made some sprite sheets for the wagons. If you like them use them, if not don't. I don't mind either way.
Image
Yellow, red, blue, purple and black(grey) sprites:
http://www.filedropper.com/wagon-sprites
The sprites are not totally symmetrical nor perfectly aligned, and also a bit too small, so if you can be arsed to fix that and re-render the blend-file is included.
You might wanna add some wheels too :lol:
User avatar
Allotrope
Burner Inserter
Burner Inserter
Posts: 15
Joined: Sat May 10, 2014 1:59 am
Contact:

Re: [beta] Wagons: More train stuff

Post by Allotrope »

kolli wrote:I hope I'm not stepping on anyones toes here, but I've made some sprite sheets for the wagons. If you like them use them, if not don't. I don't mind either way.
Image
Yellow, red, blue, purple and black(grey) sprites:
http://www.filedropper.com/wagon-sprites
The sprites are not totally symmetrical nor perfectly aligned, and also a bit too small, so if you can be arsed to fix that and re-render the blend-file is included.
You might wanna add some wheels too :lol:
Those look good! Much nicer than just the re-colored wagons. :P

I'll add them to the flatbed/wheels I have and let you see how they look.

Edit: Did you pack the textures into the .blend file?
kolli
Inserter
Inserter
Posts: 27
Joined: Tue Jun 10, 2014 11:23 am
Contact:

Re: [beta] Wagons: More train stuff

Post by kolli »

Allotrope wrote:Did you pack the textures into the .blend file?
with textures:
http://www.filedropper.com/wagon6
User avatar
Allotrope
Burner Inserter
Burner Inserter
Posts: 15
Joined: Sat May 10, 2014 1:59 am
Contact:

Re: [beta] Wagons: More train stuff

Post by Allotrope »

kolli wrote:
Allotrope wrote:Did you pack the textures into the .blend file?
with textures:
http://www.filedropper.com/wagon6
Thanks!
JamesOFarrell
Filter Inserter
Filter Inserter
Posts: 402
Joined: Fri May 23, 2014 8:54 am
Contact:

Re: [beta] Wagons: More train stuff

Post by JamesOFarrell »

kolli wrote:I've made some sprite sheets for the wagons.
Nice work, they look really good.
Allotrope wrote:I'll add them to the flatbed/wheels I have and let you see how they look.
Awesome, once they are done I'll sort the entity file out and post a new version.
Post Reply

Return to “Mods”