Saker277's Dragon Riding Progress
+4
brunnwag
MCBM
blazingsentinal
saker277
8 posters
ALAGAËSIA :: Alagaësia mod :: Progress
Page 1 of 2
Page 1 of 2 • 1, 2
Saker277's Dragon Riding Progress
3/20/2012 Update
I have started to try out script dragon since i am way better with c++ than i am with papyrus. Hopefully I will be able to get this thing working with c++
Old updates:
I have started to try out script dragon since i am way better with c++ than i am with papyrus. Hopefully I will be able to get this thing working with c++
Old updates:
- Spoiler:
- OP:Ever since the Creation kit has been out I have been working to learn papyrus. Today I finally think I am ready to begin with making dragon riding possible. Seeing as we don't have our own official dragon models I will be using the vanilla models for now. I will be updating as I progress in the creation of dragon riding.
2/19/2012 Update: What I have so far
So far I have made a dragon that is friendly.
I have made a message box that comes up when you activate the dragon. From this message box you can choose to mount, have the dragon follow you, and have the dragon stop following you. I have been messing around with the setVehicle function and making the player the vehicle for the dragon. For the following I am just making a basic script to start with that will make it stay at a set distance from you. I will have to develop it further as more of the dragon riding is done. If any one on the team would like to see my code just message me and i will give you a copy.
2/28/2012 Update
Though it pains my ego to say this, at my current level of skill with papyrus scripting I won't
be able to advance much further than I already have with the dragon riding/flying. I am planning on leaving the flight
scripts alone for a little bit while i work on smaller, non dragon related scripts. If any other, more skilled, scriptors
want to work on the flying, go ahead. If you want to see what i have so far just ask and i will give you a copy.
Last edited by saker277 on 20.03.12 15:05; edited 3 times in total
saker277- Member
- Posts : 77
Join date : 2012-01-15
Age : 30
Location : Your mind
Re: Saker277's Dragon Riding Progress
awesome! good luck with that
blazingsentinal- Active Member
- Posts : 215
Join date : 2012-01-18
Age : 27
Location : UK
Re: Saker277's Dragon Riding Progress
Hey you should consult duneD when mcmb accepts him as he is doing a dragon riding script and i think he started before you
brunnwag- Still thinking about rank...
- Posts : 253
Join date : 2012-01-03
Re: Saker277's Dragon Riding Progress
Hey there I already have a working flying script, just not for dragons , I keep finding an issue while riding creatures, you can only get the Z-plane, im trying to fix that now by messing with my custom dragon skeleton, I keep adding stuff to that thing hehe
DuneD- Newbie
- Posts : 10
Join date : 2012-02-16
Age : 37
Re: Saker277's Dragon Riding Progress
Welcome to the team DuneD Two hands are always better than one.
AspenShadow- Forum Administrator
- Posts : 147
Join date : 2012-01-06
Location : England
Re: Saker277's Dragon Riding Progress
Thanks , is that your name on steam ? if so ill add you right away and show you what i got so far
DuneD- Newbie
- Posts : 10
Join date : 2012-02-16
Age : 37
Re: Saker277's Dragon Riding Progress
As of right now I have been working more with the mounting and ground control of the dragon. I have no clue how to make the mounting animations though. All I have really done so far is make an actor that i call "Pet Dragon" and I have made it mountable. I am trying to do as much of the other parts of dragon riding as i can before touching too much with the mounting/flying because I don't want to get it all done and then have to adapt it to a new dragon model, although for all I know it may be very easy to adapt it so I have been working on a little bit of the flight, but I still am not very good with papyrus so things are going slow. Any help you can offer would be much appreciated DuneD, you are probably a much more experienced programmer than me. Glad to have you on the team
saker277- Member
- Posts : 77
Join date : 2012-01-15
Age : 30
Location : Your mind
Re: Saker277's Dragon Riding Progress
Well I got that much aswell, mostly a riding dragon, problem is when you make a creature rideable, it only rotates in the z-plane, ive been looking all over the base script for functions that could do the trick but there are none.
So I took a day off the dragon and tried to make something different, a flying ring, which works perfect since if you arent riding a mount the player returns the x-plane which you can use to move up or down using the camera, here is the code, maybe it can help you, its used on a ring, so when you equip the ring runs the script on the actor.
So I took a day off the dragon and tried to make something different, a flying ring, which works perfect since if you arent riding a mount the player returns the x-plane which you can use to move up or down using the camera, here is the code, maybe it can help you, its used on a ring, so when you equip the ring runs the script on the actor.
- Code:
Scriptname __PlyFly extends Actor
Idle property JumpFall auto
Armor property DuneFlyingRing auto
float bearing
float elevation
float speed
float posx
float posy
float posz
float move
float dtime
Event OnObjectEquipped(Form Armor, ObjectReference DuneFlyingRing)
RegisterForUpdate(0.01)
PlayIdle(JumpFall)
SetMotionType(Motion_Keyframed)
endEvent
Event OnUpdate()
if self.IsRunning()
UnregisterForUpdate()
posx = self.GetPositionX()
posy = self.GetPositionY()
posz = self.GetPositionZ()
Fly()
else
RegisterForUpdate(0.01)
endIf
endEvent
function Fly()
bearing = self.GetAngleZ()
if self.GetAngleX() > 10
elevation = -50
elseif self.GetAngleX() < -10
elevation = 50
elseif self.GetAngleX() > -10 && self.GetAngleX() < 10
elevation = 0
endif
speed = 10000
if bearing < 90
posx += (bearing)*100
posy += (90 - bearing)*100
elseif bearing > 90 && bearing < 180
posx +=(180 - bearing)*100
posy +=(90 - bearing)*100
elseif bearing > 180 && bearing < 270
posx += (180 - bearing)*100
posy += (bearing - 270)*100
elseif bearing > 270
posx += (bearing - 360)*100
posy += (bearing - 270)*100
endif
posz = self.GetPositionZ() + (elevation * 100)
PlayIdle(JumpFall)
TranslateTo(posx,posy,posz,self.GetAngleX(),self.GetAngleY(),self.GetAngleZ(),speed,1)
RegisterForSingleUpdate(0.01)
endFunction
Event OnTranslationComplete()
Debug.Notification("when does this stops working")
endEvent
Event OnObjectUnequipped(Form Armor, ObjectReference DuneFlyingRing)
StopTranslation()
UnregisterForUpdate()
endEvent
DuneD- Newbie
- Posts : 10
Join date : 2012-02-16
Age : 37
Re: Saker277's Dragon Riding Progress
That's absolutely brilliant! Is it uploaded on Steam? I'd like to try it out.
AspenShadow- Forum Administrator
- Posts : 147
Join date : 2012-01-06
Location : England
Re: Saker277's Dragon Riding Progress
No, its a bit glitchy right now (the script likes to stick with the player even if you remove the damn mod) but ill probably make a release once it properly works ^^
DuneD- Newbie
- Posts : 10
Join date : 2012-02-16
Age : 37
Re: Saker277's Dragon Riding Progress
even if it is glitchy, at least it is a start. now to figure out how to fly when you are mounted
saker277- Member
- Posts : 77
Join date : 2012-01-15
Age : 30
Location : Your mind
Re: Saker277's Dragon Riding Progress
I dont think its possible with papyrus, I do think it is creating a custom skeleton with custom animations but I dont even know where to start lol.
It is possible though to morph yourself into a dragon, equip this ring, play some dragon animations and fly away tho.
It is possible though to morph yourself into a dragon, equip this ring, play some dragon animations and fly away tho.
DuneD- Newbie
- Posts : 10
Join date : 2012-02-16
Age : 37
Re: Saker277's Dragon Riding Progress
Idk where to start with making animations either. I have been fooling around with mounting the dragon though. I gave my dragon the ActorTypeHorse keyword and now it says mount pet dragon when i look at it in game but once i try to mount it the game crashes. I think that if I had the proper animations it would work. By default the dragon has the paired_mount.hkx animation but that animation is for horses so it won't work on it.The dragon also has paired_dragonmount.hkx but the creation kit seems to be unable to load it.
I looked in to how to make the custom animations and it seems like for now there is no real way to do it. The format of the skyrim animations is .hkx wich is a Havok format, but the Havok tools can't edit .hkx or convert other formats to .hkx. there is a way to convert the .hkx files into .hk so that the havok tools can convert it into a format that can be used by 3d graphics programs but as of right now there is no way to take the custom .hk and convert it into a .hkx wich can be used by Skyrim.
I know we have only just begun but so far dragon riding is looking to ba a very daunting task
I looked in to how to make the custom animations and it seems like for now there is no real way to do it. The format of the skyrim animations is .hkx wich is a Havok format, but the Havok tools can't edit .hkx or convert other formats to .hkx. there is a way to convert the .hkx files into .hk so that the havok tools can convert it into a format that can be used by 3d graphics programs but as of right now there is no way to take the custom .hk and convert it into a .hkx wich can be used by Skyrim.
I know we have only just begun but so far dragon riding is looking to ba a very daunting task
saker277- Member
- Posts : 77
Join date : 2012-01-15
Age : 30
Location : Your mind
Re: Saker277's Dragon Riding Progress
Well I did create a dragon mount that didnt fly, its tricky but its doable, basically first you need to create a custom skeleton out of the dragon skeleton, copy the dragon's skeleton and then add a SaddleBone to it, then create a custom race (copy from the dragon) and make it use your custom skeleton, uncheck flies, create a npc with that custom race and you'll be able to ride around, just not fly.
DuneD- Newbie
- Posts : 10
Join date : 2012-02-16
Age : 37
Re: Saker277's Dragon Riding Progress
It's tricky, Skyrim's physics engine wasn't really made with much flight in mind and that's only with AI dragons.
I'm not sure if it'll help, but is it possible to (once you've got a mounting animation) have the player himself fly using an adapted method of 'Dune's Flight Ring', and have the player attach to the dragon model, so in flight the player would essentially be pulling the dragon model along with him in a wings flapping/gliding animation, rather than actually trying to make the mount itself fly?
It may not be useable long term because the Dragon needs to be able to fly independent of the Player as well as with him, but it might be a rough start. If my suggestion is do-able at any rate, for all I know this could be useless.
I'm not sure if it'll help, but is it possible to (once you've got a mounting animation) have the player himself fly using an adapted method of 'Dune's Flight Ring', and have the player attach to the dragon model, so in flight the player would essentially be pulling the dragon model along with him in a wings flapping/gliding animation, rather than actually trying to make the mount itself fly?
It may not be useable long term because the Dragon needs to be able to fly independent of the Player as well as with him, but it might be a rough start. If my suggestion is do-able at any rate, for all I know this could be useless.
AspenShadow- Forum Administrator
- Posts : 147
Join date : 2012-01-06
Location : England
Re: Saker277's Dragon Riding Progress
Yea thats one of the ideas that pass through my mind when thinking on making this work, there is an specific function called SetVehicle() that allows the player to parent to an object while keeping the angles, its easy to try just start a new game and when you are in the horse cart as a prisoner you can open the console and get the x angle while you are being pulled by an object, which is whats needed in this case, I actually try to do it but I didnt put much effort on it, It could actually work so I will give it a serious try, see what comes out.
DuneD- Newbie
- Posts : 10
Join date : 2012-02-16
Age : 37
Re: Saker277's Dragon Riding Progress
All this code talk
blazingsentinal- Active Member
- Posts : 215
Join date : 2012-01-18
Age : 27
Location : UK
Re: Saker277's Dragon Riding Progress
All this code talk is making my brain hurt good luck and all that but i'll stick to my npcs and models for now
blazingsentinal- Active Member
- Posts : 215
Join date : 2012-01-18
Age : 27
Location : UK
Re: Saker277's Dragon Riding Progress
I'm still learning the ins and outs of the CK so I'm sorry if this is a dumb question... but how exactly did the riding work when the player flies on Odaviing? I know the player doesn't get to control the actual flying as it's a cutscene, but with regards to the mounting animation and sitting on the dragon, these are all things that already exist in the game. Is this of any help to us or not?
Arya- Stranger
- Posts : 4
Join date : 2012-02-16
Age : 35
Location : UK
Re: Saker277's Dragon Riding Progress
It is good that you mentioned that. One of the first things I looked into was how that worked. I had to trace the quests and quest scripts but I discovered that the whole mounting and flying away thing is just a movie scene. There is just marker on the dragon reach map for where to start but after you hit the button to get on odaviing it just plays the movie clip. I might be wrong but i don't really think there is any way to even alter his flight path. While the animation paired_DragonMount.hkx does exist on all dragons animation lists, idk how to use it. Whenever i try to load it in the CK it just says that it can't load it because it doesn't exist.
On a side note, does anyone know how to make a skeleton with a mounting bone? I need one but i have no idea how to make one(I have about 0 skills in 3d stuff).
On a side note, does anyone know how to make a skeleton with a mounting bone? I need one but i have no idea how to make one(I have about 0 skills in 3d stuff).
saker277- Member
- Posts : 77
Join date : 2012-01-15
Age : 30
Location : Your mind
Re: Saker277's Dragon Riding Progress
I never did that, but I saw that it can be done in 3ds max. I've not finished the model so I didn't try the skeleton
Guest- Guest
Re: Saker277's Dragon Riding Progress
I do have an skeleton with a saddle bone, its easy you just need to add a node with nifSkope, put it where you want (I used NPC Spine2) and name it SaddleBone, I could give you the one I already have if you arent familiar with nifskope, else its really easy to do.
DuneD- Newbie
- Posts : 10
Join date : 2012-02-16
Age : 37
Re: Saker277's Dragon Riding Progress
I was wondering, in skyrim, all the large cities is in their own cell, but when you fly, how will you acsess the cities?
Livan- Newbie
- Posts : 16
Join date : 2012-02-17
Age : 28
Location : Norway
Page 1 of 2 • 1, 2
Similar topics
» Niko Enko's Progress
» Urwy's Progress
» blazingsentinals blender progress
» Matttts Progress
» Nolo's Progress
» Urwy's Progress
» blazingsentinals blender progress
» Matttts Progress
» Nolo's Progress
ALAGAËSIA :: Alagaësia mod :: Progress
Page 1 of 2
Permissions in this forum:
You cannot reply to topics in this forum
|
|