[dead] Wagons: More train stuff
Re: [beta] Wagons: Electric Trains and Logicistics Carriages
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.
-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
Re: [beta] Wagons: Electric Trains and Logicistics Carriages
Good to hear. I have also been AWOL the last few days but I am back on track (haha, track) with the modAllotrope wrote:I'm aliiive.
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 madeAllotrope wrote:Here is the .blend for the accumulator carriage. http://www.filedropper.com/accum
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
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.
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.Allotrope wrote:How were you handling the liquid storage wagons? Attaching a storage tank to them essentially?
Awesome, let us know of any bugs or issues. It is pretty stable now but I am sure i missed someGewaltSam wrote:Looks good, I think I'll try this out
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:As for liquid carts, isnt that the point of using barrels? fill barrels, stick em on a cart, and empty at the destination.
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?starxplor wrote:Any chance it might be uploaded somewhere else at a later date?
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...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.
Re: [beta] Wagons: Electric Trains and Logicistics Carriages
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)JamesOFarrell wrote: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?starxplor wrote:Any chance it might be uploaded somewhere else at a later date?
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.
-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
Re: [beta] Wagons: Electric Trains and Logicistics Carriages
I can understand that, they are getting pretty big and they love tracking users.starxplor wrote:Just a personal aversion to google.
Yeah, this is the best option, i used to do it for everything but I have become lazy for hosting files.starxplor wrote:I run my own personal server...
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!
Re: [beta] Wagons: Electric Trains and Logicistics Carriages
I just want to see the oil wagons. 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.
-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
Re: [beta] Wagons: Electric Trains and Logicistics Carriages
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 wrote:I just want to see the oil wagons. 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.
Re: [beta] Wagons: Electric Trains and Logicistics Carriages
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. 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. )
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. )
Re: [beta] Wagons: Electric Trains and Logicistics Carriages
Can you make artilery wagon?
-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
Re: [beta] Wagons: Electric Trains and Logicistics Carriages
Artilery or turret wagon? Turrets should be easy and I was thinking of adding them.Colombo wrote:Can you make artilery wagon?
Re: [beta] Wagons: Electric Trains and Logicistics Carriages
Both:DJamesOFarrell wrote:Artilery or turret wagon? Turrets should be easy and I was thinking of adding them.Colombo wrote:Can you make artilery wagon?
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:)
-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
Re: [beta] Wagons: Electric Trains and Logicistics Carriages
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.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 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
Re: [beta] Wagons: Electric Trains and Logicistics Carriages
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.
-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
Re: [beta] Wagons: Electric Trains and Logicistics Carriages
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.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.
-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
Re: [beta] Wagons: More train stuff
Battle wagons are in, see the first post
Re: [beta] Wagons: Electric Trains and Logicistics Carriages
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.JamesOFarrell wrote: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.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.
Thanks for the update!
Re: [beta] Wagons: More train stuff
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.
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
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
Re: [beta] Wagons: More train stuff
Those look good! Much nicer than just the re-colored wagons.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.
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
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?
Re: [beta] Wagons: More train stuff
with textures:Allotrope wrote:Did you pack the textures into the .blend file?
http://www.filedropper.com/wagon6
Re: [beta] Wagons: More train stuff
Thanks!kolli wrote:with textures:Allotrope wrote:Did you pack the textures into the .blend file?
http://www.filedropper.com/wagon6
-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
Re: [beta] Wagons: More train stuff
Nice work, they look really good.kolli wrote:I've made some sprite sheets for the wagons.
Awesome, once they are done I'll sort the entity file out and post a new version.Allotrope wrote:I'll add them to the flatbed/wheels I have and let you see how they look.