[mod] Not So Simple Helicopter [nss_helicopter]

u18398

Re: [mod] Not So Simple Helicopter [helicopter]

by u18398 » Post

ZombieTest crashed:

Code: Select all

2020-05-02 12:32:25: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'helicopter' in callback luaentity_run_simple_callback(): .minetest/mods/helicopter/heli_hud.lua:72: attempt to index local 'ids' (a nil value)
2020-05-02 12:32:25: ERROR[Main]: stack traceback:
2020-05-02 12:32:25: ERROR[Main]:       .minetest/mods/helicopter/heli_hud.lua:72: in function 'remove_heli_hud'
2020-05-02 12:32:25: ERROR[Main]:       .minetest/mods/helicopter/init.lua:398: in function <.minetest/mods/helicopter/init.lua:370>

User avatar
apercy
Member
Posts: 640
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Not So Simple Helicopter [helicopter]

by apercy » Post

ok, I'll debug it.
It's on HUD deactivation

Until bug resolution I disabled HUD and commited.
If you describe how it occured I can try reproduce it local

Thank you!

u18398

Re: [mod] Not So Simple Helicopter [helicopter]

by u18398 » Post

I was flying helicopter while shooting tnt arrows out of it destroying cobble barracks XD
rcbows and farbows mod. After logging in again, the fuel gauge was gone. The heli was still
there but the meter showing fuel level was gone.

User avatar
apercy
Member
Posts: 640
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Not So Simple Helicopter [helicopter]

by apercy » Post

Gundul wrote:
Sat May 02, 2020 15:37
I was flying helicopter while shooting tnt arrows out of it destroying cobble barracks XD
rcbows and farbows mod. After logging in again, the fuel gauge was gone. The heli was still
there but the meter showing fuel level was gone.
what happens if you put more fuel?

PS: I put a check now:

Code: Select all

        if self.pointer:get_luaentity() then
            self.pointer:set_attach(self.object,'',{x=0,y=11.26,z=9.37},{x=0,y=0,z=energy_indicator_angle})
        else
            --in case it have lost the entity by some conflict
            self.pointer=minetest.add_entity({x=0,y=11.26,z=9.37},'helicopter:pointer')
            self.pointer:set_attach(self.object,'',{x=0,y=11.26,z=9.37},{x=0,y=0,z=energy_indicator_angle})
        end
Last edited by apercy on Sat May 02, 2020 20:34, edited 1 time in total.

User avatar
apercy
Member
Posts: 640
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Not So Simple Helicopter [helicopter]

by apercy » Post

While in ZombieTest server...

Image
Attachments
screenshot_20200502_170417.png
screenshot_20200502_170417.png (600.39 KiB) Viewed 570 times

User avatar
Codesound
Member
Posts: 365
Joined: Thu Jun 09, 2016 14:56

Re: [mod] Not So Simple Helicopter [helicopter]

by Codesound » Post

+1!

1 problem;

if I close the world when Sam is inside the helicopter while flying, and the world is restarted, Sam is thrown out of the helicopter;

can the helicopter explode when it falls from a great height?

THANKS again......

User avatar
apercy
Member
Posts: 640
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Not So Simple Helicopter [helicopter]

by apercy » Post

Codesound wrote:
Sun May 03, 2020 15:04
+1!

1 problem;

if I close the world when Sam is inside the helicopter while flying, and the world is restarted, Sam is thrown out of the helicopter;

can the helicopter explode when it falls from a great height?

THANKS again......
Thank you!

I need research how to re-attach the player to the entity after a server restart ;)

Explosions are on my plans

u18398

Re: [mod] Not So Simple Helicopter [helicopter]

by u18398 » Post

Apokalypse Test

now on screen XD

watch it here:
https://youtu.be/7a1GQbLPiG0

u18398

Re: [mod] Not So Simple Helicopter [helicopter]

by u18398 » Post

Just noticed in server logs, fuel management crashed the server:

