[MOD] Moving Walkways [walkway]

Post Reply
gpcf
Member
Posts: 382
Joined: Fri May 27, 2016 10:48
GitHub: gpcf
In-game: gabriel

[MOD] Moving Walkways [walkway]

by gpcf » Post

I have made a moving walkways mod. It uses the conveyor belts from theFox and LemonLake's factory mod. it speeds up players if they walk in the walkway's direction.
Download:
git: git://gpcf.eu/walkway.git
zip: https://git.gpcf.eu/?p=walkway.git;a=sn ... ter;sf=zip
Bugs:
* Support for animals is buggy, some animals don't work at all (chicken, sheep), some have wrong attachment positions (bunnies, cats)

Todo:
* Add inclined walkways and escalators

Screenshot:
Image
Last edited by gpcf on Wed Jun 28, 2017 16:35, edited 2 times in total.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [MOD] Moving Walkways [walkway]

by azekill_DIABLO » Post

very cool!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

gpcf
Member
Posts: 382
Joined: Fri May 27, 2016 10:48
GitHub: gpcf
In-game: gabriel

Re: [MOD] Moving Walkways [walkway]

by gpcf » Post

I don't know how to make the player visible, does someone know how to do this?

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [MOD] Moving Walkways [walkway]

by azekill_DIABLO » Post

it is on an entity?
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
cx384
Member
Posts: 654
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [MOD] Moving Walkways [walkway]

by cx384 » Post

Is this mod inspired by viewtopic.php?t=7350 ?
Can your read this?

gpcf
Member
Posts: 382
Joined: Fri May 27, 2016 10:48
GitHub: gpcf
In-game: gabriel

Re: [MOD] Moving Walkways [walkway]

by gpcf » Post

azekill: the player is attached to an entity
cx384: yes, only that sadly that other mod doesn't support moving players.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [MOD] Moving Walkways [walkway]

by azekill_DIABLO » Post

gpcf wrote:azekill: the player is attached to an entity
it should be visible then.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

gpcf
Member
Posts: 382
Joined: Fri May 27, 2016 10:48
GitHub: gpcf
In-game: gabriel

Re: [MOD] Moving Walkways [walkway]

by gpcf » Post

i have set visible=true and i now get this:Image
Attachments
screenshot_20170627_182410.png
screenshot_20170627_182410.png (425.34 KiB) Viewed 3224 times

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [MOD] Moving Walkways [walkway]

by azekill_DIABLO » Post

dummy shouldn't have any texture. set them to blank.png. then the player is miss-scaled... try tweaking this.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

gpcf
Member
Posts: 382
Joined: Fri May 27, 2016 10:48
GitHub: gpcf
In-game: gabriel

Re: [MOD] Moving Walkways [walkway]

by gpcf » Post

Ok, the bug is fixed. I also added basic support for moving animals.

dawgdoc
Member
Posts: 260
Joined: Mon Feb 27, 2017 01:10
GitHub: dawgdoc

Re: [MOD] Moving Walkways [walkway]

by dawgdoc » Post

gpcf wrote:Ok, the bug is fixed. I also added basic support for moving animals.
We'll soon see sheep surfing the walkways.
Give a man a fish, feed him for a day. Give a kid a fish, it's going to die.

gpcf
Member
Posts: 382
Joined: Fri May 27, 2016 10:48
GitHub: gpcf
In-game: gabriel

Re: [MOD] Moving Walkways [walkway]

by gpcf » Post

hopefully, sheep are not working yet (I don't know why)

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [MOD] Moving Walkways [walkway]

by azekill_DIABLO » Post

sheeps (as other non-players entities) are handled very differently... with set_velocity.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
v-rob
Developer
Posts: 971
Joined: Thu Mar 24, 2016 03:19
GitHub: v-rob
IRC: v-rob
Location: Right behind you.

Re: [MOD] Moving Walkways [walkway]

by v-rob » Post

Wonderful mod! I like how it works for both dropped items and players. I can think of so many uses already! Can't wait for the escalators and inclined walkways.
Spoiler
Image
Core Developer | My Best Mods: Bridger - Slats - Stained Glass

gpcf
Member
Posts: 382
Joined: Fri May 27, 2016 10:48
GitHub: gpcf
In-game: gabriel

Re: [MOD] Moving Walkways [walkway]

by gpcf » Post

I have switched it now to set_velocity, but some animals are still not detected, such as sheep and chicken, which may be because they jump a lot.

BBmine
Member
Posts: 3476
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins
Location: USA

Re: [MOD] Moving Walkways [walkway]

by BBmine » Post

Looks kinda.....Cool!

gpcf
Member
Posts: 382
Joined: Fri May 27, 2016 10:48
GitHub: gpcf
In-game: gabriel

Re: [MOD] Moving Walkways [walkway]

by gpcf » Post

Slopes are underway! I'll try to write the code to transport things today.
Image
Attachments
screenshot_20170627_182410.png
screenshot_20170627_182410.png (471.22 KiB) Viewed 3224 times

gpcf
Member
Posts: 382
Joined: Fri May 27, 2016 10:48
GitHub: gpcf
In-game: gabriel

Re: [MOD] Moving Walkways [walkway]

by gpcf » Post

I have added slopes. They work relatively well, I only have to figure out how to be able to walk on them (they currently move players at a fixed speed)

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 26 guests