Page 1 of 2

[MOD 0.12.x] Cursed UG - v1.0.0

Posted: Tue Jun 09, 2015 3:59 pm
by L0771
- Cursed underground transport -
  • Name: Cursed UG
  • Version: 1.0.0
  • Factorio-Version: 0.12.0
  • Description: No one likes a train crashing you, no one divide the factory just for a train, with this mod you can put the train under the factory!
  • License: BY-NC-ND
  • Release: 2015-07-27
  • Download-Url: Download
  • Website: Here
  • Source: Click
  • Dependencies: ["base"]
  • Category: Gameplay
  • Tags: Transport, Train, Car, Underground, Underwater, Under, Over
Image
LONG DESCRIPTION
Changelog

Re: [MOD 0.11.22] Cursed UG - 0.0.1

Posted: Wed Jun 10, 2015 9:31 am
by StanFear
can you still use inserters on it ?
and if so do inserters might take from the train when they should take from an assembling machine ?

or is theer a rail piece to bring the train back to the top of the map wher you can then do all you're used to ?

Re: [MOD 0.11.22] Cursed UG - 0.0.1

Posted: Wed Jun 10, 2015 10:00 am
by vampiricdust
Hey just downloaded the 0.0.1 version. I found some problems and decided to help out since I just really like this idea. Though I was hoping for something new to make these cursed items. Clever item & entity creation. Playing with it now :P

Fixes

Re: [MOD 0.11.22] Cursed UG - 0.0.1

Posted: Wed Jun 10, 2015 11:10 am
by vampiricdust
StanFear wrote:can you still use inserters on it ?
and if so do inserters might take from the train when they should take from an assembling machine ?

or is theer a rail piece to bring the train back to the top of the map wher you can then do all you're used to ?
I've been playing with it and yes you can interact with it normally, but also, like a normal train it can only be used by an inserter if it is stopped.

It pretty much behaves exactly as the vanilla trains. The only difference is that it can be placed on top of nearly any entity, gates being a notable exception as they will turn the gates to rail gates. You can interact completely normally as it only looks like the collision mask was removed. The engine does appear to block inserters from placing items on belts while it is stopped, but the cargo wagon does not appear to affect chests, belts, or buildings (the insertion to or removal from).

The only really issue is that it cannot be placed on normal rail nor interact with normal rail, but it does block normal railways. To clarify, if you run this cursed track through a normal section of track, it needs signals just like it was normal track & if the cursed train is in the block, no normal trains will cross the signal block, same goes for the cursed train. It's good alternative railway & not really good to use in tandem over the same areas. This is really useful as an internal base rail to move stuff around without bots so much.

Re: [MOD 0.11.22] Cursed UG - 0.0.1

Posted: Wed Jun 10, 2015 5:21 pm
by FishSandwich
Brilliant mod! Definitely claiming for a spotlight. :D

Re: [MOD 0.11.22] Cursed UG - 0.0.2

Posted: Wed Jun 10, 2015 8:42 pm
by L0771
StanFear wrote:can you still use inserters on it ?
and if so do inserters might take from the train when they should take from an assembling machine ?

or is theer a rail piece to bring the train back to the top of the map wher you can then do all you're used to ?
It's a train, you can use like a train, but don't crash with stuff.
Test it, but a inserter can't take a item inside the train in movement, i think isn't just test, have 16 ways, maybe 8 ways take from the train and 8 from the assembler machine. Something like this.
vampiricdust wrote:Hey just downloaded the 0.0.1 version. I found some problems and decided to help out since I just really like this idea. Though I was hoping for something new to make these cursed items. Clever item & entity creation. Playing with it now :P
Thanks you, the name is just to take all my mods from the hands, like a big community of L0771's mods :?:
Added for version 0.0.2
vampiricdust wrote:The only really issue is that it cannot be placed on normal rail nor interact with normal rail, but it does block normal railways. To clarify, if you run this cursed track through a normal section of track, it needs signals just like it was normal track & if the cursed train is in the block, no normal trains will cross the signal block, same goes for the cursed train.
hmmm is possible, this train can go over a normal train, but can't crash players, entities, bitters, or something, isn't funny see a underground train without collision, but is possible.
FishSandwich wrote:Brilliant mod! Definitely claiming for a spotlight. :D
Ohh thanks you, tomorrow i'll do other "super-tiny" mod, just pipes and transport belts over water, if you're interested for 2 mods in a same video.

Update, thanks to vampiricdust
v0.0.2

Re: [MOD 0.11.22] Cursed UG - 0.0.2