Code: Select all

2020-05-25 23:15:22: ACTION[Server]: APercy right-clicks object 1652: LuaEntitySAO at (-778.42,44.5,-456.166)
2020-05-25 23:15:23: WARNING[Server]: Undeclared global variable "get_pointer_angle" accessed at /mods/helicopter/heli_fuel_management.lua:40
2020-05-25 23:15:23: ACTION[Main]: Server: Shutting down
2020-05-25 23:15:23: ACTION[Main]: IRC: Disconnected.
2020-05-25 23:15:26: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'helicopter' in callback luaentity_Punch(): /mods/helicopter/heli_fuel_management.lua:40: attempt to call global 'get_pointer_angle' (a nil value)
2020-05-25 23:15:26: ERROR[Main]: stack traceback:
2020-05-25 23:15:26: ERROR[Main]:       /mods/helicopter/heli_fuel_management.lua:40: in function 'load_fuel'
2020-05-25 23:15:26: ERROR[Main]:       /mods/helicopter/init.lua:311: in function </home/mars/.minetest/mods/helicopter/init.lua:285>

Teen_Miner
Member
Posts: 46
Joined: Fri Jun 03, 2016 18:21
GitHub: LapisWolf
IRC: LapisWolf
In-game: LapisWolf

Re: [mod] Not So Simple Helicopter [helicopter]

by Teen_Miner » Post

How do I refuel the helicopter? I see viles,bottles and canisters of biofuel and nobody ever mentioned what to use. I can only enter and exit the helicopter and destroy it. Nothing about refuelling it.
cdb_yuId0gpEgnYo

User avatar
apercy
Member
Posts: 640
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Not So Simple Helicopter [helicopter]

by apercy » Post

Simple my friend. Right click first to attach himself then you select the biofuel bottle and punch it to helicopter seat ;)

User avatar
apercy
Member
Posts: 640
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Not So Simple Helicopter [helicopter]

by apercy » Post

Gundul wrote:
Tue May 26, 2020 16:23
Just noticed in server logs, fuel management crashed the server:
edt: I found - I removed global functions, you only need update the code! Thank you!

User avatar
jas
Member
Posts: 593
Joined: Mon Jul 24, 2017 18:15
IRC: Freenode
Location: IRC

Re: [mod] Not So Simple Helicopter [helicopter]

by jas » Post

Hi. I like this mod a lot, tried is years ago but wasn't able to use it multiplayer. Very happy to see it's working nicely and am trying it out now on jastest.

I guess this line needs to be helicopter.get_pointer_angle... https://github.com/APercy/helicopter/bl ... nt.lua#L40

User avatar
apercy
Member
Posts: 640
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Not So Simple Helicopter [helicopter]

by apercy » Post

jas wrote:
Wed May 27, 2020 01:09
Hi. I like this mod a lot, tried is years ago but wasn't able to use it multiplayer. Very happy to see it's working nicely and am trying it out now on jastest.

I guess this line needs to be helicopter.get_pointer_angle... https://github.com/APercy/helicopter/bl ... nt.lua#L40
I forgot to push the code!!!!! uahuahuahuahuahuahuahuhauhauahuh
It's the age, I'm getting old

User avatar
Codesound
Member
Posts: 365
Joined: Thu Jun 09, 2016 14:56

Re: [mod] Not So Simple Helicopter [helicopter]

by Codesound » Post

Hi,

is there one way to interact with runs/farbows or runs/rcbows with this beautiful helicopter? When an explosive arrow is fired at him, the helicopter explodes....

thanks again

User avatar
apercy
Member
Posts: 640
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Not So Simple Helicopter [helicopter]

by apercy » Post

Codesound wrote:
Mon Jun 01, 2020 09:10
Hi,

is there one way to interact with runs/farbows or runs/rcbows with this beautiful helicopter? When an explosive arrow is fired at him, the helicopter explodes....

