[Blender] scripts to import/export .SRF .DNM .FLD .YFS

Learn to make aircraft, maps and more with all of the tools. All the tutorials you will ever need are located here!
NOTE THAT HACKING THE MAIN YSFLIGHT .EXE IS FORBIDDEN
User avatar
Granny Apple Smith
Veteran
Veteran
Posts: 992
Joined: Wed Mar 28, 2012 8:49 pm
Favorite Aircraft: The Boeing 757
Location: Providence, Rhode Island
OS: Windows 10/Gentoo
Has thanked: 251 times
Been thanked: 194 times

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by Granny Apple Smith » Sat Oct 08, 2016 5:38 pm

[quote="u2fly"][/quote]

Got a error when using the import script
Attachments
Screenshot_1.png
Image
Beginner ATC for hire!
Current Projects:
-Pilatus PC12
-Mooney M20
-New England Scenery
Fine Print:
**Word of Caution**
My knowledge is limited. Anything I write in my posts may or may not be accurate. To be honest I think its all crap.

User avatar
Granny Apple Smith
Veteran
Veteran
Posts: 992
Joined: Wed Mar 28, 2012 8:49 pm
Favorite Aircraft: The Boeing 757
Location: Providence, Rhode Island
OS: Windows 10/Gentoo
Has thanked: 251 times
Been thanked: 194 times

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by Granny Apple Smith » Sat Oct 08, 2016 6:53 pm

u2fly wrote:
Barracuz wrote:Got a error when using the import script
Did you read "install.html"? Look like no.
You must move folder ysfs inside .blender/scripts/. So all scripts from there release must be as ./blender/scripts/ysfs/******.py.
Did that. I just overwrote the old scripts that were in there. Since it didnt work i just replaced with the old ones again. But ill try again

EDIT
Its all good mayne. Mustve done something wrong :oops:

Now if only I could download more ram.
Image
Beginner ATC for hire!
Current Projects:
-Pilatus PC12
-Mooney M20
-New England Scenery
Fine Print:
**Word of Caution**
My knowledge is limited. Anything I write in my posts may or may not be accurate. To be honest I think its all crap.

AdmiralKew
Newbie
Newbie
Posts: 8
Joined: Mon Nov 28, 2016 3:25 am
Favorite Aircraft: F-22 Raptor, Spitfire, P51 Mustang, etc...
OS: Windows
Has thanked: 4 times
Been thanked: 13 times

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by AdmiralKew » Mon Nov 28, 2016 3:31 am

u2fly wrote:After five years from first release of YSFS for Blender (2011.10.02) I happy to present updated YSFS for Blender 2.49b!

YSFS ver.1.01 for Blender 2.49b
This is updated version of YSFS scripts for Blender 2.49b or older (with Python 2.6)
CHANGELOG:
1.01 (2016.10.08) by u2fly - http://github.com/ysflight-opensource
  • NEW: All scripts including texture library placed in ./blender/scripts/ysfs
  • NEW: In Blender menu all related scripts shown as "YS - ..."
  • Fixed: stupid names of sripts files
  • Fixed: "modeExport" value in export_srf.py script now take correctly from ysfs_config.py
  • Other small fixes
DOWNLOAD - attached to this post!
--
P.S.: for those who look YSFS for Blender 2.7 or above look here
Hi. I'm new to making aircraft for YSFlight. Could I ask how you use the hardpoints export script in the pack for blender 2.49?

Edit: I figured it out.

For the curious:
- Create an 'empty' Image
- Name it any of these: LEFTGEAR, RIGHTGEAR, WHEELGEAR, ARRESTER, MACHNGUN, SMOKEGEN, VAPORPO0, VAPORPO1, HPT
- And run the hardpoint export script.

Something's broken in the HPT export bit though. Image

User avatar
NightRaven
Staff
Staff
Posts: 1821
Joined: Tue Feb 07, 2012 10:00 am
Favorite Aircraft: soviet and (nazi) german aircraft
Location: singapore
OS: windoze 10 64-bit
Has thanked: 459 times
Been thanked: 562 times

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by NightRaven » Mon Nov 28, 2016 8:34 am

I think hardpoints are called HRDPOINT, not HPT, so the script does not recognise the variable you are trying to input.
Image

AdmiralKew
Newbie
Newbie
Posts: 8
Joined: Mon Nov 28, 2016 3:25 am
Favorite Aircraft: F-22 Raptor, Spitfire, P51 Mustang, etc...
OS: Windows
Has thanked: 4 times
Been thanked: 13 times

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by AdmiralKew » Mon Nov 28, 2016 9:07 am

NightRaven wrote:I think hardpoints are called HRDPOINT, not HPT, so the script does not recognise the variable you are trying to input.
The script doesn't recognize 'empty' objects in Blender named HRDPOINT. It takes empties named 'HPT' and outputs their coordinate values as YSFlight HRDPOINT coordinates.

I tried it with empty objects named HRDPOINT. It outputted zilch, which it also does with objects with names that fall outside the naming parameters I stated a while ago.

User avatar
u2fly
Banned
Banned
Posts: 1156
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 645 times
Been thanked: 258 times
Contact:

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by u2fly » Mon Nov 28, 2016 10:21 am

AdmiralKew wrote:
NightRaven wrote:I think hardpoints are called HRDPOINT, not HPT, so the script does not recognise the variable you are trying to input.
The script doesn't recognize 'empty' objects in Blender named HRDPOINT. It takes empties named 'HPT' and outputs their coordinate values as YSFlight HRDPOINT coordinates.

I tried it with empty objects named HRDPOINT. It outputted zilch, which it also does with objects with names that fall outside the naming parameters I stated a while ago.
If I could fix it soon I will make next update for YSFS ver.1.x branch.
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
- John McCain, U.S. Senator for Arizona, Republican party
(31 DEC 2016)

User avatar
u2fly
Banned
Banned
Posts: 1156
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 645 times
Been thanked: 258 times
Contact:

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by u2fly » Sat Jan 28, 2017 12:54 am

Upcoming update for "YSFS ver.1.x" branch will include little improved "DNM Viewer" script. Especially for vertical panels mode, so it will look more compact.
Attachments
ysfs1x_dnmviewer.png
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
- John McCain, U.S. Senator for Arizona, Republican party
(31 DEC 2016)

User avatar
Granny Apple Smith
Veteran
Veteran
Posts: 992
Joined: Wed Mar 28, 2012 8:49 pm
Favorite Aircraft: The Boeing 757
Location: Providence, Rhode Island
OS: Windows 10/Gentoo
Has thanked: 251 times
Been thanked: 194 times

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by Granny Apple Smith » Sun Apr 09, 2017 2:15 am

Can we use python 3.x for these scripts? Or must we download the 2.x version?
Image
Beginner ATC for hire!
Current Projects:
-Pilatus PC12
-Mooney M20
-New England Scenery
Fine Print:
**Word of Caution**
My knowledge is limited. Anything I write in my posts may or may not be accurate. To be honest I think its all crap.

User avatar
decaff_42
First Class Membership
First Class Membership
Posts: 3347
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX 10.11.3
Has thanked: 486 times
Been thanked: 1088 times
Contact:

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by decaff_42 » Sun Apr 09, 2017 2:28 am

Blender 2.49 requires Python 2.6 for its scripts.
Check out my website YSDecaff for all my tutorials and addon releases.

Feel free to ask me a question! I'll try to answer it as well as I can or recommend a more knowledgeable member if necessary.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest