Page 1 of 3

[Mod] Simple helicopter [helicopter]

PostPosted: Wed Jun 05, 2013 04:48
by Pavel_S
Image
[h]Helicopter mod[/h]
Description:
Image
This mod adds helicopter to the game.
Follow craft quide or just use "/giveme helicopter:heli 99" chat command. It has 30 HP points, and there in no way to repair it, when it will down to 0 you get 5 steel ignots and 1 mese cryslal. But if you restart the game, HP will be automatically set to 30 HP.
Also go to [url=goo.gl/1jx6gu]Helicopter on GitHub[/url], to write your issues or make pull request.

I used some sourcecode from:
boats modby PilzAdam;
TNT modby PilzAdam;
Throwing modby Jeija.




Craft:
Image
Image

Control:
Image
Jump - up!
Sneak - down!
Forward - forward;
Back - backward;
Left - left;
Right - right.

Links:
Image
[url=goo.gl/1jx6gu]Helicopter on GitHub[/url]
Image
Download. version 0.4
Download. version 0.3
Download. version 0.2

License:
Image
LGP_v2.

Change log
Image
0.3 -> 0.4
  • Fixed rotation bug
  • Added heli sound
  • Changed model and new UVunwrap
  • Added HP to Heli
  • Fixed underwater spawning


0.2 -> 0.3
  • Fixed multi-driving
  • Fixed player orientation
  • Added roll, pitch to model
  • Changed heli-model
  • Deleted rocket launcher

Other information
Image
Rename folder to: helicopter.
I want:
  • add formspecs:
    fuel
    ammunition
  • add HUD of damage

[spoiler=Old screenshots]
Image
Image
Image[/spoiler]