Posted: Thu Jun 11, 2015 12:43 am
by vampiricdust
L0771 wrote: Thanks you, the name is just to take all my mods from the hands, like a big community of L0771's mods :?:
Added for version 0.0.2
hmmm is possible, this train can go over a normal train, but can't crash players, entities, bitters, or something, isn't funny see a underground train without collision, but is possible.
I tested it for awhile and it would not connect with normal rails. When i did cross over rails, the signals treated it as normal for signal placement. So I couldnt get a normal train and it to ever cross over each other.

Re: [MOD 0.11.22] Cursed UG - 0.0.2

Posted: Sun Jun 21, 2015 6:19 pm
by Kikkers
I tried messing around with 'hacking' normal signal pathing behavior.

I managed to find a way that tricks rail signals to not detect an intersection:
  • create an extra rail entity prototype (call it the 'hackrail')
  • Remove the collision box field from the hackrail so it becomes [0,0][0,0]
  • Place two hackrails in the same spot, one connected north-south, the other west-east
When you now place signals, they don't detect a train on the crossing rail. My guess is that the hackrails don't detect one another because of their almost non-existent collision box.

This doesn't really benefit normal trains, because the locomotives will just crash into each other (still funny though). When using it as part of this mod however, with the empty collision masks, it might be possible to get functional collision-less rail crossings.


One annoying detail though, you can't select the hackrails after you placed two of them over eachother, so they are effectively stuck there. It will probably be best to place and remove hackrails through a script.

Re: [MOD 0.12.x] Cursed UG - 0.0.3

Posted: Mon Jul 27, 2015 10:02 am
by L0771
Updated to factorio 0.12.

Re: [MOD 0.12.x] Cursed UG - 0.0.3

Posted: Wed Jul 29, 2015 3:48 pm
by ssilk
Moved. :)

Re: [MOD 0.12.x] Cursed UG - 1.0.0

Posted: Thu Jul 30, 2015 9:42 pm
by L0771
Updated to v1.0.0, tested, without problems for all new versions of factorio i think :)
v1.0.0
NOTE: if you have a rail connected like this:
Image
separe this connection before update, they aren't connected, but you can't load this save.

Re: [0.12.x] Cursed UG - v1.0.0

Posted: Tue Aug 11, 2015 6:09 am
by hitzu
I know this would require new code, but wouldn't it be better putting rails on a new underground surface with "portals" between them? What do you think?

Re: [0.12.x] Cursed UG - v1.0.0

Posted: Wed Aug 12, 2015 12:13 am
by L0771
hitzu wrote:I know this would require new code, but wouldn't it be better putting rails on a new underground surface with "portals" between them? What do you think?
i don't know... maybe... but it's for other mod :d

Re: [MOD 0.11.22] Cursed UG - 0.0.1

Posted: Fri Aug 28, 2015 3:39 pm
by AlexTheNotsogreat
StanFear wrote:can you still use inserters on it ?
and if so do inserters might take from the train when they should take from an assembling machine ?

or is theer a rail piece to bring the train back to the top of the map wher you can then do all you're used to ?
1. Yes, the inserters should still work.
2. The standard and cursed tracks can intermix, as well as the actual trains.

Re: [MOD 0.12.x] Cursed UG - v1.0.0

Posted: Tue Oct 27, 2015 9:20 pm
by Darkestnoir
Game not start on 12.13

Re: [MOD 0.12.x] Cursed UG - v1.0.0

Posted: Wed Dec 09, 2015 2:22 pm
by Arathos
is this MOD still updated?
Yesterday I installed the updates of factorio until 0.12.20 now when I run it ... there is a indexing problem with a nil value at line 35 ... :-(
can anyone help?

Re: [MOD 0.12.x] Cursed UG - v1.0.0

Posted: Mon Dec 21, 2015 3:13 am
by XxRubyxX
i have a recommendation for factorio if we are on 0.11.22, we are using this mod and we run into something that would be nice, underground liquid tankers. We transport oil around alot and i thought id recommend this idea for u to add to the newer and possibly this version

Re: [MOD 0.12.x] Cursed UG - v1.0.0

Posted: Sun Mar 27, 2016 11:22 pm
by LethalWeapon786
Hey, Can someone update this mod, i have been looking for something like this and it wont work with factorio's current version

Re: [MOD 0.12.x] Cursed UG - v1.0.0

Posted: Fri May 20, 2016 11:31 am
by Kirby
[Bug report]

_Cursed-UG_/data.lua:9:
_Cursed-UG_/prototypes/entities/cursed-rail-ug.lua:44:attempt to index feild ´rail´(a nil value)

Factorio 0.12.33

Tried to fix it myself but I just suck at lua. I don´t think it´s worth an update now, I would wait until 0.12.0 (if the error persists) :D

Re: [MOD 0.12.x] Cursed UG - v1.0.0

Posted: Sat May 21, 2016 5:56 pm
by Nebbeh
Would also love a update for this mod :)