thanks again
Ok... I need do some work and research ;)

User avatar
jas
Member
Posts: 593
Joined: Mon Jul 24, 2017 18:15
IRC: Freenode
Location: IRC

Re: [mod] Not So Simple Helicopter [helicopter]

by jas » Post

Just wanted to share my biofuel modifications. Thanks for updating this mod, it's terrific!
Spoiler
Image
Attachments
screenshot_20200601_164835.png
screenshot_20200601_164835.png (107.75 KiB) Viewed 570 times
biofuel.zip
(404.52 KiB) Downloaded 44 times

User avatar
apercy
Member
Posts: 640
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Not So Simple Helicopter [helicopter]

by apercy » Post

jas wrote:
Mon Jun 01, 2020 20:51
Just wanted to share my biofuel modifications. Thanks for updating this mod, it's terrific!
Spoiler
Image
Nice!!!!!

Teen_Miner
Member
Posts: 46
Joined: Fri Jun 03, 2016 18:21
GitHub: LapisWolf
IRC: LapisWolf
In-game: LapisWolf

Re: [mod] Not So Simple Helicopter [helicopter]

by Teen_Miner » Post

apercy wrote:
Mon Jun 01, 2020 22:19
jas wrote:
Mon Jun 01, 2020 20:51
Just wanted to share my biofuel modifications. Thanks for updating this mod, it's terrific!
Spoiler
Image
Nice!!!!!
Hey apercy, how am i supposed to fuel the helicopter? It won't take biofuel in any form. I'll be punching with the fuel 'til the sun burns out and the helicopter won't take a drop.
cdb_yuId0gpEgnYo

User avatar
jas
Member
Posts: 593
Joined: Mon Jul 24, 2017 18:15
IRC: Freenode
Location: IRC

Re: [mod] Not So Simple Helicopter [helicopter]

by jas » Post

Hello. I just downloaded the mods and made a test world and recorded it as a video to show you how to use this excellent mod!

https://www.youtube.com/watch?v=WdSf2wxYaes

As mentioned, you must make sure the helicopter is grounded, and you must be sitting in it, and you must punch the cockpit with the biofuel. See the fuel gauge rising as I punch with fuel?

User avatar
apercy
Member
Posts: 640
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Not So Simple Helicopter [helicopter]

by apercy » Post

New correction. Now player will be attached again if the world is closed or connection lag de-attach player in flight

u18398

Re: [mod] Not So Simple Helicopter [helicopter]

by u18398 » Post

Game crashed after update. As soon as you meet a helicopter which was placed with the old version of your
mod, the game will crash and stay in crashloop when you try to log in again.

Code: Select all

2020-06-11 06:33:41: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'helicopter' in callback luaentity_Step(): ....minetest/mods/helicopter/heli_control.lua:40: bad argument #1 to 'get_player_by_name' (string expected, got nil)
2020-06-11 06:33:41: ERROR[Main]: stack traceback:
2020-06-11 06:33:41: ERROR[Main]:       [C]: in function 'get_player_by_name'
2020-06-11 06:33:41: ERROR[Main]:       ....minetest/mods/helicopter/heli_control.lua:40: in function 'heli_control'
2020-06-11 06:33:41: ERROR[Main]:       .minetest/mods/helicopter/init.lua:223: in function <.minetest/mods/helicopter/init.lua:215>

User avatar
apercy
Member
Posts: 640
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Not So Simple Helicopter [helicopter]

by apercy » Post

it got a nil value... I made a check now! Pushed!!! Thank you!

User avatar
apercy
Member
Posts: 640
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Not So Simple Helicopter [helicopter]

by apercy » Post

Updated. Now supports passenger. And Lokrates biofuel mod too
And the direction control by mouse must by turned on by "E" key

User avatar
apercy
Member
Posts: 640
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Not So Simple Helicopter [helicopter]

by apercy » Post

Update: bug on dettach fixed

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests