[Mod] PA-28 [pa28]
- apercy
- Member
- Posts: 667
- Joined: Wed Mar 25, 2020 16:31
- GitHub: APercy
- In-game: APercy
- Location: Pinheiral - RJ - Brazil
[Mod] PA-28 [pa28]
PA-28
It doesn't fit anything. Some people will dislike it as always. But here we have another plane!
https://github.com/APercy/pa28
https://content.minetest.net/packages/apercy/pa28/
This is an implementation for minetest of the Piper PA28. It is far from the real
plane, as it is adapted to a minetest scale and behaviour. It was inspired on
brazilian version of it, the EMB-712 Tupi.
It flies like any other airplane I made, but low wing and with more ground effect. Is expected that it's more quick than the supercub. It can carry 4 people.
If you find a bug, tell me.
The operation manual and more blablabla you can read just typing "/pa28_manual"
Have a good flight!
It doesn't fit anything. Some people will dislike it as always. But here we have another plane!
https://github.com/APercy/pa28
https://content.minetest.net/packages/apercy/pa28/
This is an implementation for minetest of the Piper PA28. It is far from the real
plane, as it is adapted to a minetest scale and behaviour. It was inspired on
brazilian version of it, the EMB-712 Tupi.
It flies like any other airplane I made, but low wing and with more ground effect. Is expected that it's more quick than the supercub. It can carry 4 people.
If you find a bug, tell me.
The operation manual and more blablabla you can read just typing "/pa28_manual"
Have a good flight!
Last edited by apercy on Thu May 05, 2022 11:21, edited 2 times in total.
- apercy
- Member
- Posts: 667
- Joined: Wed Mar 25, 2020 16:31
- GitHub: APercy
- In-game: APercy
- Location: Pinheiral - RJ - Brazil
Re: [Mod] PA-28 [pa28]
pilot position fixed. Dont forget to update the airutils mod
- apercy
- Member
- Posts: 667
- Joined: Wed Mar 25, 2020 16:31
- GitHub: APercy
- In-game: APercy
- Location: Pinheiral - RJ - Brazil
Re: [Mod] PA-28 [pa28]
Improved today. Added an Automatic direction finding (ADF) to compass function. On plane menu, set the map coordinates (x and z) and turn ADF on. The yellow arrow will point the destiny direction, just align the airplane with the arrow and have a good flight.
Need to update the airutils lib
Need to update the airutils lib
- apercy
- Member
- Posts: 667
- Joined: Wed Mar 25, 2020 16:31
- GitHub: APercy
- In-game: APercy
- Location: Pinheiral - RJ - Brazil
Re: [Mod] PA-28 [pa28]
Updated today. The movement was changed from set_acceleration to set_velocity. Now the ADF have support for cgpsmap marked maps, you have just to right click the plane from inside using it to set the coordinates. But it's possible to set it manually from plane form too.
The autopilot works from plane menu too
The autopilot works from plane menu too
- apercy
- Member
- Posts: 667
- Joined: Wed Mar 25, 2020 16:31
- GitHub: APercy
- In-game: APercy
- Location: Pinheiral - RJ - Brazil
Re: [Mod] PA-28 [pa28]
many thanks to josiah_wi for all the bugs discovered today!
All fixed :)
All fixed :)
- apercy
- Member
- Posts: 667
- Joined: Wed Mar 25, 2020 16:31
- GitHub: APercy
- In-game: APercy
- Location: Pinheiral - RJ - Brazil
Re: [Mod] PA-28 [pa28]
Fixed ghost collision on snow. And added a more elegant and painfull way to lose the airplane on water
- apercy
- Member
- Posts: 667
- Joined: Wed Mar 25, 2020 16:31
- GitHub: APercy
- In-game: APercy
- Location: Pinheiral - RJ - Brazil
Re: [Mod] PA-28 [pa28]
Takeoff run adjusted, but please, update the airutils again, because I made the beziercurve method public to fake a low lift during the takeoff run
- apercy
- Member
- Posts: 667
- Joined: Wed Mar 25, 2020 16:31
- GitHub: APercy
- In-game: APercy
- Location: Pinheiral - RJ - Brazil
Re: [Mod] PA-28 [pa28]
Fixed the command compression at dive, thanks to Stella for the repport
Added damage by overspeed, each 2 seconds.
Added damage by overspeed, each 2 seconds.
- Wizard Of mkdir
- Member
- Posts: 26
- Joined: Tue Aug 17, 2021 14:18
- GitHub: wizardofgcc
- In-game: Wizard Of mkdir
Re: [Mod] PA-28 [pa28]
This is an incredible mod! This airplane is really the next step from the previous ones. However, I am experiencing an issue, the engine randomly keeps stopping sometimes midflight, and the plane crashes like a stone down. Is this a bug or am I doing something wrong?
- apercy
- Member
- Posts: 667
- Joined: Wed Mar 25, 2020 16:31
- GitHub: APercy
- In-game: APercy
- Location: Pinheiral - RJ - Brazil
Re: [Mod] PA-28 [pa28]
Thank you!!!Wizard Of mkdir wrote: ↑Fri May 13, 2022 18:00This is an incredible mod! This airplane is really the next step from the previous ones. However, I am experiencing an issue, the engine randomly keeps stopping sometimes midflight, and the plane crashes like a stone down. Is this a bug or am I doing something wrong?
I need more details, but try check the fuel level. Or if you collided with something. Now the engine stops after hard collisions. And update the airutils lib
- MisterE
- Member
- Posts: 706
- Joined: Sun Feb 16, 2020 21:06
- GitHub: MisterE123
- IRC: MisterE
- In-game: MisterE
Re: [Mod] PA-28 [pa28]
would the engine stop if it hit an ignore node?
- apercy
- Member
- Posts: 667
- Joined: Wed Mar 25, 2020 16:31
- GitHub: APercy
- In-game: APercy
- Location: Pinheiral - RJ - Brazil
Re: [Mod] PA-28 [pa28]
If it is solid, yes.
- MisterE
- Member
- Posts: 706
- Joined: Sun Feb 16, 2020 21:06
- GitHub: MisterE123
- IRC: MisterE
- In-game: MisterE
Re: [Mod] PA-28 [pa28]
then that is a problem... imo, you should check specifically for ignore node collisions, because if the engine stops with that, then you can have lag that kills your flight pretty easily
- apercy
- Member
- Posts: 667
- Joined: Wed Mar 25, 2020 16:31
- GitHub: APercy
- In-game: APercy
- Location: Pinheiral - RJ - Brazil
Re: [Mod] PA-28 [pa28]
Re: [Mod] PA-28 [pa28]
I seemed to trigger the error with this plane.
2022-06-01 01:54:56: WARNING[Server]: LuaEntitySAO::step() id=6399 is attached to nonexistent parent. This is a bug.
2022-06-01 01:54:56: WARNING[Server]: LuaEntitySAO::step() id=6398 is attached to nonexistent parent. This is a bug.
2022-06-01 01:54:56: WARNING[Server]: LuaEntitySAO::step() id=6397 is attached to nonexistent parent. This is a bug.
2022-06-01 01:54:56: WARNING[Server]: LuaEntitySAO::step() id=6396 is attached to nonexistent parent. This is a bug.
2022-06-01 01:54:56: WARNING[Server]: LuaEntitySAO::step() id=6395 is attached to nonexistent parent. This is a bug.
2022-06-01 01:54:56: WARNING[Server]: LuaEntitySAO::step() id=6394 is attached to nonexistent parent. This is a bug.
2022-06-01 01:54:56: WARNING[Server]: LuaEntitySAO::step() id=6393 is attached to nonexistent parent. This is a bug.
2022-06-01 01:54:59: ACTION[Main]: Server: Shutting down
2022-06-01 01:55:12: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '??' in callback luaentity_Step(): /usr/share/minetest/builtin/common/vector.lua:206: attempt to perform arithmetic on field 'x' (a nil value)
2022-06-01 01:55:12: ERROR[Main]: stack traceback:
2022-06-01 01:55:12: ERROR[Main]: /usr/share/minetest/builtin/common/vector.lua:206: in function 'multiply'
2022-06-01 01:55:12: ERROR[Main]: /home/xxxxx/.minetest/mods/pa28/custom_physics.lua:77: in function 'physics'
2022-06-01 01:55:12: ERROR[Main]: /home/xxxxx/.minetest/mods/pa28/entities.lua:310: in function 'func'
2022-06-01 01:55:12: ERROR[Main]: /usr/share/minetest/builtin/profiler/instrumentation.lua:107: in function 'func'
2022-06-01 01:55:12: ERROR[Main]: /usr/share/minetest/builtin/profiler/instrumentation.lua:107: in function </usr/share/minetest/builtin/profiler/instrumentation.lua:100>
Full Error code... Whats this mod '??' ... sounds strange.
it was triggered at 57.4 blocks up at half-power.
2022-06-01 01:54:56: WARNING[Server]: LuaEntitySAO::step() id=6399 is attached to nonexistent parent. This is a bug.
2022-06-01 01:54:56: WARNING[Server]: LuaEntitySAO::step() id=6398 is attached to nonexistent parent. This is a bug.
2022-06-01 01:54:56: WARNING[Server]: LuaEntitySAO::step() id=6397 is attached to nonexistent parent. This is a bug.
2022-06-01 01:54:56: WARNING[Server]: LuaEntitySAO::step() id=6396 is attached to nonexistent parent. This is a bug.
2022-06-01 01:54:56: WARNING[Server]: LuaEntitySAO::step() id=6395 is attached to nonexistent parent. This is a bug.
2022-06-01 01:54:56: WARNING[Server]: LuaEntitySAO::step() id=6394 is attached to nonexistent parent. This is a bug.
2022-06-01 01:54:56: WARNING[Server]: LuaEntitySAO::step() id=6393 is attached to nonexistent parent. This is a bug.
2022-06-01 01:54:59: ACTION[Main]: Server: Shutting down
2022-06-01 01:55:12: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '??' in callback luaentity_Step(): /usr/share/minetest/builtin/common/vector.lua:206: attempt to perform arithmetic on field 'x' (a nil value)
2022-06-01 01:55:12: ERROR[Main]: stack traceback:
2022-06-01 01:55:12: ERROR[Main]: /usr/share/minetest/builtin/common/vector.lua:206: in function 'multiply'
2022-06-01 01:55:12: ERROR[Main]: /home/xxxxx/.minetest/mods/pa28/custom_physics.lua:77: in function 'physics'
2022-06-01 01:55:12: ERROR[Main]: /home/xxxxx/.minetest/mods/pa28/entities.lua:310: in function 'func'
2022-06-01 01:55:12: ERROR[Main]: /usr/share/minetest/builtin/profiler/instrumentation.lua:107: in function 'func'
2022-06-01 01:55:12: ERROR[Main]: /usr/share/minetest/builtin/profiler/instrumentation.lua:107: in function </usr/share/minetest/builtin/profiler/instrumentation.lua:100>
Full Error code... Whats this mod '??' ... sounds strange.
it was triggered at 57.4 blocks up at half-power.
Re: [Mod] PA-28 [pa28]
mod ?? is what the engine uses when it has no idea which mod caused the crash. also, fyi, the engine can get the mod name to blame wrong sometimes, better to trust the stack trace
j5uBLfc6NxgersvVj5D5dIsiKDkoQb0o
- apercy
- Member
- Posts: 667
- Joined: Wed Mar 25, 2020 16:31
- GitHub: APercy
- In-game: APercy
- Location: Pinheiral - RJ - Brazil
Re: [Mod] PA-28 [pa28]
I’ll try to reproduce and maybe fix it. Lets see what I can find
- apercy
- Member
- Posts: 667
- Joined: Wed Mar 25, 2020 16:31
- GitHub: APercy
- In-game: APercy
- Location: Pinheiral - RJ - Brazil
Re: [Mod] PA-28 [pa28]
One first thing I see is the list of attached items to non existent parent. Is really the same number of attachments I do on plane at on_activate step
pa28:p_lights
pa28:light
pa28:engine
pa28:seat_base
pa28:seat_base
pa28:seat_base
pa28:seat_base
Someway the parent object was destroyed, the plane itself, by something external, a behaviour not originaly planned.
So when at physics call I try to make and use the new_velocity table, all break, because it is nil yet and I forgot to check it before. My fault.
So now I check the new_velocity before any operation with it
The fix it's at contentDB now
Thank you for the report
pa28:p_lights
pa28:light
pa28:engine
pa28:seat_base
pa28:seat_base
pa28:seat_base
pa28:seat_base
Someway the parent object was destroyed, the plane itself, by something external, a behaviour not originaly planned.
So when at physics call I try to make and use the new_velocity table, all break, because it is nil yet and I forgot to check it before. My fault.
Code: Select all
new_velocity = vector.add(new_velocity, vector.multiply(self._last_accell, self.dtime))
The fix it's at contentDB now
Thank you for the report
- steeeeeven
- Member
- Posts: 32
- Joined: Mon May 02, 2022 03:02
- GitHub: none
- IRC: non e
- In-game: steeeeeven
Re: [Mod] PA-28 [pa28]
Hi
Me and my brothers are really into your stuff, and i mean really loving it!
but there is one problem..... no super fast fighter jets.
My suggestion would be to make a f-16.... but that is besides the point.
as always you exceed to well beyond the boundary's of mod - making and physics.
your planes are excellent
your trains and your subs and your helicopters.
they also exceed all expectations.
And thank you again for what you are doing for the Minetest community
Kind regards:Steeeeeven
Me and my brothers are really into your stuff, and i mean really loving it!
but there is one problem..... no super fast fighter jets.
My suggestion would be to make a f-16.... but that is besides the point.
as always you exceed to well beyond the boundary's of mod - making and physics.
your planes are excellent
your trains and your subs and your helicopters.
they also exceed all expectations.
And thank you again for what you are doing for the Minetest community
Kind regards:Steeeeeven
Last edited by steeeeeven on Fri Jan 26, 2024 13:10, edited 1 time in total.
- apercy
- Member
- Posts: 667
- Joined: Wed Mar 25, 2020 16:31
- GitHub: APercy
- In-game: APercy
- Location: Pinheiral - RJ - Brazil
Re: [Mod] PA-28 [pa28]
Thank you!
The jet is in my plans, but at current state of the minetest it isn't possible yet. The map load will suffer a lot and we need a better camera for it.
The jet is in my plans, but at current state of the minetest it isn't possible yet. The map load will suffer a lot and we need a better camera for it.
- steeeeeven
- Member
- Posts: 32
- Joined: Mon May 02, 2022 03:02
- GitHub: none
- IRC: non e
- In-game: steeeeeven