Spellforce Data Editor

Insigar
Posts: 21
Joined: Sat Jul 09, 2016 2:27 am

Spellforce Data Editor

Post by Insigar » Wed Aug 03, 2016 6:24 pm

Hey everyone,

so after I saw a few editors I kind of got inspired to try to create an editor myself. I only started learning C# 2 weeks ago so it might not be the user friendliest. It's also not completed yet so I'd like to hear from you guys what I can do better or what's missing apart from the boxes on the right for every offset. Also tell me about any bugs you find please.

Requires: .NET Framework 4.5.2

So thanks in advance for the feedback

WARNING! Always keep backups and test every little change. As I said I'm a rather unexperienced programmer and the editor might break stuff if you're not careful. (I just broke my game :D)

I uploaded my Visual Studio Project folder for anyone interested.
SpellforceDataEditor.7z
(21.19 KiB) Downloaded 439 times
SF Data Editor Project Folder.rar
(2.2 MiB) Downloaded 264 times
Also reload the text atleast once after each update. It won't crash, but it will throw out an exception and won't function.

What's integrated at the moment
1. spells/skills
2. spell/skill ui
4. unit/hero stats
7. item type/name ID/price
8. armor class item stats
9. scroll ID with spell ID/rune ID with rune in slot ID
10. weapon class item stats
11. item requirements
14. spell item ID with spell number
15. text IDs
18. unit names
19. unit equipment
21. hero army unit resource requirements and upgrades
28. skills requirements
29. merchant ID with unit ID
30. merchant's inventory
Changelog
04.08.2016
  • integrated Text ID offset (it takes a while to load though)
    integrated merchant ID with unit ID offset
    integrated merchant's inventory offset
07.08.2016
  • integrated Spell/Skill UI
    integrated armor type stats
08.08.2016
  • updated readme
    added button to reload text from gamedata
    integrated item type/name ID/price offset
    integrated scroll ID with spell ID offset
    integrated spell item ID with spell number offset
09.08.2016
  • added an Add-Button
10.08.2016
  • added a Copy-Button (kept the Add-Button for... reasons :D)
    added a Remove-Button
30.08.2016
  • Added unit corpse and chest loot offsets
    Added other stuff (can't remember)
    Fixed some bugs
31.08.2016
  • Added even more small stuff (every offset I have info on should be there now)
Last edited by Insigar on Thu May 25, 2017 12:03 pm, edited 19 times in total.

User avatar
rupuzioks
Site Admin
Posts: 555
Joined: Sun Nov 13, 2011 2:57 pm

Re: Spellforce Data Editor

Post by rupuzioks » Thu Aug 04, 2016 4:08 pm

nice one :)
you can check offsets topic for the changes to improve your editor
Tempus et vita, tempus et mortis

Insigar
Posts: 21
Joined: Sat Jul 09, 2016 2:27 am

Re: Spellforce Data Editor

Post by Insigar » Thu Aug 04, 2016 4:44 pm

I based every information the editor processes from that topic. So a huge thanks to you for providing this information.

User avatar
rupuzioks
Site Admin
Posts: 555
Joined: Sun Nov 13, 2011 2:57 pm

Re: Spellforce Data Editor

Post by rupuzioks » Thu Aug 04, 2016 9:01 pm

Insigar wrote: 30. merchant's inventory (Not sure what the last 2 bytes do)
02 00 21 00 01 00

02 00 - merchant ID
21 00 - item ID
01 00 - quantity of the item
Tempus et vita, tempus et mortis

Insigar
Posts: 21
Joined: Sat Jul 09, 2016 2:27 am

Re: Spellforce Data Editor

Post by Insigar » Thu Aug 04, 2016 9:24 pm

Thank you, updated it.

User avatar
VolterPL
Posts: 26
Joined: Fri May 01, 2015 3:26 pm
Location: Poland

Re: Spellforce Data Editor

Post by VolterPL » Sat Aug 06, 2016 7:36 pm

Oh no, right when I wanted to do a big comeback! Just kidding, great work!

User avatar
Kamina
Posts: 24
Joined: Fri Sep 05, 2014 2:59 pm

Re: Spellforce Data Editor

Post by Kamina » Wed Aug 17, 2016 11:15 am

Wow, nice work!

Not sure if i get this right but is it possiple now to add Items instead of using the existing ones?
btw: How do to replace the skin of the rune heroes like kyra or the blades? I can only find the id of them as normal units

Insigar
Posts: 21
Joined: Sat Jul 09, 2016 2:27 am

Re: Spellforce Data Editor

Post by Insigar » Wed Aug 17, 2016 3:42 pm

It is possible to add new items. If you want to add a weapon for example you need to add a new entry to offset 7 (for item type and price), 10 (for weapon stats), 11 (for skill requirements), 13 (for the icon), 15 (for text) and 30 (to add it to a merchant). Also you need to add a new weapon to the sql_item.lua.

For Kyra's skin: in offset 19 you can find the unit equipment. Kyra has a chest piece which gives her the model off an elf windarcher. If you change the item ID of the chest to 508 for example Kyra will look like a human armsman.

User avatar
Kamina
Posts: 24
Joined: Fri Sep 05, 2014 2:59 pm

Re: Spellforce Data Editor

Post by Kamina » Mon Aug 29, 2016 8:22 am

Insigar wrote: For Kyra's skin: in offset 19 you can find the unit equipment. Kyra has a chest piece which gives her the model off an elf windarcher. If you change the item ID of the chest to 508 for example Kyra will look like a human armsman.
Not exactly what i meant. i can't find the chest ID for the rune heroes like Kyra, just for the normal unit. Model for the rune kyra doesn't change from that. =(

Insigar
Posts: 21
Joined: Sat Jul 09, 2016 2:27 am

Re: Spellforce Data Editor

Post by Insigar » Mon Aug 29, 2016 3:46 pm

I noticed this myself but forgot to reply, sorry about that. But I investigated a bit and it looks like the skin is linked to the unit stats. I tested this by creating a completely new hero and giving him Kyra's unit stats. He now looks like her :D I'll keep you updated

Edit: Absolutely no idea where it's defined that the Unit stats ID 1730 gets equipped with the 4082 (figure type item called Kyra)

Locked