Spellforce 2 - Blender Plugin

Diskutiere über alle Themen welche zum Editor und das Modding von SpellForce 2 gehören

Moderator: Forum_Manager

Post Reply
Maxxxel
Posts: 12
Joined: Mon 14. Apr 2025, 18:08

Spellforce 2 - Blender Plugin

Post by Maxxxel »

Hi there

Im the creator of the Battleforge Blender Plugin to import and export DRS files. And as we all know Spellforce 2 DRS files are kinda similar with extra salt. Anyway, I ported my plugin into a new project just for your Spellforce 2 needs.

You can find it here: https://github.com/Maxxxel/SF2-ImpEx-for-Blender

It's an ongoing project and as I'm not a SF2 Player, I need your input.

What you wanna do? Tell me and I try to make it possible.

At first I want to make every single drs file and animations readable. Try the plugin, if a file import fails -> create an issue and I'll fix it.

Second, I will add SKA Export, so you can change the animations of existing models and create new ones, easily update the AnimationSet file for variations etc.

At last, I may take a look at exporting new units (static objects/props should be doable with no big effort).

Whatever you need, create an issue and I'll take a look. Keep in mind that I fully work on the Battleforge plugin, so SF2 Plugin Updates may take some days.

😊
Xian
Posts: 18
Joined: Thu 31. Aug 2023, 23:58

Re: Spellforce 2 - Blender Plugin

Post by Xian »

Damn thanks for that!
There are some modders around that will be very gratefull for sure!

Awesome job! Thanks so much!
UnSchtalch
Posts: 3
Joined: Mon 22. Sep 2025, 09:24

Re: Spellforce 2 - Blender Plugin

Post by UnSchtalch »

Just in case: some data will be lost after import/export of the animated parts of them buildings (_addon.drs models)
Issue is known, it is related to weird _shapeOrig nodes in the file structure.
As far as I can see, node ID for such entries are unique for each building.

It is of no effect if you're interested in just getting the mesh, but might be of one, if you wanna change those animated attachements.
Maxxxel
Posts: 12
Joined: Mon 14. Apr 2025, 18:08

Re: Spellforce 2 - Blender Plugin

Post by Maxxxel »

UnSchtalch wrote: Tue 21. Oct 2025, 09:44 Just in case: some data will be lost after import/export of the animated parts of them buildings (_addon.drs models)
Issue is known, it is related to weird _shapeOrig nodes in the file structure.
As far as I can see, node ID for such entries are unique for each building.

It is of no effect if you're interested in just getting the mesh, but might be of one, if you wanna change those animated attachements.
Ye, it's take time for me to understand the dozens of different drs structs they used in SF2 and it's add-ons.

There are files very simple and then files with a lot of weird things inside. The game handles all the different types, so it's not necessary to export and imported file to the same type again. Instead I would look for a file format that's clean and easy and use that as export base. But that takes a lot of time to figure out 😎
User avatar
Bapt890
Posts: 27
Joined: Thu 26. Jan 2023, 10:49

Re: Spellforce 2 - Blender Plugin

Post by Bapt890 »

I tried my best to install the add-on but it just doesn't work for me somehow <_>. First the readme refers to a branch that does no longer exist, so I installed SF2-ImpEx-for-Blender. I then tried to install the Spellforce_2_Blender_3.3.2.zip inside with Blender but it is not installed. I don't know what to do.
UnSchtalch
Posts: 3
Joined: Mon 22. Sep 2025, 09:24

Re: Spellforce 2 - Blender Plugin

Post by UnSchtalch »

Step-by-step installation instruction for the future reference. Speficically for 4.2 version and newer.

1) Download the release from github (Spellforce_2_Blender_3.3.2.zip currently)
2) Choose where you would store "legacy" blender plugins (In my case it is B:/Soft/Blender)
3) Create empty folder, named "addons" there.
4) Unpack sf_impex from the archive to "addons" folder
5) Open Blender, go Edit->Preferences->File Path
6) In the "Script Directories" find Path field and put a full path to folder from step 2. (not the "addons" one, but one above)
7) Restart Blender, in the Edit->Preferences->Add-ons you will find SF-ImpEx one. Enable it.
User avatar
NeoX
Administrator
Posts: 330
Joined: Thu 3. Nov 2022, 07:47

Re: Spellforce 2 - Blender Plugin

Post by NeoX »

hi,
UnSchtalch wrote: Mon 17. Nov 2025, 10:24 Step-by-step installation instruction for the future reference. Speficically for 4.2 version and newer.

1) Download the release from github (Spellforce_2_Blender_3.3.2.zip currently)
2) Choose where you would store "legacy" blender plugins (In my case it is B:/Soft/Blender)
3) Create empty folder, named "addons" there.
4) Unpack sf_impex from the archive to "addons" folder
5) Open Blender, go Edit->Preferences->File Path
6) In the "Script Directories" find Path field and put a full path to folder from step 2. (not the "addons" one, but one above)
7) Restart Blender, in the Edit->Preferences->Add-ons you will find SF-ImpEx one. Enable it.
thx for this! To asure the referenced version does still exist, i am adding it as a backup to this post.
Source and credit go to here:
https://github.com/Maxxxel/SF2-ImpEx-fo ... _3.3.2.zip

Again massive thx to Maxxxel!

Greetings: NeoX
Login required - You do not have the required permissions to view the files attached to this post in guest mode.
SpellForce 2 - Master of War | SpellForce - Wiki & Info Hub
Image Image
"SpellForce 2 - Master of War" is the legendary Card-Game of the SpellForce 2 Collectors Edition of 2006, now finally for PC and Android! Play against the NPC, another Player or Online. Over 100 different Cards out of 7 factions and more than 10 powerfull spells to support them. Many hours of tactical turn based gameplay await you.
http://www.sf2-mow.keepfree.de/
- - -
"SpellForce - Fan Hub & Wiki" (for Android devices) is the official SpellForce fan hub app with wiki and forum integration made by the Fan Community. Get updated with the latest SpellForce news all around the game and its community. Look up knowlege in the wiki about lore and game guides. Exchange yourself with others on the fan forum. Made by the Community for the Community.
https://play.google.com/store/apps/details?id=com.it_huskys.spellforce_hub_wiki
Post Reply

Return to “SpellForce 2 - Editor & Modding”