Known bugs
Image
  • Player`s model looks to side of heli. - Fixed
  • It`s possible control heli, when you don`t sitting in. - Fixed
  • Player`s model has wrong rotation after exit from helicopter (0.4.9) - Fixed
  • Under water swimming - It`s a feature!

Try out other awesome mods !
Image
ImageImage

PostPosted: Wed Jun 05, 2013 04:54
by kaeza
Now THIS is awesome.
Download link?
EDIT: derp... it's there

PostPosted: Wed Jun 05, 2013 05:03
by Josh
Awesome looking mod!

PostPosted: Wed Jun 05, 2013 05:25
by kaeza
Image
*playing "Ride of the Valkyries" in the background*

PostPosted: Wed Jun 05, 2013 06:48
by jin_xi
uh oh wooden rotor blades... nice idea!

PostPosted: Wed Jun 05, 2013 07:14
by Pavel_S
Added Left-Right movement.

PostPosted: Wed Jun 05, 2013 10:22
by Mossmanikin
Like this idea.
Unfortunately when I test this mod the helicopter has no texture.
That way it's quite hard to see through the "glass"...
However, it's fun flying around with the heli. :D

PostPosted: Wed Jun 05, 2013 11:10
by oxenfreedan
I've been waiting so long for a mord like this!

PostPosted: Wed Jun 05, 2013 12:06
by aldobr
Leonardo Da Vinci wanna be :P

PostPosted: Wed Jun 05, 2013 12:12
by rubenwardy
Wow

Nice!

PostPosted: Wed Jun 05, 2013 13:05
by Evergreen
It says the file has been deleted or moved from dropbox.

PostPosted: Wed Jun 05, 2013 13:17
by cornellius
Nice Maybe U Can Ask Moderator Or Someone To Help U Release New Version
Edit: And Maybe U Can Made Many Heli With Diferent Wepons And Armor







,Thanks

PostPosted: Wed Jun 05, 2013 13:37
by Pavel_S
Evergreen wrote:It says the file has been deleted or moved from dropbox.

how..... link restored-

PostPosted: Wed Jun 05, 2013 13:54
by Evergreen
Pavel_S wrote:
Evergreen wrote:It says the file has been deleted or moved from dropbox.

how..... link restored-

Here is the link to download it directly. https://dl.dropboxusercontent.com/shz/dznkp0y8giruieu/tHtGQKHe7z/helicopter?token_hash=AAHZdkSAzYqwx-JnLI-F2gi5PD2d-9FuFsVCoatm5w20IA&top_level_offset=9

PostPosted: Wed Jun 05, 2013 13:59
by Evergreen
Now that I just tested it, this is amazing! Best. Vehicle. Mod. Ever. :D

PostPosted: Wed Jun 05, 2013 14:36
by Zeg9
Nice, One detail though: the crafting should be a bit more expensive. Perhaps require a few mese in center of the recipe?

PostPosted: Wed Jun 05, 2013 14:51
by Pavel_S

Added. Thanx.
Zeg9 wrote:Nice, One detail though: the crafting should be a bit more expensive. Perhaps require a few mese in center of the recipe?

Yeah, it will be more expensive, in next update.

PostPosted: Wed Jun 05, 2013 15:07
by Evergreen
The way the crafting should work in my opinion is: You have to make each part of the helicopter eg. the engine, the blades, the window, etc.

PostPosted: Wed Jun 05, 2013 16:18
by tinoesroho
Nice!

PostPosted: Wed Jun 05, 2013 18:11
by Jordach
Pavel_S: Awesome!

PostPosted: Thu Jun 06, 2013 15:38
by thefamilygrog66
Nice mod! I'm not sure what's happening exactly, but while everything looks great if I connect to my server (latest stable) using a client running 0.4.6, if I connect using a client running the daily build, only the rear propeller has a wooden texture. Everything else is solid white. Maybe a compatibility issue between the latest stable build and the daily build?

PostPosted: Thu Jun 06, 2013 16:00
by Sokomine
Nice mod! And a very nice helicopter model.

PostPosted: Thu Jun 06, 2013 18:16
by stu
There seems to be a problem with the directx export for this model. For some reason It contains multiple copies of the same material list.

heli.x
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
      MeshMaterialList { //Cube_004 Material List
        1;
        1;
        0;;
        Material Default_Material {
           0.800000; 0.800000; 0.800000; 0.800000;;
           96.078431;
           0.500000; 0.500000; 0.500000;;
           0.000000; 0.000000; 0.000000;;
        }
      } //End of Cube_004 Material List

This appears first at line 144 then again at 342 and again at 1840.

This would not cause any problems with minetest because the multiple texture update support is broken in the current version.
I recently submitted a patch that would have allowed us to use multiple UV's & materials correctly, however, it has been reverted seemingly because it broke this model...shame.

Perhaps if I could see the blender model I might can figure why it was exported like that.

PostPosted: Thu Jun 06, 2013 18:21
by Zeg9
stu wrote:There seems to be a problem with the directx export for this model. For some reason It contains multiple copies of the same material list.

heli.x
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
      MeshMaterialList { //Cube_004 Material List
        1;
        1;
        0;;
        Material Default_Material {
           0.800000; 0.800000; 0.800000; 0.800000;;
           96.078431;
           0.500000; 0.500000; 0.500000;;
           0.000000; 0.000000; 0.000000;;
        }
      } //End of Cube_004 Material List

This appears first at line 144 then again at 342 and again at 1840.

This would not cause any problems with minetest because the multiple texture update support is broken in the current version.
I recently submitted a patch that would have allowed us to use multiple UV's & materials correctly, however, it has been reverted seemingly because it broke this model...shame.

Perhaps if I could see the blender model I might can figure why it was exported like that.

Why didn't you say it before your commit was reverted and 0.4.7 released? :/

PostPosted: Thu Jun 06, 2013 19:25
by stu
Zeg9 wrote:Why didn't you say it before your commit was reverted and 0.4.7 released? :/


It was too late by the time i firgured out what was wrong. Besides, I think PilzAdam did the right thing under the circumstances.

Pavel_S: Have you read these guidlines? http://wiki.minetest.com/wiki/Using_Blender

Nice mod btw, otherwise.

PostPosted: Fri Jun 07, 2013 14:24
by J-Block
This is an awesome mod!! Easy to control and you can't just walk through the heli. Nice job.

EDIT: I've encountered a bug: if you fly too far away, another helicopter will appear where you launched the first one. The same thing happened with the boats mod.

PostPosted: Fri Jun 07, 2013 16:42
by Zeg9
J-Block wrote:This is an awesome mod!! Easy to control and you can't just walk through the heli. Nice job.

EDIT: I've encountered a bug: if you fly too far away, another helicopter will appear where you launched the first one. The same thing happened with the boats mod.

Thats a bug in the engine. It happens with every entity: carts, boats, ufos, helicopters, mobs,...

PostPosted: Fri Jun 07, 2013 17:48
by J-Block
Ahh, ok then.

PostPosted: Sat Jun 08, 2013 03:04
by Josh
Make it so you can shoot missiles out of the helicopter, just a 2d projectile that damages players and mobs.

PostPosted: Sun Jun 09, 2013 17:06
by stu
stu wrote:There seems to be a problem with the directx export for this model. For some reason It contains multiple copies of the same material list.

heli.x
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
      MeshMaterialList { //Cube_004 Material List
        1;
        1;
        0;;
        Material Default_Material {
           0.800000; 0.800000; 0.800000; 0.800000;;
           96.078431;
           0.500000; 0.500000; 0.500000;;
           0.000000; 0.000000; 0.000000;;
        }
      } //End of Cube_004 Material List

This appears first at line 144 then again at 342 and again at 1840.

This would not cause any problems with minetest because the multiple texture update support is broken in the current version.
I recently submitted a patch that would have allowed us to use multiple UV's & materials correctly, however, it has been reverted seemingly because it broke this model...shame.

Perhaps if I could see the blender model I might can figure why it was exported like that.


Pavel_S, Thank you for sending me a copy of the .blend for the helicopter.
The problem it seems is that you have exported the model with multiple objects, each of which has included its own material list, hence the three copies in the .x file. While this should not be a problem in itself, with my suggested patch applied, minetest is expecting to see three textures in the entity property table.

Since all the objects in your model are using the same default material then simply adding this makes it work with my patched version, without breaking compatibity with the current version.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
    mesh = "heli.x",
    textures = {"heli.png","heli.png","heli.png"},

Image

In my experience it is much better to join all objects into one single object and use named vertex groups instead, like the default character model for example. This way only one material list will be exported.

In addition to the guidelines given here: http://wiki.minetest.com/wiki/Using_Blender
Another good article (if a little dated) can be found here: http://www.binarymodular.com/main/articles.php?article_id=94

On an unrelated note there is problem when logging out from a server with the entity attached.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
17:04:30: ACTION[ServerThread]: stu leaves game. List of players: max
17:04:31: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error running function 'on_step': ...netest/bin/../worlds/test1/worldmods/helicopter/init.lua:104: bad argument #1 to 'setyaw' (number expected, got no value)